* src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
[fw/sdcc] / ChangeLog
1 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
3           bug 1731741
4
5 2007-06-18 Borut Razem <borut.razem AT siol.net>
6
7         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
8           how to handle comments, so they have to be removed by the
9           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
10         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
11           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
12           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
13           table driven option hadling
14
15 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
16
17         * src/SDCCast.c (decorateType),
18         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
19           iCode to ast level to fix bug 1738367
20         * support/regression/tests/bug1738367.c: new, added
21
22 2007-06-15 Raphael Neider <rneider AT web.de>
23
24         * src/pic16/devices.inc,
25         * device/lib/pic16/pics.all,
26         * device/include/pic16/pic18fregs.h,
27         * device/include/pic16/pic18f[24][45]20.h,
28         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
29           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
30         * device/lib/pic16/Makefile.in: faster cleanup
31
32 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
33
34         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
35
36 2007-06-13 Raphael Neider <rneider AT web.de>
37
38         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
39
40 2007-06-12 Raphael Neider <rneider AT web.de>
41
42         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
43           suppress bit defines if NO_BIT_DEFINES is #define'd
44         * device/include/pic/pic*.h: recreated all headers to include
45           conditional bit defines
46         * device/include/pic/pic16f886.h,
47         * device/include/pic/pic16f887.h: fixed based on newer .inc file
48         * device/include/pic/recreate.sh: script to recreate the complete
49           device library files based on the currently supported devices
50
51 2007-06-12 Borut Razem <borut.razem AT siol.net>
52
53         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
54           support/regression/Makefile.in, support/scripts/build.mak,
55           support/scripts/Makefile.snapshot:
56           use new svn URL scheme
57         * doc/sdccman.lyx: SDCC Wiki moved to
58           http://sdcc.wiki.sourceforge.net/
59
60 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
61
62         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
63         * support/regression/tests/bug1734654.c: added
64
65 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
66
67         * src/SDCCast.c (decorateType): optimized '?' for equal operands
68         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
69           with literal operands
70
71 2007-06-10 Borut Razem <borut.razem AT siol.net>
72
73         * as/link/z80/lklibr.c: fixed mingw build warning
74           lklibr.c:575: warning: implicit declaration of function 'tolower'
75         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
76           src/z80/main.c: move target specific options from src/SDCCmain.c
77           to src/<target>/main.c
78
79 2007-06-09 Borut Razem <borut.razem AT siol.net>
80
81         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
82           removed unused swap_sense; removed outBitCLong, replaced with outBitC
83         * support/regression/tests/bug-1294691.c: added
84
85 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
86
87         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
88           can also be static, fixes bug 1733438
89         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
90           have absolute address too
91           (computeType): added optimization for 'cond ? true : false'
92         * support/regression/tests/absolute.c: added test for static absolute var
93
94 2007-06-08 Raphael Neider <rneider AT web.de>
95
96         * src/regression/Makefile: suppress parallel builds, allow easy
97           switching between pic14/pic16 ports
98         * src/regression/picregs.h: added pic14/16 header file switch
99         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
100           inline.c,nestfor.c,string1.c}: include "picregs.h"
101
102 2007-06-07 Borut Razem <borut.razem AT siol.net>
103
104         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
105           permanent solution to suppress GCC 4.2.0 c++ warning:
106           deprecated conversion from string constant to `char *'
107           use 'const char *' where ever required
108         * support/regression/generate-cases.py: implemented more flexible rule
109           for detection of testing functions, allowing white-spaces surrounding
110           the function name and the 'void' parameter.
111         * support/regression/tests/constantRange.c,
112           support/regression/tests/scott-compare3.c: fixed failing regression
113           tests, uncovered by implementation of more flexible rule for detection
114           of testing functions
115
116 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
117
118         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
119
120 2007-06-04 Borut Razem <borut.razem AT siol.net>
121
122         * configure.in, configure, config_vc.awk: sdcc version number is now
123           stored in configure.in; removed .version
124         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
125           doc/INSTALL.txt: version bumped to 2.7.2
126         * sim/ucsim/configure.in, sim/ucsim/configure:
127           use "read" to read from .version
128
129 2007-06-03 Borut Razem <borut.razem AT siol.net>
130
131         * */Makefile.in: removed annoying warning:
132           Makefile:xx: Makefile.dep: No such file or directory
133
134 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
135
136         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
137           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
138         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
139         * src/SDCCast.c (resultTypePropagate): propagate for '!',
140           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
141           bugfix: only use newBoolLink for bit result type
142         * src/SDCCicode.c (geniCodeLogic): added param tree,
143           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
144           (geniCodeLogicAndOr): use IS_BIT,
145           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
146           (ast2iCode): added tree param to geniCodeLogic for comparisons
147         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
148         * support/regression/tests/bug1723128.c: added test NotZero
149
150 2007-06-01 Borut Razem <borut.razem AT siol.net>
151
152         * SDCPP synchronized with GCC CPP release version 4.2.0,
153           currently the latest release:
154         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
155           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
156           support/cpp2/cppdefault.h, support/cpp2/except.h,
157           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
158           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
159           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
160           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
161           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
162           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
163           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
164           support/cpp2/opts.h, support/cpp2/output.h,
165           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
166           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
167           support/cpp2/system.h, support/cpp2/version.c,
168           support/cpp2/Makefile.in: modified
169         * support/cpp2/opts-common.c: added
170         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
171         * device/lib/pic16/libdev/pic18f[24]5j10.c:
172           search for included source file in local directory
173         * sim/ucsim/configure, sim/ucsim/configure.in:
174           temporary solution to suppress GCC 4.2.0 c++ warning:
175           deprecated conversion from string constant to `char *'
176
177 2007-06-01 Raphael Neider <rneider AT web.de>
178
179         * device/lib/pic/libdev/pic12f683.c,
180         * device/include/pic/pic12f683.h: added GPIO bits
181
182 2007-06-01 Raphael Neider <rneider AT web.de>
183
184         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
185           quotation marks, clarified role of PIC14 vs. PIC16 ports
186         * src/pic16/devices.inc,
187         * device/include/pic16/pic18fregs.h,
188         * device/include/pic16/pic18f[24][45]j10.h,
189         * device/lib/pic16/pics.all,
190         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
191           18f24j10, 18f25j10, 18f44j10, and 18f45j10
192         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
193           for new devices as they are not yet supported by gputils
194
195 2007-05-31 Borut Razem <borut.razem AT siol.net>
196
197         * Small Device C Compiler 2.7.0 released
198         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
199           changed sdcc version to 2.7.1
200         * support/scripts/sdcc.nsi: added How to create WIN32 release
201           setup.exe package
202
203 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
204
205         * doc/sdccman.lyx: documented initialization and allocation of absolute
206           variables, bit parameter passing, the need for function pointers to be
207           reentrant and alpha quality support of inline and retrict
208
209 2007-05-26 Borut Razem <borut.razem AT siol.net>
210
211         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
212           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
213         * docs/knownbugs.html: updated
214
215 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
216
217         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
218           thanks Jan Waclawek
219         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
220           AOP_CRY and ruonly
221           (gencjneshort): optimized when left is AOP_DIR
222         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
223           initializing unions in a struct/array
224         * support/regression/fwk/include/testfwk.h: added defines for data, near
225           and far for host and z80
226         * support/regression/tests/bug1723128.c: new, added
227
228 2007-05-22 Borut Razem <borut.razem AT siol.net>
229
230         * doc/knownbugs.html: updated
231
232 2007-05-21 Raphael Neider <rneider AT web.de>
233
234         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
235           error message instead
236         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
237
238 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
239
240         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
241
242 2007-05-21 Raphael Neider <rneider AT web.de>
243
244         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
245           closes #1722392
246         * src/regression/gpsim_assert.h,
247         * src/regression/Makefile,
248         * src/regression/pcodeopt.c: regression test for the above fix
249
250 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
251
252         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
253           jumps to self, fixed bug 1717281
254
255 2007-05-10 Borut Razem <borut.razem AT siol.net>
256
257         * support/scripts/gen_known_bugs.pl: cosmetic fix
258         * doc/knownbugs.html: generated by gen_known_bugs.pl
259
260 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
261
262         * src/SDCCast.c (createFunction): also generate non-inlined version of
263           function for functions declared as "static inline"
264         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
265           function can be inlined after non-inlined version generated.
266
267 2007-05-10 Borut Razem <borut.razem AT siol.net>
268
269         * support/scripts/gen_known_bugs.pl: added script
270           which generates knownbugs.html
271
272 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
273
274         * doc/knownbugs.html: updated for release 2.7.0
275
276 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
277
278         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
279
280 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
281
282         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
283           (throughout): updated generating comments
284         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
285           (throughout): updated generating comments
286         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
287           rule instead of at the second, or it might skip lines when removing the
288           complete match
289         * support/regression/tests/bug1714204.c: changed test to foo
290
291 2007-05-08 Borut Razem <borut.razem AT siol.net>
292
293         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
294           thanks to SDCC Distributed Compile Farm members,
295           added Z80 and GBZ80 command line options
296         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
297
298 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
299
300         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
301         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
302         * support/regression/tests/longlit.c: modified to be tested at all and
303           to pass the actual test
304
305 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
306
307         * device/include/mcs51/uPSD33xx.h: Added.
308
309 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
310
311         * device/lib/_gptrput.c,
312         * device/lib/_gptrget.c: removed old code,
313          (_gptrgetWord),
314         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
315         * support/regression/tests/bug1714204.c: new, added
316
317 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
318
319         * support/regression/tests/regtrack.c: test was never executed
320           because of the regression test being picky about white spaces.
321         * device/lib/mcs51/crtclear.asm: added comment
322
323 2007-05-06 Raphael Neider <rneider AT web.de>
324
325         * device/lib/pic/Makefile.rules,
326         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
327           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
328
329 2007-05-06 Raphael Neider <rneider AT web.de>
330
331         * src/pic16/device.h,
332         * src/pic16/main.h,
333         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
334           _pic16_setDefaultOptions): removed/reordered command-line args
335         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
336           devices, regrouped command line args, environment variables),
337           clarified sone points, added sections on how to add devices to the
338           PIC14/PIC16 ports
339
340 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
341
342         * src/z80/peeph.def: fixed bug in rule 2
343
344 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
345
346         * src/port.h: added TARGET_MCS51_LIKE
347         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
348           take advantage of it too
349         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
350           (shiftR2Left2Result): Optimized: don't check shifting by 0
351         * src/z80/peeph-z80.def,
352         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
353           modifications, see patch 1700823
354         * src/mcs51/peep.c (): fixed bug 1712928
355         * support/regression/tests/bug1712928.c: new, added
356
357 2007-05-05 Borut Razem <borut.razem AT siol.net>
358
359         * device/lib/pic16/Makefile.common.in,
360           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
361           removed bash dependencies
362
363 2007-05-01 Borut Razem <borut.razem AT siol.net>
364
365         * src/SDCCicode.c:
366           fixed bug #1710507: --i-code-in-asm makes compile fail
367           all iCode comments are now one liners
368         * src/mcs51/gen.c: fixed memory leak
369
370 2007-05-01 Raphael Neider <rneider AT web.de>
371
372         * device/lib/pic/libdev/*.c
373         * device/include/pic/*.h: regenerated all device libs from updated
374           .inc files
375         * support/scripts/inc2h.pl: documented usage, now uses strict to
376           catch more bugs
377
378 2007-04-30 Borut Razem <borut.razem AT siol.net>
379
380         * doc/sdccman.lyx:
381           fixed bug #1669175: Problem with space in output paths
382           documented how to use paths with spaces for Windows users
383
384 2007-04-29 Borut Razem <borut.razem AT siol.net>
385
386         * Fixed svn:eol-style and svn:keywords properties
387         * src/SDCCval.c: fixed bug
388           #1592871: Segfault with "large" const arrays of characters
389           replaced recursion with iteration
390         * Removed svn:executable property from non-executable files
391
392 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
393
394         * src/mcs51/gen.c (genRet): fixed bug 1707003
395
396 2007-04-27 Raphael Neider <rneider AT web.de>
397
398         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
399           createReachingDefinitions,assignValnums,pic16_destructDF,
400           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
401           prevent NULL pointer dereferences
402         * device/lib/pic/libdev/pic16f886.c,
403         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
404           prevent building them, gputils do not really support them yet
405
406 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
407
408         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
409           helps printf_small. 32 bytes more __idata mem.
410
411 2007-04-27 Raphael Neider <rneider AT web.de>
412
413         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
414           return early when pb or pb->pcHead is NULL (patch #1708427)
415         * src/regression/empty.c,
416         * src/regression/Makefile: added test with empty functions
417         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
418
419 2007-04-27 Borut Razem <borut.razem AT siol.net>
420
421         * src/SDCCast.c: fixed feature request
422           #1547512: Redundant strings linked when using sizeof("abc")
423
424 2007-04-23 Borut Razem <borut.razem AT siol.net>
425
426         * doc/sdccman.lyx, src/SDCCmain.c:
427           peep-hole comments are generated only if --fverbose-asm option is
428           specified and --no-peep-comments is not, as proposed by Frieder.
429         * support/regression/Makefile.in: compile regression tests with
430           --fverbose-asm option so one can "grep" whether a new (or an old)
431           peephole is (still) applied; requested by Frieder.
432
433 2007-04-23 Kevin Buettner <kevin AT buettner.to>
434
435         * device/include/pic/pic16f886.h,
436         * device/include/pic/pic16f887.h,
437         * device/lib/pic/libdev/pic16f886.c,
438         * device/lib/pic/libdev/pic16f887.c,
439         * device/include/pic/pic14devices.txt,
440         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
441
442 2007-04-23 Kevin Buettner <kevin AT buettner.to>
443
444         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
445           fixes #1704666
446
447 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
448
449         * device/lib/_memset.c: assembler version for mcs51
450
451 2007-04-22 Borut Razem <borut.razem AT siol.net>
452
453         * support/scripts/listerr.c: program to create the list of errors and
454           warnings list from - added
455         * doc/sdccman.lyx: removed the note
456           "For list of warnings and corresponding codes, see err_warn.txt"
457         * src/SDCCsymt.c: fixed bug #1699804:
458           Bug with some uses of sizeof(static local array) (MCS51)
459         * support/regression/tests/bug-1699804.c: added
460
461 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
462
463         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
464           (main): added option -i,
465           (asmbl, case S_INCL): use search_path_fopen,
466           mostly from patch 1579668 by Peter Miller, thanks
467         * src/z80/main.c: fixed typo --callee-saves-bc
468         * device/include/mcs51/compiler.h: added sfrword for Tasking
469
470 2007-04-20 Borut Razem <borut.razem AT siol.net>
471
472         * src/z80/main.c: replaced reserved keyword asm with asmblr
473
474 2007-04-19 Borut Razem <borut.razem AT siol.net>
475
476         * src/port.h: use const pointers to strings
477         * src/SDCCargs.h: declared getStringArg() and getIntArg()
478         * src/pic16/main.c: include SDCCargs.h
479         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
480           const char, since the strings are dynamically allocated
481         * src/SDCCmain.c: options.code_seg and options.const_seg are
482           dynamically allocated; check port specific command line options
483           before the general ones
484         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
485
486 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
487
488         * device/include/ds400rom.h,
489         * device/lib/ds390/lcd390.c,
490         * device/lib/ds390/memcpyx.c,
491         * device/lib/ds390/rtc390.c,
492         * device/lib/ds400/ds400rom.c,
493         * device/lib/ds400/memcpyx.c,
494         * device/lib/hc08/_ret.c: more replacements of keywords with their
495           double underscore equivalents
496         * device/lib/ds390/Makefile.in,
497         * device/lib/ds400/Makefile.in,
498         * device/lib/gbz80/Makefile.in,
499         * device/lib/hc08/Makefile.in,
500         * device/lib/mcs51/Makefile.in,
501         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
502
503 2007-04-17 Borut Razem <borut.razem AT siol.net>
504
505         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
506           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
507           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
508           to --fverbose-asm, to be gcc'ish
509
510 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
511
512         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
513
514 2007-04-17 Borut Razem <borut.razem AT siol.net>
515
516         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
517         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
518           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
519           with their double underscore equivalent
520
521 2007-04-14 Borut Razem <borut.razem AT siol.net>
522
523         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
524           source"
525
526 2007-04-13 Borut Razem <borut.razem AT siol.net>
527
528         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
529           C99 standard
530         * device/examples/serialcomm/windows/serial.[ch],
531           device/examples/serialcomm/windows/test_serialcomm.cpp:
532           updated by Bela Torok
533         * device/examples/serialcomm/windows/serialcomm.dsw,
534           device/examples/serialcomm/windows/serialcomm.dsp: added
535
536 2007-04-13 Jan Waclawek <wek AT efton.sk>
537
538         * doc/sdccman.lyx: additions and changes at various places
539           (submitted as #1697136).
540           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
541
542 2007-04-10 Borut Razem <borut.razem AT siol.net>
543
544         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
545           LyX file format changed to 245
546         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
547           "FreeWare" replaced with "free open source"
548
549 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
550
551         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
552
553 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
554
555         * device/include/pic16/pic18fregs.h,
556         * device/lib/_bp.c,
557         * device/lib/_decdptr.c,
558         * device/lib/_divsint.c,
559         * device/lib/_divslong.c,
560         * device/lib/_divuint.c,
561         * device/lib/_divulong.c,
562         * device/lib/_fs2schar.c,
563         * device/lib/_fs2sint.c,
564         * device/lib/_fs2slong.c,
565         * device/lib/_fs2uchar.c,
566         * device/lib/_fs2uint.c,
567         * device/lib/_fs2ulong.c,
568         * device/lib/_fsadd.c,
569         * device/lib/_fscmp.c,
570         * device/lib/_fsdiv.c,
571         * device/lib/_fseq.c,
572         * device/lib/_fsget1arg.c,
573         * device/lib/_fsget2args.c,
574         * device/lib/_fsgt.c,
575         * device/lib/_fslt.c,
576         * device/lib/_fsmul.c,
577         * device/lib/_fsneq.c,
578         * device/lib/_fsnormalize.c,
579         * device/lib/_fsreturnval.c,
580         * device/lib/_fsrshift.c,
581         * device/lib/_fssub.c,
582         * device/lib/_fsswapargs.c,
583         * device/lib/_gptrget.c,
584         * device/lib/_gptrgetc.c,
585         * device/lib/_gptrput.c,
586         * device/lib/_logexpf.c,
587         * device/lib/_modsint.c,
588         * device/lib/_modslong.c,
589         * device/lib/_moduint.c,
590         * device/lib/_modulong.c,
591         * device/lib/_mulint.c,
592         * device/lib/_mullong.c,
593         * device/lib/_schar2fs.c,
594         * device/lib/_ser.c,
595         * device/lib/_setjmp.c,
596         * device/lib/_sint2fs.c,
597         * device/lib/_slong2fs.c,
598         * device/lib/_spx.c,
599         * device/lib/_uchar2fs.c,
600         * device/lib/_uint2fs.c,
601         * device/lib/_ulong2fs.c,
602         * device/lib/asincosf.c,
603         * device/lib/atanf.c,
604         * device/lib/calloc.c,
605         * device/lib/ds390/tinibios.c,
606         * device/lib/ds400/tinibios.c,
607         * device/lib/expf.c,
608         * device/lib/free.c,
609         * device/lib/hc08/_mulint.c,
610         * device/lib/logf.c,
611         * device/lib/malloc.c,
612         * device/lib/printf_fast.c,
613         * device/lib/printf_tiny.c,
614         * device/lib/printfl.c,
615         * device/lib/realloc.c,
616         * device/lib/ser_ir.c,
617         * device/lib/serial.c,
618         * support/regression/tests/libmullong.c: replaced all special keywords
619           with their double underscore equivalent
620         * support/regression/ports/mcs51-xstack-auto/spec.mk,
621         * device/lib/Makefile.in: compile libs with --std-c99 instead of
622           --std-sdcc99
623         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
624           (genRet): if the bit-symbol is ruonly it already is in the carry
625         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
626         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
627         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
628           type UCHAR if dest is not bit
629
630 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
631
632         * device/include/math.h,
633         * device/lib/cotf.c,
634         * device/lib/expf.c,
635         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
636
637 2007-04-01 Borut Razem <borut.razem AT siol.net>
638
639         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
640           fixed bug #1692042: input buffer overflow...scanner uses REJECT
641         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
642           gcc_unreachable() called internal_error()...
643
644 2007-03-30 Raphael Neider <rneider AT web.de>
645
646         * src/pic/ralloc.c (isData): suppress garbage debug output
647
648 2007-03-28 Borut Razem <borut.razem AT siol.net>
649
650         * doc/sdccman.lyx:
651           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
652           is developed, built and used worldwide, and the word "night" doesn't
653           make any sense.
654
655 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
656
657         * device/include/mcs51/C8051F360.h: new, added
658         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
659
660 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
661
662         * src/SDCC.y (declaration_specifiers, function_specifier),
663         * support/Util/SDCCerr.c,
664         * support/Util/SDCCerr.h,
665         * src/SDCCsymt.h,
666         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
667           inline keyword
668         * src/SDCCmem.c (deallocParms),
669         * src/SDCCast.c: support for function inlining, not quite complete
670         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
671           'restrict' qualifier
672
673 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
674
675         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
676           (saveRBank, unsaveRBank): don't save bits,
677           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
678         * support/regression/tests/bug1535242.c: new, added
679         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
680           thanks Alexey Shamrin <shamrin AT gmail.com>,
681           made assert.h header ANSI compliant (added a check for NDEBUG macro,
682           removed header guard)
683         * .version,
684         * sdcc.spec: bumped version to 2.6.5
685         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
686
687 2007-03-22 Borut Razem <borut.razem AT siol.net>
688
689         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
690           fixed bug #1653671: sdcdb integration into ddd is broken
691
692 2007-03-22 Raphael Neider <rneider AT web.de>
693
694         * src/pic/gen.c (popGetExternal): augmented to also create references
695           to external variables (not only labels),
696           (genCall): comment on plan to reduce PAGESEL overhead,
697           (genFunction, genEndFunction): also save/restore FSR around interrupt
698           handling code, removed lots of unused code
699           (genDivOneByte): release acquired temp register
700         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
701           of popGetExternal
702         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
703           for registers that need to be saved during interrupts (FSR, STATUS,
704           PCLATH; W needs special handling), currently only FSR is used
705
706 2007-03-22 Raphael Neider <rneider AT web.de>
707
708         * device/include/pic/pic14devices.txt: 16f688 has only one config word
709
710 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
711
712         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
713
714 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
715
716         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
717
718 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
719
720         * as/link/aslink.h: added LKOBJEXT
721         * as/link/hc08/link_hc08.dsp,
722         * as/link/hc08/Makefile.bcc,
723         * as/link/hc08/Makefile.in,
724         * as/link/mcs51/aslink.dsp,
725         * as/link/mcs51/Makefile.bcc,
726         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
727         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
728         * as/link/lkaomf51.c: merged and moved
729         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
730         * as/link/z80/lkdata.c,
731         * as/link/lkdata.c: merged and moved
732         * as/link/hc08/lkmain.c,
733         * as/link/mcs51/lkmain.c: cosmetic changes
734         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
735         * as/link/lklex.c: use LKOBJEXT
736         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
737           ANSI-fied functions, removed bubble-sorts
738         * as/link/z80/lksym.c           as/link/lksym.c: merged,
739           ANSI-fied functions
740         * as/link/z80/linkgbz80.dsp,
741         * as/link/z80/linkz80.dsp,
742         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
743           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
744         * as/link/z80/lkhead.c,
745         * as/link/z80/lklex.c: deleted
746         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
747         * as/link/z80/lkmain.c: added copyfile()
748
749 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
750
751         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
752
753 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
754
755         * device/lib/_strlen.c: assembler version for mcs51
756
757 2007-03-13 Raphael Neider <rneider AT web.de>
758
759         * device/include/pic16/pic18f2221.h,
760         * device/include/pic16/pic18f2321.h,
761         * device/include/pic16/pic18f2331.h,
762         * device/include/pic16/pic18f4221.h,
763         * device/include/pic16/pic18f4321.h,
764         * device/include/pic16/pic18f4331.h: fixed config byte location names
765         * support/scripts/inc2h-pic16.pl: removed debug output, emit
766           consistently named config byte locations
767
768 2007-03-13 Borut Razem <borut.razem AT siol.net>
769
770         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
771           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
772           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
773           as/link/z80/Makefile.in, as/z80/Makefile.in:
774           introduced LDFLAGS
775
776 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
777
778         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
779         * device/lib/printf_large.c: pointer was converted to generic
780         pointer for mcs51 models other than model-small (Maarten noticed)
781
782 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
783
784         * device/include/mcs51/ADuC84x.h: Added.
785
786 2007-03-10 Borut Razem <borut.razem AT siol.net>
787
788         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
789           fixed RFE #1624219: double backslashes in filenames;
790           functions hexEscape(), octalEscape() and copyStr() moved from
791           SDCCval.c to SDCCutil.c and made them glovbally available
792
793 2007-03-09 Borut Razem <borut.razem AT siol.net>
794
795         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
796           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
797           1673361: Missaligned comments in output files
798
799 2007-03-09 Raphael Neider <rneider AT web.de>
800
801         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
802
803 2007-03-09 Raphael Neider <rneider AT web.de>
804
805         * src/pic/gen.c,
806         * src/pic/glue.c,
807         * src/pic/ralloc.c: suppress undesired debug output
808         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
809
810 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
811
812         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
813
814 2007-03-07 Borut Razem <borut.razem AT siol.net>
815
816         * device/lib/pic16/libdev/pic18f[24][34]31.c:
817           search include files in the current directory
818
819 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
820
821         * src/SDCCglue.c (emitMaps, glue),
822         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
823           absolute xdata
824         * support/regression/tests/absolute.c: added xdata test
825
826 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
827
828         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
829           added condition to macro, fixes bug 1666080
830
831 2007-03-02 Raphael Neider <rneider AT web.de>
832
833         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
834
835 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
836
837         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
838         be cleared. Unconditionally set __XPAGE
839         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
840
841 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
842
843         * src/SDCCglobl.h,
844         * src/SDCCmain.c,
845         * src/mcs51/gen.c,
846         * src/mcs51/rtrack.c,
847         * src/ds390/gen.c,
848         * doc/sdccman.lyx: added --no-gen-comments
849         * src/mcs51/peeph.def: added 192.b, disabled 185
850
851 2007-02-25 Raphael Neider <rneider AT web.de>
852
853         * src/pic16/gen.c (genCast): fixed typo
854         * device/lib/pic16/Makefile.subdir: only install existing files
855         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
856
857 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
858
859         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
860         * device/lib/mcs51/crtclear.asm,
861         * device/lib/mcs51/crtxclear.asm: renumbered labels
862         * device/lib/mcs51/Makefile.in: added crtcall.asm
863         * doc/sdccman.lyx: documented mcs51 crt* library startup code
864         * src/mcs51/gen.c (movc): removed,
865           (aopGet, genPlusBits): clear a after loading the carry (possibly from
866             acc.x or psw.x),
867           (toCarry, genSend, genRet): added function toCarry,
868           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
869           (assignBit, genAssign, genCast): added function assignBit
870         * src/mcs51/Makefile.bcc: added rtrack.c
871         * src/mcs51/ralloc.h: made valueKnown a bitfield
872         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
873           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
874           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
875         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
876         * src/z80/gen.c: added AOP_IS_PAIRPTR,
877           (_pop): only pop valid pairs, see gencjneshort,
878           (gencjneshort): return pair that still needs to be popped, restructured,
879           (gencjne, genCmpEq): call _pop
880
881 2007-02-23 Raphael Neider <rneider AT web.de>
882
883         * device/include/pic/pic14devices.txt: 16f684 has only one config word
884
885 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
886
887         * device/include/mcs51/P89LPC925.h: Added.
888
889 2007-02-18 Raphael Neider <rneider AT web.de>
890
891         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
892
893 2007-02-17 Borut Razem <borut.razem AT siol.net>
894
895         * support/cpp2/directives.c, support/cpp2/version.c:
896           synchronized with GCC CPP 4.1.2
897
898 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
899
900         * src/mcs51/rtrack.h,
901         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
902           by checking the strings passed by emitcode() to the assembler.
903           Feel free to change. This in part addresses RFE #482179.
904           Set environment variable SDCC_RTRACK to enable.
905         * src/mcs51/gen.c: inserted hooks
906         * src/mcs51/ralloc.h: added two members to struct regs
907         * support/regression/tests/regtrack.c: added
908
909 2007-02-14 Borut Razem <borut.razem AT siol.net>
910
911         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
912         * Makefile.in: applied patch from Makefile related part of
913           #1469393: Compiler does not initialize static data
914
915 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
918           for better fix of bug 1273984, compiles pic16 rand.c
919
920 2007-02-12 Borut Razem <borut.razem AT siol.net>
921
922         * src/pic16/main.c: fixed pic16 standard library directory bug
923
924 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
925
926         * src/hc08/gen.c (genSwap): fix swap regression test
927
928 2007-02-10 Borut Razem <borut.razem AT siol.net>
929
930         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
931           with same scope
932         * support/regression/tests/bug-1654060.c: added regression test for
933           #1654060
934
935 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
936
937         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
938         bit moves in return statement
939
940 2007-02-09 Borut Razem <borut.razem AT siol.net>
941
942         * src/SDCC.y: fixed bug #1654060 typedef within function causes
943           syntax error
944
945 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
946
947         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
948         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
949
950 2007-02-07 Raphael Neider <rneider AT web.de>
951
952         * src/pic16/devices.inc,
953         * device/include/pic16/pic18fregs.h,
954         * device/include/pic16/pic18f[24][34]31.h,
955         * device/lib/pic16/libdev/pic18f[24][34]31.c,
956         * device/lib/pic16/pics.all: added 18f[24][34]31 family
957         * device/lib/pic16/libio/i2c.ignore: do not build i2c
958
959 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
960
961         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
962           can this have lived here for so many years?
963         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
964           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
965         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
966
967 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
968
969         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
970         appended by loop induction must be at the very end of the eBBlock
971
972 2007-02-05 Kevin Vigor
973
974         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
975
976 2007-02-05 Borut Razem <borut.razem AT siol.net>
977
978         * support/regression/fwk/lib/timeout.c: native WIN32 port,
979           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
980
981 2007-02-03 Borut Razem <borut.razem AT siol.net>
982
983         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
984           applied patch #1646602 option to set default signedness of char to
985           unsigned, added -funsigned-char command line option,
986           thanks to Gunther Jehle
987         * device/lib/Makefile.in: added the -f option to rm so it doesn't
988           prompt for file deletion a few hundred times (especially the
989           subversion files, which have ro permissions so it asks for
990           confirmation), thanks to Simon McAuliffe;
991           added {} + option to find in order to remove multiple files from a
992           single rm commad
993
994 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
995
996         * device/include/mcs51/SST89x5xRDx.h: Added.
997
998 2007-02-02 Raphael Neider <rneider AT web.de>
999
1000         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1001         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1002
1003 2007-02-01 Raphael Neider <rneider AT web.de>
1004
1005         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1006           config words again
1007
1008 2007-01-31 Borut Razem <borut.razem AT siol.net>
1009
1010         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1011           if compiled with GCC. Thanks to Raphael Neider
1012
1013 2007-01-31 Raphael Neider <rneider AT web.de>
1014
1015         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1016             operand names, handles name and (name + n) for all n,
1017           (sameBank): restructured, also check bank allocation policy,
1018         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1019           (pic14_operandsAllocatedInSameBank): check whether to operands
1020             will be allocated into the same bank (i.e., section) to reduce
1021             BANKSEL overhead, queried from pcode.c:sameBank,
1022           (pic14printLocals): reintroduced clustering registers into a single
1023             section: all compiler generated symbols will now reside in one
1024             bank (per file), reducing BANKSEL overhead and code size,
1025           (showAllMemmaps): use local dbuf where possible
1026
1027 2007-01-29 Raphael Neider <rneider AT web.de>
1028
1029         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1030           (call_libraryfunc): retrieve/create symbol and mark as used,
1031           (genFunction): mark defined functions as non-extern and add again
1032            to code memmap for later output
1033         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1034           (pic14printLocals): reworked for new symbol emission,
1035           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1036           showAllMemmaps): reworked symbol output using dbufs, added handling
1037             of string literals (still incomplete),
1038           (picglue): removed symbol emission, moved into showAllMemmaps,
1039           (emitSymbolSet): new workhorse for symbol output,
1040           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1041
1042 2007-01-29 Borut Razem <borut.razem AT siol.net>
1043
1044         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1045           component contains the extension separator.
1046
1047 2007-01-28 Borut Razem <borut.razem AT siol.net>
1048
1049         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1050           on WIN32
1051         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1052           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1053           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1054           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1055           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1056           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1057           src/z80/gen.c, support/Util/MySystem.c:
1058           accept slash and backslash as directory separator on WIN32 and
1059           Cygwin ports
1060
1061 2007-01-28 Raphael Neider <rneider AT web.de>
1062
1063         * src/pic16/devices.inc,
1064         * device/include/pic16/pic18f[24][23]21.h,
1065         * device/include/pic16/pic18fregs.h,
1066         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1067         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1068         * device/lib/pic16/libio/adc.ignore,
1069         * device/lib/pic16/libio/i2c.ignore,
1070         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1071           family, as gputils do not yet support the devices
1072         * device/lib/pic16/Makefile.subdir: ignore errors on install
1073         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1074           headers and libraries from gputils .inc files
1075
1076 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1077
1078         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1079
1080 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1081
1082         * doc/sdccman.lyx: add printf benchmarks
1083
1084 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1085
1086         * device/lib/printf_fast.c: fix %c, char promoted to int
1087         * device/lib/printf_tiny.c: fix %c, char promoted to int
1088
1089 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1090
1091         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1092
1093 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1094
1095         * support/regression/tests/swap.c: 64 bit hosts failed
1096         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1097
1098 2007-01-25 Raphael Neider <rneider AT web.de>
1099
1100         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1101           based on absolute register address, patch by Alex Blond
1102
1103 2007-01-22 Raphael Neider <rneider AT web.de>
1104
1105         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1106           emitted, do not emit them again...
1107
1108 2007-01-22 Raphael Neider <rneider AT web.de>
1109
1110         * src/regression/bank1.c, src/regression/compare6.c,
1111           src/regression/add.c: cosmetic changes
1112         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1113         * src/pic/gen.c: fixed global zero and one,
1114           (aopForSym): removed unued code,
1115           (aopGet): assert aop is defined, check and use `index' of
1116             pCodeImmd operands (fixes #1630908),
1117         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1118           (register_reassign): prevent accidental register unification,
1119           (ReuseReg): cosmetic changes (also above)
1120         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1121           pic14emitStaticSeg): do not emit initialized data,
1122           (printIval*): replaced with working versions,
1123           (pic14createInterruptVect,picglue): use idata for initialized data,
1124             now init data should work in all modules (not only main()),
1125         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1126
1127 2007-01-21 Borut Razem <borut.razem AT siol.net>
1128
1129         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1130           use -fPIC or -fpic if they are supported and not ignored
1131         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1132         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1133
1134 2007-01-20 Borut Razem <borut.razem AT siol.net>
1135
1136         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1137           implemented RFE #1470316: allow "$" in variable names
1138
1139 2007-01-20 Raphael Neider <rneider AT web.de>
1140
1141         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1142
1143 2007-01-20 Raphael Neider <rneider AT web.de>
1144
1145         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1146         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1147         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1148         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1149           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1150         * device/lib/pic/libdev/pic*.c,
1151         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1152         * device/lib/pic/libdev/Makefile.in: show progress
1153
1154 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1155
1156         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1157         * support/scripts/sdcc_cygwin_mingw32,
1158         * support/scripts/sdcc_mingw32,
1159         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1160         conformance with autoconf 2.6
1161
1162 2007-01-19 Raphael Neider <rneider AT web.de>
1163
1164         * src/pic/device.c (register_map): fixed list construction
1165         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1166           (genMod): removed case for genModbits,
1167           (genModbits): removed as now unused/unimplemented
1168         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1169
1170 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1171
1172         * support/regression/tests/swap.c: added in response to #1638622
1173         * doc/sdccman.lyx: synced version, minor changes
1174
1175 2007-01-18 Borut Razem <borut.razem AT siol.net>
1176
1177         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1178           thanks to Gunther Jehle
1179         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1180         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1181           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1182           use filename in lineno instead.
1183         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1184           print the file name in ast_print()
1185
1186 2007-01-18 Borut Razem <borut.razem AT siol.net>
1187
1188         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1189           defined in MSVC
1190         * src/SDCC.lex: stringLiteral() returns const char pointer,
1191           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1192           fixed column counting
1193         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1194           accept const char pointer as parameter
1195         * src/SDCCdwarf2.c: corrected buffer size
1196
1197 2007-01-17 Borut Razem <borut.razem AT siol.net>
1198
1199         * support/Util/dbuf_string.c: fixed for amd64
1200
1201 2007-01-15 Borut Razem <borut.razem AT siol.net>
1202
1203         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1204           removed terminal symbol ELIPSIS, since it was never generated by the
1205           lexer and it was wrongly used in parameter_identifier_list rule
1206
1207 2007-01-15 Raphael Neider <rneider AT web.de>
1208
1209         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1210             code page and data banking description
1211         * src/pic/genarith.c,
1212         * src/pic/gen.h: removed bit arithmetic functions,
1213             updated exit(1) to exit(EXIT_FAILURE)
1214         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1215         * device/include/pic16/pic18f2455.h,
1216         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1217             TRISD and TRISE, fixed/added some bit names
1218         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1219         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1220             updated pic18f2455.{c,h} instead of duplicating them
1221
1222 2007-01-14 Borut Razem <borut.razem AT siol.net>
1223
1224         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1225           Cannot debug files that contain spaces in the path name
1226           by converting spaces in asm file name to underscores
1227
1228 2007-01-13 Borut Razem <borut.razem AT siol.net>
1229
1230         * doc/sdccman.lyx: fixed format errors
1231
1232 2007-01-10 Borut Razem <borut.razem AT siol.net>
1233
1234         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1235           codeseg/constseg #pragma fail
1236         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1237         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1238           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1239           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1240
1241 2007-01-09 Borut Razem <borut.razem AT siol.net>
1242
1243         * get rid of diagnistic.[ch], pretty-print.[ch],
1244           c-pretty-print.[ch], ... used just for error, warning, ...
1245           message formatting
1246         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1247           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1248           suppoprt/cpp2/pretty-print.[ch]:
1249           removed
1250         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1251           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1252           suppoprt/cpp2/sdcpp.dsp:
1253           changed
1254
1255 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1256
1257         * device/lib/printf_large.c (output_float): removed recursion,
1258           use smaller buffer on stack for mcs51,
1259           fixed bug printing 1.96
1260         * support/regression/tests/snprintf.c: added test
1261
1262 2007-01-07 Borut Razem <borut.razem AT siol.net>
1263
1264         * use dynamic memory buffers instead temporary files
1265         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1266           added
1267         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1268           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1269           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1270           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1271           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1272           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1273           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1274           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1275           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1276           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1277           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1278           support/Util/dbuf.c, support/Util/dbuf.h:
1279           modified
1280         * .version, sdcc.spec: bumped version to 2.6.4
1281
1282 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * src/port.h: added TARGET_Z80_LIKE macro
1285         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1286           output PSEG location if --xram-loc or --xstack-loc was used
1287         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1288
1289 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1290
1291         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1292         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1293         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1294         * sdcc.dsw: moved project files into subdir
1295         * as/hc08/as_hc08.dsp,
1296         * as/hc08/Makefile.bcc,
1297         * as/hc08/Makefile.in,
1298         * as/mcs51/Makefile.bcc,
1299         * as/mcs51/Makefile.in,
1300         * as/z80/Makefile.bcc,
1301         * as/z80/Makefile.in,
1302         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1303         * as/hc08/asm.h,
1304         * as/mcs51/asm.h,
1305         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1306         * as/hc08/asmain.c,
1307         * as/hc08/assym.c,
1308         * as/mcs51/asmain.c,
1309         * as/mcs51/assym.c,
1310         * as/z80/assym.c: removed include "strcmpi.h"
1311         * as/hc08/strcmpi.c,
1312         * as/hc08/strcmpi.h,
1313         * as/mcs51/strcmpi.c,
1314         * as/mcs51/strcmpi.h,
1315         * support/Util/strcmpi.c,
1316         * support/Util/strcmpi.h: removed files
1317         * as/strcmpi.c: added as_strncmpi()
1318
1319 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1320
1321         * sdcc.dsw: Added some dependencies on project config.dsp
1322
1323 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1324
1325         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1326           with [di]ram_start to fix a regresion
1327
1328 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1329
1330         * configure.in: added missing mcs51 in status output
1331         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1332         directory
1333         * debugger/mcs51/clean.mk (distclean): remove config.h
1334         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1335         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1336         options.h, s-options-h and options.c
1337         * support/cpp2/clean.mk: unused, removed
1338         * Makefile.common.in,
1339         * main_in.mk,
1340         * as/Makefile.in,
1341         * as/hc08/Makefile.in,
1342         * as/hc08/clean.mk,
1343         * as/mcs51/Makefile.in,
1344         * as/mcs51/clean.mk,
1345         * as/z80/clean.mk,
1346         * as/z80/conf.mk,
1347         * as/z80/Makefile.in,
1348         * as/z80/clean.mk,
1349         * as/link/Makefile.in,
1350         * as/link/hc08/Makefile.in,
1351         * as/link/hc08/clean.mk,
1352         * as/link/mcs51/Makefile.in,
1353         * as/link/mcs51/clean.mk,
1354         * as/link/z80/Makefile.in,
1355         * as/link/z80/clean.mk,
1356         * as/link/z80/conf.mk,
1357         * debugger/mcs51/Makefile.in,
1358         * debugger/mcs51/clean.mk,
1359         * device/include/Makefile.in,
1360         * device/lib/Makefile.in,
1361         * device/lib/mcs51/Makefile.in,
1362         * device/lib/pic/Makefile.in,
1363         * device/lib/pic/Makefile.common.in,
1364         * device/lib/pic/Makefile.subdir,
1365         * device/lib/pic/Makefile.rules,
1366         * device/lib/pic16/libio/Makefile.in,
1367         * device/lib/pic16/Makefile.subdir,
1368         * device/lib/pic16/libdev/Makefile.in,
1369         * device/lib/pic16/Makefile.rules,
1370         * device/lib/pic16/Makefile.common.in,
1371         * sim/ucsim/avr.src/Makefile.in,
1372         * sim/ucsim/main_in.mk,
1373         * sim/ucsim/cmd.src/Makefile.in,
1374         * sim/ucsim/doc/Makefile.in,
1375         * sim/ucsim/gui.src/Makefile.in,
1376         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1377         * sim/ucsim/gui.src/serio.src/Makefile.in,
1378         * sim/ucsim/hc08.src/Makefile.in,
1379         * sim/ucsim/libltdl/Makefile.in,
1380         * sim/ucsim/s51.src/Makefile.in,
1381         * sim/ucsim/sim.src/Makefile.in,
1382         * sim/ucsim/sim.src/conf.mk,
1383         * sim/ucsim/xa.src/Makefile.in,
1384         * sim/ucsim/z80.src/Makefile.in,
1385         * src/Makefile.in,
1386         * src/clean.mk,
1387         * src/port.mk,
1388         * support/cpp2/Makefile.in,
1389         * support/librarian/Makefile.in,
1390         * support/librarian/clean.mk,
1391         * support/makebin/Makefile.in,
1392         * support/makebin/clean.mk,
1393         * support/packihx/Makefile.in,
1394         * support/regression/Makefile.in,
1395         * support/regression/ports/ds390/spec.mk,
1396         * support/regression/ports/gbz80/spec.mk,
1397         * support/regression/ports/hc08/spec.mk,
1398         * support/regression/ports/mcs51/spec.mk,
1399         * support/regression/ports/mcs51-large/spec.mk,
1400         * support/regression/ports/mcs51-medium/spec.mk,
1401         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1402         * support/regression/ports/pic14/spec.mk,
1403         * support/regression/ports/pic16/spec.mk,
1404         * support/regression/ports/mcs51-stack-auto/spec.mk,
1405         * support/regression/ports/ucz80/spec.mk,
1406         * support/regression/ports/xa51/spec.mk,
1407         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1408         adding a slash after $(top_builddir) and/or adding @datarootdir@
1409         * configure.in,
1410         * debugger/mcs51/configure.in,
1411         * device/lib/pic/configure.in,
1412         * device/lib/pic16/configure.in,
1413         * sim/ucsim/configure.in,
1414         * support/cpp2/configure.in,
1415         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1416         * configure,
1417         * debugger/mcs51/configure,
1418         * device/lib/pic/configure,
1419         * device/lib/pic16/configure,
1420         * sim/ucsim/configure,
1421         * support/cpp2/configure,
1422         * support/packihx/configure: generated with autoconf 2.60
1423
1424 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1425
1426         * as/link/hc08/lkihx.c (newArea),
1427         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1428
1429 2007-01-02 Borut Razem <borut.razem AT siol.net>
1430
1431         * doc/sdccman.lyx: documented #pragma sdcc_hash
1432         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1433           initialized to 0
1434         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1435
1436 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1437
1438         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1439         empty 'while'-loop to work correctly, see regression test 'while.c'
1440         * support/regression/tests/while.c: added
1441
1442 2007-01-01 Borut Razem <borut.razem AT siol.net>
1443
1444         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1445           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1446           support/cpp2/libcpp/sdcpp.c:
1447           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1448         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1449         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1450
1451 2006-12-31 Borut Razem <borut.razem AT siol.net>
1452
1453         * SDCPP synchronized with GCC CPP release version 4.1.1,
1454           currently the latest release:
1455         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1456           support/cpp2/libcpp/include/cpp-id-data.h
1457           support/cpp2/libiberty/fopen_unlocked.c
1458           support/cpp2/libiberty/md5.c
1459           support/cpp2/md5.h
1460           support/cpp2/opt-functions.awk
1461           support/cpp2/opt-gather.awk
1462           support/cpp2/optc-gen.awk
1463           support/cpp2/opth-gen.awk:
1464           added
1465         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1466           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1467           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1468           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1469           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1470           support/cpp2/diagnostic.h, support/cpp2/except.h,
1471           support/cpp2/hwint.h, support/cpp2/input.h,
1472           support/cpp2/intl.h, support/cpp2/move-if-change,
1473           support/cpp2/opts.c, support/cpp2/opts.h,
1474           support/cpp2/output.h, support/cpp2/prefix.c,
1475           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1476           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1477           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1478           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1479           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1480           support/cpp2/version.c:
1481           modified
1482         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1483           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1484           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1485           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1486           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1487           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1488           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1489           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1490           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1491           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1492           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1493           moved
1494         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1495           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1496           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1497           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1498           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1499           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1500           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1501           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1502           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1503           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1504           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1505           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1506           support/cpp2/system.h:
1507           deleted / moved
1508
1509 2006-12-31 Borut Razem <borut.razem AT siol.net>
1510
1511         * configure.in, configure: fixed bug #1538756: configure dies if bison
1512           and flex are not installed, 2nd try
1513
1514 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1515
1516         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1517         400.x for better code in RFE 899102
1518
1519 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1520
1521         * src/SDCCpeeph.c (deadMove),
1522         * src/port.h,
1523         * src/mcs51/peep.h: renamed 'op' by 'reg'
1524         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1525         (scan4op): small change for removeDeadMove(), added support for
1526         'callee saves' and/or PACLL function calls,
1527         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1528         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1529         left in new dispatcher mcs51DeadMove()
1530         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1531         removeDeadMove()
1532         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1533
1534 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1535
1536         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1537           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1538
1539 2006-12-30 Borut Razem <borut.razem AT siol.net>
1540
1541         * support/cpp2/spacs.h: deleted from svn
1542         * configure.in, configure: fixed bug #1538756: configure dies if bison
1543           and flex are not installed
1544
1545 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1546
1547         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1548           with this z80 passes printf float test when enabled
1549         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1550
1551 2006-12-28 Borut Razem <borut.razem AT siol.net>
1552
1553         * support/cpp2/config.in, support/cpp2/configure.in,
1554           support/cpp2/configure, support/cpp2/Makefile.in:
1555           fix for the solaris build
1556
1557 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1558
1559         * src/SDCC.y (type_specifier2, pointer),
1560         * src/SDCCsymt.h,
1561         * src/SDCCsymt.c (mergeSpec, checkSClass),
1562         * support/Util/SDCCerr.c,
1563         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1564         * support/valdiag/valdiag.py: Allow test cases to specify
1565           required language standard
1566         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1567         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1568
1569 2006-12-27 Borut Razem <borut.razem AT siol.net>
1570
1571         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1572         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1573           mbchar removed
1574         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1575           fixed for borland C
1576         * support/cpp2/libiberty/Makefile.bcc: updated
1577         * src/pic16/main.c: fixed #pragma udata handling
1578         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1579
1580 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1581
1582         * src/SDCCpeeph.c: made labelHashEntry global,
1583         made pcDistance, FBYNAME static,
1584         (pcDistance): made static, use isComment and isLabel,
1585         (deadMove): added,
1586         (getLabelRef): added, extracted from labelRefCount(),
1587         (labelRefCount): use new getLabelRef(),
1588         (callFuncByName): made static, added deadMove,
1589         use isComment and isLabel,
1590         (newPeepRule): made static, set isLabel,
1591         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1592         labels from peephole rules,
1593         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1594         when isComment or isLabel is set
1595         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1596         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1597         to make them global
1598         * src/mcs51/peep.h: added
1599         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1600         * src/port.h: added peep->deadMove to port structure
1601         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1602         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1603         deadMove, finally removed no. 1 and 2
1604         * src/mcs51/gen.c,
1605         * src/pic/gen.c,
1606         * src/z80/gen.c,
1607         * src/z80/ralloc.c,
1608         * src/pic16/gen.c,
1609         * src/ds390/gen.c,
1610         * src/hc08/gen.c: mark lines with isComment or isLabel
1611         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1612         * .version,
1613         * sdcc.spec: bumped version to 2.6.3
1614
1615 2006-12-26 Borut Razem <borut.razem AT siol.net>
1616
1617         * support/cpp2/Makefile.in: added dependency on options.h
1618         * configure: regenerated
1619         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1620         * support/cpp2/Makefile.in: added vasprintf.c
1621
1622 2006-12-25 Borut Razem <borut.razem AT siol.net>
1623
1624         * SDCPP synchronized with GCC CPP release version 3.4.6,
1625           the latest release before 4.x:
1626         * support/cpp2/Makefile.in, support/cpp2/config.h,
1627           support/cpp2/configure, support/cpp2/configure.in,
1628           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1629           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1630           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1631           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1632           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1633           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1634           support/cpp2/cpptrad.c, support/cpp2/except.h,
1635           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1636           support/cpp2/hwint.h, support/cpp2/intl.h,
1637           support/cpp2/line-map.c, support/cpp2/line-map.h,
1638           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1639           support/cpp2/output.h, support/cpp2/prefix.c,
1640           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1641           support/cpp2/system.h, support/cpp2/version.c:
1642           modified
1643         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1644           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1645           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1646           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1647           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1648           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1649           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1650           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1651           support/cpp2/move-if-change, support/cpp2/opts.c,
1652           support/cpp2/opts.h, support/cpp2/opts.sh,
1653           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1654           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1655           support/cpp2/win32, support/cpp2/win32/dirent.c,
1656           support/cpp2/win32/dirent.h:
1657           added
1658         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1659         * support/cpp2/sdcpp.h: renamed from sdcc.h
1660         * sdcppinit.c: deleted
1661
1662 2006-12-23 Borut Razem <borut.razem AT siol.net>
1663
1664         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1665           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1666           preproc.c: an other try to fix bug #982435: introduced
1667           -pedantic-parse-number command line option and pedantic_parse_number
1668           pragma
1669
1670 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1671
1672         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1673            BSEG handling,
1674           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1675            corrected overlayed areax addresses, warn about memory overlaps
1676         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1677         * src/avr/main.c,
1678         * src/ds390/main.c,
1679         * src/hc08/main.c,
1680         * src/mcs51/main.c,
1681         * src/pic16/main.c,
1682         * src/pic/main.c,
1683         * src/xa51/main.c,
1684         * src/z80/main.c,
1685         * src/port.h: added xabs_name and iabs_name
1686         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1687           (glue, emitMaps): create and emit maps d_abs and i_abs
1688         * src/SDCCglue.h: cosmetic changes
1689         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1690         * src/SDCCmem.h,
1691         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1692           (allocDefault): put absolute, initialized globals in them
1693         * support/regression/tests/absolute.c: added absolute bdata test
1694         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1695
1696 2006-12-20 Borut Razem <borut.razem AT siol.net>
1697
1698         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1699         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1700           added regression test for bug #982435
1701
1702 2006-12-18 Borut Razem <borut.razem AT siol.net>
1703
1704         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1705         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1706           small cosmetic changes
1707         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1708         * support/regression/tests/bug-1351710.c: added regression test
1709
1710 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1711
1712         * doc/sdccman.lyx: added the long missed iCode table
1713           "<where is figure II?>", added links to wiki
1714
1715 2006-12-17 Borut Razem <borut.razem AT siol.net>
1716
1717         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1718           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1719           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1720           unified table driven pragma handling, pragma argument type checking
1721         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1722           current one - version 1.1.3
1723         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1724
1725 2006-12-13 Raphael Neider <rneider AT web.de>
1726
1727         * src/pic/device.h: removed AssignedMemory structure and macros
1728         * src/pic/device.c: removed global finalMapping (linker assigns
1729             memory locations),
1730           (register_map): add SFRs to remembered memRanges
1731           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1732           assignFixedRegisters,assignRelocatableRegisters): removed,
1733           (setMaxRAM,validAddress): adapted accordingly,
1734           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1735             reasonably sized sharebanks,
1736         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1737           (allDefsOutOfRange): removed unused code,
1738         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1739             handling
1740         * src/pic/pcode.c (register_reassign): removed recursion warning,
1741             fired far too often,
1742         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1743             to use existing pic14_stringInSet() to avoid duplicate symbols,
1744             tidied up the code a bit,
1745           (pic14printLocals): added in symmetry to printExterns, replaces
1746             writeUsedRegs more or less,
1747           (picglue): call new pic14_printLocals(),
1748         * device/include/pic/pic*.h: removed #pragma memmap directives,
1749             information gathered from include/pic/pic14devices.txt
1750         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1751
1752 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1753
1754         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1755
1756 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1757
1758         * device/include/mcs51/cc2430.h: fixed missing ';'
1759
1760 2006-12-10 Raphael Neider <rneider AT web.de>
1761
1762         * device/lib/pic16/libc/stdio/vfprintf.c,
1763         * device/lib/pic16/libc/stdio/printf_small.c,
1764         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1765           char arguments, as char varargs are cast to int by the caller,
1766           hopefully fixes #1604915 (other device libraries are still affected)
1767
1768 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1769
1770         * src/mcs51/ralloc.c (packRegsForAssign),
1771         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1772
1773 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1774
1775         * device/include/malloc.h: removed init_dynamic_memory
1776         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1777           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1778         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1779         * device/lib/libsdcc.lib,
1780         * device/lib/Makefile.in,
1781         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1782         * doc/sdccman.lyx: documented use of new _heap.c
1783         * support/regression/tests/malloc.c: removed init_dynamic_memory
1784         * src/cdbFile.c(spacesToUnderscores): new function,
1785           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1786           1068030
1787         * device/include/tinibios.h: removed defines for putchar and getchar
1788         * device/lib/ds390/Makefile.in: added putchar.c
1789         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1790
1791 2006-12-09 Borut Razem <borut.razem AT siol.net>
1792
1793         * support/cpp2/sdcc.h: prevent multiple inclusion
1794         * support/cpp2/options.h: deleted
1795
1796 2006-12-08 Borut Razem <borut.razem AT siol.net>
1797
1798         * support/cpp2/sdcc.h: removed x*alloc() macros
1799         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1800         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1801           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1802         * support/cpp2/system.h: moved #include "sdcc.h"
1803         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1804           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1805           added
1806         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1807           -funsigned-char options
1808         * support/cpp2/sdcppmain.c: fixed bug 1611411
1809
1810 2006-12-07 Borut Razem <borut.razem AT siol.net>
1811
1812         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1813           directive
1814
1815 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1816
1817         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1818         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1819         * doc/sdccman.lyx,
1820         * .version: bumped to 2.6.2 because a) it's been a while
1821           b) the linker sources have moved c) the preprocessor is upgraded
1822
1823 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1824
1825         * support/regression/tests/snprintf.c: some checks
1826         * lib/src/printf_large.c: %bc: read char instead of int from stack
1827
1828 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1829
1830         * device/include/mcs51/cc2430.h: inserted _XPAGE
1831
1832 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1833
1834         * device/include/mcs51/cc2430.h: added
1835
1836 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1837
1838         * device/include/asm/default/features.h,
1839         * device/include/asm/ds390/features.h,
1840         * device/include/mcs51/at89s53.h,
1841         * device/include/ser.h,
1842         * device/include/ser_ir.h,
1843         * device/include/serial.h: changed keywords to double underscore variants,
1844           fixes bug 1590261 some more, thanks Steven Borley
1845
1846 2006-12-01 Raphael Neider <rneider AT web.de>
1847
1848         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1849           but emit warning (recursion is not supported for pic14)
1850
1851 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1852
1853         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1854         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1855
1856 2006-11-30 Raphael Neider <rneider AT web.de>
1857
1858         * src/pic/device.c (dump_sfr): always emit symbols
1859         * src/pic/glue.c (pic14printPublics): fixed typo
1860
1861 2006-11-30 Raphael Neider <rneider AT web.de>
1862
1863         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1864           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1865           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1866            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1867            a sharebank, use a non-shared bank for the stack if none available
1868         * src/pic/device.h (struct memRange): added linked list next field,
1869           added prototypes for above functions
1870         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1871           (typeRegWithIdx): accept fixed and unfixed stack registers
1872         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1873           the stack, handle shared and banked stack (except for WSAVE),
1874           (insertBankSel): removed useless optimization (will never fire),
1875           (FixRegisterBanking): added optimization for devices with only one
1876           possibly aliased bank of memory, like 16f84
1877         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1878           devices have no SHAREBANK in the linker script
1879         * device/include/pic/pic14devices.txt: documented memmap
1880         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1881
1882 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1883
1884         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1885           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1886           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1887           genhc08Code): switched most of the D (debug) macros to DD (detailed
1888           debug) macros to better control clutter in the generated .asm file.
1889         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1890           genRightShift): fixed bug with non-constant bit shift stored to
1891           a volatile result (SF Open Discussion forum thread #1616749).
1892           Single byte case is not yet optimized.
1893
1894 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1895
1896         * device/include/asm/mcs51/features.h,
1897         * device/include/malloc.h,
1898         * device/include/stdio.h: changed keywords to double underscore variants,
1899           fixes bug 1590261
1900
1901 2006-11-27 Borut Razem <borut.razem AT siol.net>
1902
1903         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1904           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1905           support/cpp2/output.h, support/cpp2/cppinit.c,
1906           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1907           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1908           support/cpp2/cppdefault.c, support/cpp2/system.h,
1909           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1910           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1911           support/cpp2/prefix.c, support/cpp2/except.h,
1912           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1913           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1914           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1915           support/cpp2/version.c, support/cpp2/cppmain.c,
1916           support/cpp2/version.h, support/cpp2/hashtable.c,
1917           support/cpp2/cpperror.c:
1918           synchronized with GCC CPP release version 3.3.6,
1919           the latest where cppmain.c still exists.
1920         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1921           support/cpp2/sdcppinit.c: added
1922
1923 2006-11-27 Borut Razem <borut.razem AT siol.net>
1924
1925         * support/cpp2/cpplex.c:
1926           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1927           synchronization
1928         * support/cpp2/cpplib.c: removed definitions of unused variables
1929
1930 2006-11-26 Borut Razem <borut.razem AT siol.net>
1931
1932         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1933           since they are redefined by macros in support/cpp2/sdcc.h
1934         * support/cpp2/sdcc.h: x*alloc macro redefinition
1935
1936 2006-11-25 Borut Razem <borut.razem AT siol.net>
1937
1938         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1939           support/cpp2/configure, support/cpp2/Makefile.in,
1940           support/cpp2/cppfiles.c, support/cpp2/output.h,
1941           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1942           support/cpp2/config.h, support/cpp2/cpplib.h,
1943           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1944           support/cpp2/cppdefault.c, support/cpp2/config.in,
1945           support/cpp2/system.h, support/cpp2/cpplex.c,
1946           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1947           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1948           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1949           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1950           support/cpp2/configure.in, support/cpp2/intl.h,
1951           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1952           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1953           support/cpp2/version.c, support/cpp2/cppmain.c,
1954           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1955           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1956           support/cpp2/cpperror.c,
1957           support/cpp2/libiberty/safe-ctype.c,
1958           support/cpp2/libiberty/safe-ctype.h,
1959           support/cpp2/libiberty/splay-tree.c,
1960           support/cpp2/libiberty/obstack.c,
1961           support/cpp2/libiberty/lbasename.c,
1962           support/cpp2/libiberty/splay-tree.h,
1963           support/cpp2/libiberty/obstack.h:
1964           synchronized with GCC CPP release version 3.2.3,
1965           the latest before integration of cpp into gcc
1966         * support/cpp2/except.h, support/cpp2/line-map.c,
1967           support/cpp2/line-map.h,
1968           support/cpp2/libiberty/hex.c,
1969           support/cpp2/libiberty/concat.c,
1970           support/cpp2/libiberty/filenames.h: added
1971         * support/cpp2/intl.c: deleted
1972
1973 2006-11-24 Borut Razem <borut.razem AT siol.net>
1974
1975         * src/SDCC.y: enabled compilation of empty source file
1976         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1977           "ISO C forbids an empty source file"
1978         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1979           if all the code is ifdefed out.
1980
1981 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1982
1983         * src/hc08/gen.c (genPcall): fix for bug #1601032
1984
1985 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1986
1987         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1988         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1989         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1990         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1991         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1992         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1993         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1994         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1995         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1996         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1997         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1998         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1999         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2000         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2001         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2002           Renamed to all upper case as per the standard set by SiLabs
2003
2004 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2005
2006         * device/include/mcs51/C8051F520.h: new, added
2007         * device/include/mcs51/compiler.h: added link about predefined macros
2008
2009 2006-11-23 Raphael Neider <rneider AT web.de>
2010
2011         * src/regression/Makefile: add -L path to fresh library
2012         * src/regression/simulate: emphasize FAILED output
2013         * src/regression/create_stc: output _failures from gpsim
2014         * src/regression/compare4.c,
2015         * src/regression/rotate6.c: fixed char literals,
2016           all compile, all run =8-D
2017
2018         * src/pic/pcode.h: added isPCASMDIR macro
2019         * src/pic/gen.c (genAnd): fixed bit offset
2020         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2021           packBits): unified register numbering schemes,
2022           (newReg): do not insert stack registers into hash table,
2023           (initStack): unpinned pseudo stack, simplified,
2024           (typeRegWithIdx): fixed retrieval of stack registers,
2025         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2026           (pCodeReplace): removed invalid assertion,
2027           (insertPCodeInstruction): fixed newly added labels,
2028           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2029           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2030           DumpFlow): removed unsed (broken?) code,
2031           (insertBankSel): prevent STATUS from being BANKSELed,
2032           (FixRegisterBanking): rewritten from scratch, implemented generic
2033             optimizations (suppress BANKSELs to same register and to registers
2034             present in all banks),
2035           (AnalyzeBanking): update flow after BANKSELection
2036
2037         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2038             sharebank, let linker place it, mark STKxx symbols as emitted
2039
2040 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2041
2042         * src/regression/arrays.c,
2043         * src/regression/bank1.c,
2044         * src/regression/bool2.c,
2045         * src/regression/compare7.c,
2046         * src/regression/compare8.c,
2047         * src/regression/compare9.c,
2048         * src/regression/compare10.c,
2049         * src/regression/configword.c,
2050         * src/regression/for.c,
2051         * src/regression/mult1.c,
2052         * src/regression/pointer1.c,
2053         * src/regression/rotate6.c,
2054         * src/regression/string1.c,
2055         * src/regression/struct1.c,
2056         * src/regression/Makefile: make PIC14 regression tests run again
2057           (3 fail, 6 won't compile)
2058
2059 2006-11-21 Raphael Neider <rneider AT web.de>
2060
2061         * device/include/pic16/pic18f4550.h,
2062         * device/include/pic16/pic18f4455.h,
2063         * device/lib/pic16/libdev/pic18f4550.c,
2064         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2065         * configure.in: removed superfluous closing bracket
2066
2067 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2068
2069         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2070           always positive.
2071
2072 2006-11-21 Raphael Neider <rneider AT web.de>
2073
2074         * src/pic/device.{c,h}: added pic14_getPIC()
2075         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2076           (genAnd): added PIC code for one case, fixes #1597044
2077         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2078           SFRs that are present in all banks (e.g., STATUS)
2079
2080 2006-11-20 Raphael Neider <rneider AT web.de>
2081
2082         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2083           INCFSZ/INCFSZW and declared them as changing Z bit,
2084           (insertPCodeInstruction): correctly invert the above instructions,
2085           fixes #1599333,
2086           (DoBankSelect): don't panic on po_immediates
2087
2088 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2089
2090         * as/link/aslink.h,
2091         * as/link/mcs51/lkihx.c (newArea),
2092         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2093         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2094
2095 2006-11-11 Raphael Neider <rneider AT web.de>
2096
2097         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2098           bitfield symbols, fixes #1579535 (once more...).
2099
2100 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2101
2102         * support/regression/generate-cases.py,
2103         * support/regression/fwk/include/testfwk.h,
2104         * support/regression/fwk/lib/testfwk.c: used code pointers,
2105           (about 50kByte less code generated for mcs51)
2106
2107 2006-11-06 Borut Razem <borut.razem AT siol.net>
2108
2109         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2110           debugger/mcs51/configure: fixed failed check because the function
2111           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2112           who submitted the patch for gpsim.
2113         * debugger/mcs51/configure.in: removed the result message
2114         * debugger/mcs51/Makefile.in: fixed the config.status warning
2115           "... seems to ignore the --datarootdir setting"
2116
2117 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2118
2119         * device/include/mcs51/c8051f020.h,
2120         * device/include/mcs51/c8051f040.h,
2121         * device/include/mcs51/c8051f060.h,
2122         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2123         * src/z80/gen.c (gencjneshort),
2124         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2125
2126 2006-10-31 Borut Razem <borut.razem AT siol.net>
2127
2128         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2129           debugger/mcs51/configure: get readline version
2130
2131 2006-10-30 Borut Razem <borut.razem AT siol.net>
2132
2133         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2134         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2135           debugger/mcs51/configure: locate readline even when cross compiling
2136         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2137
2138 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2139
2140         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2141           serial port.
2142
2143 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2144
2145         * device/include/malloc.h,
2146         * device/lib/calloc.c,
2147         * device/lib/free.c,
2148         * device/lib/malloc.c,
2149         * device/lib/realloc.c: moved definition of struct into sources
2150         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2151
2152 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2153
2154         * as/asx8051.dsp: corrected output directories
2155         * as/link/hc08: new directory for hc08 linker
2156         * as/hc08/aslink.h,             as/link/aslink.h,
2157         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2158         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2159         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2160         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2161         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2162         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2163         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2164         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2165         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2166         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2167         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2168         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2169         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2170         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2171         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2172         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2173         * as/link/hc08/conf.mk,
2174         * configure,
2175         * configure.in,
2176         * Makefile.in,
2177         * sdcc.dsw: moved hc08 linker to as/link/hc08
2178         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2179         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2180         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2181         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2182         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2183         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2184         * as/link/mcs51/aslink.dsp,
2185         * as/link/mcs51/Makefile.in: factored out the common files
2186         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2187         * as/clean.mk: extra cleaning common files
2188         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2189         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2190         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2191
2192 2006-10-29 Raphael Neider <rneider AT web.de>
2193
2194         * src/pic/ralloc.c (newReg): create aliases for registers with
2195           multiple names to fix #1579535 and #1584001,
2196           (regWithIdx,dirregWithName): resolve aliases on lookup
2197         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2198           bankselect
2199         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2200           to prevent build errors on small devices
2201
2202 2006-10-28 Raphael Neider <rneider AT web.de>
2203
2204         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2205           assumption within interrupt handlers, fixes #1584940
2206         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2207           "emitted" to avoid emitting them again in udata
2208
2209 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2210
2211         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2212         Removed.
2213
2214 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2215
2216         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2217         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2218         on/off CR to CRLF conversion.
2219
2220 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2221
2222         * doc/sdccman.lyx: updated IRQ section
2223
2224 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2225
2226         * device/lib/serial_io.c: removed
2227         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2228         replacements for serial_io.c
2229
2230 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2231
2232         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2233
2234 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2235
2236         * device/lib/serial_io.c: Default putchar() and getchar() for
2237           mcs51 uses serial port.
2238
2239 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2240
2241         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2242
2243 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2244
2245         * support/regression/ports/mcs51/support.c: smaller
2246         _sdcc_external_startup()
2247         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2248
2249 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2250
2251         * device/lib/gbz80/crt0.s,
2252         * device/lib/gbz80/crt0_rle.s,
2253         * device/lib/gbz80/div.s,
2254         * device/lib/gbz80/fstubs.s,
2255         * device/lib/gbz80/heap.s,
2256         * device/lib/gbz80/mul.s,
2257         * device/lib/gbz80/putchar.s,
2258         * device/lib/gbz80/stubs.s,
2259         * device/lib/z80/crt0.s,
2260         * device/lib/z80/crt0_rle.s,
2261         * device/lib/z80/div.s,
2262         * device/lib/z80/fstubs.s,
2263         * device/lib/z80/heap.s,
2264         * device/lib/z80/mul.s,
2265         * device/lib/z80/putchar.s,
2266         * device/lib/z80/stubs.s: reverted, I was mistaken
2267
2268 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2269
2270         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2271         * support/regression/ports/mcs51/support.c: removed race
2272         condition on TI in _putchar allowing to use serial port mode 0
2273
2274 2006-10-20 Borut Razem <borut.razem AT siol.net>
2275
2276         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2277
2278 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2279
2280         * device/lib/gbz80/crt0.s,
2281         * device/lib/gbz80/crt0_rle.s,
2282         * device/lib/gbz80/div.s,
2283         * device/lib/gbz80/fstubs.s,
2284         * device/lib/gbz80/heap.s,
2285         * device/lib/gbz80/mul.s,
2286         * device/lib/gbz80/putchar.s,
2287         * device/lib/gbz80/stubs.s,
2288         * device/lib/z80/crt0.s,
2289         * device/lib/z80/crt0_rle.s,
2290         * device/lib/z80/div.s,
2291         * device/lib/z80/fstubs.s,
2292         * device/lib/z80/heap.s,
2293         * device/lib/z80/mul.s,
2294         * device/lib/z80/putchar.s,
2295         * device/lib/z80/stubs.s: removed all leading underscores from area names
2296
2297 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2298
2299         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2300           regression tests are not waiting in the simulator for simulated
2301           transmission of debug output
2302
2303 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2304
2305         * device/lib/printf_large.c: slightly smaller
2306         * doc/sdccman.lyx: do not use spaces within html links
2307
2308 2006-10-16 Borut Razem <borut.razem AT siol.net>
2309
2310         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2311           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2312           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2313           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2314           debugger/mcs51/configure:
2315           [ 1185668 ] add gnu readline support to sdcdb - enabled
2316
2317 2006-10-16 Raphael Neider <rneider AT web.de>
2318
2319         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2320           fixes #1577882, removes close to all banking optimizations
2321
2322 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2323
2324         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2325           variables in code memory
2326         * support/regression/tests/absolute.c: added test for this
2327
2328 2006-10-15 Raphael Neider <rneider AT web.de>
2329
2330         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2331           devices,
2332           (BankSelect): emit BANKSEL before touching linker-placed regs,
2333           fixes #1570934
2334
2335 2006-10-10 Raphael Neider <rneider AT web.de>
2336
2337         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2338         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2339         * src/pic/main.c (_pic14_parseOptions),
2340         * src/pic/main.h: mostly reverted to previous state, now use results
2341             from SDCCmain.c's argument parsing
2342
2343 2006-10-10 Borut Razem <borut.razem AT siol.net>
2344
2345         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2346           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2347           [ 1185668 ] add gnu readline support to sdcdb -
2348           prepared for READLINE, not enabled yet,
2349           thanks to <tal.bav AT gmail.com>
2350
2351 2006-10-10 Raphael Neider <rneider AT web.de>
2352
2353         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2354         * src/pic16/devices.inc,
2355         * device/include/pic16 (pic18f[24]620.h),
2356         * device/include/pic18fregs.h,
2357         * device/lib/pic16/pics.all,
2358         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2359             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2360             Gary Plumbridge and Anton Strobl
2361
2362 2006-10-10 Raphael Neider <rneider AT web.de>
2363
2364         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2365           --stack-siz=NUM options to configure the argument passing stack
2366         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2367         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2368           (pic14_getSharebankSize): obey --stack-siz=NUM,
2369           (pic14_getSharebankAddress): obey --stack-loc=NUM
2370
2371 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2372
2373         * doc/sdccman.lyx: added to the manual
2374         * doc/figures/ddd_example.png: added (neither pdflatex nor
2375         most browsers seem to like the .eps file)
2376
2377 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2378
2379         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2380         to /tmp and /var/tmp acc. LSB
2381         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2382         RESULT_TYPE_IFX
2383         * support/regression/tests/onebyte.c: added test
2384
2385 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2386
2387         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2388
2389 2006-10-05 Borut Razem <borut.razem AT siol.net>
2390
2391         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2392           thanks to dfulab:
2393           - sdcc.dsw: changed property eol-style to CRLF
2394           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2395
2396 2006-10-04 Raphael Neider <rneider AT web.de>
2397
2398         * device/include/pic/{pic16f84.h,pic16f84a.h},
2399         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2400           from patch #1522504, thanks to Robas Teodor
2401
2402 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2403
2404         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2405           fixes bug 1566015
2406
2407 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2408
2409         * src/pic16/glue.c (pic16emitMaps),
2410         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2411         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2412         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2413         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2414           Philipp Krause
2415         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2416         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2417
2418 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2419
2420         * support/librarian/sdcclib.c: Added option -l.
2421         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2422           usage totals.
2423         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2424           using Windows command prompt.
2425
2426 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2427
2428         * device/lib/libsdcc.lib: added module rand
2429         * src/ds390/ralloc.c (rematStr),
2430         * src/hc08/ralloc.c (rematStr),
2431         * src/mcs51/ralloc.c (rematStr),
2432         * src/z80/ralloc.c (rematStr): made output more consistent
2433         * src/mcs51/gen.c: cosmetic changes
2434
2435 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2436
2437         * src/port.h: added mem.cabs_name to PORT
2438         * src/ds390/main.c,
2439         * src/hc08/main.c,
2440         * src/mcs51/main.c,
2441         * src/pic16/main.c,
2442         * src/pic/main.c,
2443         * src/xa51/main.c,
2444         * src/z80/main.c: added cabs_name initializers
2445         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2446           constants
2447           (emitMaps): emit absolutes in code memory into cabs_name
2448         * src/SDCCmem.c,
2449         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2450         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2451         * support/regression/fwk/include/testfwk.h: added define for at
2452         * support/regression/tests/absolute.c: added, new
2453
2454 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2455
2456         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2457           optimizations, see also patch 887161 by Stas Sergeev
2458         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2459           to be necessary anymore,
2460           (102, 103, 104, 127): renamed all occurances of bp to _bp
2461
2462 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2463
2464         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2465           thanks Weston T. Schmidt for patch 1555221
2466         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2467         * src/SDCCicode.c(geniCodeMultiply): small optimization
2468
2469 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2470
2471         * device/include/stdlib.h: added rand prototypes
2472         * device/lib/rand.c: new, added
2473         * device/lib/Makefile.in: added rand.c
2474         * src/z80/peeph.def,
2475         * src/z80/peeph-gbz80.def,
2476         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2477
2478 2006-09-20 Raphael Neider <rneider AT web.de>
2479
2480         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2481
2482 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2483
2484         * as/link/aslink.h: cosmetic changes
2485         * as/link/mcs51/Makefile.in,
2486         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2487
2488 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2489
2490         * as/link/aslink.h,
2491         * as/link/mcs51/aslink.h,
2492         * as/link/z80/aslink.h: merged and moved to as/link/
2493         * as/link/lkstore.c,
2494         * as/link/mcs51/lkstore.c: moved to as/link/
2495         * as/link/clean.mk: remove *.o
2496         * as/link/mcs51/alloc.h: deleted
2497         * as/link/mcs51/lkarea.c: added lnksect prototype
2498         * as/link/mcs51/lkdata.c,
2499         * as/link/mcs51/lklex.c,
2500         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2501         * as/link/mcs51/lkmem.c,
2502         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2503         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2504         * as/link/mcs51/aslink.dsp,
2505         * as/link/mcs51/Makefile.aslink,
2506         * as/link/mcs51/Makefile.bcc,
2507         * as/link/mcs51/Makefile.in: updated for moved files
2508         * as/link/z80/lkarea.c,
2509         * as/link/z80/lkhead.c,
2510         * as/link/z80/lklex.c,
2511         * as/link/z80/lklibr.c,
2512         * as/link/z80/lklist.c,
2513         * as/link/z80/lkmain.c,
2514         * as/link/z80/lkrloc.c,
2515         * as/link/z80/lksym.c: synced with mcs51
2516         * as/link/z80/lkdata.c,
2517         * as/link/z80/lkeval.c,
2518         * as/link/z80/lkihx.c,
2519         * as/link/z80/lks19.c: cosmetic changes
2520         * as/link/z80/Makefile.in,
2521         * as/link/z80/linkgbz80.dsp,
2522         * as/link/z80/linkz80.dsp: updated for moved files
2523
2524 2006-09-16 Borut Razem <borut.razem AT siol.net>
2525
2526         * debugger/mcs51/sdcdb.c: partially fixed
2527           [ 1203664 ] sdcdb fails to open files w. two "." periods
2528         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2529           debugger/mcs51/symtab.h: fixed indenting
2530         * configure.in, configure: up to date with latest Maarten's changes
2531
2532 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2533
2534         as/link/mcs51
2535         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2536         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2537         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2538         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2539         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2540         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2541         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2542         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2543         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2544         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2545         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2546         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2547         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2548         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2549         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2550         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2551         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2552         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2553         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2554         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2555         as/link/mcs51/alloc.h,
2556         as/link/mcs51/clean.mk,
2557         as/link/mcs51/conf.mk,
2558         as/link/mcs51/Makefile.bcc,
2559         as/link/mcs51/Makefile.in,
2560         as/link/mcs51/readme.390,
2561         as/link/mcs51/strcmpi.c,
2562         as/link/mcs51/strcmpi.h,
2563         as/mcs51/clean.mk,
2564         as/mcs51/Makefile.bcc,
2565         as/mcs51/Makefile.in,
2566         configure,
2567         Makefile.in,
2568         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2569
2570 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * as/link,
2573         * as/link/Makefile.in,
2574         * as/link/z80/linkgbz80.dsp,
2575         * as/link/z80/linkz80.dsp,
2576         * configure,
2577         * link,
2578         * link/clean.mk,
2579         * link/Makefile.in,
2580         * link/README,
2581         * link/z80,
2582         * link/z80/aslink.h,
2583         * link/z80/clean.mk,
2584         * link/z80/conf.mk,
2585         * link/z80/linkgbz80.dsp,
2586         * link/z80/linkz80.dsp,
2587         * link/z80/lkarea.c,
2588         * link/z80/lkdata.c,
2589         * link/z80/lkeval.c,
2590         * link/z80/lkgb.c,
2591         * link/z80/lkgg.c,
2592         * link/z80/lkhead.c,
2593         * link/z80/lkihx.c,
2594         * link/z80/lklex.c,
2595         * link/z80/lklibr.c,
2596         * link/z80/lklist.c,
2597         * link/z80/lkmain.c,
2598         * link/z80/lkrloc.c,
2599         * link/z80/lks19.c,
2600         * link/z80/lksym.c,
2601         * link/z80/Makefile.in,
2602         * Makefile.in,
2603         * sdcc.dsw: moved link/ to as/link/
2604
2605 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2606
2607         * as/mcs51/i51mch.c (machine): fixed warning
2608
2609 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2610
2611         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2612
2613 2006-09-09 Borut Razem <borut.razem AT siol.net>
2614
2615         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2616           sdcdb WIN32 native port
2617         * src/clean.mk: fixed
2618
2619 2006-09-08 Borut Razem <borut.razem AT siol.net>
2620
2621         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2622
2623 2006-09-08 Raphael Neider <rneider AT web.de>
2624
2625         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2626         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2627             to gplink to disable processor mismatch warning and to allow
2628             the use of devices with only aliased (shared) memory banks,
2629           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2630
2631 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2632
2633         * doc/sdccman.lyx: Some re-formating plus example on using
2634           #pragma preproc_asm +/-
2635
2636 2006-09-07 Borut Razem <borut.razem AT siol.net>
2637
2638         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2639           section
2640
2641 2006-09-06 Borut Razem <borut.razem AT siol.net>
2642
2643         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2644           line at sdcc.nsi:153
2645         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2646
2647 2006-09-05 Borut Razem <borut.razem AT siol.net>
2648
2649         * configure.in, configure: support for winsock2
2650         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2651           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2652           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2653           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2654           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2655
2656 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2657
2658         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2659           and OP_DEFS
2660         * support/regression/tests/bug1551947.c: new, added
2661         * src/SDCCsymt.h: strings are char* not byte*
2662
2663 2006-09-05 Raphael Neider <rneider AT web.de>
2664
2665         * device/lib/pic16/libdev/pic18f4550.c,
2666           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2667             declarations/definitions from patch #1520949
2668
2669 2006-09-05 Raphael Neider <rneider AT web.de>
2670
2671         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2672           byte-aligned bitfields, fixes #1539278
2673
2674 2006-09-05 Raphael Neider <rneider AT web.de>
2675
2676         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2677           fixes #1544120
2678
2679 2006-09-04 Borut Razem <borut.razem AT siol.net>
2680
2681         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2682         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2683           -mno-cygwin is a part of the compiler name
2684         * support/scripts/sdcc_mingw32: don't disable ucsim
2685
2686 2006-09-03 Borut Razem <borut.razem AT siol.net>
2687
2688         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2689         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2690
2691 2006-09-03 Raphael Neider <rneider AT web.de>
2692
2693         * src/pic/ralloc.c,
2694         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2695           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2696           fixes #1550049
2697
2698 2006-09-01 Borut Razem <borut.razem AT siol.net>
2699
2700         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2701           to make ppc-osx happy
2702
2703 2006-08-31 Borut Razem <borut.razem AT siol.net>
2704
2705         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2706         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2707         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2708         * support/regression/ports/ds390/spec.mk,
2709           support/regression/ports/mcs51/spec.mk,
2710           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2711           To run regression tests in mingw environment:
2712           make DEV_NULL=NUL CC=gcc
2713
2714 2006-08-30 Borut Razem <borut.razem AT siol.net>
2715
2716         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2717           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2718           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2719           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2720           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2721           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2722           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2723           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2724           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2725           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2726           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2727           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2728           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2729           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2730           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2731           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2732           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2733           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2734           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2735           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2736           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2737           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2738           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2739           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2740           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2741           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2742           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2743           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2744           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2745           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2746           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2747           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2748           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2749           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2750           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2751           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2752           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2753           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2754           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2755           ucsim WIN32 native port
2756
2757 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2758
2759         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2760
2761 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2762
2763         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2764         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2765
2766 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2767
2768         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2769         * support/regression/tests/bug1546986.c: new, added
2770         * as/mcs51/.cvsignore,
2771         * debugger/mcs51/.cvsignore,
2772         * src/.cvsignore: deleted
2773
2774 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2775
2776         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2777           definitions)
2778
2779 2006-08-20 Borut Razem <borut.razem AT siol.net>
2780
2781         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2782           removed cl_listen_console::match(), cl_console::match(),
2783           restructured cl_commander::proc_input()
2784
2785 2006-08-16 Borut Razem <borut.razem AT siol.net>
2786
2787         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2788           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2789           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2790
2791 2006-08-14 Borut Razem <borut.razem AT siol.net>
2792
2793         * support/regression/Makefile.in,
2794           support/regression/ports/pic14/gpsim.cmd,
2795           support/regression/ports/pic14/spec.mk,
2796           support/regression/ports/pic14/support.c:
2797           added pic14 regression test
2798
2799 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2800
2801         * as/doc/asxhtm.html: documented changed ABS behaviour
2802         * as/doc/README: fixed some typos
2803
2804 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2805
2806         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2807           not defined on host
2808
2809 2006-08-12 Borut Razem <borut.razem AT siol.net>
2810
2811         * support/regression/fwk/include/testfwk.h,
2812           support/regression/fwk/lib/testfwk.c,
2813           support/regression/generate-cases.py,
2814           support/regression/Makefile.in:
2815           regression test framework does not depend on function pointers and
2816           variable arguments
2817
2818 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2819
2820         * device/include/stddef.h: c temporary hack to fix bug 1518273
2821
2822 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2823
2824         * device/include/mcs51/cc2510fx.h: added
2825         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2826           to projects.
2827
2828 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2829
2830         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2831         * as/z80/Makefile.in: added strcmpi.c
2832         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2833         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2834
2835 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2836
2837         * device/lib/gbz80/asm_strings.s,
2838         * device/lib/gbz80/crt0_rle.s,
2839         * device/lib/gbz80/div.s,
2840         * device/lib/gbz80/mul.s,
2841         * device/lib/gbz80/shift.s,
2842         * device/lib/z80/asm_strings.s,
2843         * device/lib/z80/crt0_rle.s,
2844         * device/lib/z80/div.s,
2845         * device/lib/z80/mul.s,
2846         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2847           flags which are all upper case
2848
2849 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2850
2851         * as/z80/asm.h: made CASE_SENSITIVE 1
2852         * link/z80/aslink.h: made CASE_SENSITIVE 1
2853         * src/z80/gen.c (throughout): made all conditionals upper case
2854         * support/regression/tests/bug1503067.c: new
2855
2856 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2857
2858         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2859           (shiftIntoPair): added case 2 for PAIR_IY,
2860           (setupToPreserveCarry): replaced parameters with iCode and check if
2861            PAIR_DE is in use to fix bug 1399290,
2862           (genPlus, genMinus): updated call to setupToPreserveCarry
2863         * support/regression/tests/bug1399290.c: new
2864
2865 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2866
2867         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2868         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2869         * src/ds390/gen.c (shiftRLong),
2870         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2871         * src/mcs51/gen.c (sameReg): changed to sameByte,
2872           (xch_a_aopGet): new,
2873           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2874            shiftRLong): fixed bug 1533966
2875         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2876           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2877         * support/regression/Makefile.in: disabled z80, enabled ucz80
2878         * support/regression/tests/float_trans.c: enabled test for z80 and host
2879         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2880
2881 2006-08-01 Borut Razem <borut.razem AT siol.net>
2882
2883         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2884           comparison is always false due to limited range of data type
2885           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2886
2887 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2888
2889         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2890         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2891         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2892         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2893
2894 2006-07-31 Borut Razem <borut.razem AT siol.net>
2895
2896         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2897           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2898           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2899           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2900           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2901           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2902           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2903           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2904           enable ucsim mingw compilation. Serial port is disabled,
2905           since it uses termios.h API, which is not available on native
2906           WIN32
2907
2908 2006-07-31 Borut Razem <borut.razem AT siol.net>
2909
2910         * Small Device C Compiler 2.6.0 released
2911         * support/scripts/sdcc.nsi: added FULL_DOC option
2912         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2913
2914 2006-07-28 Borut Razem <borut.razem AT siol.net>
2915
2916         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2917         * doc/INSTALL.txt: updated
2918
2919 2006-07-27 Borut Razem <borut.razem AT siol.net>
2920
2921         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2922           device/lib/pic/libdev/Makefile.in: fixed bug
2923           [ 1438354 ] pic libsdcc: distclean doesn't work
2924         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2925           device/lib/pic16/libio/Makefile.in: fixed bug
2926           [ 1438344 ] pic16 lib: clean doesn't work properly
2927         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2928
2929 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2930
2931         * device/lib/pic/libsdcc/fsdiv.c,
2932         * device/lib/pic/libsdcc/fsmul.c,
2933         * device/lib/pic16/libsdcc/float/fsdiv.c,
2934         * device/lib/pic16/libsdcc/float/fsmul.c,
2935         * device/lib/_fsdiv.c,
2936         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2937         * support/regression/tests/bug1520966.c: added
2938         * doc/knownbugs.html: removed [ 1520966 ] from the list
2939
2940 2006-07-25 Borut Razem <borut.razem AT siol.net>
2941
2942         * configure.in, configure, sdccconf_in.h: fixed bug
2943           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2944         * doc/knownbugs.html: removed [ 1519095 ] from the list
2945
2946 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2947
2948         * doc/knownbugs.html: added, contains list of known bugs at release
2949         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2950
2951 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2954           function registers and corrected defaults with additional warning
2955         * device/lib/malloc.c: cosmetic changes
2956         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2957         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2958           (fillGaps): and used it
2959
2960 2006-07-20 Raphael Neider <rneider AT web.de>
2961
2962         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2963           output unless SDCCPICDEBUG is set
2964         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2965           output if SILENT is set
2966
2967 2006-07-11 Borut Razem <borut.razem AT siol.net>
2968
2969         * doc/README.txt: updated
2970
2971 2006-07-10 Borut Razem <borut.razem AT siol.net>
2972
2973         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2974           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2975           in WIN32 installation
2976         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2977           release candidate 1
2978
2979 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2980
2981         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2982         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2983
2984 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2985
2986         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2987
2988 2006-07-06 Borut Razem <borut.razem AT siol.net>
2989
2990         * support/regression/tests/bitfields.c:
2991           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2992         * support/regression/tests/constantRange.c:
2993           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2994
2995 2006-07-04 Borut Razem <borut.razem AT siol.net>
2996
2997         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2998           src/port.mk,
2999           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3000           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3001           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3002           reverted changes from 2006-07-03
3003         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3004         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3005           added CPPFLAGS, used by the host port
3006
3007 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3008
3009         * support/regression/valdiag/tests/switch.c,
3010         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3011         * support/regression/tests/libmullong.c: fixed for host
3012         * support/regression/ports/host/spec.mk: disable all warnings for host,
3013         SDCC runs with --less-pedantic too
3014
3015 2006-07-03 Borut Razem <borut.razem AT siol.net>
3016
3017         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3018           defined CPPFLAGS
3019         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3020         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3021           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3022           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3023           include ../port.mk
3024         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3025           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3026           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3027           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3028
3029 2006-07-02 Raphael Neider <rneider AT web.de>
3030
3031         * src/pic16/devices.inc,
3032         * device/include/pic16/pic18fregs.h,
3033         * device/include/pic16/pic18f4550.h,
3034         * device/lib/pic16/pics.all,
3035         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3036
3037 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3038
3039         * as/hc08/lkaomf51.c (OutputName),
3040         * as/mcs51/lkaomf51.c (OutputName),
3041         * as/z80/asmain.c (asmbl),
3042         * src/ds390/main.c (asmLineNodeFromLineNode),
3043         * src/hc08/ralloc.c (hc08_assignRegisters),
3044         * src/mcs51/main.c (asmLineNodeFromLineNode),
3045         * src/xa51/ralloc.c (checkRegMask),
3046         * src/xa51/gen.c (emitcode),
3047         * src/z80/gen.c (_emit2),
3048         * src/SDCCast.c (searchLitOp),
3049         * src/SDCCglobl.h,
3050         * support/packihx/packihx.c,
3051         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3052         * src/ds390/gen.c (aopPutUsesAcc),
3053         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3054         * support/regression/tests/libmullong.c (mullong_wrapper),
3055         * src/SDCCsymt.c (powof2),
3056         * src/SDCCast.c,
3057         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3058         * src/SDCCsymt.h: added TYPE_TARGET_*
3059         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3060         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3061         SDCCast because 1) header problems 2) this is the right place
3062         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3063         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3064         prototype
3065
3066 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3067
3068         * src/SDCCicode.h: removed buggy semicolon in unused macro
3069         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3070         search for previous definiton of auto symbols too,
3071         (findPrevUse): fixed logic of emitWarnings
3072
3073 2006-06-26 Raphael Neider <rneider AT web.de>
3074
3075         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3076           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3077
3078 2006-06-25 Raphael Neider <rneider AT web.de>
3079
3080         * device/lib/pic/libm: NEW, added math library functions
3081         * device/lib/pic/libsdcc: NEW; added float support functions
3082         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3083         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3084           NEW, added math related headers
3085         * device/include/asm/pic/features.h: NEW
3086         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3087           (popGet): allow larger offsets for AOP_PCODE,
3088           (genDataPointerSet): handle literals explicitly, more debug output,
3089           (genAssign): fixed for float using aopLiteral ;-)
3090         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3091           GOTO initialisation routine
3092         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3093           flag on registers, fixes #1469043 (local variables do not work)
3094         * src/pic/main.c (_pic14_do_link),
3095         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3096           available
3097
3098 2006-06-25 Borut Razem <borut.razem AT siol.net>
3099
3100         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3101           characters printed (not including the trailing '\0' used to end
3102           output to strings). Problem detected in regression test bug-927659.c.
3103           NOTE: printf() family functions should return int instead
3104           unsigned int!
3105         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3106           specifier are printed as themselves
3107         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3108           support flags, width and precision specifiers
3109
3110 2006-06-24 Borut Razem <borut.razem AT siol.net>
3111
3112         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3113           to the list of sdcc tagrets not supporting bit type
3114         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3115           testfor pic16 due to bug:
3116           [ 1511794 ] pic16: regression test bug-895992.c fails
3117
3118 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3119
3120         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3121         * src/SDCCglue.c (initPointer), fixed bug 1496419
3122         * support/regression/tests/bug1496419.c: new, added
3123
3124 2006-06-22 Borut Razem <borut.razem AT siol.net>
3125
3126         * support/regression/ports/pic16/support.c: use gpsim usart module from
3127           libgpsim_modules library
3128
3129 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3130
3131         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3132         IP0H to IPH0.
3133
3134 2006-06-19 Raphael Neider <rneider AT web.de>
3135
3136         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3137         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3138           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3139           (pic14printExterns,pic14printPublics,pic16printPublics,
3140           pic16_printExterns): use new functions to emit symbols
3141           (picglue,pic16glue): emit publics before emitting externs
3142         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3143           locally defined functions to avoid bug #1443651
3144         * support/regression/tests/bug-716242.c: removed pic16 workaround
3145         * support/regression/ports/pic16/spec.mk: ignore errors during build
3146
3147 2006-06-19 Raphael Neider <rneider AT web.de>
3148
3149         * src/pic/glue.h: added pic14aopLiteral prototype
3150         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3151         * src/pic/gen.c: removed stdint.h dependency
3152           (aopGet): use Safe_strdup()
3153           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3154           (genDataPointerSet): use pic14aopLiteral()
3155         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3156           for pic16; thanks to Bernhard and Maarten
3157
3158 2006-06-18 Borut Razem <borut.razem AT siol.net>
3159
3160         * support/regression/tests/structflexarray.c: flexible array members
3161           not supported by gcc < 3
3162         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3163           GUI tool by default
3164         * src/pic/gen.c: don't include [p]strdin.h on solaris
3165         * support/Util/pstdint.h: addad svn attributes
3166         * support/regression/tests/constantRange.c,
3167           support/regression/tests/rotate.c: include inttypes.h instead
3168           stdint.h on solaris, addad svn attributes
3169
3170 2006-06-18 Raphael Neider <rneider AT web.de>
3171
3172         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3173           int for PIC16
3174         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3175           (pic16_genMinusBits): simplified sign-extension
3176           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3177             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3178             adjusted to correctly handle mixed-signed operands, disabled
3179             now unused multiplciation routines
3180         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3181           (assignResultValue): added argument denoting the size of the result
3182             as returned by the function (fixes upcasts in assigning from
3183             function calls: char foo(); int i = foo();)
3184           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3185             function result to assignResultValue
3186           (genMult): disabled inlined multiplication code
3187           (genDiv): augmented to also handle the modulus operator, fixed to
3188             handle mixed-signed operands correctly
3189           (genMod): simply call genDiv, disabled unused code
3190           (genAssign): fixed missing (sign-)extension on result
3191         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3192             valid char operands, allow signed operands for native code, added
3193             division and modulo operator handling
3194         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3195
3196         As a consequence, onebyte.c (if split into two files) and muldiv.c
3197         pass regression tests.
3198
3199 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3200
3201         * doc/Makefile.in: two runs of makeindex seem needed to get
3202         correct page references in the index of sdccman.pdf
3203         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3204
3205 2006-06-17 Borut Razem <borut.razem AT siol.net>
3206
3207         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3208
3209 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3210
3211         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3212         mentioned ec2drv and paulmon
3213
3214 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3215
3216         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3217           consecutive abs areas
3218           (find_empty_space, allocate_space): added map to handle codemap or
3219            xdatamap,
3220           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3221            absolute idata and xdata
3222         * as/mcs51/lkmem.c (summary2): updated legend
3223
3224 2006-06-16 Raphael Neider <rneider AT web.de>
3225
3226         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3227
3228 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3229
3230         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3231           1208515
3232         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3233
3234 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3235
3236         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3237         value of generic pointers,
3238         * src/avr/main.c,
3239           src/ds390/main.c,
3240           src/hc08/main.c,
3241           src/izt/i186.c,
3242           src/izt/tlcs900h.c,
3243           src/mcs51/main.c,
3244           src/pic/main.c,
3245           src/pic16/main.c,
3246           src/xa51/main.c,
3247           src/z80/main.c: PORT structure, added elements for gp_tags field,
3248         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3249         fields in the PORT structure of each port,
3250         * src/SDCCast.c (decorateType): allow processing of generic pointers
3251         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3252         S_FIXED symbols
3253
3254 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3255
3256         * link/z80/lkgb.c,
3257         * link/z80/lkgg.c,
3258         * src/pic16/gen.c,
3259         * src/pic16/main.c,
3260         * src/pic16/pcode.c,
3261         * src/pic/main.c,
3262         * src/pic/pcoderegs.c,
3263         * src/SDCCicode.c,
3264         * src/SDCCmain.c,
3265         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3266           bug 1504689 on minGW
3267
3268 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3269
3270         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3271
3272 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3273
3274         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3275
3276 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3277
3278         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3279           for optimization
3280
3281 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3282
3283         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3284         to a char variable. Fixed bug #1504211
3285         * device/include/pic16/adc.h,
3286         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3287         and fixed bug #1364390
3288
3289 2006-06-10 Borut Razem <borut.razem AT siol.net>
3290
3291         * CVSROOT: removed the CVS left-over
3292
3293 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3294
3295         * as/hc08/asmain.c (asexit),
3296         * as/hc08/lkmain.c (lkexit),
3297         * as/mcs51/asmain.c (asexit),
3298         * as/mcs51/lkmain.c (lkexit),
3299         * src/SDCCglue.c (DEFSETFUNC),
3300         * src/SDCCmain.c (linkEdit, assemble),
3301         * support/librarian/sdcclib.c (AddRel),
3302           replaced unlink() by standard C remove()
3303         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3304         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3305           gatherImplicitVariables): new, added to fix bug 608752,
3306           (createFunction): added gatherImplicitVariables()
3307         * src/SDCCast.h: added createRMW prototype
3308         * src/SDCCsymt.h (struct symbol): added infertype
3309         * support/regression/tests/bug608752.c: new, added
3310
3311 2006-06-10 Raphael Neider <rneider AT web.de>
3312
3313         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3314           multibyte dummy reads (fixes #1503234)
3315
3316 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3317
3318         * device/include/mcs51/compiler.h: new, added header file to enable
3319           creating common sfr definition header files for different compilers
3320
3321 2006-06-05 Raphael Neider <rneider AT web.de>
3322
3323         * src/pic16/{pcode.h,genarith.c}:
3324           introduced pCodeOp combining any two pCodeOps (previously only
3325           two register operands could be combined), removed pcop2 from
3326           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3327         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3328         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3329           rewritten to use new PO_TWO_OPS
3330         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3331         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3332           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3333           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3334           (pic16_get_op): embraced return arg to allow #define return(x),
3335             added new case for combined opcodes
3336           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3337           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3338            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3339
3340 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3341
3342         * src/SDCCval.c (checkConstantRange): added
3343         * src/SDCCval.h: added checkConstantRange
3344         * support/Util/SDCCerr.c,
3345         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3346         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3347         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3348         * src/SDCCast.c (decorateType): added checkConstantRange,
3349         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3350         can be emitted with the correct always true/false warning,
3351         added optimization for double '!';
3352         result of decorateType() must be assigned back to the tree, because
3353         decorateType() can change the tree
3354         * src/SDCCicode.c (geniCodeLogic),
3355         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3356         (checkConstantRange): removed, it was only a fragment which never
3357         emitted a warning
3358         * src/SDCCsymt.c (computeType): fixed promotion for
3359         "-1 < (unsigned bit) b"
3360         * src/pic/ralloc.c (packRegsForAssign),
3361         * src/pic16/ralloc.c (packRegsForAssign),
3362         * src/hc08/ralloc.c (packRegsForAssign),
3363         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3364         from mcs51
3365         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3366         * support/regression/tests/constantRange.c: added
3367         * support/valdiag/tests/constantRange.c: added
3368         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3369
3370 2006-06-02 Borut Razem <borut.razem AT siol.net>
3371
3372         * support/regression/ports/pic16/support.c: increase stack size
3373           to 255 bytes
3374         * support/regression/Makefile.in: sort tests by name so that the
3375           resutlts can be compared on different machines / platforms
3376
3377 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3378
3379         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3380         * src/ds390/gen.c (emitLabel): new, added,
3381           (genDjnz): fixed stack overflow bug,
3382           (throughout): cosmetic changes to sync with mcs51/gen.c,
3383           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3384         * src/mcs51/gen.c (genEndFunction): small optimization,
3385           (throughout): cosmetic changes to sync with ds390/gen.c
3386
3387 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3388
3389         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3390           (_print_format): fixed printing pointers
3391         * src/mcs51/gen.c (emitLabel, movb): new, added,
3392           (genAssign): small optimization,
3393           (genDjnz): fixed stack overflow bug,
3394           (throughout): replaced sprintf with SNPRINTF,
3395           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3396           replaced emitcode("mov", "b,...") with MOVB(...),
3397           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3398           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3399         * src/mcs51/peeph.def: added rules 140 and 264
3400         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3401           so they may get optimized into registers
3402
3403 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3404
3405         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3406           immediately when encountered,
3407           (printUsage): always use stderr even on windows
3408
3409 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3410
3411         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3412         (processParms): fixed bug #1247551
3413         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3414         parseCmdLine, main): print '--version' to stdout,
3415         print 'help' to stdout if --help is given,
3416         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3417         arguments are given; fixed --help
3418
3419 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3420
3421         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3422         * support/regression/tests/bug-1493710.c: added
3423
3424 2006-05-27 Borut Razem <borut.razem AT siol.net>
3425
3426         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3427           static instead auto
3428         * support/regression/ports/pic16/support.c: increase stack size
3429           from default 64 bytes to 128 bytes
3430         * support/regression/tests/staticinit.c,
3431           support/regression/tests/float.c: regression tests fully enabled
3432           for pic16 port by putting the initialized data arrays into the code
3433           section
3434         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3435           This was changed by mistake in the previous version.
3436
3437 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3438
3439         * src/pic16/gen.c (genFunction, genEndFunction): some
3440         beautifications, fixed bug with falsely restoring FSR2 in large
3441         stack model, thanks to Beau E. Cox for reporting the bug
3442
3443 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3444
3445         * debugger/mcs51/break.c,
3446         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3447           use %p to print pointers, made address variables unsigned
3448         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3449         * debugger/mcs51/symtab.c (parseSymbol): must return something
3450         * src/mcs51/gen.c (aopForSym): small optimization,
3451            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3452           (freeAsmop): added missing break,
3453           (aopPut): removed parameter bvolatile, determine it inside the function,
3454           (saveRegisters, unsaveRegisters): small optimization,
3455           (genIpush): removed pointless check,
3456           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3457           replaced sprintf with SNPRINTF,
3458           replaced strcpy with strncpyz,
3459           updated aopPut calls,
3460           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3461         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3462
3463 2006-05-24 Borut Razem <borut.razem AT siol.net>
3464
3465         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3466           modification of test for the pic16 port, put the array to the code
3467           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3468
3469 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3470
3471         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3472         * support/Util/pstdint.h: added
3473
3474 2006-05-22 Borut Razem <borut.razem AT siol.net>
3475
3476         * src/regression/Makefile: removed bool2.c test, added -q linker option
3477         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3478           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3479           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3480           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3481           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3482           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3483           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3484           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3485           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3486
3487 2006-05-22 Raphael Neider <rneider AT web.de>
3488
3489         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3490           bug #1492360 (problematic due to generic pointers, see code)
3491
3492 2006-05-22 Borut Razem <borut.razem AT siol.net>
3493
3494         * support/regression/ports/pic16/specs.mk: removed stack size linker
3495           directive
3496         * support/regression/tests/array.c,
3497           support/regression/tests/bitopcse.c,
3498           support/regression/tests/bug-908454.c,
3499           support/regression/tests/malloc.c: modified for pic16 regression test
3500         * support/regression/tests/bitfields.c:
3501           pic16 - excluded bitfileds of size > 8
3502         * support/regression/tests/bp.c: pic16 - reduced data size
3503         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3504         * support/regression/tests/bug-460010.c:
3505           pic16 - used the absolute address the fits in memory
3506         * support/regression/tests/bug-716242.c:
3507           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3508         * support/regression/tests/float.c:
3509           pic16 - excluded - data size too big
3510         * support/regression/tests/onebyte.c:
3511           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3512         * support/regression/tests/shifts.c:
3513           pic16 - function names probably have to differ in first X characters
3514           (gpasm limitation?)
3515         * support/regression/tests/staticinit.c:
3516           pic16 - excluded some tests due error: no target memory available for
3517           section ".idata"
3518
3519 2006-05-22 Borut Razem <borut.razem AT siol.net>
3520
3521         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3522           second try. Thanks Stas Sergeev once more.
3523
3524 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3525
3526         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3527           (genLeftShift, genRightShift): fixed bug 1491627
3528         * src/hc08/peeph.def (rules 7, 8.x): added
3529         * support/regression/tests/shifts.c (ShiftLeftByParam,
3530           ShiftRightByParam, testShiftByParam): added to test variable shifting
3531
3532 2006-05-20 Raphael Neider <rneider AT web.de>
3533
3534         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3535         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3536           (allocReg): add only new registers to dynAllocRegs,
3537           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3538             #1489055, #1445850, and probably #1483693
3539
3540 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3541
3542         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3543         bug in for-loop that didn't emit the last of CONFIG and ID registers
3544
3545 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3546
3547         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3548           with offset
3549         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3550           1489016, 1434401 and 1490124
3551         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3552           1489016, 1434401 and 1490124
3553
3554 2006-05-17 Borut Razem <borut.razem AT siol.net>
3555
3556         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3557           thanks Stas Sergeev
3558
3559 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3560
3561         * device/include/mcs51/P89c51RD2.h,
3562         * device/include/mcs51/P89LPC901.h,
3563         * device/include/mcs51/P89LPC922.h,
3564         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3565
3566 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3567
3568         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3569         to fix missing stack pragma in compiled binary object file,
3570
3571 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3572
3573         * support/packihx/configure.in,
3574         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3575         determine sizeof basic types even while cross compiling
3576
3577 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3578
3579         * src/avr/gen.c (aopop),
3580         * src/ds390/gen.c (aopOp),
3581         * src/hc08/gen.c (aopOp),
3582         * src/mcs51/gen.c (aopop),
3583         * src/pic16/gen.c (pic16_aopOp),
3584         * src/pic/gen.c (aopOp),
3585         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3586         if size of operand is smaller than spill location
3587
3588 2006-05-12 Borut Razem <borut.razem AT siol.net>
3589
3590         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3591           have to have CR/LF line endings even if they are checked out on *nix
3592           or on WIN32 in cygwin binmode
3593
3594 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3595
3596         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3597         * device/include/ds80c390.h: added sfr16 definitions
3598         * src/ds390/gen.c,
3599         * src/ds390/gen.h,
3600         * src/ds390/main.c,
3601         * src/ds390/ralloc.c,
3602         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3603           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3604           bit returning functions
3605         * support/regression/tests/sfr16.c: enabled test on ds390
3606
3607 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3608
3609         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3610         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3611
3612 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3613
3614         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3615         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3616           (cl_address_space constructor): removed expensive initialization,
3617           (cl_address_space::get_cell): extended for late initialization,
3618           (cl_address_space::*): use late initialization,
3619           (cl_address_decoder::activate): removed expensive initialization,
3620           This reduced regression test running time by 25%
3621
3622 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3623
3624         * packihx/,
3625         * configure.in,
3626         * configure,
3627         * sdcc.dsw,
3628         * Makefile.bcc,
3629         * Makefile.in,
3630         * support/packihx/Makefile.in,
3631         * support/packihx/clean.mk,
3632         * support/packihx/Makefile.bcc,
3633         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3634
3635 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3636
3637         * src/SDCCval.c (valNot): fix for regression test failure
3638           of not.c on big endian hosts
3639
3640 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3641
3642         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3643
3644 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3645
3646         * device/lib/mcs51/Makefile.in: changed string comparison operator
3647           to = for POSIX compliance; == is bash extension
3648
3649 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3650
3651         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3652           kosmonaut_pirx
3653
3654 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3655
3656         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3657         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3658         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3659         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3660         bug report #1478657,
3661
3662 2006-05-05 Borut Razem <borut.razem AT siol.net>
3663
3664         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3665           making the html
3666
3667 2006-05-02 Borut Razem <borut.razem AT siol.net>
3668
3669         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3670           create *.ind, which made make to fail if invoked with -j 2
3671
3672 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3673
3674         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3675           Hubert Sack for patch 1479782
3676
3677 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3678
3679         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3680
3681 2006-05-01 Raphael Neider <rneider AT web.de>
3682
3683         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3684           (create_pic): store only prefix-free device name,
3685           (init_pic): check for device names with "16" prefix,
3686           (list_valid_pics),
3687         * src/pic/device.h (struct PIC_device),
3688         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3689             stored device name,
3690         * device/include/pic/pic12f{635,675,629,683}.h,
3691         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3692         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3693         * device/include/pic/pic16f505.h,
3694         * device/lib/pic/libdev/pic16f505.c: removed
3695         * device/include/pic/pic14devices.txt: added support for pic12f
3696             devices, removed unsupported non 16-bit devices
3697             [above changes provided by patch from Zik Saleeba]
3698         * src/pic/*, src/pic16/*, device/include/pic16/*,
3699           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3700
3701 2006-05-01 Borut Razem <borut.razem AT siol.net>
3702
3703         * configure.in, configure, doc/Makefile.in:
3704           sync with nightly build makefile - latex, dvipdf and dvips
3705           not needed any more
3706
3707 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3708
3709         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3710         in the library source
3711
3712 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3713
3714         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3715
3716 2006-04-28 Raphael Neider <rneider AT web.de>
3717
3718         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3719         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3720           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3721         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3722
3723 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3724
3725         * device/lib/pic/libdev/Makefile.in,
3726         * device/lib/hc08/Makefile.in,
3727         * device/lib/gbz80/Makefile.in,
3728         * device/lib/z80/Makefile.in,
3729         * device/lib/ds390/Makefile.in,
3730         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3731         thanks to Borut for the bug report
3732         * configure.in,
3733         * configure: always create doc/Makefile independent from --enable-doc
3734         * Makefile.in: always install from directory doc independent from
3735         --enable-doc
3736         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3737         removed
3738         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3739         * doc/Makefile.in: install *.txt if present
3740         * device/include/Makefile.in (install): added installation of pic/*.inc
3741         and pic/*.txt files again, they were erroneously removed
3742
3743 2006-04-28 Raphael Neider <rneider AT web.de>
3744
3745         * src/pic/{gen.c,main.h,pcode.c},
3746         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3747             concerning signedness with casts
3748
3749 2006-04-28 Raphael Neider <rneider AT web.de>
3750
3751         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3752             definition of an interrupt handler,
3753         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3754             interrupt handler stuff from picglue() to separate routine,
3755           (picglue): enabled definition of intr handlers in files w/o main()
3756
3757 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3758
3759         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3760           compilation with MSVC 2005 Express Edition (VC8)
3761
3762 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3763
3764         * device/lib/Makefile: fixed build of gbz80 lib
3765
3766 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3767
3768         * support/regression/tests/bug-460010.c,
3769         * support/regression/tests/bug-524691.c,
3770         * support/regression/tests/bug-716242.c: removed conditional defines
3771           that are already in testfwk.h
3772
3773 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3774
3775         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3776           (AccAXRsh1): added, shift right by 1,
3777           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3778            AccAXLrl1
3779         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3780
3781 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3782
3783         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3784         remove cast to same type
3785         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3786         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3787         * as/z80/Makefile,
3788         * link/z80/Makefile: removed, they have moved to
3789         Makefile.in files
3790         * configure,
3791         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3792         * install-sh: fix bug #1204398 by setting umask 0022
3793         * device/lib/Makefile: separate build of z80 and gbz80 lib
3794
3795 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3796
3797         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3798         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3799
3800         One basic decision: e.g. src/clean.mk includes further files. In order
3801         to make this work there are two solutions:
3802         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3803           run configure on them. This way they can use
3804           'include $(srcdir)/port-clean.mk'
3805         - always include clean.mk by the Makefile at the same level. To avoid
3806           that `make clean` tries to include and build Makefile.dep the
3807           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3808           implemented, because now even `make uninstall` doesn't create
3809           Makefile.in. clean.mk could be eliminated by pasting it in
3810           Makefile.in.
3811
3812         * debugger/mcs51/Makefile.in: build own objects from library sources
3813         (SLIB, SDCC) in current directory
3814
3815         * configure, configure.in: renamed --disable-device-lib-build in
3816         --disable-device-lib; added --enable-doc, the required tools are
3817         searched by configure; added result message; the toolchain for the
3818         belonging ports are now only built, if the port is enabled.
3819
3820         * support/regression/*: all output is written in directory gen, because
3821         the fwk and ports directories don't livet in the build tree using vpath
3822
3823         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3824         --disable-device-lib, added --enable-doc, added section VPATH
3825
3826         * sim/ucsim/configure.in,
3827         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3828         z80 are enabled by default
3829
3830 2006-04-24 Raphael Neider <rneider AT web.de>
3831
3832         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3833             to config word, "pic14_"-prefixed some extern functions
3834           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3835             config word has been found
3836         * src/pic/device.h: added prototypes
3837         * src/pic/pcode.c: added "pic14_"-prefix where needed
3838         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3839             fixup
3840         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3841             words,
3842           (pic14emitRegularMap): ignore config words,
3843           (pic14createInterruptVect): moved generating __config directives away
3844           (picglue): have __config directives emitted
3845
3846 2006-04-24 Borut Razem <borut.razem AT siol.net>
3847
3848         * doc/Makefile: sync with nightly build makefile
3849
3850 2006-04-24 Raphael Neider <rneider AT web.de>
3851
3852         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3853             registers that have not been assigned proper liveranges,
3854             fixes #1469504 and #1474602,
3855           (pCodeRegOptimizeRegUsage): fixed typo in comment
3856
3857 2006-04-24 Borut Razem <borut.razem AT siol.net>
3858
3859         * device/examples/main8051.c: deleted - it was removed from CVS
3860           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3861           after the transition to Subversion
3862         * src/SDCCalloc.h: deleted - it was removed  from CVS
3863           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3864           after the transition to Subversion
3865         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3866           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3867           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3868           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3869
3870 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3871
3872         * as/asx8051.dsp: added mcs51/strcmpi.h
3873         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3874         * as/hc08/aslink.h: updated lnksect prototype
3875         * as/hc08/asm.h,
3876         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3877         * as/hc08/asmain.c,
3878         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3879           (newdot): handle A_ABS
3880         * as/hc08/asout.c,
3881         * as/mcs51/asout.c (outarea): output address
3882         * as/hc08/lkaomf51.c,
3883         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3884         * as/hc08/m08pst.c,
3885         * as/mcs51/i51pst.c,
3886         * as/z80/z80pst.c: "ABS" is not A_OVR
3887         * as/hc08/lkarea.c (newarea): read a_addr,
3888           (lnkarea): added codemap array, sort absolute areas to the front,
3889            combine all GSINITx/GSFINAL,
3890           (find_empty_space, allocate_space): new functions,
3891           (lnksect): return next address, handle absolute sections
3892         * as/mcs51/lkarea.c (newarea): read a_addr,
3893           lnksect2 prototype changed,
3894           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3895           (find_empty_space, allocate_space): new, factored out of lnksect2,
3896           (lnksect2): return next address, handle absolute sections
3897         * as/hc08/lkhead.c,
3898         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3899         * as/hc08/lklibr.c (addfile, fndsym),
3900         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3901           index out of range and detect both '\' and '/'
3902         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3903         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3904           regression tests (ds390 cannot return bool yet)
3905         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3906           document critical interrupts on z80, document changed SDCC define
3907         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3908           (_a390_mapping): added .org directive
3909         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3910           (genMultOneByte): fixed warnings
3911         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3912           ones
3913         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3914         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3915           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3916         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3917         * src/pic16/main.c: removed newReg prototype
3918         * src/pic16/pcode.c,
3919         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3920           warnings
3921         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3922           ones
3923         * src/pic16/ralloc.c
3924         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3925           to fix warnings
3926         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3927           from short to PIC_OPTYPE
3928         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3929         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3930           optype from short to PIC_OPTYPE
3931         * src/port.h: made int_size unsigned to fix warnings
3932         * src/SDCC.y: fixed warning on MSVC
3933         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3934         * src/SDCCopt.c (convertToFcall): fixed warnings
3935         * src/SDCCsymt.h: removed double prototype for genSymName
3936         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3937           offset int to fix warnings
3938
3939 2006-04-22 Borut Razem <borut.razem AT siol.net>
3940
3941         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3942           references to CVS replaced with Subversion
3943
3944 2006-04-21 Borut Razem <borut.razem AT siol.net>
3945
3946         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3947           references to CVS replaced with Subversion
3948
3949 2006-04-19 Borut Razem <borut.razem AT siol.net>
3950
3951         * src/version.awk: adapted for svn
3952         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3953           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3954           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3955           /binutils-avr/etc/*.vi, *.jin: removed all properties
3956           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3957
3958 2006-04-19 Borut Razem <borut.razem AT siol.net>
3959
3960         * CVS to Subversion migration completed
3961
3962 2006-04-18 Borut Razem <borut.razem AT siol.net>
3963
3964         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3965           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3966
3967 2006-04-17 Borut Razem <borut.razem AT siol.net>
3968
3969         * device/include/Makefile.in: added pic/*.inc to the installation
3970
3971 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3972
3973         * support/regression/collate-results.py: fixed output in case of
3974         a valdiag error
3975         * support/regression/generate-cases.py: fixed splitting of pathnames
3976         with dots
3977         * as/hc08/lklibr.c (addfile),
3978         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3979
3980 2006-04-11 Raphael Neider <rneider AT web.de>
3981
3982         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3983         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3984         * src/pic16/pcode.c (assignValnums): fixed #1460578
3985
3986 2006-04-11 Raphael Neider <rneider AT web.de>
3987
3988         * device/lib/pic/libdev/*.c,
3989         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3990           fixes #1468739, enables compilation in --std-c99 mode
3991         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3992
3993 2006-04-11 Raphael Neider <rneider AT web.de>
3994
3995         * src/pic/device.c (find_device): removed debug output
3996           (list_valid_pics): enabled verbose listing of supported devices
3997         * device/include/stdbool.h: define bool as char for pic14/16 as well
3998
3999 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4000
4001         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4002
4003 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4004
4005         * .version: bumped version to 2.5.6
4006         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4007
4008 2006-04-06 Raphael Neider <rneider AT web.de>
4009
4010         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4011         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4012         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4013           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4014             pic14_constructAbsMap
4015           (pic14printPublics): declare absolute global symbols as global
4016           (pic14createInterruptVect),
4017         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4018           (newReg): assume new registers unused, use correct name in
4019             hashtable (reg->name instead of name), more debugLog output
4020         * src/pic/device.h (PIC_device): added fields for verbose output
4021         * src/pic/device.c: moved device definition to pic14devices.txt,
4022             added routines for runtime parsing of pic14devices.txt,
4023             added support for second config word
4024         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4025           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4026           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4027           (_pic14_parseOptions): moved pCodeInitRegisters here
4028           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4029         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4030           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4031             handling the pseudo stack
4032         * device/lib/Makefile.in: ignore failures in objects-pic16,
4033         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4034         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4035         * device/lib/pic/Makefile.subdir,
4036         * device/lib/pic16/Makefile.subdir: improved clean rules
4037         * device/lib/pic/libdev/: NEW, pic14 device libraries
4038         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4039         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4040         * device/include/Makefile.in: create subdir and install pic14 headers
4041         * device/include/pic/p16f_common.inc: removed unused declarations
4042         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4043             PICs from inc2h.pl v1.6,
4044             replaced BIT_AT macros with struct declarations
4045         * device/include/pic/pic14devices.txt: definition of supported devices,
4046             all above improvements contributed by Zik Saleeba, thanks
4047         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4048         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4049             headers
4050
4051 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4052
4053         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4054         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4055           thanks to Charles Olds
4056
4057 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4058
4059         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4060
4061 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4062
4063         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4064         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4065         * support/regression/bug1464657.c: added, new test
4066
4067 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4068
4069         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4070           version number
4071
4072 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4073
4074         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4075           --no-peep and --peep-file <file> are used don't use default rules but
4076           do use the <file>
4077
4078 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4079
4080         * src/mcs51/gen.c (genCall): fixed bug 1457608
4081
4082 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4083
4084         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4085         changes seem to cause (trigger?) problems with the build system.
4086
4087 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4088
4089         * src/SDCCpeeph.c (operandsLiteral): new, added,
4090           (callFuncByName): inserted operandsLiteral
4091         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4092
4093 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4094
4095         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4096         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4097
4098 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4099
4100         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4101           implemented patch 1120823 Thanks to Willy De la Court (normal
4102           interrupts need an interrupt number now if they are made critical),
4103           and enabled nesting of critical functions though not for gbz80
4104           (genCritical, genEndCritical): added functions
4105           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4106         * src/z80/mappings.i: added "ei" to all mappings
4107
4108 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4109
4110         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4111         submitted by the Debian SDCC maintainer Aurelien Jarno:
4112         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4113         archive with gcc 4.1 on mips and wrote the patch"
4114
4115 2006-03-16 Raphael Neider <rneider AT web.de>
4116
4117         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4118           the left operand is shorter than the result (c* = lit-c* + int),
4119           fixes bug #1450796
4120         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4121           OP_SYMBOL
4122
4123 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4124
4125         * src/.version: increased version number to 2.5.5
4126         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4127         linking is done manually in pic16 port's _linkEdit,
4128         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4129         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4130         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4131         allocate asmop as AOP_ACC,
4132         (aopForRemat): added parameter 'bool result' in function declaration,
4133         (pic16_aopGet): return AOP_ACC when accessing WREG,
4134         (pic16_popGetTempReg): minor modification,
4135         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4136         'pic16_allocWithIdx',
4137         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4138         calling function in absolute addresses,
4139         (genAssign): take into account AOP_ACC asmop,
4140         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4141         * src/pic16/pcoderegs.c: some debug functions and lines added,
4142         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4143         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4144         register too,
4145         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4146         call to allocReg, not by manually allocating a new one,
4147         (pic16_assignRegisters): now before going through the register
4148         allocating functions mark all registers as free. This eliminates some
4149         side effects resulting from peephole parser done earlier in the backbone
4150
4151 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4152
4153         * src/SDCCicode.c (geniCodeLogic),
4154         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4155
4156 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4157
4158         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4159           (genSend): bugfix, do not allocate and free twice,
4160           (shiftRLong): handle partially overlapping aops
4161         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4162
4163 2006-03-08 Borut Razem <borut.razem AT siol.net>
4164
4165         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4166           for pic16
4167
4168 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4169
4170         * support/regression/tests/bug1409955.c: new, added
4171         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4172         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4173           (aopForSym, aopOp): increment asmop.allocated if reused,
4174           (freeAsmop): decrement asmop.allocated and check for zero instead of
4175           using asmop.freed,
4176           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4177           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4178            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4179            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4180            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4181            genSignedRightShift, genRightShift, genDataPointerGet,
4182            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4183            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4184             in reverse order from allocation,
4185           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4186             added swappedLR to keep track
4187         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4188           pdata & code for GCC, z80, gbz80 & hc08
4189         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4190
4191 2006-03-08 Raphael Neider <rneider AT web.de>
4192
4193         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4194
4195 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4196
4197         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4198         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4199         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4200
4201 2006-03-06 Borut Razem <borut.razem AT siol.net>
4202
4203         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4204           made the linker quiet
4205
4206 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4207
4208         * src/pic16/gen.c (genPcall): fixed bug #1443644
4209         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4210         which dumps before the function entry point a data byte which represents
4211         the number of the local variables used by the specified function, added
4212         'xinst' for initial support for Extended Instruction Support,
4213         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4214         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4215         port->fun_prefix anymore (may change later),
4216         (genFunction, genEndFunction): do not store/restore local registers for
4217         _main (this should take care the --main-return command line option in
4218         the future),
4219         (genOr): removed some legacy pic-port instructions,
4220         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4221         performing operations with SFR's causes data to be written more than
4222         once to each SFR. Perhaps SFRs should be handled in special cases...
4223         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4224         pcode.h
4225         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4226         into account for stack starting position,
4227         (struct OPTIONS pic16_optionsTable): added command line argument
4228         --extended or -y for Extended Instruction Support,
4229         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4230         (deassignLRs): *** perhaps the most important change, old 'for' code
4231         (commented out for reference), didn't account for some registers which
4232         were left marked 'not free' after a pointer operation. The change
4233         reduces register usage a lot in some cases
4234
4235 2006-03-04 Borut Razem <borut.razem AT siol.net>
4236
4237         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4238           _clean
4239         * support/regression/tests/bug-524697.c: decreased array size for
4240           mcs51 to fit into the internal RAM
4241         * support/regression/Makefile.in: a little bit more verbose
4242
4243 2006-03-03 Borut Razem <borut.razem AT siol.net>
4244
4245         * support/regression/fwk/lib/testfwk.c,
4246           support/regression/fwk/include/testfwk.h: introduced function
4247           _prints(), nonrecursive _printn(), call _initEmu() from main()
4248         * support/regression/ports/gbz80/support.asm,
4249           support/regression/ports/ucz80/support.asm,
4250           support/regression/ports/z80/support.asm,
4251           support/regression/ports/ds390/support.c,
4252           support/regression/ports/hc08/support.c,
4253           support/regression/ports/host/support.c,
4254           support/regression/ports/mcs51/support.c,
4255           support/regression/ports/xa51/support.c: added empty _initEmu()
4256           function
4257         * support/regression/ports/pic16/gpsim.cmd,
4258           support/regression/ports/pic16/spec.mk,
4259           support/regression/ports/pic16/support.c,
4260           support/regression/Makefile.in: added pic16 regression test
4261
4262 2006-03-01 Raphael Neider <rneider AT web.de>
4263
4264         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4265           genConstPointerGet): use safe way of generating MOVFF to cover
4266             literals as well as registers, fixes bug #1440527
4267         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4268             dereference
4269           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4270             more correctly, fixes bug #1232186
4271           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4272         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4273             gplink guess the correct processor in more cases, applied patch
4274             from Till Riedel attached to and fixing bug #1436552
4275
4276 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4277
4278         * support/regression/tests/array.c: added, contains check for #1434401
4279         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4280
4281 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4282
4283         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4284         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4285         * device/include/mcs51/c8051f326.h,
4286         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4287         * device/include/mcs51/c8051f000.h,
4288         * device/include/mcs51/c8051f018.h,
4289         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4290           PCON_IDLE,PCON_STOP and added sfr16 definitions
4291
4292 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4293
4294         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4295           genGetWord): fixed bug 1409955
4296
4297 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4298
4299         * device/include/hc08/mc68hc908gp32.h,
4300         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4301
4302 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4303
4304         * src/SDCCast.c (constExprValue): return NULL if not a value
4305         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4306         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4307         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4308
4309 2006-02-13 Borut Razem <borut.razem AT siol.net>
4310
4311         * src/regression/ptrarg.c: added, fails due to bug #1430967
4312         * src/regression/Makefile: ptrarg.c added, ...
4313
4314 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4315
4316         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4317         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4318
4319 2006-02-11 Borut Razem <borut.razem AT siol.net>
4320
4321         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4322           print "Processor: xxx" message to stdout only if --verbose
4323
4324 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4325
4326         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4327         * support/regression/tests/bug1426356.c: added
4328         * support/regression/tests/bitfields.c: removed 2 tests
4329
4330 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4331
4332         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4333         * device/include/mcs51/c8051f330.h,
4334         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4335           PCON_IDLE,PCON_STOP and added sfr16 definitions
4336         * device/lib/_divsint.c,
4337         * device/lib/_divuint.c,
4338         * device/lib/_divulong.c,
4339         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4340           register bank bug for small stackauto
4341
4342 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4343
4344         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4345
4346 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4347
4348         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4349         * all.dsp: corrected several bin paths
4350         * device/include/mcs51/c8051f120.h,
4351         * device/include/mcs51/c8051f300.h,
4352         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4353           to PCON_IDLE,PCON_STOP
4354         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4355         * device/lib/printf_large.c (output_float): fixed bug 1388703
4356         * support/regression/tests/bug1057979.c: added test for bug 1388703
4357
4358 2006-02-08 Raphael Neider <rneider AT web.de>
4359
4360         * src/pic/pcode.c (pciTRIS): fixed typo,
4361           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4362           (LinkFlow): fixed handling of flows that end in a call,
4363           (ReuseReg): perform safety check earlier
4364         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4365             to work with flows at the beginning of a pBlock,
4366             fixes #1426557 (Symbol not previously defined),
4367           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4368             usage information
4369           (RemoveUnusedRegisters): update register usage info
4370         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4371             created, reuse existing ones instead
4372         * src/pic/gen.c (genPcall): fixed #1424719
4373
4374 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4375
4376         * link/z80/lkmain.c,
4377         * link/z80/lklex.c,
4378         * link/z80/lkdata.c,
4379         * link/z80/aslink.h: fixed build on current cygwin:
4380         replaced getline() by lk_getline()
4381
4382 2006-02-01 Borut Razem <borut.razem AT siol.net>
4383
4384         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4385           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4386           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4387           src/regression/bool1.c, src/regression/bool2.c,
4388           src/regression/bool3.c, src/regression/call1.c,
4389           src/regression/compare.c, src/regression/compare10.c,
4390           src/regression/compare2.c, src/regression/compare3.c,
4391           src/regression/compare4.c, src/regression/compare5.c,
4392           src/regression/compare6.c, src/regression/compare7.c,
4393           src/regression/compare8.c, src/regression/compare9.c,
4394           src/regression/configword.c, src/regression/for.c,
4395           src/regression/inline.c, src/regression/mult1.c,
4396           src/regression/nestfor.c, src/regression/or1.c,
4397           src/regression/pointer1.c, src/regression/ptrfunc.c,
4398           src/regression/rotate1.c, src/regression/rotate2.c,
4399           src/regression/rotate3.c, src/regression/rotate4.c,
4400           src/regression/rotate5.c, src/regression/rotate6.c,
4401           src/regression/rotate7.c, src/regression/string1.c,
4402           src/regression/struct1.c, src/regression/sub.c,
4403           src/regression/sub2.c, src/regression/switch1.c,
4404           src/regression/while.c, src/regression/xor.c,
4405           src/regression/create_stc, src/regression/simulate,
4406           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4407           regression tests
4408         * src/regression/gpsim_assert.h: added
4409
4410 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4411
4412         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4413         ((void (code *) (void)) 0) ();
4414         * as/hc08/aslex.c,
4415         * as/hc08/aslink.h,
4416         * as/hc08/asm.h,
4417         * as/hc08/asmain.c,
4418         * as/hc08/lkdata.c,
4419         * as/hc08/lklex.c,
4420         * as/hc08/lkmain.c,
4421         * as/mcs51/aslex.c,
4422         * as/mcs51/aslink.h,
4423         * as/mcs51/asm.h,
4424         * as/mcs51/asmain.c,
4425         * as/mcs51/lkdata.c,
4426         * as/mcs51/lklex.c,
4427         * as/mcs51/lkmain.c,
4428         * as/z80/aslex.c,
4429         * as/z80/asm.h,
4430         * as/z80/asmain.c: fixed build on current cygwin:
4431         replaced getline() by as_getline()
4432
4433 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4434
4435         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4436         declarator in the symbol chain
4437         * src/SDCCsymt.h,
4438         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4439         parameter list for function pointers
4440         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4441         * support/regression/tests/bug-716242.c: added
4442
4443 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4444
4445         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4446         offset if possible
4447         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4448
4449 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4450
4451         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4452         inifinitely recurseable, added static
4453         * support/regression/tests/bug-1408066.c: added
4454
4455 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4456
4457         * src/SDCCicode.h,
4458         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4459         renamed, added possibility to create "postLoopLbl"-labels
4460         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4461         newiTempLoopHeaderLabel
4462         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4463         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4464         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4465         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4466         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4467         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4468         (basicInduction): fixed bug #136564, made static,
4469         (loopInduction): changed parameter of basicInduction, made static,
4470         (addPostLoopBlock): added
4471         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4472         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4473         findLoopEndSeq
4474         * support/regression/tests/bug-136564.c: added
4475         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4476         --std-sdcc99 to LIBSDCCFLAGS
4477
4478 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4479
4480         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4481         while loop
4482         * support/regression/tests/bug-1406131.c: added
4483
4484 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4485
4486         * src/SDCCast.c (decorateType): fix promotion of unary minus
4487         * src/SDCCsymt.c (computeType): beautified
4488         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4489         (valUnaryPM, valComplement): fix sign and promotion,
4490         (valNot): ANSI: result type is int (SDCC: unsigned char)
4491         * support/regression/tests/uminus.c: speedup by removing superflous
4492         test case 'int'
4493         * support/regression/tests/onebyte.c: added promotion and signedness
4494         tests for unary minus
4495         * support/regressions/tests/bug-477927.c: disable warning about
4496         uninitialized variables
4497         * support/regression/tests/not.c: added
4498
4499 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4500
4501         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4502         * src/mcs51/gen.c (gen51Code): show final register usage after
4503         fillGaps in asm with --i-code-in-asm
4504         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4505         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4506         incUsed, rliveClear, adjustIChain): made static,
4507         (setFromRange): excluded because it's unused,
4508         (findPrevUseSym, markWholeLoop): added,
4509         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4510         through all branches of predecessors enables sdcc to emit the warning
4511         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4512         (rlivePoint): made static, added parameter emitWarnings which is only
4513         true during the first run out of two,
4514         (findRecursiveSucc, findRecursivePred): removed,
4515         (computeLiveRanges): made static, added parameter emitWarnings,
4516         (dumpIcRlive): added for debugging only
4517         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4518         removed prototype of setFromRange()
4519         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4520         in call of computeLiveRanges()
4521         * support/regression/tests/bug-895992.c: added
4522         * support/regression/tests/bug-971834.c: added
4523         * support/valdiag/tests/bug-895992.c: added
4524         * support/valdiag/tests/bug-971834.c: added
4525
4526 2005-12-18 Raphael Neider <rneider AT web.de>
4527
4528         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4529           (genUnpackBits): improved code for direct operands,
4530           (genPackBits): improved code for literal assignment to bitfields
4531             and for direct destination operands (no FSR indirection),
4532             prevented redundant AND, fixes #1362800,
4533           (AccLsh): added parameter to disable masking of the result
4534         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4535           skip instructions with side-effects (like incfsz),
4536           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4537         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4538         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4539           fixes #1375263
4540
4541 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4542
4543         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4544         volatile variables as spill location
4545
4546 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4547
4548         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4549         replacing literals
4550         * support/regression/tests/bug-1376320.c: added
4551
4552 2005-12-08 Raphael Neider <rneider AT web.de>
4553
4554         * src/pic/device.c: renamed is_shared to pic14_is_shared
4555         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4556         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4557           (is_valid_identifier): added for above workaround
4558
4559 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4560
4561         * device/lib/Makefile.in: fixed to enable port-specific-objects
4562         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4563           char, thanks Hubert Sack
4564         * doc/sdccman.lyx: documented --xstack-loc,
4565           elaborated a bit more on interrupts and pitfalls,
4566           removed "setjmp/longjmp unsupported",
4567           documented some unsupported C99 features
4568         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4569         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4570           if, thanks Hubert Sack
4571         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4572         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4573           make make_library
4574         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4575           regression tests can report resource usage (rfe 700441)
4576         * support/regression/collate-results.py: report resource usage
4577         * support/regression/ports/ds390/spec.mk,
4578         * support/regression/ports/hc08/spec.mk,
4579         * support/regression/ports/mcs51/spec.mk,
4580         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4581         * support/regression/ports/ds390/uCsim.cmd,
4582         * support/regression/ports/hc08/uCsim.cmd,
4583         * support/regression/ports/mcs51/uCsim.cmd,
4584         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4585         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4586           library, use the default one
4587         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4588           building the library
4589
4590 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4591
4592         * config.dsp: added dependency on .version and configure_vc.awk
4593         * device/include/setjmp.h: updated for --stack-auto and --xstack
4594         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4595         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4596         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4597         * device/lib/libsdcc.lib: added _setjmp
4598         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4599           (decorateType): fixed bug 1372851,
4600           (optimizeGetHbit): fixed warning
4601         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4602           array initialisation
4603         * support/regression/tests/bug1057979.c: added test for bug 1358192
4604         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4605
4606 2005-12-03 Borut Razem <borut.razem AT siol.net>
4607
4608         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4609           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4610
4611 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4612
4613         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4614         createIval): implement symbol independant "flexible array member",
4615         (createIvalCharPtr): implemented flexible array initialisation with a
4616         string
4617         * src/SDCCsymt.c (copyStruct): removed,
4618         (getSize): fixed misleading comment,
4619         (getAllocSize): removed, the additional allocation size is now in
4620         sym->flexArrayLength,
4621         (checkStructFlexArray): new, syntax checks for flexible array members,
4622         (compStructSize): added syntax checks for "flexible array members"
4623         (copyStruct): removed,
4624         (copyLinkChain): removed inefficient fix for bug 770487
4625         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4626         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4627         symbol->flexArrayLength
4628         * src/SDCCerr.c,
4629         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4630         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4631         * support/regression/tests/structflexarray.c: added
4632         * support/valdiag/tests/structflexiblearray.c: added
4633
4634 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4635
4636         * src/SDCCast.c (decorateType): fixed bug 1368489
4637         * support/Util/SDCCerr.c,
4638         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4639
4640 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4641
4642         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4643           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4644
4645 2005-11-27 Borut Razem <borut.razem AT siol.net>
4646
4647         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4648           support/cpp2/mkdeps.h: added command line option
4649           -obj-ext=<extension> to SDCPP to define object file externion, used
4650           for generation of make dependencies (-M)
4651         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4652
4653 2005-11-26 Borut Razem <borut.razem AT siol.net>
4654
4655         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4656           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4657           added pic and pic16 libraries
4658
4659 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4660
4661         * device/include/float.h: Corrected typo in prototype of __fsgt
4662
4663 2005-11-25 Borut Razem <borut.razem AT siol.net>
4664
4665         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4666           added creation of model-mcs51-stack-auto libraries
4667
4668 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4669
4670         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4671         and fields-list too
4672         * src/SDCCast.c (createIvalArray): removed obsolete comment
4673
4674 2005-11-24 Borut Razem <borut.razem AT siol.net>
4675
4676         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4677           added missing device/lib/mcs51/crt*.asm sources
4678
4679 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4680
4681         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4682
4683 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4684
4685         * device/lib/_fs2schar.c,
4686         * device/lib/_fs2sint.c,
4687         * device/lib/_fs2slong.c: optimized inline asm
4688
4689 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4690
4691         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4692           Better handling of floats between -1.0 and 0.0.
4693
4694 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4695
4696         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4697           (the missing "if"s prohibited removal of redundant labels)
4698
4699 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4700
4701         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4702           Properly convert floats between -1.0 and 0.0 to long, int, and char
4703           types (max integer value of negative floats tends to zero).
4704         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4705           Removed changes made so to work properly with floats between
4706           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4707           and _fs2char.c
4708
4709 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4710
4711         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4712         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4713         (genCast) cosmetic change
4714         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4715         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4716         from mcs51
4717         * support/regression/tests/bitfields (testSignedBitfields): added
4718
4719 2005-11-18 Borut Razem <borut.razem AT siol.net>
4720
4721         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4722         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4723           introduced SILENT option to make building of pic16 libraries less
4724
4725 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4726
4727         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4728           Now they work properly with floats between -1.0 and 0.0
4729         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4730
4731 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4732
4733         * src/SDCCicode.c (printOperand): added missing else
4734
4735 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4736
4737         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4738         reformatted for better readability
4739         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4740         signed bitfields
4741
4742 2005-11-17 Borut Razem <borut.razem AT siol.net>
4743
4744         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4745           introduced SILENT option to make building of pic16 libraries less
4746           verbose - used for nightly snapshot build
4747         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4748           available on Win32 platforms.
4749         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4750           medium, large, pic and pic16
4751
4752 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4753
4754         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4755           printf("%f"...) sets fraction to zero.
4756
4757 2005-11-16 Raphael Neider <rneider AT web.de>
4758
4759         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4760           fixes #1357221
4761         * src/pic/gen.c (genIfx): implemented for CARRY bit
4762         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4763           to generic pointers, fixes #1357332,
4764           (pic16_movLit2f): NEW,
4765           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4766
4767 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4768
4769         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4770
4771 2005-11-11 Raphael Neider <rneider AT web.de>
4772
4773         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4774         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4775           compute pointer's type from operand,
4776           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4777           improved single bit reads, fixes bug #1353379
4778
4779 2005-11-09 Borut Razem <borut.razem AT siol.net>
4780
4781         * support/scripts/sdcc.nsi: added lib/pic to the package
4782
4783 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4784
4785         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4786
4787 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4788
4789         * support/regression/tests/bug1348008.c: added
4790         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4791         * support/regression/tests/bug1337835.c: updated comment
4792
4793 2005-11-06 Borut Razem <borut.razem AT siol.net>
4794
4795         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4796           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4797           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4798           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4799           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4800           dynamic construction of cl_error_class and derivates - 2.nd try
4801
4802 2005-11-05 Borut Razem <borut.razem AT siol.net>
4803
4804         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4805           bug, which caused Bus Errors on sparc solaris
4806
4807 2005-11-04 Borut Razem <borut.razem AT siol.net>
4808
4809         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4810           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4811           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4812           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4813           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4814           and derivates to resolve the initialization problem on OSX
4815
4816 2005-11-02 Borut Razem <borut.razem AT siol.net>
4817
4818         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4819           corrected typo - #include <winsock2.h>
4820
4821 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4822
4823         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4824           (_asxxxx_mapping): added org directive for future enhancements
4825
4826 2005-11-01 Borut Razem <borut.razem AT siol.net>
4827
4828         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4829           enabled sockets on WIN32
4830         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4831
4832 2005-10-31 Borut Razem <borut.razem AT siol.net>
4833
4834         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4835           WIN32 backslash path delimiters should be escaped when used in C strings
4836         * support/regression/tests/bitfields.c: exclude failing assertions for
4837           __CYGWIN32__ and __MINGW32__ hosts
4838
4839 2005-10-30 Borut Razem <borut.razem AT siol.net>
4840
4841         * src/SDCCutil.c: corrected double comparison typo
4842
4843 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4844
4845         * device/lib/medium/Makefile: added for new memory model medium
4846         * device/include/asm/mcs51/features.h: updated for medium/pdata
4847         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4848           added Multiply & Accumulate sbit's and MAC0_PAGE define
4849         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4850         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4851         * device/lib/_mullong.c: update for medium model
4852         * device/lib/incl.mk: added medium model
4853         * doc/sdccman.lyx: documented medium model
4854         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4855         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4856         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4857         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4858           (allocParms): set SCLS and OCLS to pdata for medium model
4859         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4860           for pdata,
4861           (powof2): return <0 if not power of 2
4862         * src/avr/gen.c (genBitWise): use updated powof2
4863         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4864           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4865           (shiftLLeftOrResult): use B if necessary
4866         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4867         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4868         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4869         * support/regression/Makefile.in: added test-mcs51-medium
4870         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4871
4872 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4873
4874         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4875         specifier unsigned
4876         * device/lib/time.c (mktime): fixed bug 1334315
4877
4878 2005-10-28 Raphael Neider <rneider AT web.de>
4879
4880         * device/include/pic/p16f_common.inc: added common declarations
4881         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4882
4883 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4884
4885         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4886           (aopPutUsesAcc): added to predict accumulator use,
4887           (assignResultValue): save acc if necessary,
4888           (genMinusDec): store result if indirectly addressed,
4889           (genDivOneByte):  save acc if necessary,
4890           (movLeft2Result): bugfix if left already in acc,
4891           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4892             attention to accumulator use (esp. pdata),
4893           (genReceive): receive pdata correctly
4894         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4895         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4896
4897 2005-10-27 Raphael Neider <rneider AT web.de>
4898
4899         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4900
4901 2005-10-27 Raphael Neider <rneider AT web.de>
4902
4903         * .version: changed version to 2.5.4
4904         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4905         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4906           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4907             arithmetics support routines
4908         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4909         * device/lib/Makefile.in: also create installdir for pic
4910
4911         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4912           pic14 port as well
4913         * src/pic/device.c (dump_sfr): rewritten to delegate register
4914           placement to the linker (use `extern sym' rather than sym EQU addr),
4915           (validAddress): fixed to check last specified address
4916         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4917           (popGetLit): truncate literal value to 8 bit,
4918           (popGet): moved assert to more appropriate place
4919           (popGetExternal): create pCode operand from and mark the according
4920             symbol as being `extern'
4921           (popGetAddr): added sanity check on immediate's offset, provide
4922             GPOINTER tag on demand
4923           (aopPut): fixed for immediates,
4924           (mov2w_op): move operand's address or contents to WREG (depending on
4925             operand type), safer variant of mov2w,
4926           (movwf,call_libraryfunc): NEW, handy abbreviations,
4927           (get_argument_pcop,get_return_val_pcop,pass_argument,
4928           get_returnvalue): interface for accessing function parameters and
4929             return values,
4930           (assignResultValuei,genRet): use new parameter/return value interface
4931           (pic14_getDataSize): back to old version handling generic pointers,
4932           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4933             provided implementation and/or fixed old one,
4934           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4935             calls, removed legacy 8051 reference code
4936           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4937           (loadSignToC): NEW, move the operands sign bit to CARRY,
4938           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4939             genRightShiftSigned, accepts negative shift counts,
4940           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4941           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4942             generic pointers, __data pointers and __code pointers,
4943           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4944             and signed bitfields, limit bitfields to 8 bit,
4945           (genDataPointerGet): fixed number of bytes read,
4946           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4947           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4948             pointers to constant data are no longer assumed to point to __code
4949             space, removed invalid pointer types,
4950           (bitpatternFromVal): retrieve the PICs representation of an integer
4951             or float literal,
4952           (genDataPointerSet): fixed assigning to po_immediate operands,
4953           (genGenPointerSet): implemented as library call,
4954           (genIfx): fixed incorrect condition,
4955           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4956             provide GPOINTER tag according to destination's storage class,
4957           (genCast): added code to handle casting to generic pointers, added
4958             sign-/zero extension of the result
4959           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4960         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4961         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4962           extend the result
4963         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4964           address/register resides in the shared banks
4965           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4966             put all variables into separate sections (have the linker arrange
4967             them)
4968           (picglue): put init code and interrupt handlers in separate sections
4969         * src/pic/main.c: added port specific options table, modified to PORT
4970           structure to make GPOINTERs 3 byte, added pic14_options
4971           (_pic14_do_link): private linking routine (update paths to libraries,
4972             add libsdcc.lib by default)
4973         * src/pic/main.h: declare pic14_options
4974         * src/pic/pcode.c: fixed instructions i/o relations,
4975           (RegCond): reverted to correct version,
4976           (newpCodeOpLit): truncate literals to 8 bit,
4977           (genericPrint): added debug output,
4978           (getRegFromInstruction): fixed for various operand types, simplified
4979           (BuildFlow): fixed broken handling of isntructions with labels
4980           (LinkFlow): start at last instruction in flow (skip trailing comments),
4981             pass the flow on to the next instruction after CALL
4982           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4983           (insertPCodeInstruction): fixed inserting after a skip instruction,
4984           (DoBankSelect): fixed for labeled instructions
4985           (OptimizepBlock): honor --nopeep switch
4986           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4987         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4988         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4989           (pCodeOptime2pCodes): allow disabling this optimization via
4990             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4991             but is still buggy), started implementation of a dataflow based
4992             pCode optimization (CSE + dead code elimination)
4993           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4994         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4995           names are independant of the stack location and therefore portable across
4996           devices
4997
4998 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4999
5000         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5001           (selectSpil): fixed bug 1337835 by not spilling bit variables
5002         * support/regression/tests/bug1337835.c: added test for this bug
5003         * src/mcs51/peeph.def: restart after rule 3.c,
5004           addded rules 263.x to optimize loading constants
5005
5006 2005-10-26 Raphael Neider <rneider AT web.de>
5007
5008         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5009         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5010           (genAssign): emit warning when casting literals to generic pointer
5011             type, also applies when taking the address of a fixed variable,
5012           (genCast): improved casting to generic pointers
5013         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5014           extern variables, added verbose error message
5015         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5016
5017 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5018
5019         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5020         carry must be complemented too
5021         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5022         could be emitted by genMinus
5023         * src/SDCCval.c (constVal): fixed bug 1305065
5024
5025 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5026
5027         * src/SDCCast.c (addCast): added promotion for bit variables
5028         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5029         promotion casts + optimisation
5030         (optimizeGetWord): fix warning 'i' might be used uninitialized
5031         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5032         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5033
5034 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5035
5036         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5037         all chars are promoted to int; promotion should be handled in SDCCast.c
5038
5039 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5040
5041         * device/lib/_strcmp.c: Fixed bug 1326457
5042
5043 2005-10-11 Raphael Neider <rneider AT web.de>
5044
5045         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5046         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5047
5048 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5049
5050         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5051         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5052
5053 2005-10-04 Raphael Neider <rneider AT web.de>
5054
5055         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5056           device/lib/pic16/pics.all: added pic18f1320
5057         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5058
5059 2005-09-30 Raphael Neider <rneider AT web.de>
5060
5061         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5062         * src/pic16/devices.inc: NEW, provides device descriptions
5063         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5064
5065 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5066
5067         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5068           GETHBIT
5069
5070 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5071
5072         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5073           documented Any Order Bit, Higher Order Byte and Higher Order Word
5074         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5075         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5076           (optimizeGetAbit): new, to get any bit, not only the high bit,
5077           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5078           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5079           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5080           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5081             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5082             GETABIT, GETBYTE, GETWORD: decorate them,
5083           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5084           (ast_print): added GETABIT, GETBYTE, GETWORD
5085         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5086         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5087           (geniCodeBinary): new generic binary icode,
5088           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5089         * src/port.h: updated comment for PORT.hasExtBitOp
5090         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5091           (genGetByte): new, to get a single byte,
5092           (genGetWord): new, to get a word from a long,
5093           (gen51Code): added GETABIT, GETBYTE, GETWORD
5094         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5095
5096 2005-09-23 Raphael Neider <rneider AT web.de>
5097
5098         * configure.in, configure: have device/lib/pic configured
5099         * device/lib/Makefile.in: added model-pic14
5100         * device/lib/clean.mk: added pic/ to clean rule
5101         * device/lib/pic: added rudimentary pic14 library providing support
5102           functions for multiplication/division/generic pointer access
5103         * src/SDCCopt.c (convilong): mark support functions as extern
5104           for pic14 port as well
5105         * src/pic/gen.c (genMult): added assertions,
5106           (genpic14Code): emit warning on unhandled iCodes
5107         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5108         * src/pic/pcode.c (pCodeOpCopy),
5109         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5110           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5111           SFR_REGISTER}), made safe for future extensions
5112         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5113           instructions even if preceeded by SKIP instructions (also remove
5114           them); removed unused code
5115         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5116           prevents leaving parts of the structure uninitialized after copying
5117
5118 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5119
5120         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5121           ago by me
5122         * support/regression/tests/addsub.c: added test for the bug
5123
5124 2005-09-21 Raphael Neider <rneider AT web.de>
5125
5126         * device/include/pic16/pic18f1220.h,
5127           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5128         * device/lib/pic16/Makefile.rules: added missing opening paren
5129         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5130           are provided in genutils.c,
5131           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5132           operand/result sizes,
5133           (genCmp): assert on NULL pointers first, then check deref'ed values
5134         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5135           result size
5136
5137 2005-09-18 Raphael Neider <rneider AT web.de>
5138
5139         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5140           as these are now unused,
5141           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5142         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5143           local, avoids uninitialized pointer dereference on r->name
5144         * src/pic16/ralloc.c (newReg): fixed indentation
5145
5146 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5147
5148         * src/SDCCval.c (constVal): fixed bug 730366
5149         * support/Util/SDCCerr.c,
5150         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5151
5152 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5153
5154         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5155
5156 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5157
5158         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5159
5160 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5161
5162         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5163           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5164         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5165           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5166         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5167         * packihx/packihx.c (hexDigit): made c unsigned char
5168         * as/mcs51/lklibr.c (fndsym),
5169         * link/z80/lkgb.c (gb),
5170         * link/z80/lklibr.c (fndsym),
5171         * link/z80/lkrloc.c (relr),
5172         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5173         * src/SDCC.lex (checkCurrFile, process_pragma),
5174         * src/SDCCglue.c (spacesToUnderscores),
5175         * src/SDCCmain.c (setParseWithComma, processFile),
5176         * src/asm.c (tvsprintf, printCLine),
5177         * src/avr/gen.c (emitcode, aopPut),
5178         * src/ds390/gen.c (emitcode),
5179         * src/hc08/gen.c (emitcode, emitinline),
5180         * src/mcs51/gen.c (emitcode, genInline),
5181         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5182           tokenizeLineNode),
5183         * src/pic/ralloc.c (debugLog),
5184         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5185           tokenizeLineNode),
5186         * src/pic16/ralloc.c (debugLog),
5187         * src/z80/main.c (_process_pragma):
5188            made all ctype.h function calls safe
5189         * src/SDCCopt.c: include math.h for fabs
5190         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5191           and used them throughout the code to make ctype.h function calls safe
5192         * src/ds390/main.c (asmLineNodeFromLineNode),
5193         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5194         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5195            unsigned char*
5196         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5197           (newpCodeAsmDir): made ctype.h function calls safe
5198         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5199           pic16_emitcode):  made lbp unsigned char*
5200         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5201           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5202         * src/xa51/gen.c (emitcode),
5203         * src/z80/gen.c (_emit2): made lbp unsigned char*
5204         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5205            char*
5206
5207 2005-09-05 Raphael Neider <rneider AT web.de>
5208
5209         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5210           access bank splitpoint
5211
5212 2005-09-05 Raphael Neider <rneider AT web.de>
5213
5214         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5215
5216 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5217
5218         * .version: changed to version 2.5.3
5219         * doc/sdccman.lyx: changed version to 2.5.3,
5220           documented --codeseg and --constseg and pragma codeseg and constseg,
5221           documented bit parameters (reentrant) and bit returning
5222         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5223            currFunc->recvSize, but is this ok for all ports?
5224           (ast2iCode): result of ~ on unsigned char must be cast to int for
5225            bool to work
5226         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5227           function pointers in bit space
5228         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5229           (processFuncArgs): call port.reg_parm() with reentrancy info
5230         * src/port.h,
5231         * src/avr/main.c,
5232         * src/ds390/main.c,
5233         * src/hc08/main.c,
5234         * src/pic/main.c,
5235         * src/pic16/main.c,
5236         * src/xa51/main.c,
5237         * src/z80/main.c: port.reg_parm prototype extended with
5238           "bool reentrant" parameter
5239         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5240           options.stackAuto for allocating bit register parameters
5241         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5242           (genSend): set BitBankUsed if it is,
5243           (selectRegBank): factored out of genCall for use in genPcall,
5244           (genCall): removed redundant dtype assignmen, use selectRegBank,
5245           (genPcall): handle returning in Carry properly, save in F0 if needed,
5246           (genReceive): handle bit register parameters
5247         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5248           (mcs51_assignRegisters): enable bit registers for all reentrant
5249            functions and don't set BitBankUsed unconditionally
5250         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5251         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5252         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5253
5254 2005-08-27 Borut Razem <borut.razem AT siol.net>
5255
5256         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5257         ppc-osx (Darwin) does not support -u option. It seems that it is
5258         supported only on Linux - GNU cp
5259
5260 2005-08-25 Borut Razem <borut.razem AT siol.net>
5261
5262         * sim/ucsim/gui.src/serio.src/Makefile.in,
5263           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5264           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5265           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5266           install and strip, since the strip at /usr/ccs/bin should be used
5267           on solaris
5268
5269 2005-08-24 Borut Razem <borut.razem AT siol.net>
5270
5271         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5272
5273 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5274
5275         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5276         ffffffffu
5277
5278 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5279
5280         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5281         * as/mcs51/lkmain.c (link_main): fixed warning
5282         * device/include/stdbool.h: ds390 has no advanced bit support yet
5283         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5284         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5285         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5286           and updated their macros
5287         * src/SDCCval.c (constVal): updated comment for renamed b_long
5288
5289 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5290
5291         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5292         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5293           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5294           (oprio): set priority for '['
5295         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5296            and adb_24_bit
5297         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5298         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5299         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5300         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5301           added overlayable BIT_BANK area
5302         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5303           (summary2): explain 'T' in legenda
5304         * as/mcs51/lkrloc.c: replaced old K&R style,
5305           (relr): added R_BIT processing,
5306           (errmsg): added "Bit-addressable relocation error",
5307           (adb_bit): added for converting from byte- to bit-addressable space,
5308           (adb_24_bit): added for converting from byte- to bit-addressable space
5309         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5310            used in reentrant functions now even as return value
5311         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5312         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5313           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5314         * src/SDCCglobl.h: added indicator BitBankUsed
5315         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5316            the bit registers b0-b7
5317         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5318           (geniCodeCast): fixed bug 1263853,
5319           (geniCodeLogicAndOr): put result in bool or char,
5320           (geniCodeReceive): added parameter func for accessing the return type,
5321           (geniCodeFunctionBody): pass func to geniCodeReceive
5322         * src/SDCCmain.c: added indicator BitBankUsed
5323         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5324         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5325           (checkSClass): don't put automatic bool/bit on stack,
5326           (checkFunction): removed check on function cannot return bit
5327         * src/SDCCsymt.h: added newBoolLink prototype
5328         * src/mcs51/gen.c (rb1regs): added bit registers,
5329           (movc): created for assigning to carry,
5330           (pushReg, popReg): created for pushing registers,
5331           (sameRegs): check both AOP_REG and AOP_CRY types,
5332           (aopOp): handle bit registers,
5333           (aopPut): optimization no self-assign,
5334           (saveRegisters): push reg->base (bits) only once for bit registers,
5335            and use pushReg,
5336           (unsaveRegisters): pop reg->base only once and use popReg,
5337           (assignResultValue): added parameter func and return in carry for bits,
5338           (genIpush): optimization no reload in A if not changed,
5339           (genSend): bit parameters in reentrant functions are passed in bit
5340            registers by first assigning to bits in B, then save registers and
5341            copy B to bits,
5342           (genCall): handle returning in Carry properly, save it in F0 if needed,
5343           (genPcall): updated assignResultValue call, this is not safe yet for bit
5344            returning function !!!
5345           (genFunction): don't generate equ's for bit registers and use pushReg,
5346           (genEndFunction): take care of bit returning functions and use popReg,
5347           (genRet): return bit in Carry,
5348           (genIfx): optimize bit registers and other directly addressable bits,
5349           (genReceive): updated assignResultValue call
5350         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5351           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5352            registers when using stack-auto
5353         * src/mcs51/ralloc.c (_G): added allBitregs,
5354           (regs8051): added the bit registers,
5355           (createStackSpil): use macro IS_BIT,
5356           (getRegBit): added to allocate a bit register, else spill,
5357           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5358           (updateRegUsage): factored out to ease stepping while debugging,
5359           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5360            also allocate bit registers,
5361           (fillGaps): handle bit registers,
5362           (findAllBitregs): added to create bit vector with all bit registers,
5363           (mcs51_allBitregs): returns this bit vector,
5364           (mcs51_assignRegisters): when using stack-auto use bit registers for
5365            passing parameters and creating local variables
5366         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5367
5368 2005-08-22 Borut Razem <borut.razem AT siol.net>
5369
5370         * device/lib/Makefile.in: replaced find option -or with -o
5371           to make it run on solaris
5372
5373 2005-08-22 Raphael Neider <rneider AT web.de>
5374
5375         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5376           fixes #1265442 (crash on Solaris)
5377
5378 2005-08-20 Borut Razem <borut.razem AT siol.net>
5379
5380         * configure, configure.in: added tests for libsocket and libnsl libraries,
5381           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5382           from support/regression/Makefile.in
5383         * support/regression/Makefile.in: added
5384         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5385         * sim/ucsim/libtool: regenerated on sparc-solaris
5386         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5387           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5388           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5389           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5390           sparc-solaris, which doesn't use GNU ld linker
5391         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5392         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5393
5394 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5395
5396         * src/mcs51/peeph.def: updated comments
5397
5398 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5399
5400         * device/lib/_gptrget.c,
5401         * device/lib/_gptrput.c: slightly shorter
5402         * doc/sdccman.lyx: incremented version
5403         * src/mcs51/peeph.def: moved peephole comments to the line of first
5404           change to better keep line correlation, reanimated 186.e
5405         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5406
5407 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5408
5409         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5410           David Saxton with quotes around file name.
5411
5412 2005-08-15 Borut Razem <borut.razem AT siol.net>
5413
5414         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5415           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5416           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5417           make tests run on x86_64 platform
5418
5419 2005-08-13 Raphael Neider <rneider AT web.de>
5420
5421         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5422           as it might be executed DURING a build (parallel make is wonderful)
5423
5424 2005-08-13 Raphael Neider <rneider AT web.de>
5425
5426         * device/lib/Makefile.in (port-specific-objects-pic16):
5427           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5428         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5429           dependency
5430         * device/lib/pic16/Makefile.rules: build subdirs before creating
5431           the library, removed builddir rule, create $(builddir) early in
5432           recurse rule, use empty recurse rule for leaf directories
5433         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5434           mkdir errors (race condition), removed duplicate suffix "hex"
5435           from clean rules
5436         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5437         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5438           prevents mkdir -p from aborting on Alpha
5439
5440 2005-08-12 Raphael Neider <rneider AT web.de>
5441
5442         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5443           db-statements in order to allow for arrays of pointers in code
5444           sections to be placed without interspersed 0-padding, fixes
5445           bug #1256215
5446         * (emitStatistics): fixed division by zero for pic18f1220
5447         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5448           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5449         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5450         * (pic16_pCodeConstString): keep track of already emitted string
5451           literals to prevent "duplicate definitions of symbol _str_NR"
5452         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5453           debug message
5454         * device/lib/Makefile.in: ignore failing PIC16 library builds
5455         * device/lib/pic16/Makefile: do not build if gputils are missing
5456         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5457
5458 2005-08-10 Raphael Neider <rneider AT web.de>
5459
5460         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5461           my last commit)
5462
5463 2005-08-10 Raphael Neider <rneider AT web.de>
5464
5465         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5466           Rokas' patch to add the new fixed point type "__fixed16x16"
5467         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5468           functions for __fixed16x16 arithmetics
5469         * device/lib/pic16: reimplemented the build system to support
5470           a separate build directory, better handling of libio (create
5471           the library in a separate subdir for each architecture) and
5472           easier configuration (centralized in Makefile.common)
5473
5474 2005-08-07 Raphael Neider <rneider AT web.de>
5475
5476         * src/pic16/gen.c (genrshTwo): fixed sign extension
5477         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5478         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5479           added T0CONbits
5480         * device/include/pic16/pic18f4220.h: NEW, header for
5481           pic18f4220 and pic18f4320
5482         * device/include/pic16/pic18fregs.h: added new devices,
5483           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5484         * device/include/pic16/signal.h: resolved name clashes
5485           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5486           to also allow testing for interrupt enable bits, added
5487           comments on how to use the macros
5488         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5489         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5490           register definitions for the devices
5491         * device/lib/pic16/pics.all: added new devices
5492         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5493           allocated memory
5494         * device/lib/pic16/libc/stdlib/memfree: do not count
5495           the block header as free memory
5496         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5497           simplified and added missing end-of-blocklist-marker
5498           (reported by Peter Onion, fixes #1252814)
5499         * (_mergeHeapBlock): fixed loop condition
5500         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5501           len==0, restructured code
5502         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5503           up a bit, reduced bitfield accesses, prevent endless loops
5504           in case of heap corruption
5505         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5506           "unreferenced arguments/must return a value" warnings
5507         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5508           replaced BAUDREG with SPBRG
5509         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5510           device/lib/pic16/debug/gstack/gstack.c: replaced
5511           _naked, _asm, _endasm with __naked, __asm, __endasm
5512
5513 2005-08-05 Raphael Neider <rneider AT web.de>
5514
5515         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5516           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5517
5518 2005-08-05 Borut Razem <borut.razem AT siol.net>
5519
5520         * device/lib/Makefile.in: added missing ';'
5521         * configure: removed ^M characters
5522
5523 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5524
5525         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5526           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5527           License
5528
5529 2005-08-04 Borut Razem <borut.razem AT siol.net>
5530
5531         * configure.in: pic16 libraries build 2nd try - enable running
5532           configure in device/lib/pic16
5533         * configure: regenerated from configure.in
5534         * device/lib/Makefile.in: create $(PORT)/bin directory
5535
5536 2005-08-03 Raphael Neider <rneider AT web.de>
5537
5538         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5539           to get/set values via pointers
5540         * (genUnpackBits,genPackBits): changed detection of
5541           ptr->bitfield vs. sym.bitfield, fixed access via generic
5542           pointers, removed dead (wrong) code for multibyte bitfields
5543         * (genNearPointerGet, genGenPointerGet): removed useless code,
5544           fixed bitfield detection, fixes #1250594
5545         * (genNearPointerSet): removed useless code
5546         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5547           and introduced macro pic16_emitpcode that conditionally emits
5548           the origin of the following pCode (useful for debugging SDCC)
5549         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5550         * (createDefmap): fixed handling of LFSR for --optimize-df
5551
5552 2005-08-02 Borut Razem <borut.razem AT siol.net>
5553
5554         * device/lib/Makefile.in: pic16 libraries build enabled since
5555           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5556
5557 2005-08-02 Raphael Neider <rneider AT web.de>
5558
5559         * src/pic16/gen.c (genPackBits): removed deprecated warning
5560         * (genGenPointerSet): fixed bitfield detection
5561
5562 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5563
5564         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5565
5566 2005-07-31 Raphael Neider <rneider AT web.de>
5567
5568         * device/lib/pic16/libdev/pic18f458.c,
5569           device/include/pic16/pic18f458.h: added missing T0CONbits
5570
5571 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5572
5573         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5574
5575 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5576
5577         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5578
5579 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5580
5581         * device/include/mcs51/at89c51ed2.h: added.
5582
5583 2005-07-23 Raphael Neider <rneider AT web.de>
5584
5585         * src/pic/gen.h: added emitpcode macro for debugging
5586         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5587           and replace by macro adding debug information on demand
5588         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5589         * (gencjne): tried to fix; replaced with correct (slower) code
5590         * (gen{Unp,P}ackBits): fixed single bit access
5591         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5592         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5593           previous instruction
5594         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5595           register has to be handled with care (forbidding movement
5596           of assignments/uses, removing assignments completely, ...)
5597         * (pCodeOptime2pCodes): make use of regIsSpecial
5598         * added lots of debugging output (commented out)
5599         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5600           from being reused as result UNLESS it is known to work
5601
5602 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5603
5604         * support/Util/dbuf.h: include <stddef.h> for size_t
5605         * .version: changed to version 2.5.2
5606
5607 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5608
5609         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5610
5611 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5612
5613         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5614           (genModOneByte): removed needless psha/pula
5615
5616 2005-07-22 Raphael Neider <rneider AT web.de>
5617
5618         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5619           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5620         * src/pic/gen.c (resolveIfx): do not "invent" labels
5621         * (genSkipc): changed to positive logic
5622         * (genSkipCond): removed as no longer needed
5623         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5624           backport from PIC16
5625         * (genLeftShift): check operands are in different registers
5626         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5627           INCF does not update CARRY...
5628         * src/pic/main.c: fixed _linkCmd
5629         * src/pic/pcode.c (unlinkpCode): added inactive code
5630         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5631           alive (do not assign result and operand overlapping registers)
5632
5633 2005-07-22 Raphael Neider <rneider AT web.de>
5634
5635         * src/pic/device.c (dump_sfr): replaced register declaration with
5636           call to emitSymbolToFile() to avoid duplicate symbols
5637         * (assignRelocatableRegisters): do not declare external symbols
5638         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5639           right (take size of type, not etype)
5640         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5641         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5642         * (packRegsForAccUse): disabled assignment of WREG as
5643           the result reg to prevent occurence of just fixed #1235003,
5644           fixes #1242954
5645         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5646           symbols (avoids duplicate symbols in .asm file)
5647         * (pic14emitRegularMap): use emitSymbolToFile()
5648         * src/pic/gen.c (aopOp): fixed spillLocation handling
5649         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5650         * (genDataPointerSet): removed unneccessary variables/output
5651
5652 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5653
5654         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5655         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5656
5657 2005-07-21 Raphael Neider <rneider AT web.de>
5658
5659         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5660           architecture cannot handle them efficiently, fixes bug #1235003
5661         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5662           check for empty sets before using them (fixes bug #1232190)
5663
5664 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5665
5666         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5667           (lnksect2): generate warnings for memory overlap
5668         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5669           constseg to set the name of these segments so you can instruct the linker
5670           to place them in banks
5671         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5672         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5673           added code_seg and const_seg to options
5674         * src/SDCCglue.c (emitMaps): use options.const_seg,
5675           (createInterruptVect): put interrupt vectors in segment HOME,
5676           (glue): put HOME before static segment and put the main glue in HOME,
5677           (glue): use options.code_seg
5678         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5679         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5680           these segments so you can instruct the linker to place them in banks
5681           (linkEdit): use code_loc for HOME segment which should be the first
5682           segment in code memory now
5683         * src/SDCCmem.c: fixed more stuff like bug 1238386
5684         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5685           (changePointer): don't change function pointers to code pointers for
5686           banked functions,
5687           (compareType): added exceptional check for banked function pointers
5688         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5689         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5690           after static in code memory
5691         * src/mcs51/gen.c: added aopLiteralLong prototype,
5692           (aopForSym): use getSize for functions,
5693           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5694           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5695           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5696           the segment,
5697           (genPcall): use call for literal function pointers and generate banked
5698           calls over the one trampoline so there's only one place for the user to
5699           modify according to his/hers hardware,
5700           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5701           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5702         * src/mcs51/main.c: added keyword banked,
5703           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5704         * support/Util/SDCCerr.c,
5705         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5706           needed for passing the bank and address to the trampoline
5707         * device/lib/mcs51/crtbank.asm: added for bankswitching
5708         * device/lib/mcs51/Makefile: added crtbank
5709
5710 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5711
5712         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5713           for fields at offset 0 of a struct or union as reported
5714           on 2005-07-07 in the developer mailing list.
5715
5716 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5717
5718         * src/SDCCmem.c: fixed bug 1238386
5719
5720 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5721
5722         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5723           (patch #1144962), added peephole 300, enabled 259.x
5724         * doc/sdccman.lyx: removed screenshot and provided link instead
5725
5726 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5727
5728         * doc/sdccman.lyx: added section about debugging with ddd
5729         * doc/figures/ddd_example.eps: screenshot of debugging session
5730
5731 2005-07-04 Raphael Neider <rneider AT web.de>
5732
5733         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5734           like CODE pointers, fixes #1115683
5735         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5736           call, fixes bugs #1232211, #1228110,
5737           fixed wrong casts to pCodeFlow from pCodeInstructions
5738
5739 2005-07-04 Raphael Neider <rneider AT web.de>
5740
5741         * src/pic/gen.c (popGet): changed assert to allow for
5742           bit operands
5743         * (popGetAddr): changed signature to provide
5744           an additional index, patched all call sites
5745         * (genCmpEq): handle literal-like operands correctly
5746         * (genAddrOf): added sanity checks on __code/__data pointers
5747         * (genAssign): added handling of symbols from __code section
5748         * (gencjne): do not generate code for comparisons whose result
5749           is neither stored nor used, fixes bug #1171114
5750         * (AccLsh, AccRsh): operate on operand instead of WREG
5751         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5752           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5753           by known count
5754         * rewrote complete shift-by-literal logic, commented unused
5755           functions out
5756         * (genConstPointerGet): get multiple bytes (if result size > 1),
5757           fixed handling of non-immediate addresses
5758         * (genPointerGet): handle CODE pointers like CONST pointers
5759         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5760         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5761           operand is to be treated as a literal or not
5762         * (mov2w,genPcall,genCmpEq),
5763           src/pic/genarith.c: use aop_isLitLike() to decide between
5764           literal/register contents
5765         * (addSign): added missing offset
5766         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5767           only emit comment in debug-mode,
5768           use {aop,op}_isLitLike throughout the file
5769         * src/pic/glue.c: fix initializers for pointers (work in progress)
5770         * src/pic/pcode.c (get_op): honor index on _const symbols
5771         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5772         * (dumppBlock): added pCode size estimation
5773         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5774           check for IS_SYMOP before OP_SYMBOL'ing
5775         * fixed indentation, compacted switch-statements
5776         * (allocReg): find free register and allocate it instead of
5777           allocating new registers all the time
5778         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5779           registers as its operands (necessary only for multibyte GETs)
5780
5781 2005-07-01 Raphael Neider <rneider AT web.de>
5782
5783         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5784           debugging .asm-output macros FENTRY + FEXIT
5785         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5786           way... I wonder...
5787         * (emitpComment): NEW, printf to pCode
5788         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5789           offset handling
5790         * (popGetAddr): NEW, variant of popGet to access an immediates
5791           high(er) bytes instead of the n'th byte of memory they reference,
5792           replaced popGet with popGetAddr where neccessary
5793         * (genDataPointerGet): reactivated and fixed implementation
5794         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5795           accesses
5796         * (genDataPointerSet): fixed multibyte assignments
5797         * (genpic14Code): fixed --i-code-in-asm handling
5798         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5799         * (genPlus): fixed index-out-of-bounds error
5800         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5801         * src/pic/ralloc.c: added debugging output macro FENTRY2
5802         * (spillThis): fixed indentation, enbraced for-body for clarity
5803         * (rematStr): commented out as now unused
5804         * (regTypeNum): commented out special spill case (overwrites
5805           arbitrary values)
5806         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5807
5808 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5809
5810         * doc/sdccman.lyx: documented sfr16/sfr32,
5811           added example for using storage class with function pointers
5812         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5813
5814 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5815
5816         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5817         * device/lib/_itoa.c,
5818         * device/lib/_ltoa.c: optimized codesize
5819         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5820           but don't know how to suppress the double warning.
5821         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5822         * support/Util/SDCCerr.c,
5823         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5824
5825 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5826
5827         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5828           fixed old K&R prototypes
5829         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5830         * device/lib/_gptrget.c,
5831         * device/lib/_gptrgetc.c,
5832         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5833           also new versions for small generic pointers and banked generic pointers
5834         * src/port.h: added const_name
5835         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5836         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5837         * src/SDCCcse.c (findPrevIc): check all associative operators
5838         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5839         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5840         * src/SDCCmem.c: updated comments,
5841           set far-space to 0 for pdata, results in optimized code
5842         * src/SDCCmem.h: added macro CONST_NAME
5843         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5844           moving the info into the highest bits, see also gptrget/gptrput
5845         * src/src.dsp: added sdcc.ico to project files
5846         * src/avr/gen.c (genCast): fixed bug 0x%d
5847         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5848         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5849           relation between ptr_type and DCL_TYPE,
5850           (genCast): fixed bug 0x%d
5851         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5852           (CODE)" for const_name
5853         * src/hc08/gen.c (genCast): fixed bug 0x%d
5854         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5855           (hc08_port): added "CONST (CODE)" for const_name
5856         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5857           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5858           between ptr_type and DCL_TYPE,
5859           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5860           operand* and took AOP() inside function so sfr-ness can be checked,
5861           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5862           new prototype,
5863           (genFunction, genEndFunction): optimized stack setup,
5864           (genMinus): optimized for literals with ending zeroes (in bytes),
5865           (genCast): fixed bug 0x%d
5866         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5867           (mcs51_port): added "CONST (CODE)" for const_name
5868         * src/mcs51/peeph.def: made rule 226 more generic
5869         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5870         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5871         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5872         * src/z80/main.c (z80_port): added NULL for const_name,
5873           (gbz80_port): added NULL for const_name
5874         * support/regression/tests/bug663539.c,
5875         * support/regression/tests/sfr16.c: new tests
5876
5877 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5878
5879         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5880
5881 2005-06-24 Raphael Neider <rneider AT web.de>
5882
5883         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5884           corrected typos...
5885         * device/include/pic16/signal.h: added USBIF
5886           and SIG_USB
5887
5888 2005-06-24 Raphael Neider <rneider AT web.de>
5889
5890         * device/lib/pic16/libdev/pic18f2455.c,
5891           device/include/pic16/pic18f2455.h: NEW
5892         * device/include/pic16/pic18fregs.h,
5893           device/lib/pic16/pics.all,
5894           src/pic16/device.c: added 18f2455
5895         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5896           device/include/pic16/{pic18f[68][567].h,usart.h}:
5897           replaced MULTIPLE_USARTS define with more relaible
5898           compatibility sfrs (for USART access)
5899
5900 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5901
5902         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5903           and the output asm file line is printed on two lines.
5904
5905 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5906
5907         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5908           BGT, BLE, BHI, and BLS instructions
5909         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5910           genCmpEq): removed
5911         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5912           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5913           fixes bug #1216342
5914         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5915
5916 2005-06-15 Raphael Neider <rneider AT web.de>
5917
5918         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5919         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5920         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5921           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5922           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5923
5924 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5925
5926         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5927           Marcel Telka in bug #1215704
5928
5929 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5930
5931         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5932           located in shared memory bank.
5933
5934 2005-05-31 Raphael Neider <rneider AT web.de>
5935
5936         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5937           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5938           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5939
5940 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5941
5942         * device/lib/_strncpy.c: fixed the fix
5943
5944 2005-05-26 Raphael Neider <rneider AT web.de>
5945
5946         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5947           initializers with \0, bug #1208187
5948         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5949           intializers with \0, bug #1208187
5950
5951 2005-05-26 Raphael Neider <rneider AT web.de>
5952
5953         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5954           initializers with \0, bug #1208187
5955         * src/pic16/main.c (_process_pragma): added sanity checks
5956           for stack position and size, emit warnings when appropriate
5957
5958 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5959
5960         * device/lib/_strncpy.c: fixed not filling with \0
5961
5962 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5963
5964         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5965           createFunction),
5966         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5967           compound_statement),
5968         * src/SDCCsymt.h,
5969         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5970
5971 2005-05-24 Raphael Neider <rneider AT web.de>
5972
5973         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5974
5975 2005-05-24 Raphael Neider <rneider AT web.de>
5976
5977         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5978           TRISE definitions, closes bug #1162453
5979
5980 2005-05-22 Raphael Neider <rneider AT web.de>
5981
5982         * src/pic16/main.c (_process_pragma): check for missing
5983           arguments to pragmas code and udata
5984         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5985           consistency fixes to match other headers (thanks to Jim Paris)
5986         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5987
5988 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5989
5990         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5991
5992 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5993
5994         * support/regression/tests/bug1198642.c: new test
5995         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5996         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5997         * support/scripts/resource.h,
5998         * support/scripts/resource.rc,
5999         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6000         * support/scripts/sdcc.ico: added 32x32 icon
6001
6002 2005-05-18 Raphael Neider <rneider AT web.de>
6003
6004         * device/lib/pic16/libdev/pic18f*.c,
6005         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6006           keywords to "__sfr" and "__at (X)"
6007         * device/include/pic16/pic18fregs.h: added pic18f4520
6008         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6009           #1203088 (MPLAB compatibility)
6010
6011 2005-05-17 Raphael Neider <rneider AT web.de>
6012
6013         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6014         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6015         * device/lib/pic16/pics.all: added new devices
6016         * src/pic16/device.c: added support for pic18f4520
6017
6018 2005-05-16 Raphael Neider <rneider AT web.de>
6019         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6020         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6021         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6022           convenience function for bit access
6023
6024 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6025
6026         * device/lib/printf_large.c: fixed bug 1193299
6027         * support/regression/tests/bug1057979.c: added test %3.3s
6028
6029 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6030
6031         * device/include/mcs51/8051.h,
6032         * device/include/mcs51/8052.h: made parseable with lint
6033         * device/include/mcs51/lint.h: added include file for (sp)lint
6034         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6035         * doc/cdbfileformat.lyx,
6036         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6037
6038 2005-05-14 Raphael Neider <rneider AT web.de>
6039
6040         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6041         * device/lib/pic16/libc/stdlib/itoa.c (new)
6042         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6043         * device/lib/pic16/libio/Makefile: exclude subdir according to
6044           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6045         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6046         * src/pic16/gen.c (genFunction): prevent annoying warning
6047         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6048           nameclashes on BeOS
6049         * support/cpp2/cppmain.c (cpp_output_string): new
6050         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6051           fixes bug 1116802
6052
6053 2005-05-13 Borut Razem <borut.razem AT siol.net>
6054
6055         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6056
6057 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6058
6059         * .version: changed to version 2.5.1; back to bleeding edge development
6060
6061 2005-05-11 Borut Razem <borut.razem AT siol.net>
6062
6063         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6064           generate PDF version 1.3 documents
6065
6066 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6067
6068         * .version: changed to version 2.5.0
6069
6070 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6071
6072         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6073
6074 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6075
6076         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6077         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6078         well as many smaller updates.
6079         * .version: changed to version 2.5.0-pre1
6080
6081 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6082
6083         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6084
6085 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6086
6087         * support/regression/tests/bug1185672.c: added
6088         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6089           bug 1185672
6090         * src/mcs51/gen.c (genCall): added comments, made it look safer
6091         * src/mcs51/gen.c (genEndFunction): simplified
6092
6093 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6094
6095         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6096
6097 2005-04-14 Borut Razem <borut.razem AT siol.net>
6098
6099         * fixed bug 1045046 - SIGSEGV with really simple code?:
6100           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6101           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6102
6103 2005-04-14 Borut Razem <borut.razem AT siol.net>
6104
6105         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6106           src/pic16/device.h: temporarily disabled experimental #inline pragma
6107           for 2.5.0 release
6108
6109 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6110
6111         * device/include/z80/stdio.h,
6112         * device/include/z80/string.h: removed these highly incomplete files so
6113           SDCC can use the default ones in device/include/
6114
6115 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6116
6117         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6118         gcc warning.
6119         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6120         fix sdcpp warnings.
6121
6122 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6123
6124         * device/include/malloc.h: removed redundant __reentrant prototypes
6125         * device/lib/_mullong.c: added working xstack variant in asm (C version
6126           doesn't pass regression tests)
6127         * device/lib/bpx.c: used __data and made bpx char for mcs51
6128         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6129           (createFunction): fixed bug with xstackPtr
6130         * src/SDCCcse.c: corrected comments
6131         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6132           (killDeadCode, eBBlockFromiCode): removed unused code
6133         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6134           corrected comments
6135         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6136           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6137           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6138           (genModOneByte): fixed warning in MSVC
6139         * src/mcs51/main.c (): added comments
6140         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6141
6142 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6143
6144         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6145
6146 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6147
6148         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6149
6150 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6151
6152         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6153         characters arrays of larger size than the declared one.
6154
6155 2005-04-10 Borut Razem <borut.razem AT siol.net>
6156
6157         * src/pic/gen.c (genInline),
6158           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6159           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6160           (findNextInstruction), (findPrevInstruction),
6161           (findInstructionUsingLabel),
6162           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6163         * src/pic/pcode.c (findLabel): added missing '\n'
6164         * src/src.dsp: added SDCCdwarf2.c to the project
6165
6166 2005-04-09 Borut Razem <borut.razem AT siol.net>
6167
6168         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6169
6170 2005-04-08 Raphael Neider <rneider AT web.de>
6171
6172         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6173           into the chain after a given one) and mergeDefmapSymbols (combine
6174           defmap entries for each symbol per pcode)
6175         * (createDefmap): have defmap entries merged in the end
6176         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6177           a symbol before replacing one access type's symbol, merge symbols in
6178           the end (replacement symbol might already have an entry)
6179         * (assignValnums): keep reference to written WREG intact
6180
6181 2005-04-08 Raphael Neider <rneider AT web.de>
6182
6183         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6184           Alpha)
6185
6186 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6187
6188         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6189         bytes
6190
6191 2005-04-07 Raphael Neider <rneider AT web.de>
6192
6193         * device/include/pic16/usart.h: added compatibility defines for
6194           devices with more than one USART
6195         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6196
6197 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6198
6199         * device/lib/Makefile.in: updated for port specific include
6200
6201 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6202
6203         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6204
6205 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6206
6207         * device/include/8051.h,
6208         * device/include/8052.h,
6209         * device/include/at89S8252.h,
6210         * device/include/at89c55.h,
6211         * device/include/at89x051.h,
6212         * device/include/at89x51.h,
6213         * device/include/at89x52.h,
6214         * device/include/mcs51reg.h,
6215         * device/include/reg51.h,
6216         * device/include/reg764.h,
6217         * device/include/regc515c.h,
6218         * device/include/sab80515.h: (re)moved these 12 files
6219         * device/include/mcs51/8051.h,
6220         * device/include/mcs51/8052.h,
6221         * device/include/mcs51/at89S8252.h,
6222         * device/include/mcs51/at89c55.h,
6223         * device/include/mcs51/at89x051.h,
6224         * device/include/mcs51/at89x51.h,
6225         * device/include/mcs51/at89x52.h,
6226         * device/include/mcs51/mcs51reg.h,
6227         * device/include/mcs51/reg51.h,
6228         * device/include/mcs51/reg764.h,
6229         * device/include/mcs51/regc515c.h,
6230         * device/include/mcs51/sab80515.h: and added them here
6231
6232 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6233
6234         * device/include/stdarg.h: changed SDCC specific keywords to double
6235           underlined form.
6236         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6237           mcs51 and ds390.
6238         * device/include/hc08/mc68hc908gp32.h,
6239         * device/include/hc08/mc68hc908jb8.h,
6240         * device/include/hc08/mc68hc908jkjl.h,
6241         * device/include/hc08/mc68hc908qy.h: fixed comments
6242         * device/include/mcs51/README: updated
6243         * device/include/mcs51/c8051f120.h: added PINRSF
6244         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6245         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6246           amidst code. Also inline is not supported.
6247
6248 2005-04-06 Raphael Neider <rneider AT web.de>
6249
6250         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6251         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6252           callers stack/frame pointers
6253
6254 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6255
6256         * device/include/pic16/usart.h: added, missing in previous commit,
6257         * device/include/pic16/adc.h: fixed typo,
6258         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6259         commit,
6260         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6261         <p18fxxx.inc>
6262         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6263         uninitialized because a bug appears with gplink
6264         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6265         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6266         complains for unrecognised option
6267
6268 2005-04-05 Raphael Neider <rneider AT web.de>
6269
6270         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6271           structs as well (using memcpy)
6272         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6273           on ISRs (GOTO has no label)
6274         * src/pic16/device.h: added OF_OPTIMIZE_DF
6275         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6276           new data flow analysis/optimization
6277         * src/pic16/pcode.c: added (prototypes for and implementation of)
6278           dataflow analysis functions, fixed pCodeInstructions' inCond and
6279           outCond values, made RCALL a branch instruction
6280         * (pic16_unlinkpCode): keep C line if possible
6281         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6282           C line moved if possible
6283         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6284         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6285           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6286         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6287           new flow)
6288         * (pic16_getJumptabpCode): NEW, needed in...
6289         * (LinkFlow): fixed handling of jumptables, calls and conditional
6290           branches
6291         * (pic16_InsertCommentAfter): NEW
6292         * (pic16_pCodeReplace): made verbose and flow preserving
6293         * (AnalyzeFlow): added call to data flow analysis
6294         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6295         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6296         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6297
6298 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6299
6300         * src/SDCCast.c (decorateType): fixed bug #1105626
6301
6302 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6303
6304         * device/include/asm/pic16/features.h,
6305         * pic18f*.h headers,
6306         * device/include/pic16/adc.h,
6307         * device/include/pic16/delay.h,
6308         * device/include/pic16/i2c.h,
6309         * device/include/pic16/malloc.h,
6310         * device/include/pic16/stdio.h,
6311         * device/include/pic16/stdlib.h,
6312         * device/include/pic16/string.h,
6313         * device/lib/pic16/libc/stdio/printf_tiny.c,
6314         * device/lib/pic16/libc/stdio/printf_small.c,
6315         * device/lib/pic16/libc/stdio/strmgpsim.c,
6316         * device/lib/pic16/libc/stdio/strmmssp.c,
6317         * device/lib/pic16/libc/stdio/strmusart.c,
6318         * device/lib/pic16/libc/stdio/vfprintf.c,
6319         * device/lib/pic16/libc/stdlib/ltoa.c,
6320         * device/lib/pic16/libc/stdlib/putchar.c,
6321         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6322         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6323         * device/lib/pic16/libc/stdlib/memchrram.c,
6324         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6325         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6326         * device/lib/pic16/libio/adc/adcbusy.c,
6327         * device/lib/pic16/libio/adc/adcread.c,
6328         * device/lib/pic16/libio/adc/adcsetch.c,
6329         * device/lib/pic16/libio/usart/ubaud.c,
6330         * device/lib/pic16/libio/usart/ubusy.c,
6331         * device/lib/pic16/libio/usart/udrdy.c,
6332         * device/lib/pic16/libio/usart/uopen.c,
6333         * device/lib/pic16/libio/usart/uputc.c,
6334         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6335         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6336         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6337         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6338         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6339         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6340         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6341         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6342         specific keywords to double underlined form,
6343         * device/lib/pic16/libc/Makefile.rules,
6344         * device/lib/pic16/libsdcc/Makefile.rules,
6345         * device/lib/pic16/libm/Makefile,
6346         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6347         to compile with C standard set in Makefile.common
6348         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6349         rand.c and crc.c in compilation process,
6350         * device/lib/pic16/libsdcc/int/divuint.c,
6351         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6352         `c' from signed to unsigned,
6353         * device/lib/pic16/startup/crt0.c,
6354         * device/lib/pic16/startup/crt0i.c,
6355         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6356         keywords to double underlined form, bug fixes in _do_cinit function
6357         which prevented the correct initialization of the .idata segment,
6358         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6359         core to enter a infinite loop
6360         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6361
6362 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6363
6364         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6365
6366 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6367
6368         * device/include/Makefile.in: add support for hc08 subdirectory
6369         * device/include/hc08/: new subdirectory
6370         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6371         Lucas Loizaga, thanks!
6372         * device/include/hc08/mc68hc908qy.h,
6373         * device/include/hc08/mc68hc908gp32.h,
6374         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6375         their own directory. Changed internal macro names to use the compiler
6376         reserved namespace. Changed SDCC specific keywords to double
6377         underlined form.
6378         * device/include/math.h,
6379         * device/include/malloc.h,
6380         * device/include/stdarg.h,
6381         * device/include/stdbool.h
6382         * device/include/string.h,
6383         * device/include/tinibios.h,
6384         * device/include/ds400rom.h,
6385         * device/include/8051.h,
6386         * device/include/8052.h,
6387         * device/include/80c51xa.h,
6388         * device/include/at89c55.h,
6389         * device/include/at89S8252.h,
6390         * device/include/at89x51.h,
6391         * device/include/at89x52.h,
6392         * device/include/ds80c390.h,
6393         * device/include/reg764.h,
6394         * device/include/regc515c.h,
6395         * device/include/sab80515.h,
6396         * device/include/mcs51/c8051f000.h,
6397         * device/include/mcs51/c8051f018.h,
6398         * device/include/mcs51/c8051f020.h,
6399         * device/include/mcs51/c8051f040.h,
6400         * device/include/mcs51/c8051f060.h,
6401         * device/include/mcs51/c8051f120.h,
6402         * device/include/mcs51/c8051f300.h,
6403         * device/include/mcs51/c8051f310.h,
6404         * device/include/mcs51/c8051f320.h,
6405         * device/include/mcs51/c8051f330.h,
6406         * device/include/mcs51/c8051f350.h,
6407         * device/include/z180.h: Changed SDCC specific keywords to double
6408         underlined form.
6409
6410 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6411
6412         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6413         18F4455,
6414         * (pic16_assignConfigWordValue): disable testing of configuration
6415         register value with config mask,
6416         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6417         function with port->fun_prefix,
6418         * (genFunction): when generating a naked interrupt function never
6419         create an absolute segment placed in interrupt vector address, place
6420         the actual interrupt function at IVA instead, when an interrupt
6421         function is generated with unspecified interrupt then do not create
6422         the absolute section,
6423         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6424         code for generating a call to generic pointer get/put function with
6425         a call to function pic16_callGenericPointer(),
6426         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6427         the call to the generic pointer get/put functions with prefixing the
6428         function name with port->fun_prefix,
6429         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6430         * src/pic16/main.c (_process_pragma): prefix function with
6431         port->fun_prefix,
6432         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6433         calling assembler, old 18Fxxxx macro is deprecated,
6434         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6435         PC_ASMDIR in while condition,
6436         * (findInstruction): add PC_ASMDIR in while condition,
6437         * (buildCallTree): prefix main with port->fun_prefix,
6438         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6439         identifier for variable with banked access in instructions BTFSS,
6440         BTFSC, BCF, BSF, BTG
6441         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6442         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6443         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6444         perform optimization when enviroment variable NO_REG_OPT is set,
6445         * (insideLRBlock): NEW, return 1 if register is inside an
6446         INF_LOCALREGS block,
6447         * (RemoveRegFromLRBlock): remove a register that is completely
6448         eliminated by register optimization, but it is still left in local
6449         register store/restore in/from stack block,
6450         * (Remove2pcodes): after removing register, check to see if it
6451         should be removed from local register store/restore in/from stack
6452         block,
6453         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6454         DUMMY_READ_VOLATILE,
6455
6456         * device/include/pic16/adc.h: minor prototype modifications and
6457         update,
6458         * device/include/pic16/malloc.h: added GPL notice various
6459         modifications,
6460         * device/include/pic16/stdint.h: NEW, standard header for ints
6461         * device/include/pic16/delay.h: NEW, header for delay functions,
6462         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6463         delay1mtcy,
6464         * device/include/pic16/signal.h: NEW, header providing helper macros
6465         for implementing signal handlers,
6466         * device/include/pic16/stdio.h: added prototypes for functions,
6467         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6468         prototypes for stdin and stdout, added macro PUTCHAR to
6469         automatically implement putchar function prototype,
6470         * device/include/pic16/usart.h: modified and updated USART library,
6471         * device/lib/pic16/libio/adc/,
6472         * device/lib/pic16/libio/i2c: some modifications to improve library
6473         performance,
6474         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6475         family of functions,
6476         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6477         family of functions and other sources,
6478         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6479         of the PIC18Fxx[28] devices,
6480         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6481         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6482         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6483         _do_cinit function, because the previous failed when local variables
6484         where not placed in the same memory bank,
6485         * device/lib/pic16/libsdcc/char/: various modifications to improve
6486         library performance,
6487         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6488         information on the new functions of the c library and more...
6489
6490 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6491
6492         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6493
6494 2005-03-26 Raphael Neider <rneider AT web.de>
6495
6496         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6497           if condition == CARRY)
6498         * (genCmp): adapted to new genSkipc semantics
6499         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6500           on rIfx (genCmp was broken)
6501
6502 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6503
6504         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6505         * src/z80/main.c (_keywords[]),
6506         * src/SDCCglobal.h (struct options),
6507         * src/SDCC.y,
6508         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6509         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6510         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6511         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6512         always available in leading double underscore form. The C99 support is
6513         mostly missing, but it's a start.
6514         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6515         reserved identifier "__data".
6516
6517 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6518
6519         * src/mcs51/peeph.def: fixed bug 1170013
6520
6521 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6522
6523         * device/include/mcs51reg.h: fixed bug 842007
6524
6525 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6526
6527         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6528         last time.
6529
6530 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6531
6532         * src/port.h (struct PORT),
6533         * src/avr/ralloc.c (avr_assignRegisters),
6534         * src/avr/main.c,
6535         * src/ds390/ralloc.c (ds390_assignRegisters),
6536         * src/ds390/main.c,
6537         * src/hc08/ralloc.c (hc08_assignRegisters),
6538         * src/hc08/main.c,
6539         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6540         * src/mcs51/main.c,
6541         * src/pic/ralloc.c (pic14_assignRegisters),
6542         * src/pic/main.c,
6543         * src/pic16/ralloc.c (pic16_assignRegisters),
6544         * src/pic16/main.c,
6545         * src/xa51/ralloc.c (xa51_assignRegisters),
6546         * src/xa51/main.c,
6547         * src/z80/ralloc.c (z80_assignRegisters),
6548         * src/z80/ralloc.h,
6549         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6550         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6551         * src/SDCCcse.h,
6552         * src/SDCCdflow.c (computeDataFlow),
6553         * src/SDCCdflow.h,
6554         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6555         * src/SDCCloop.h,
6556         * src/SDCCcflow.c (*),
6557         * src/SDCCcflow.h,
6558         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6559         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6560         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6561         immedDom() returning wrong block; probably fixes bug #1160833)
6562
6563 2005-03-20 Borut Razem <borut.razem AT siol.net>
6564
6565         * support/scripts/inc2h.pl: WIN32 port
6566
6567 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6568
6569         * device/lib/makefile.in: added abs.c and labs.c
6570
6571 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6572
6573         * device/include/stdint.h: added
6574         * device/lib/abs.c: added
6575         * device/lib/labs.c: added
6576         * device/include/stdlib.h: added abs() and labs() prototypes
6577         * device/lib/libsdcc.lib: added abs and labs
6578         * device/include/float.h,
6579         * device/lib/_fsmul.c,
6580         * device/lib/printf_fast.c,
6581         * device/lib/printf_tiny.c: updated comments
6582
6583 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6584
6585         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6586         bug #1164313
6587
6588 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6589
6590         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6591         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6592
6593 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6594
6595         * device/lib/printf_large.c: removed inline assembly for portability and
6596           readability. Use printf_fast if speed or size are more important.
6597         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6598         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6599
6600 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6601
6602         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6603         prevent compiler warning
6604
6605 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6606
6607         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6608         moved to level 0 and declared as static. Also they are explicit
6609         placed in access bank. This was necessery because some times they
6610         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6611         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6612         optimizations. Currently only compare to unsigned char is implemented,
6613         * src/pic16/gen.c: added fReturnIdx array,
6614         * (struct resolvedIfx) is moved to gen.h and made public,
6615         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6616         * (aopForSym): added an optimization to directly store in stack of
6617         the operand of a SEND iCode,
6618         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6619         but as registers instead (AOP_REG) using the fReturnIdx array,
6620         * (pic16_freeAsmop): remove the freed register from the
6621         _G.sregsAlloc field,
6622         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6623         a compare of 'WREG',
6624         * (pic16_popGetTempRegCond): changed function prototype, now
6625         function takes also a bitVector argument v which holds the current
6626         set of registers that are allocated for stack access by aopForSym,
6627         registers allocated in aopForSym for accessing stack symbols are not
6628         any more part of the functions usedRegs field,
6629         * (genCall): some times aopOp is called for a stack variable to be
6630         send, aopForSym might perform the push, if this is true make sure
6631         that genCall doesn't push the variable twice by testing _G.resDirect,
6632         * (genFunction): changed testing for unspecified interrupt number
6633         from 256 to INTNO_UNSPEC,
6634         * modified selection scheme of frame pointer generation. Previously
6635         if function did use local registers a frame pointer was generated,
6636         now a frame pointer is generated only if function has arguments
6637         (that need PLUSW2 register access), or has stack arguments, or the
6638         compiler is not instructed to omit the frame pointer,
6639         * (genEndFunction): before restoring local registers that were saved
6640         in the function preamble, also restore the registers that *might*
6641         have been allocated for stack access,
6642         * (genRet): removed some old comments,
6643         * (genCmp, the active (RN's) version): added a call to the
6644         pic16_genCmp_special function to perform the compare with a more
6645         robust and optimized way,
6646         * (genInline): a feature has been added in inline code generation,
6647         which allows a wildcard variable substitution when writing inline
6648         assembly. Code is incomplete and experimental therefore undocumented,
6649         * (genCast): changed order of aopOp for result and right to allow
6650         aopForSym to directly load the result if possible,
6651         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6652         perform an optimized compare on some selected special occasions,
6653         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6654         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6655         generate an IVT any more,
6656         * src/pic16/main.c (pic16_optionsTable): added command line option
6657         --optimize-cmp,
6658         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6659         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6660         macros,
6661         * src/pic16/NOTES: Raphael Neider added in list of active developers
6662         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6663         jumptable_end to prevent bug #,
6664         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6665         inCond and outCond fields,
6666         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6667         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6668         turn off register spilling,
6669         * (packRegsForOneUse): synced with other ports' versions although it
6670         is not used currently,
6671         * (pic16_packRegisters): added an optimization while reading
6672         structure bitfields, some registers may be saved (malloc code is
6673         decreased by 80 bytes)
6674
6675 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6676
6677         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6678         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6679         this can be optimized more?
6680
6681 2005-03-10 Raphael Neider <rneider AT web.de>
6682
6683         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6684           genNearPointerGet): (hopefully) fixed access to bitfields via
6685           pointers (p->bitN = x; and x = p->bitN; failed)
6686
6687 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6688
6689         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6690
6691 2005-03-09 Raphael Neider <rneider AT web.de>
6692
6693         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6694
6695 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6696
6697         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6698         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6699           (regTypeNum): set REG_BIT type if necessary
6700         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6701         * support/regression/tests/critical.c: check bug 1144613
6702
6703 2005-03-02 Raphael Neider <rneider AT web.de>
6704
6705         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6706
6707 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6708
6709         * src/avr/ralloc.c (serialRegAssign),
6710         * src/ds390/ralloc.c (serialRegAssign),
6711         * src/hc08/ralloc.c (serialRegAssign),
6712         * src/mcs51/ralloc.c (serialRegAssign),
6713         * src/pic/ralloc.c (serialRegAssign),
6714         * src/pic16/ralloc.c (serialRegAssign),
6715         * src/xa51/ralloc.c (serialRegAssign),
6716         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6717
6718 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6719
6720         * src/SDCCast.c (decorateType): fixed bug 1124787
6721
6722 2005-02-20 Hubert Sack <sack AT digiplan.de>
6723         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6724
6725         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6726         patch #1121755
6727
6728 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6729
6730         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6731         to keep the correct label reference count when adding/removing references
6732         to labels. A peephole file using this is appended to patch #1144962.
6733
6734 2005-02-14 Raphael Neider <rneider AT web.de>
6735
6736         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6737         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6738         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6739           retrievals of result operand's value on assignment
6740
6741 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6742
6743         * device/include/pic16/string.h: modified prototype for memccpy()
6744         to memccpy(void *, void *, char, size_t)
6745         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6746         check whether to omit frame pointer or not,
6747         * (genInline): convert all occurences of "\n" to LF in inline
6748         assembler blocks, this helps formatting the inline text,
6749         * (pic16_loadFSR0): modified prototype,
6750         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6751         removed some 8051 legacy code,
6752         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6753         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6754         before allocating temporary registers in functions,
6755
6756 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6757
6758         * support/regression/tests/bitvars.c: corrected the "fix"
6759
6760 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6761
6762         * support/regression/tests/bitvars.c,
6763         * support/regression/tests/bitwise.c,
6764         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6765
6766 2005-02-10 Raphael Neider <rneider AT web.de>
6767
6768         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6769           different size for Alpha
6770         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6771
6772 2005-02-09 Raphael Neider <rneider AT web.de>
6773
6774         * src/SDCC.lex(doPragma) : save and restore warning options as well
6775           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6776         * have #pragma less_pedantic set the errorlevel to WARNING
6777           (fixes #1117001)
6778         * (cloneOptimize) : fixed wrong malloc's size
6779         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6780           facilitate correct handling of #pragma (save|restore)
6781
6782 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6783
6784         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6785
6786 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6787
6788         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6789
6790 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6791
6792         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6793
6794 2005-02-02 Raphael Neider <rneider AT web.de>
6795
6796         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6797         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6798         * (pic16_storeForReturn): fixed to allow returning function pointers
6799         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6800         * device/include/pic16/{stddef.h,stdbool.h}: added
6801
6802 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6803
6804         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6805
6806 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6807
6808         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6809         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6810          appeared to be required
6811
6812 2005-01-31 Borut Razem <borut.razem AT siol.net>
6813
6814         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6815           include/mcs51 and include/z80 directories to the package
6816
6817 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6818
6819         * src/hc08/gen.c (genFunction): fixed bug #1112752
6820
6821 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6822
6823         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6824
6825 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6826
6827         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6828
6829 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6830
6831         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6832
6833 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6834
6835         * device/include/c8051fxxx.h: removed these 6 files
6836         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6837
6838 2005-01-26 Raphael Neider <rneider AT web.de>
6839
6840         * src/pic16/gen.c (genAssign): fixed assignment from longs
6841           in codespace (were cut to three bytes)
6842         * (genDummyRead): implemented (except for CODESPACE...),
6843           fixed bug #1108575
6844         * src/pic16/glue.c (emitStatistics): beautified
6845         * device/lib/pic16/libm/Makefile: added include path
6846
6847 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6848
6849         * src/z80/gen.c (aopPut): fixed bug #1103902
6850
6851 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6852
6853         * device/lib/expf.c: fixed bug #1095792
6854
6855 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6856
6857         * device/lib/pic16/libm: added Math library sources
6858
6859 2005-01-24 Raphael Neider <rneider AT web.de>
6860
6861         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6862           to enable upcast to pCodeOpReg2 (there is no type tag to
6863           differenciate the two and pic16_popGet2p cast into PCOR2)
6864         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6865           (sizeof(sectNames) changed to sizeof(sectName))
6866           Both patches fix segfaults under MinGW.
6867
6868 2005-01-23 Raphael Neider <rneider AT web.de>
6869
6870         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6871           Safe_[mc]?alloc()'ed variables
6872         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6873           of (byte sized) temporaries (assign them to WREG for now)
6874         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6875           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6876           this might fix SIGSEGVs on MinGW...
6877         * src/SDCCopt.c (killDeadCode): restored original behaviour
6878           (volatile operands might get thrown away though)
6879
6880 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6881
6882         * src/pic16/gen.c: fixed bug #1106975,
6883         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6884         pointer update, INTCON is saved, global interrupts are disabled and
6885         restored after updateing TOS.
6886         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6887         * added function attribute 'shadowregs' to take advantage of shadow
6888         registers,
6889         * added function attribute 'wparam' as an alternative to the wparam
6890         pragma,
6891         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6892         user declares a non-ISR function as 'shadowregs',
6893         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6894
6895 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6896
6897         * .version: bumped version number to 2.4.8
6898         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6899         pic16 port,
6900         * device/lib/pic16/libio/i2c/: I2C module support library,
6901         * device/include/pic16/i2c.h: I2C support library header,
6902         * device/lib/pic16/libc/stdio/: standard IO support sources,
6903         * (printf_small.c): printf_small() source, supports float print,
6904         * (printf_tiny.c): printf_tiny() source, does not support floats,
6905         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6906         enable global optimizations for entire library source, other
6907         Makefiles in the source tree are also modified to reflect this,
6908         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6909         function,
6910         * doc/sdccman.lyx: updated to reflect new changes,
6911         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6912         sym->onStack if-case,
6913         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6914         sbit, idata, _idata, xdata, _xdata,
6915         * added pragma library, to link an external library, (see doc),
6916         * removed command line options, --pomit-config-words, --pomit-ivt,
6917         --pleave-reset-vector,
6918         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6919         when calling assembler to reflect memory model used, also define
6920         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6921         reflect stack model used,
6922         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6923         on stack return NULL,
6924
6925 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6926
6927         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6928           of the operands is volatile. Fixes #1020220
6929
6930 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6931
6932         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6933         * (OptimizeRegUsage): make sure that there is really no other flow where
6934           the first pCode is used
6935
6936 2005-01-22 Raphael Neider <rneider AT web.de>
6937
6938         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6939           to fix #1106967 (pCode->seq are not set up correctly)
6940
6941 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6942
6943         * src/SDCCglue.c (glue): make sure code area is declared before the
6944         static initialization area.
6945
6946 2005-01-21 Raphael Neider <rneider AT web.de>
6947
6948         * device/lib/Makefile.in: fixed test for pic16 install dir
6949         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6950           optimizations
6951         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6952           added --optimize-goto compiler switch and pragma wparam documentation
6953         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6954         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6955           and PRODH closing bug #1071770 (peephole optimizer)
6956
6957 2005-01-19 Raphael Neider <rneider AT web.de>
6958
6959         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6960           cmdLine buffers (used when calling sdcpp...) are large enough
6961           (MAX_PATH=256 truncates arguments leading to system halts when
6962           used in MinGW...)
6963         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6964         * (genUminus): rewritten to for efficiency
6965         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6966           used uninitialized in some cases)
6967         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6968           copy the third byte from the int -- now assumes 0x80 (data memory)
6969         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6970           operands (genAddLit expects the iCode's operands to swapped as
6971           well), fixed leftover bytes (crashed for short left operands)
6972         * (pic16_genMinusDec): performance improvements, removed false
6973           PIC14 emitSKPNCs
6974         * (pic16_genMinus): fixed to cope with differently sized operands
6975         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6976           for --obanksel > 1
6977         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6978         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6979           new banksel optimization
6980         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6981           analysis for temporary registers (segfaults...)
6982         * src/pic16/peeph.def: added rule
6983
6984 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6985
6986         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6987         which converts a float number to its ASCII representation
6988         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6989         functions to convert the fractional and integer part of a float to ASCII,
6990         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6991         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6992         ram
6993         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6994         _STATMEM macros,
6995         * device/include/pic16/adc.h: added GPL info,
6996         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6997         a pCodeOp as tested operand,
6998         * (genNearPointerGet): optimized bit testing, does not use
6999         intermediate register for bit value, test directly instead with
7000         BTFSS, BTFSC, works only for single bits,
7001         * (genpic16Code): dump the name of the iCode in the asm,
7002         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7003         renamed to pic16_decodeOp,
7004         * (serialRegAssign): do not allocate a temporary register for iCode
7005         sequences that test a single bit for 1/0
7006
7007 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7008
7009         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7010         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7011         access stack and frame pointers. They are initially assigned to
7012         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7013         accessing SFRs. Updated all occurences of modification of stack or
7014         frame pointer in gen.c and pcode.c,
7015         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7016         assigning of a literal value to pointers,
7017         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7018         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7019         selected
7020
7021 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7022
7023         * doc/sdccman.lyx: update documentation about stack pragma, added
7024         some info for stack memory models
7025
7026 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7027
7028         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7029
7030 2005-01-08 Raphael Neider <rneider AT web.de>
7031
7032         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7033           udata sections to fix bug #1097823
7034
7035 2005-01-05 Raphael Neider <rneider AT web.de>
7036
7037         * src/pic16/gen.c (genGenericShift): added handling of differently
7038           sized left operand and result
7039
7040 2005-01-04 Raphael Neider <rneider AT web.de>
7041
7042         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7043         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7044           to hold the condition bit)
7045         * added new version of genCmp (old code available via #define)
7046         * added new version of genShiftLeft/genShiftRight in a generic
7047           way, now supports shifting by negative values
7048         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7049           shiftCount (expected by genGenericShift)
7050         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7051         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7052           dump
7053         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7054           is an invalid literal too...)
7055
7056 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7057
7058         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7059         from Raphael Neider,
7060         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7061         for 8-bit literals. This fixes some literal operands which are sign
7062         extended to 16-bits ints when instruction needs only 8-bits.
7063
7064 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7065
7066         * device/lib/logf.c: added mcs51 assembly version
7067         * device/lib/expf.c: added mcs51 assembly version
7068         * device/lib/_logexpf.c: new shared asm code for expf and logf
7069         * device/include/math.h: add defines for assembly math library
7070         * device/lib/Makefile.in: build new _logexpf.c
7071         * device/lib/libfloat.lib: use new _logexpf.c
7072
7073 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7074
7075         * src/pic/device.c
7076         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7077           device types which have less than 0x7f registers.
7078
7079 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7080
7081         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7082
7083 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7084
7085         * device/lib/printf_fast.c: only build on supported arch.
7086         * device/lib/printf_tiny.c: only build on supported arch.
7087         * device/lib/printf_fast_f.c: only build if asm float lib
7088         * device/lib/_fsget1arg.c: only build if asm float lib
7089         * device/lib/_fsget2args.c: only build if asm float lib
7090         * device/lib/_fsnormalize.c: only build if asm float lib
7091         * device/lib/_fsreturnval.c: only build if asm float lib
7092         * device/lib/_fsrshift.c: only build if asm float lib
7093         * device/lib/_fsswapargs.c: only build if asm float lib
7094         * device/include/stdio.h: don't provide print_fast,
7095           print_fast_f, print_tiny prototypes if --xstack used
7096
7097 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7098
7099         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7100         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7101           to the SOURCES
7102
7103 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7104
7105         * device/lib/printf_fast_f.c: same as printf_fast, but
7106           with floating point enabled
7107         * device/lib/printf_fast.c: minor tweaks
7108         * device/include/stdio.h: add printf_fast_f
7109
7110 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7111
7112         * src/SDCCmain.c: make --float-reent default for mcs51
7113         * device/lib/_fsadd.c: added mcs51 assembly version
7114         * device/lib/_fssub.c: added mcs51 assembly version
7115         * device/lib/_fsmul.c: added mcs51 assembly version
7116         * device/lib/_fsdiv.c: added mcs51 assembly version
7117         * device/lib/_fseq.c: added mcs51 assembly version
7118         * device/lib/_fsneq.c: added mcs51 assembly version
7119         * device/lib/_fsgt.c: added mcs51 assembly version
7120         * device/lib/_fslt.c: added mcs51 assembly version
7121         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7122         * device/lib/Makefile.in: add _fscmp to build
7123         * device/lib/libfloat.lib: add _fscmp to build
7124
7125 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7126
7127         * device/lib/_fs2slong.c: added mcs51 assembly version
7128         * device/lib/_fs2sint.c: added mcs51 assembly version
7129         * device/lib/_fs2schar.c: added mcs51 assembly version
7130         * device/lib/_fs2ulong.c: added mcs51 assembly version
7131         * device/lib/_fs2uint.c: added mcs51 assembly version
7132         * device/lib/_fs2uchar.c: added mcs51 assembly version
7133         * device/lib/_slong2fs.c: added mcs51 assembly version
7134         * device/lib/_sint2fs.c: added mcs51 assembly version
7135         * device/lib/_schar2fs.c: added mcs51 assembly version
7136         * device/lib/_ulong2fs.c: added mcs51 assembly version
7137         * device/lib/_uint2fs.c: added mcs51 assembly version
7138         * device/lib/_uchar2fs.c: added mcs51 assembly version
7139         * device/include/float.h: added #define to select asm vs c
7140
7141 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7142
7143         * device/lib/printf_fast.c: improvements to float output
7144         * device/include/float.h: add defines for assembly float library
7145         * device/lib/_fsget1arg.c: receive 1 float arg
7146         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7147         * device/lib/_fsnormalize.c: normalize a float
7148         * device/lib/_fsreturnval.c: return float, various helper routines
7149         * device/lib/_fsrshift.c: right shift a float's mantissa
7150         * device/lib/_fsswapargs.c: swap 2 floats
7151         * device/lib/Makefile.in: build these 6 new files for mcs51
7152         * device/lib/libfloat.lib: add these 6 files to the library
7153
7154 2004-12-26 Borut Razem <borut.razem AT siol.net>
7155
7156         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7157           built by gcc 3.4.2
7158
7159 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7160
7161         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7162           and fully reentrant and register bank neutral.
7163         * device/lib/printf_fast.c: added float (not enabled by default),
7164           added compact/slower integer (also not enabled by default),
7165           improved size/speed of fast integer code, other minor changes
7166         * device/include/stdio.h, device/lib/Makefile.in,
7167           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7168
7169 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7170
7171         * src/pic16/pcode.c: declaring variables other than at the start of a
7172           block is not supported in C by VC6.
7173
7174 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7175
7176         * applied a previous patch from Raphael Neider that wasn't included
7177         in the previous commits, which fixes infinite loops within jumptable
7178         improvements,
7179         * made some fixes that previous patches introduced
7180
7181 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7182
7183         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7184         that fixes an issue with AOP_PCODE asmop's offset,
7185         * (pic16_popCopyReg): update instance field too,
7186         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7187         function of pic port,
7188         * (genCmp, genAnd, genAssign),
7189         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7190
7191 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7192
7193         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7194         variables initial values to idata section,
7195         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7196         variables in some functions. This utilizes parmBytes field of iCode
7197         structure to hold the offset of the variable in stack. (might be
7198         able to use the stack field too?)
7199         * applied patch from Raphael Neider # ### , # ###
7200         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7201         variable initial values in idata section,
7202         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7203         for static variables with initial value
7204         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7205         applied fix in while loop from Raphael Neider.
7206
7207 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7208
7209         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7210         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7211         * src/ds390/ralloc.c (serialRegAssign): spill bits
7212         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7213         * support/Util/SDCCerr.c,
7214         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7215         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7216         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7217
7218 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7219
7220         * device/include/sdcc-lib.h: inserted LGPL, added includes
7221           asm/ds390/features.h and asm/mcs51/features.h
7222         * device/include/asm/default/features.h,
7223         * device/include/asm/gbz80/features.h,
7224         * device/include/asm/z80/features.h: added empty _AUTOMEM
7225           and _STATMEM
7226         * device/include/asm/ds390/features.h,
7227         * device/include/asm/mcs51/features.h: added files with defines for
7228           _AUTOMEM and _STATMEM indicating automatic and static storage class
7229         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7230         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7231         * src/SDCCicode.c (geniCodeCast),
7232         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7233         * src/SDCCloop.c (loopInduction): removed unused variable lr
7234         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7235           to convertToFcall to include char modulo (RFE 1065037), added check
7236           if left operand is unsigned and use abs of literal value
7237         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7238           as it doesn't work after conversion from peephole.def to peephole.rul
7239         * src/mcs51/gen.c (toBoolean): added check for size,
7240           (genModOneByte): optimized code for signed char modulo a literal
7241           power of 2 (thanks to Hubert Sack),
7242           (genRRC): removed unnecessary "clr c",
7243           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7244         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7245           jump optimization,
7246           swapped rules 256.c and 256.d,
7247           extended 256.d by using new multiple checks (thanks Erik),
7248           added rules 256.e and 256.f,
7249           updated rule 261.a and 261.b to new generated code
7250         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7251
7252 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7253
7254         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7255           induction related bugs, including first part of bug #1074377
7256
7257 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7258
7259         * applied patch from bug-report #1076292,
7260         * applied patches for genAnd and Goto-optimizations for Raphael
7261         Neider,
7262         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7263         dump a less iCode information,
7264         * src/pic16/device.h (pic16_options_t): added field debgen,
7265         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7266         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7267         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7268         puclic,
7269         * (various functions): added macros FENTRY and FENTRY2 to functions,
7270         to emit function prologue,
7271         * (various functions): fixed indentation,
7272         * (genNearPointerGet): fixed loading of FSR0,
7273         * (genPackBits): applied patch from Raphael Neider to fix updating
7274         of FSR0 and touching only the modified bits,
7275         * src/pic16/genarith.c (various functions): added macros FENTRY to
7276         emit function prologue in comments,
7277         * src/pic16/pcode.h: added functions debugf2, debugf3,
7278         * src/pic16/ralloc.c: partial fix for packForPush caused
7279         segmentation fault,
7280
7281 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7282
7283         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7284           <stsp AT users.sourceforge.net> with reversed byte order
7285         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7286
7287 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7288
7289         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7290           bug #1074377
7291         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7292         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7293
7294 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7295
7296         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7297
7298 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7299
7300         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7301           conditions,
7302           (setFromConditionArgs): friendly operand parser for peephole rules,
7303           (operandBaseName, operandsNotRelated): new peephole condition
7304           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7305           architecture specific register naming into account, handles n-way
7306           comparisons, and supports quoted literals
7307         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7308
7309 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7310
7311         * src/mcs51/peeph.def: fixed bug #1076940
7312
7313 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7314
7315         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7316
7317 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7318
7319         Adding support for replacing ljmps with sjmps in jumptables
7320         generated for switch statements. For now you need to set the
7321         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7322         Now 4 algorithms for mcs51 jumptable generation are used:
7323         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7324         addresses loaded pc-relative for up to 112 cases and stack-pushing
7325         target addresses loaded with offset from dptr for up to 256 cases.
7326
7327         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7328         * src/mcs51/main.c: adapted constants for switch table generation
7329         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7330
7331 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7332
7333         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7334         * support/regression/tests/bug1057979.c: added test for bug 1073386
7335
7336 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7337
7338         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7339         compilers
7340
7341 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7342
7343         * src/pic16/device.h,
7344         * src/pic16/genarith.c,
7345         * src/pic16/glue.c,
7346         * src/pic16/main.c,
7347         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7348
7349 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7350
7351         Large cummulative patch for pic16 port.
7352         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7353         to call when a stack overflow occurs,
7354         * (malloc.h): added CVS Id tag,
7355         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7356         variable,
7357         * added libc directory. The current version of LibC contains string
7358         functions, ctype functions and macros and some functions of the
7359         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7360         be extensively tested in the future. Standard disclaimer here.
7361         Library is not automatically build yet. But one can build it by
7362         invoking 'make' inside the libc directory.
7363         * added ADC library under libio. Preliminary version yet.
7364
7365         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7366         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7367         aopForRemat() now and not by pic16_aopOp(),
7368         * (pic16_popGetTempReg): removed warning messgae when allocating
7369         temporary registers, its a buggy feature and will be removed,
7370         * (pic16_popGet): set register instance field in AOP_CRY,
7371         * (pic16_outBitC): fixed for results in size greater than 1,
7372         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7373         * (pic16_storeForReturn): optimized return of 0,
7374         * (genCmp): experimental code for new genCmp which uses PIC18's
7375         special compare&skip instructions. Initial tests fail some times
7376         with variables grater than 1 byte in size, so new code is disabled,
7377         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7378         a single bit,
7379         * (genCast): began a fix to optimize the casting of a bit to another
7380         bit, now assigning a bitfield to another bitfield will fail, sorry,
7381         * src/pic16/main.c: disabled the use of lr-support feature,
7382         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7383         * added some function prototypes, added function _debugf prototype,
7384         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7385         bits with offset (case PO_GPR_BIT),
7386         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7387         command line,
7388         * (isBankInstruction): modified to return 0 for no banking instruction,
7389         and 1 for banking instruction,
7390         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7391         caused stop processing pCodes after a inline assembly block,
7392         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7393         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7394         registers when it shouldn't,
7395         * src/pic16/ralloc.c (allocReg): add preliminary support for
7396         supporting a limited set of temporary registers,
7397
7398 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7399
7400         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7401           genDataPointerSet): ensure assignments always copy in MSB to LSB
7402           order,
7403           (loadRegFromAop): recognize CLRH optimization,
7404           (genFunction): optimize RECEIVE iCodes in reentrant functions
7405
7406 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7407
7408         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7409           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7410           selected.
7411         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7412         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7413           contiguous with data
7414
7415 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7416
7417         * device/lib/_gptrget.c (_gptrget),
7418         * device/lib/_gptrgetc.c (_gptrgetc),
7419         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7420           instead of sjmp to ret
7421         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7422           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7423
7424 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7425
7426         * .version: bumped version to 2.4.7
7427         * device/lib/_gptrget.c (_gptrget): is now _naked
7428         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7429         * device/lib/_gptrput.c (_gptrput): is now _naked
7430         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7431           (createFunction): fixed xstack
7432         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7433         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7434           or bit either,
7435           (geniCodeCritical): store original interrupt state in an iTemp bit
7436           var unless stack-auto
7437         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7438         * src/SDCCmain.c (setIncludePath): added include/target to search path
7439         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7440         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7441           prototype,
7442           (processFuncArgs): put bit vars in bit area
7443         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7444           unsaveRBank): fixed xstack,
7445           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7446           (genFunction, genEndFunction): fixed xstack,
7447           (genAssign): optimization don't walk backwards through mem
7448         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7449         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7450         * support/regression/Makefile: also make library (for stack-auto) when
7451           making "all" and added "test-mcs51-xstack-auto"
7452         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7453         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7454         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7455         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7456         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7457           make-library by MAKE_LIBRARY
7458         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7459           regression tests for xstack
7460         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7461         * support/regression/tests/critical.c: test for critical on mcs51
7462
7463 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7464
7465         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7466           built version of sdcc instead of installed version
7467
7468 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7469
7470         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7471         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7472           vprintf.c now
7473         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7474         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7475           WARNING: remove device/lib/build/z80/printf.o by hand when
7476           updating from previous build!
7477         * device/lib/z80/printf.c: updated comment
7478         * support/regression/tests/bug1057979.c: test all ports now
7479         * support/regression/tests/bug1065458.c: file added
7480
7481 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7482
7483         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7484           *_start and *_end symbols for static functions
7485
7486 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7487
7488         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7489           and search crt0.o in all library paths,
7490           (setIncludePath): proper handling of --nostdinc,
7491           (setLibPath): proper handling of --nostdlib
7492         * support/regression/Makefile,
7493         * support/regression/ports/ds390/spec.mk,
7494         * support/regression/ports/gbz80/spec.mk,
7495         * support/regression/ports/hc08/spec.mk,
7496         * support/regression/ports/mcs51/spec.mk,
7497         * support/regression/ports/mcs51-large/spec.mk,
7498         * support/regression/ports/mcs51-stack-auto/spec.mk,
7499         * support/regression/ports/z80/spec.mk: use include and lib files from
7500           built version of sdcc instead of installed version
7501         * doc/sdccman.lyx: fixed typo in --nostdinc
7502
7503 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7504
7505         * src/pic/pcode.c,
7506         * src/pic/device.c,
7507         * src/pic/ralloc.c,
7508         * src/pic/gen.c : added support to generate code for struct bit fields.
7509
7510 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7511
7512         * as/xa51/xa_version.h,
7513         * device/include/errno.h,
7514         * device/include/regc515c.h,
7515         * device/lib/_itoa.c,
7516         * device/lib/_ltoa.c,
7517         * device/lib/ser_ir_cts_rts.c,
7518         * sim/ucsim/xa.src/glob.cc,
7519         * sim/ucsim/xa.src/inst_gen.cc,
7520         * sim/ucsim/xa.src/xa_bit.cc,
7521         * sim/ucsim/xa.src/xa_sfr.cc,
7522         * sim/ucsim/z80.src/inst_dd.cc,
7523         * sim/ucsim/z80.src/inst_fdcb.cc,
7524         * support/scripts/keil2sdcc.pl,
7525         * src/pic16/pic16.dsp,
7526         * src/pic16/pic16a.dsp: corrected cvs line endings
7527         * device/lib/printf_large.c: fixed bug 1057979
7528         * src/pic16/gen.c: fixed non-C standard code
7529         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7530         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7531         * support/regression/ports/mcs51/support.c: reload T1 asap
7532         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7533           pdata use and clear idata startup behaviour
7534         * support/regression/tests/bug1057979.c: added
7535
7536 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7537
7538         * device/examples/ds390/ow390/ad26.h,
7539         * device/examples/ds390/ow390/cnt1d.h,
7540         * device/examples/ds390/ow390/crcutil.c,
7541         * device/examples/ds390/ow390/ownet.h,
7542         * device/examples/ds390/ow390/owsesu.c,
7543         * device/examples/ds390/ow390/swt12.h,
7544         * device/examples/ds390/ow390/swtoper.c,
7545         * device/examples/ds390/ow390/temp10.h,
7546         * device/examples/ds390/ow390/thermodl.c,
7547         * device/examples/ds390/tinitalk/tinitalk.dsp,
7548         * device/examples/ds390/tinitalk/tinitalk.dsw,
7549         * device/examples/mcs51/clock/hw.h,
7550         * device/examples/mcs51/simple2/go.bat,
7551         * device/examples/serialcomm/windows/serial.h,
7552         * device/examples/xa51/dummy.c,
7553         * device/examples/xa51/hello.c,
7554         * device/include/80c51xa.h,
7555         * device/include/at89x051.h: corrected cvs line endings
7556
7557 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7558
7559         * src/pic16/main.c (options): added command line --gstack, to trace
7560         stack over/under flows,
7561         * added pragma 'wparam' to allow passing first byte of function
7562         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7563         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7564         call to __gstack_test function and sets up the symbol as extern,
7565         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7566         * popaop): added call to pic16_testStackOverflow,
7567         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7568         wparamList list,
7569         * (genCall, genPcall): now all parameters are passed via stack
7570         except in functions that are pass to wparam pragma in which WREG is
7571         used too,
7572         * (genPcall): REENTRANT flag is checked to see if variable prototype
7573         contains reentrant keyword, don't call a non-reentrant function, via
7574         a reentrant function pointer or vice versa, functions are never
7575         passed via WREG,
7576         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7577         D.Winkler,
7578         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7579         SIGSEGV when accessing a NULL register stucture,
7580         * (pic16_printGPointerType): modified to handle UPPER modifier for
7581         function initializers, changed prototype of function to simpler one,
7582         * (pic16_printIvalFuncPtr): check to see if function is already
7583         added in externs list,
7584         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7585         optimized a move from W to SFR with a move to the same register
7586         later after a CALL,
7587         * device/lib/pic16/debug: NEW directory, contains debug features
7588         which are enabled when linking with libdebug.lib, currently command
7589         line option --gstack enables stack pointer tracing for over/under
7590         flow, corresponding sources are in debug/gstack
7591
7592 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7593
7594         * doc/sdccman.lyx: updated SDCC version,
7595         * (PIC16 port): update list of command line options,
7596         * src/pic16/device.h (structure pic16_options_t): added field gstack
7597         to enable stack overflow tracing on push/pops,
7598         * src/pic16/device.c (statistics structure): added statistics
7599         structure,
7600         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7601         pic16_dump_int_registers): increase statistics counters for each
7602         * variable which is encountered
7603         * (pic16_dump_usection): emit each .udata variable to its own udata
7604         section,
7605         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7606         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7607         parameters via stack, otherwise use old scheme,
7608         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7609         assembler output file,
7610         * src/pic16/main.c: added command line options --gstack to enable
7611         push/pop tracing for stack overflow,
7612         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7613         instructions): added size of each instruction,
7614         * (pic16_countInstruction): estimate size of instructions in
7615         the_pFile list, inline assembly blocks are not counted,
7616         * (pic16_FixRegisterBanking): trace previous register usage, when
7617         banksel optimizations is greater than 0, don't emit a redudant
7618         banksel directive,
7619
7620 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7621
7622         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7623         * src/pic16/ralloc.c : applied same fix for pic16.
7624         * src/pic/gen.c : tidied it up a little.
7625
7626 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7627
7628         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7629         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7630
7631 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7632
7633         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7634
7635 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7636
7637         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7638         non-reentrant function __modsint in the interrupt function (thus
7639         corrupting math operations during serial I/O)
7640         * device/lib/ser_ir.c: as above, changed buffersize
7641         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7642         256.c,d for zeroing
7643         * doc/Makefile: added option -t for rsync
7644
7645 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7646
7647         * src/SDCCast.h (struct ast),
7648         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7649
7650 2004-10-20 Borut Razem <borut.razem AT siol.net>
7651
7652         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7653         package
7654
7655 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7656
7657         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7658         makefile targets,
7659         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7660         support functions to replace long sequences of MOVFF's from access
7661         bank registers to stack and vice versa,
7662         * src/pic16/device.h: added new field opt_flags, where optimization
7663         flags can be set to enable certain features,
7664         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7665         * pBlock, (genFunction, genEndFunction): surroung loop for
7666         saving/loading used registers in stack with PC_INFO pCodes,
7667         INF_LREGS. Code in between can then be optimized by pCode optimizer
7668         to support function calls,
7669         * (genDataPointerSet): fixed bug which loaded float fields in
7670         structures with corrupt data,
7671         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7672         in a standard way debug info on stderr. Feature used for developing
7673         and debugging only,
7674         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7675         obsolete chunks of code,
7676         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7677         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7678         * pic16/src/pcode.c (pic16_newpCodeInfo,
7679         * (pic16_newpCodeOpLocalRegs),
7680         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7681         feature,
7682         * (pic16_pCodeConstString): printing of the initial value of a
7683         symbol as a comment is inhibited since parsing was already done by
7684         copyStr and output is corrupt,
7685         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7686
7687 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7688
7689         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7690
7691 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7692
7693         * as/mcs51/lkarea.c: removed old K&R style,
7694           (lnksect): changed check on boundary error,
7695           (lnksect2): changed check on boundary error,
7696           (lnksect2): extend XSTK to end of page if size = 1
7697         * as/mcs51/lkmain.c: removed old K&R style,
7698           (Areas51): create l_IRAM symbol
7699         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7700         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7701           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7702         * device/lib/_mullong.c: added version to be compiled with xstack
7703         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7704         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7705         * device/lib/mcs51/crtxstack.asm: fixed comment
7706         * src/SDCCglue.c: maxInterrupts defaults to 0,
7707           (emitMaps): added pdata,
7708           (createInterruptVect): (re)moved default,
7709           (glue): added pdata,
7710           (glue): moved __start__xstack to XSTK with default size 1
7711         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7712           and options.float_rent when options.stackAuto is set,
7713           (linkEdit): only write XDATA_NAME if provided on command line
7714         * src/SDCCmem.h,
7715         * src/SDCCmem.c: added pdata
7716         * src/port.h: added pdata_name to PORT
7717         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7718           (saveRegisters, unsaveRegisters): removed usage of B,
7719           (genMinus): fixed accumulator clash,
7720           (genJumpTab): added comment, this needs another look
7721         * src/mcs51/gen.c: added check for "B in use" paranoia,
7722           added pushB() and popB()
7723         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7724           chance
7725         * src/avr/main.c,
7726         * src/ds390/main.c,
7727         * src/hc08/main.c,
7728         * src/mcs51/main.c,
7729         * src/pic/main.c,
7730         * src/pic16/main.c,
7731         * src/xa51/main.c,
7732         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7733           added PSEG (PAG,XDATA) or NULL to port specifier
7734         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7735         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7736           (_mcs51_genInitStartup): removed __start__xstack equ,
7737           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7738         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7739         * src/z80/gen.c (_rleAppend): fixed warnings
7740         * support/regression/tests/zeropad.c: added pdata test
7741         * .version: bumped to 2.4.6
7742
7743 2004-10-17 Borut Razem <borut.razem AT siol.net>
7744
7745         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7746         as a part of nightly build
7747
7748 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7749
7750         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7751         WREG holds the first byte function parameters,
7752         * (aopForSym): take special case for symbols which are in FARSPACE
7753         but in CODESPACE too,
7754         * (assignResultValue): modified to take into account _G.useWreg,
7755         * (genCall): don't use wreg for parameter passing when function is
7756         declared as reentrant, too, added optimization INCF to stack
7757         pointer when stack parameter count is 1,
7758         * (genFunction, genEndFunction): refurnished and fixed to not using
7759         wreg for passing parameters when function has varargs or is
7760         reentrant, fixed bug with symbol name compare for generating
7761         functions in absolute address,
7762         * (pic16_storeForReturn): refurnished,
7763         * (genCmp): began writing a new version of the function, not ready
7764         yet, therefore it is disabled,
7765         * (genAssign): do not read code memory when assigning a function to
7766         a pointer function,
7767         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7768         array of characters, not pointer,
7769         * (pic16initialComments): in debug mode emit an .ident directive for
7770         the assembler,
7771         * (_process_pragma): emit a new warning type (internal to pic16)
7772         when setting stack to default length, emit a similar warning when
7773         placing a function at absolute address and address is not word aligned
7774         * (_pic16_parseOptions): added 'return TRUE' statement,
7775         * (_pic16_linkEdit): if compiling a source, then add the source's
7776         file object, first in the list of objects to link,
7777
7778 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7779
7780         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7781         * src/pic/main.c : removed VC warning.
7782         * src/pic/gen.c : changed comment.
7783
7784 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7785
7786         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7787         reference to a deprecated symbol _GPTRREG was causing failure to
7788         link. Thanks G. M. Gallant for the info.
7789
7790 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7791
7792         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7793         comments for Bugs item #954788.
7794
7795 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7796
7797         * src/pic16/device.c (pic16_dump_gsection,
7798         * pic16_groupRegistersInSection): handle symbols declared to be in
7799         access bank differently,
7800         * src/pic16/gen.c (struct _G): added field resDirect,
7801         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7802         send values read from stack directly to result and don't allocate
7803         temporary values,
7804         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7805         same registers,
7806         * (pic16_sameRegsOfs): NEW,
7807         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7808         free because they were not allocated from temporary pool,
7809         * pic16_popRegFromString): workaround to fix a problem with
7810         allocating variables twice or never,
7811         * (genGenPointerGet): using PRODL instead of FSR0H,
7812         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7813         instead of FSR0H,
7814         * (genAssign): take advantage of the _G.resDirect flag,
7815         * (genCast): around line 11844, use mov2f instead of directly
7816         MOVFF'ing between operands to account for literal values,
7817         * src/pic16/genutils.c: some new debug functions for gpsim have been
7818         added,
7819         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7820         float with integer part only,
7821         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7822         place variables in access bank
7823         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7824         updated sources to reflect recent changes in gen.c
7825
7826 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7827
7828         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7829         sources that searched for headers in installation path, now the
7830         device/include/pic16 is used,
7831         * src/pic16/glue.c (pic16glue),
7832         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7833         .line directives if not in debug mode, this suppresses assembler's
7834         warnings for ignored directives
7835
7836 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7837
7838         * src/port.h: made reset_regparms prototype void parameter explicit.
7839         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7840         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7841         * doc/sdccman.lyx: documented warning disabling and how to use
7842           printf_large to make it print floats.
7843         * device/include/stdbool.h: NEW
7844         * device/lib/_atof.c,
7845         * device/lib/_divuint.c,
7846         * device/lib/_divulong.c,
7847         * device/lib/expf.c,
7848         * device/lib/printf_large.c,
7849         * device/lib/sincosf.c,
7850         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7851         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7852           a completely reentrant lib.
7853
7854 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7855
7856         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7857         * device/include/pic16/stdio.h: fixed bug with colon
7858
7859 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7860
7861         * device/include/pic16/stdio.h,
7862         * device/include/pic16/stdlib.h,
7863         * device/include/pic16/math.h: NEW
7864         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7865         declared as _naked to reduce overhead
7866         * device/lib/Makefile.in (target port-specific-objects-pic16):
7867         changed * to *.* so to ignore the CVS directory,
7868         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7869         stacked variables back in stack,
7870         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7871         corruption
7872
7873 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7874
7875         * .version: bumped version number to 2.4.5
7876         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7877         * support/Util/SDCCerr.c (messages structure): added entry for
7878         W_POSSBUG2
7879
7880         Large cumulative patch for pic16 port and libraries.
7881         * device/include/pic16/sdcc-lib.h,
7882         * device/include/pic16/stdarg.h,
7883         * device/include/asm/pic16/features.h,
7884         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7885         * device/include/pic16/float.h: changes reentrant keyword with
7886         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7887         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7888         updated target build-libraries to include objects from gptr,
7889         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7890         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7891         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7892         all function headings,
7893         * src/SDCCmain.c: added global parameter userIncDirsSet,
7894         * (parseCmdLine): when option -I is encountered add directory to
7895         userIncDirsSet too,
7896         * src/version.awk: added space between control and long,
7897         * src/pic16/NOTES: added some notes for the port,
7898         * src/pic16/gen.c: added prototype for mov2fp function,
7899         * (fReturnpic16[]): properly named return value registers,
7900         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7901         * (aopForSym): added code to handle symbols with onStack flag set,
7902         symbols onStack are allocated PTRSIZE bytes,
7903         * (aopFreeAsmop): handles special case where asmops are stack objects,
7904         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7905         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7906         added argument lock to trace flaws in allocating temporary registers
7907         when developing port,
7908         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7909         * (pic16_popRegFromString): reenabled allocating a direct register
7910         from string,
7911         * (assignResultValue): various beautifications,
7912         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7913         referenced function argument,
7914         * (genIpush): reenabled to allow stacked arguments, handles only
7915         ic->parmPush iCodes,
7916         * (genCall, genPcall): major changes to allow for variable argument
7917         functions, fixed a bug with falsely restoring stack pointer after
7918         returning from call,
7919         * (genFunction): pending code for critical function,
7920         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7921         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7922         * (genNearPointerGet): fixed bug with indirect reading, was always
7923         reading from INDF0
7924         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7925         pointers,
7926         * (genAddrOf): rewrote code to take address of a stacked function parameter
7927         * (genCast): fixed casting to generic pointer type,
7928         * src/pic16/gen.h: added AOP_STA,
7929         * (struct asmop): added field stk,
7930         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7931         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7932         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7933         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7934         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7935         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7936         generic pointers,
7937         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7938         and library paths,
7939         * (pic16_port structure): generic pointer size is set to 3,
7940         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7941         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7942         compiler warning,
7943         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7944         operand is an iTemp,
7945
7946 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7947
7948         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7949         * debugger/mcs51/simi.c: addapt new syntax of s51
7950
7951 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7952
7953         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7954         * src/pic16/pcode.c: commented out some calls to free() in order to
7955         fix bug #989576,
7956
7957 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7958
7959         * src/SDCCicode.h,
7960         * src/SDCCicode.c (isiCodeInFunctionCall),
7961         * src/avr/ralloc.c (selectSpil),
7962         * src/pic/ralloc.c (selectSpil),
7963         * src/pic16/ralloc.c (selectSpil),
7964         * src/ds390/ralloc.c (selectSpil),
7965         * src/hc08/ralloc.c (selectSpil),
7966         * src/xa51/ralloc.c (selectSpil),
7967         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7968         stack in the middle of a function call sequence (fixes bug #1020268)
7969         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7970         costs associated with the minimum switch case.
7971
7972 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7973
7974         * src/SDCC.lex: fixed bug #1030549
7975
7976 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7977
7978         * src/SDCCcse.h (struct cseDef),
7979         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7980         over a function call if the CSE is derived from a symbol whose
7981         address has been taken (fixes bug #1029883)
7982         * support/regression/tests/bug-1029883: a new regression test for
7983         this bug
7984
7985 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7986
7987         * src/hc08/gen.c (emitinline): fixed bug #1029778
7988         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7989         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7990         and starts toward RFE #905167)
7991
7992 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7993
7994         * src/pic16/gen.c (mov2f): New function to move an operand to
7995         another without considering if it is a literal or a register,
7996         * (pic16_sameRegs): don't check if they are both AOP_REG,
7997         * (AccRsh): removed andmask=0 lines,
7998         * (genLeftShift): duplicated to be improved in future versions,
7999         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8000         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8001         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8002         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8003         * (insertBankSwitch): fixed inserting banksel directives algorithm
8004         for instructions that follow a skip instruction, this fixes a report
8005         for broken subtraction code generation,
8006         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8007         iCode is a left op, just in case result and right share the same
8008         registers
8009
8010 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8011
8012         * src/hc08/main.c,
8013         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8014         preservation of HX
8015         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8016         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8017         on 2004-09-12; it was buggy
8018
8019 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8020
8021         * src/SDCCsymt.h: removed RESULT_CHECK
8022         * src/SDCCast.c,
8023         * src/SDCCglue.c,
8024         * src/SDCCval.c,
8025         * src/pic/glue.c,
8026         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8027
8028 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8029
8030         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8031         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8032         configuration values no more rejected by compiler, they are assigned
8033         to configuration registers with a warning message instead,
8034         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8035         the for-loop so last conf register is emitted too,
8036         * (_pic16_initPaths): link library libsdcc.lib by default,
8037         * (_hasNativeMulFor): modified test for multiplication according to
8038         Raphael Neider's remarks. Integer multiplication is also done with
8039         support functions,
8040         * device/include/pic16/pic18fregs.h: corrected type error in while
8041         testing and including 18f6720 header file
8042
8043 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8044
8045         * src/pic16/device.h (pic16_options): removed field use_crt,
8046         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8047         until an optimization to handle single bits is added,
8048         * (pic16_loadFSR0): moved before genUnpackBits,
8049         * (genAnd): some white lines removed,
8050         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8051         leave_reset flags in pic16_options when using crt modules,
8052
8053 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8054
8055         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8056           for bugs 898889 & 979599. Also used some safer print instructions.
8057
8058 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8059
8060         * src/pic16/device.h (pic16_options_t): added field use_crt,
8061         crt_name, no_crt,
8062         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8063         catch a probable future bug,
8064         * src/pic16/gen.c: aopIdx function commented out,
8065         * (genAssign): commented out old code which used aopIdx,
8066         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8067         code, added if conditionals to take into account the --use-crt
8068         command line options,
8069         * src/pic16/main.c (pic16_optionsTable): added new command line
8070         options, --use-crt= and --no-crt,
8071         * (_pic16_linkEdit): now the proper crt object is added in the
8072         linker command line except than when --no-crt is specified,
8073         * src/pic16/pcode.c,
8074         * src/pic16/pcode.h: added some structures and functions for a new
8075         optimization scheme to compansate for instruction overhead between
8076         same iCodes, this scheme is currently under development and is not
8077         working in any way,
8078         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8079         to && operator,
8080         * device/lib/pic16/startup/crt0i.c,
8081         * device/lib/pic16/startup/crt0iz.c: added global char variable
8082         __uflags to force the generation of an idata section
8083
8084 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8085
8086         * doc/Makefile,
8087         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8088         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8089
8090 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8091
8092         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8093         Frieder) and clarified the default code optimization mode
8094
8095 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8096
8097         * src/SDCC.lex (doPragma, process_pragma),
8098         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8099         "opt_code_size", and "opt_code_balanced"
8100         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8101         regrouped options by category, added support for category headers
8102         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8103         and "--opt-code-size"
8104         * doc/sdccman.lyx: documented these new options and pragmas
8105         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8106         preference into account
8107
8108 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8109
8110         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8111           geniCodePreDec): Fixed bug 904237 by generating a warning
8112         * src/SDCCerr.h,
8113         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8114
8115 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8116
8117         * src/pic/device.c : When no max ram set validate full memory range.
8118         * src/pic/pcode.c,
8119         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8120
8121 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8122
8123         * device/lib/_gptrget.c,
8124         * device/lib/_gptrput.c: updated comment
8125         * device/lib/calloc.c,
8126         * device/lib/free.c,
8127         * device/lib/malloc.c,
8128         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8129         * src/SDCCcse.c (cseBBlock),
8130         * src/SDCCicode.c (printOperand, geniCodeArray),
8131         * src/SDCCicode.h (struct operand): fixed bug 868103
8132         * support/regression/tests/bug-868103.c: added
8133         * src/SDCCast.c (searchLitOp),
8134         * src/SDCCcse.h (struct cseDef),
8135         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8136         * src/SDCCicode.h (struct operand),
8137         * src/SDCCsymt.h (struct sym_link),
8138         * src/avr/gen.c (hasInc),
8139         * src/ds390/gen.c (hasInc),
8140         * src/hc08/gen.c (genPlusIncr, hasInc),
8141         * src/mcs51/gen.c (hasInc),
8142         * src/pic16/glue.c (pic16_printIvalChar),
8143         * src/pic16/ralloc.c (regWithIdx),
8144         * src/xa51/gen.c (hasInc) : removed warnings
8145         * src/SDCCast.c (createBlock): added comment ???
8146         * src/hc08/ralloc.c: updated comments
8147
8148 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8149
8150         * doc/sdccman.lyx: updated section on switch statements, added
8151         section about semaphore locking
8152         * doc/Makefile: added option -info for latex2html
8153         * device/lib/_gptrget.c,
8154         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8155
8156 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8157
8158         * src/pic/device.h,
8159         * src/pic/device.c,
8160         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8161          maxram is less than 0x100.
8162
8163 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8164
8165         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8166
8167 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8168
8169         * src/port.h,
8170         * src/mcs51/main.c,
8171         * src/ds390/main.c,
8172         * src/z80/main.c,
8173         * src/hc08/main.c,
8174         * src/pic/main.c,
8175         * src/pic16/main.c,
8176         * src/avr/main.c,
8177         * src/xa51/main.c
8178         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8179         a jump table is the best form for a switch statement, including
8180         automatic insertion of missing cases to make the case range
8181         continuous. Developed in collaboration with Frieder Ferlemann.
8182
8183 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8184
8185         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8186         accumulator result if it needs sign extension
8187
8188 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8189
8190         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8191
8192 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8193
8194         * device/lib/gbz80/printf.c,
8195         * device/lib/z80/printf.c: removed define for NULL
8196
8197 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8198
8199         * as/xa51/xa_link.c,
8200         * device/examples/ds390/ow390/ad26.c,
8201         * device/examples/ds390/ow390/cnt1d.c,
8202         * device/examples/ds390/ow390/counter.c,
8203         * device/examples/ds390/ow390/ds2480.h,
8204         * device/examples/ds390/ow390/ds2480ut.c,
8205         * device/examples/ds390/ow390/findtype.c,
8206         * device/examples/ds390/ow390/gethumd.c,
8207         * device/examples/ds390/ow390/owllu.c,
8208         * device/examples/ds390/ow390/ownetu.c,
8209         * device/examples/ds390/ow390/swt12.c,
8210         * device/examples/ds390/ow390/swtloop.c,
8211         * device/examples/ds390/ow390/temp.c,
8212         * device/examples/ds390/ow390/temp10.c,
8213         * device/examples/ds390/ow390/thermo21.c,
8214         * device/examples/ds390/ow390/tinilnk.c,
8215         * device/examples/ds390/ow390/tstfind.c,
8216         * device/examples/serialcomm/windows/serial.cpp,
8217         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8218         * device/include/reg51.h: fixed line endings for cvs
8219
8220 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8221
8222         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8223         packRegsForAccUse, packRegisters): new accumulator register
8224         packing algorithm
8225         * support/regression/ports/hc08/support.c (_putchar): suppress
8226         warning of unused variable
8227         * src/SDCCicode.c: added SWAP entry to codeTable
8228
8229 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8230
8231         * device/lib/sprintf.c: forgot to add this file before previous commit
8232
8233 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8234
8235         * src/pic16/gen.c (genPackBits): added operand right in function
8236         parameters, load result directly if p_type is POINTER (that is
8237         called by genNearPointerSet)
8238         * (genUnPackBits): added operand left in function parameters,
8239         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8240         FSR0 if accessing bitfields,
8241
8242 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8243
8244         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8245           _print_format; updated printf, sprintf, vsprintf
8246         * device/include/asm/default/features.h: corrected comment/define
8247         * device/lib/Makefile.in: added sprintf.c
8248         * device/lib/libsdcc.lib: added sprintf module
8249         * device/lib/printf_large.c,
8250         * device/lib/vprintf.c,
8251         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8252           into these 3 files
8253         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8254         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8255         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8256           hc08 test
8257         * support/regression/tests/zeropad.c: define idata as data for hc08
8258
8259 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8260
8261         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8262         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8263         labels are referenced at least once (even if a reference is not found)
8264         * src/hc08/gen.c (emitcode): set isComment flag for comments
8265         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8266         loads), rules 6a..6b (optimize jumps to return)
8267
8268 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8269
8270         * device/lib/acosf.c (acosf),
8271         * device/lib/asinf.c (asinf),
8272         * device/lib/atanf.c (atanf),
8273         * device/lib/ceilf.c (ceilf),
8274         * device/lib/cosf.c (cosf),
8275         * device/lib/coshf.c (coshf),
8276         * device/lib/cotf.c (cotf),
8277         * device/lib/fabsf.c (fabsf),
8278         * device/lib/floorf.c (floorf),
8279         * device/lib/log10f.c (log10f),
8280         * device/lib/logf.c (logf),
8281         * device/lib/sinf.c (sinf),
8282         * device/lib/sinhf.c (sinhf),
8283         * device/lib/sqrtf.c (sqrtf),
8284         * device/lib/tanf.c (tanf),
8285         * device/lib/tanhf.c (tanhf),
8286         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8287         replaced all instances of "reentrant" in the library functions
8288         defined in math.h with this macro.
8289         * support/regression/tests/float_trans.c: reenabled test for hc08
8290
8291 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8292
8293         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8294         erroneously deleted
8295
8296 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8297
8298         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8299         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8300         multi-byte volatile operands are used
8301         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8302         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8303         initialization to area GSINIT0 so that it would always precede
8304         any static initializers in GSINIT
8305         * support/regression/tests/zeropad.c: fixed idata define for hc08
8306         * support/regression/tests/bug-927659.c,
8307         * support/regression/tests/float_trans.c: disabled tests for hc08
8308         pending missing library routines
8309         * .version: increased version number to 2.4.4 - hc08 port now passes
8310         regression tests
8311
8312
8313 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8314
8315         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8316         * Makefile.common.in,
8317         * as/Makefile,
8318         * as/hc08/Makefile.in,
8319         * as/mcs51/Makefile.in,
8320         * as/z80/Makefile.in,
8321         * debugger/mcs51/Makefile.in,
8322         * device/include/Makefile.in,
8323         * device/lib/Makefile.in,
8324         * doc/Makefile,
8325         * link/Makefile,
8326         * link/z80/Makefile.in,
8327         * packihx/Makefile.in,
8328         * sim/ucsim/main_in.mk,
8329         * sim/ucsim/avr.src/Makefile.in,
8330         * sim/ucsim/doc/Makefile.in,
8331         * sim/ucsim/gui.src/serio.src/Makefile.in,
8332         * sim/ucsim/hc08.src/Makefile.in,
8333         * sim/ucsim/s51.src/Makefile.in,
8334         * sim/ucsim/xa.src/Makefile.in,
8335         * sim/ucsim/z80.src/Makefile.in,
8336         * src/Makefile.in,
8337         * support/cpp2/Makefile.in,
8338         * support/librarian/Makefile,
8339         * support/makebin/Makefile: added DESTDIR to the install path proposed
8340         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8341         * doc/sdccman.lyx: added DESTDIR documentation
8342
8343 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8344
8345         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8346         instruction for interrupt handlers, use fast returns when returning
8347         from high priority interrupts
8348
8349 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8350
8351         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8352         code generation
8353         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8354         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8355         bugs, ported much of Bernhard's code from mcs51
8356         * src/mcs51/gen.c (genSend),
8357         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8358         than one when calling a reentrant function
8359         * device/lib/_mullong.c: defined an alternate struct layout for big
8360         endian ports (hc08)
8361
8362 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8363
8364         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8365         test
8366
8367 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8368
8369         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8370         are sane and complete before asking the port its prefered parameter
8371         passing method (fixes bug #1017633)
8372         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8373         and _ret3
8374
8375 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8376
8377         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8378         problem in bitfields >= 8 bits.
8379
8380 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8381
8382         * src/SDCCsymt.c: undid changes that were not meant to be committed
8383
8384 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8385
8386         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8387
8388 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8389
8390         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8391           copied and wrong bit got inverted
8392
8393 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8394
8395         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8396         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8397         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8398         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8399         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8400         assignments to bitfields at known addresses
8401         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8402         reads from bitfields at known addresses
8403         * src/hc08/ralloc.c (packRegisters),
8404         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8405         genhc08Code): optimize pointer get values used as conditionals
8406         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8407         and branch
8408
8409 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8410
8411         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8412         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8413         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8414         as conditionals
8415
8416 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8417
8418         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8419
8420 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8421
8422         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8423         related problems
8424
8425 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8426
8427         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8428
8429 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8430
8431         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8432         mcs51 port
8433
8434 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8435
8436         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8437
8438 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8439
8440         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8441         cases use more compact code.
8442
8443 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8444
8445         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8446
8447 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8448
8449         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8450
8451 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8452
8453         * src/SDCCsymt.h,
8454         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8455         parameter of changePointer() from symbol* to sym_link*
8456         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8457         * src/SDCCsymt.c (compareType): void* type is castable to other
8458         pointers, but not necesarily an exact match.
8459         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8460         is no longer blindly treated as an exact match.
8461         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8462
8463 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8464
8465         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8466
8467 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8468
8469         * src/pic/gen.c,
8470         * src/pic/pcode.c,
8471         * src/pic/ralloc.h,
8472         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8473
8474 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8475
8476         * src/pic/device.c,
8477         * src/pic/device.h,
8478         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8479
8480 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8481
8482         * src/mcs51/gen.c (emitcode): fixed bug #992819
8483
8484 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8485
8486         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8487           there's no need to make it worse
8488
8489 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8490
8491         * src/mcs51/ralloc.c (deassignLR),
8492         * src/ds390/ralloc.c (deassignLR),
8493         * src/hc08/ralloc.c (deassignLR),
8494         * src/z80/ralloc.c (deassignLR),
8495         * src/pic/ralloc.c (deassignLR),
8496         * src/pic16/ralloc.c (deassignLR),
8497         * src/avr/ralloc.c (deassignLR),
8498         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8499         rlivePoint): fixed another part of bug #971834
8500
8501 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8502
8503         * src/z80/main.c: enabled "critical" keyword
8504         * src/z80/mappings.i,
8505         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8506         functions (fixes bug #979646)
8507         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8508
8509 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8510
8511         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8512           such as c:\mydir.
8513
8514 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8515
8516         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8517           doesn't disable too much optimizations
8518
8519 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8520
8521         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8522
8523 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8524
8525         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8526
8527 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8528
8529         * src/pic/gen.c tidied up tabs
8530         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8531         * src/pic/main.c tidied up tabs
8532         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8533         * src/pic/pcoderegs.c tidied up tabs
8534         * src/pic/ralloc.c tidied up tabs
8535
8536 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8537
8538         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8539         to S_FIXED for pic16 port and when symbol is not in level 0,
8540         allocate for S_REGISTER storage class and pic16 port, too,
8541         * src/pic16/device.h: prototype for checkSym,
8542         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8543         * (pic16_assignConfigWordValue): test the value and the mask to
8544         validate that the value is suitable for the configuration word,
8545         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8546         collect extern declared symbols, don't emit symbol twice, check
8547         first if symbol is in publics set first,
8548         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8549         * added command line '--fstack' which enables an experimental
8550         feature for stack access, too buggy to be used yet...
8551         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8552         * (pic16_allocDirReg): when register has storage class S_REGISTER
8553         allocate in pic16_dynAccessRegs,
8554         * device/include/pic16/pic18f????.h: modified configuration word
8555         naming convention, words started as CONFIG0H but should be CONFIG1H
8556
8557 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8558
8559         * device/include/mcs51reg.h: fixed bug 970993
8560
8561 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8562
8563         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8564         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8565         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8566         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8567         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8568         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8569           error/warning numbers,
8570           added function setWarningDisabled()
8571         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8572         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8573           _memcmp.c _memmove.c calloc.c realloc.c free.c
8574         * support/regression/tests/malloc.c: added tests for new functionality
8575         * support/regression/tests/zeropad.c: added tests for truncated initializers
8576           and initialized char arrays starting with '\x0'
8577         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8578
8579 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8580
8581         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8582
8583 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8584
8585         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8586         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8587         peephole 177.e. Thanks to anonymous
8588
8589 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8590
8591         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8592         function isn't used in the source but referenced as a
8593         variable initializer then declare it as extern in .asm file
8594
8595 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8596
8597         * .version: increased version number to 2.4.3
8598
8599         Adding version extension according to ChangeLog CVS revision
8600         * src/Makefile.in (target all): added dependency 'version.h'
8601         * (rule version.h): added rule to create version.h from ChangeLog,
8602         * (rule dep): added dependency version.h,
8603         * src/version.awk: AWK script to create version.h
8604         * src/SDCCdwarf2.c (dwWriteModule),
8605         * src/SDCCglue.c (initialComments),
8606         * src/SDCCmain.c (printVersionInfo): modified to write after
8607         version string the version extension number,
8608         * src/SDCCutil.c: included "version.h"
8609         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8610         number,
8611         * src/SDCCutil.h: added prototype for getBuildNumber
8612
8613         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8614         includeDirsSet, too,
8615         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8616         const char [] is found in function prototype...
8617
8618         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8619         moving to WREG with source is already in WREG,
8620         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8621         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8622         * (aopForSym): stack'ed symbols are partially supported, added
8623         if-clause to support symbols in FARSPACE,
8624         * (sameRegs): added test for AOP_ACC to see if registers are same,
8625         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8626         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8627         * (pic16_popRegFromString): will not allocate a new register if it
8628         doesn't find one by name, bug may have introduced...
8629         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8630         * (genIpush): revived to use pic16 port's stack,
8631         * (genAddrOf): added incomplete case for stack'ed operand,
8632         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8633         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8634         can handle multibyte operands,
8635         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8636         * (pic16initialComments): added message for MPLAB compatibility
8637         mode enabled,
8638         * src/pic16/main.h: prototype for pic16_mplab_comp,
8639         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8640         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8641         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8642         because of increased complexity of procedure,
8643         * (_process_pragma): stack pragma changed to format 'stack pos len',
8644         emit symbol '_stack_end' to conform with gplink,
8645         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8646         to search for register,
8647         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8648         PO_GPR_REGISTER,
8649         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8650         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8651         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8652         case for PO_GPR_REGISTER,
8653         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8654         dies, the new era is ahead !...
8655         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8656         pic16_dynInternalRegs,
8657         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8658         * (pic16_allocDirReg): minor optimizations and bug fixes,
8659         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8660
8661         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8662         load stack and frame pointer with address of 'stack_end' symbol
8663
8664 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8665
8666         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8667         without source code but only variable initializers
8668
8669 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8670
8671         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8672         external are not declared as extern to reduce overhead while linking
8673
8674 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8675
8676         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8677
8678 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8679
8680         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8681           Yee Keat for the patch
8682         * src/SDCCast.c (decorateType): fixed bug #979599
8683         * src/ds390/gen.h: removed local fReturnSizeDS390
8684         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8685         * src/ds390/gen.c (genAnd, genOr, genXor),
8686         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8687
8688 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8689
8690         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8691         add relFilesSet to $3, manipulate $2 to handle linking of object
8692         files without source files in command line,
8693         * device/include/pic16 (all headers): added ID location macros,
8694         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8695         entries for ID location bytes,
8696         * (pic16_assignIdByteValue): NEW,
8697         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8698         added field dumpcalltree to pic16_options_t,
8699         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8700         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8701         emitting rFalseIfx label after check_carry label,
8702         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8703         pic16_emitDIRegs), NEW
8704         * (pic16glue): dump .calltree file when option --calltree found,
8705         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8706         * (_pic16_genAssemblerPreamble): emit ID locations after
8707         configuration registers,
8708         * (pic16_linkCmd): modifications of the link command,
8709         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8710         * (pic16_pCodeInitRegisters): don't init stack registers,
8711         * (pic16_findPrevInstruction): fixed bug,
8712         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8713         bug with immediate registers,
8714         * (buildCallTree): traces stack push and pop,
8715         * (pct2): dump also stack usage for each function,
8716         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8717         * (pic16_allocDirReg): various modifications,
8718         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8719         fixed to 1,
8720
8721 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8722
8723         * src/pic16/pcode.c: removed buggy double colon
8724
8725 2004-07-01 Borut Razem <borut.razem AT siol.net>
8726
8727         * support/scripts/sdcc.nsi: added include/pic16 to setup
8728
8729 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8730
8731         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8732         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8733         target 'clean',
8734         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8735         specific command line arguments. Also added sample lkr script
8736         for placing a variable at a specific memory bank.
8737         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8738         at a specific memory bank,
8739         * (pic16_dump_isection): fixed bug which caused string literals to
8740         be omitted when dumping idata section,
8741         * (pic16_groupRegistersInSection): added code to handle registers
8742         in specific memory banks,
8743         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8744         public, all references are renamed too,
8745         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8746         AOP_DPTR2,
8747         * (pic16_storeForReturn): added case to handle when dest is WREG,
8748         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8749         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8750         pic16_rel_udata, check to see if that register is marked as being
8751         a member of a specific memory bank,
8752         * (pic16_printIvalCharPtr): added code to add string literals either
8753         to code or the idata sections,
8754         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8755         also accept the 'udata' pragma,
8756         * src/pic16/main.h: new structure types sectName and sectSym
8757         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8758         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8759         * (pic16_findPrevInstruction): fixed, it returned nothing,
8760         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8761         instruction combinations,
8762         * (pic16_FixRegisterBanking): heavily reorganised,
8763         * (pic16_AnalyzeBanking): if generating banksel directives is
8764         disabled, then don't call FixRegisterBanking at all,
8765         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8766         completely removed,
8767         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8768
8769 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8770
8771         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8772         Phuah Yee Keat <yk.phuah AT nestac.com>
8773
8774 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8775
8776         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8777         correctly the IVT even if it is relocated to some other location
8778
8779 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8780
8781         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8782         * device/include/pic16/pic18f2220.h: NEW,
8783         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8784         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8785         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8786         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8787         nodefaultlibs, ivt_loc is the location of the interrupt vector
8788         table, and nodefaultlibs signs that default libraries should not be
8789         linked in link stage,
8790         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8791         according to --ivt-loc argument,
8792         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8793         when pragma stack is found,
8794
8795 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8796
8797         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8798         256 (range check), 257 (do while), 258.a-f (bit banging
8799         f.e. on 3-wire SPI bus)
8800
8801 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8802
8803         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8804         variables used exclusively within a loop
8805
8806 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8807
8808         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8809
8810 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8811
8812         * src/SDCClrange.c (computeClash): fixed bug #971834
8813
8814 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8815
8816         * src/mcs51/gen.c (genCmp): fixed bug #975903
8817         * src/hc08/gen.c (operandsEqu),
8818         * src/ds390/gen.c (operandsEqu),
8819         * src/z80/gen.c (operandsEqu),
8820         * src/pic/gen.c (operandsEqu),
8821         * src/pic16/gen.c (operandsEqu),
8822         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8823         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8824
8825 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8826
8827         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8828
8829 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8830
8831         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8832         default case in switch statement,
8833         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8834         to eliminate problem with initialisation of pointers, but problem
8835         still exists,
8836         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8837         * (emitStaticSegment): removed various lines emitting debug info,
8838         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8839         added processor registers for utilizing EEPROM,
8840         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8841         configurable and set 8
8842
8843 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8844
8845         * .version: increased version number to 2.4.2,
8846
8847         Cumulative patch for pic16 port
8848         * src/pic16/device.c: changed scheme to dump initial values for
8849         variables in idata segment, all print_idata* functions were removed,
8850         now the pic16_printIval* will be called,
8851         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8852         * _pic16_printPointerType, pic16_printPointerType,
8853         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8854         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8855         NEW, similar to the respective functions in SDCCglue.c,
8856         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8857         way, emitting hex bytes,
8858         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8859
8860 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8861
8862         * src/avr/ralloc.c (serialRegAssign),
8863         * src/xa51/ralloc.c (serialRegAssign),
8864         * src/pic/ralloc.c (serialRegAssign),
8865         * src/pic16/ralloc.c (serialRegAssign),
8866         * src/hc08/ralloc.c (serialRegAssign),
8867         * src/z80/ralloc.c (serialRegAssign),
8868         * src/ds390/ralloc.c (serialRegAssign),
8869         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8870
8871 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8872
8873         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8874         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8875
8876 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8877
8878         Cumulative patch for pic16 port:
8879         * src/pic16/device.h (typedef PIC16_device) modified fields for
8880         defining microcontrollers,
8881         * src/pic16/device.c: added new info for all devices in Pics16 array,
8882         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8883         to be optimised out by the pCode optimiser,
8884         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8885         specially, bug reported by G.M. Gallant,
8886         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8887         as force'd so that cannot be optimised out by pCode optimiser,
8888         * src/pic16/pcode.c,
8889         * src/pic16/pcodepeeph.c,
8890         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8891         they are disabled by default, but can be enabled explicit with
8892         command argument --denable-peeps, for testing,
8893         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8894         --pomit-ivt in COMPILE_FLAGS
8895
8896 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8897
8898         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8899           compilation on MSVC
8900
8901 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8902
8903         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8904
8905 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8906
8907         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8908         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8909
8910 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8911
8912         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8913         would only assign 0x300001 register.
8914
8915 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8916
8917         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8918         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8919
8920 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8921
8922         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8923         for ds80c400
8924         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8925         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8926         added peephole 254 (left shift), 255 (jump table)
8927
8928 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8929
8930         * device/lib/Makefile.in: removed comment line with model-pic16,
8931         * (target port-specific-objects-pic16): the libraries and objects
8932         are copied to the build directory form the device/lib/pic16/bin
8933         directory
8934
8935         Cumulative patch concerning pic16 port:
8936         * library directory has been re-organized,
8937         * added support for PIC18F1220,
8938         * added headers and library sources for chips 18f1220,18f6520,
8939         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8940
8941         * configuration registers setting has changed, now each supported
8942         device has a complete description of the registers it uses,
8943         * all initialisations are moved to idata sections, these section
8944         can be absolute or relocatable,
8945         * fixed initialisation of codespace variables,
8946         * fixed warning about PCLATU and gpsim,
8947         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8948         * (genAssign): use table reads when assigning from variables in codespace,
8949         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8950         char/int variables placed in codespace,
8951         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8952         registers set in .asm file, no need for --pomit-config-words anymore,
8953         * (pic16glue): some 8051 legacy segments are commented out
8954         (to be removed completely),
8955         * added support for alternative assembler and linker with --asm=
8956         and --link= command line arguments,
8957         * peepholes are disabled automatically in the port, no need to
8958         specify on command line,
8959         * port supports natively char/int/long multiplication, but converts
8960         all divisions to support functions,
8961         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8962         to the file set in variable $2,
8963         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8964         strings in ASCII format and not in hex,
8965         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8966         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8967         allocate proper register if iCodes aren't temporary,
8968
8969 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8970
8971         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8972
8973 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8974
8975         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8976         is commented out
8977
8978 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8979
8980         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8981         computed address is reused
8982         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8983         multi-byte bitfields
8984
8985 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8986
8987         * src/z80/gen.c: (genArrayInit): must check for pointers too
8988
8989 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8990
8991         * support/regression/tests/zeropad.c: never meant to commit the
8992           nestedstruct test: removed, added check for GCC version
8993
8994 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8995
8996         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8997         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8998         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8999           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9000           bugs 928906 and 954082 half-empty initializers
9001         * src/SDCCsymt.h,
9002         * src/SDCCsymt.c (getAllocSize): added for above fix
9003         * src/z80/gen.c (genArrayInit): fixed bug 741044
9004         * support/regression/tests/zeropad.c: added tests
9005
9006 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9007
9008         * src/pic16/device.c (pic16_dump_section): corrected bug which
9009         caused some symbols of the libraries to be misplaced
9010
9011 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9012
9013         * src/pic16/glue.c,
9014         * src/pic16/ralloc.h,
9015         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9016         to fix conflict with pic port
9017
9018 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9019
9020         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9021         externs configuration variables,
9022         * src/pic16/ralloc.h,
9023         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9024         prototype in header, commented out some debug messages
9025
9026 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9027
9028         * src/pic16/glue.c,
9029         * src/pic16/main.c,
9030         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9031         for gpasm COFF object generation. Thanks to D. Hawkins for
9032         his patch info
9033
9034 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9035
9036         * src/ds390/main.c,
9037         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9038         Brock for spotting this)
9039         * src/ds390/gen.c (genEndFunction),
9040         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9041         interrupt handler and critical. Disable push/pop optimizations when
9042         peephole optimizations disabled.
9043
9044 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9045
9046         Updated pic16 library sources and headers.
9047         * device/lib/pic16/pic18f*/ ,
9048         * device/include/pic16/*.h: modified to handle structured SFR
9049         definitions
9050
9051 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9052
9053         * src/port.h (PORT structure): added hook initPaths, now each
9054         port can declare its own default search paths,
9055         which can been seen with the --print-search-dirs option,
9056         see pic16 port for example,
9057         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9058         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9059         * (doPrintSearchDirs): NEW, replaces in a central manner the
9060         printing of search dirs which was split in set*Paths functions,
9061         * (main): added call to port->initPaths and doPrintSearchDirs,
9062         * src/avr/main.c,
9063         * src/ds390/main.c,
9064         * src/hc08/main.c,
9065         * src/izt/i186.c,
9066         * src/izt/tlcs900h.c,
9067         * src/mcs51/main.c,
9068         * src/pic/main.c,
9069         * src/pic16/main.c: modified port structures to reflect addition of
9070         initPaths hook,
9071
9072         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9073         * (pic16_dump_section): for registers in same address reserve memory once,
9074         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9075         to no_banksel,
9076         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9077         result is greater in size than right or left,
9078         * (pic16_genUMult8X8_8): there are some cases where the result can
9079         be 16 bits size, so handle these,
9080         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9081         * (pic16_outBitC): modified to emit pcodes,
9082         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9083         or not,
9084         * (genDivOneByte): implemented algorithm to divide 8-bits,
9085         * (genCmp): uncommented goto, but issues still exist,
9086         * (genAnd): fixed a bug with variables >8bits,
9087         * (genPackBits): optimization added that uses BCF/BSF to change a
9088         single bit,
9089         * (genAssign): fixed bug when assigning floating point literals,
9090         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9091         __sdcc_gsinit_startup label,
9092         * src/pic16/main.c (_pic16_init): removed search directory
9093         initialisations,
9094         * (_pic16_initPaths): NEW, used to initialise search directories,
9095         * (_hasNativeMulFor): support functions for all except char/int
9096         multiplication, and char division,
9097         * (PIC16_port struct): modified entry for native mul support,
9098         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9099         no_banksel option,
9100         * (buildCallTree): call to register_usage is ifdef'ed out,
9101
9102 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9103
9104         * device/include/string.h: applied Stas Sergeev's patch to make this
9105         header file compatible with the preprocessor -Wundef option
9106         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9107         failure (fixes bug #941458)
9108
9109 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9110
9111         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9112         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9113         that the variable, not the function, should be static
9114         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9115         to be consistent with non-literal case
9116
9117 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9118
9119         * src/SDCCast.c (isConformingBody): fixed bug #949967
9120         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9121         convilong): fixed bug #952086
9122
9123 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9124
9125         * src/SDCCmem.c (allocVariables): fixed bug #955321
9126
9127 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9128
9129         * src/hc08/main.c (_hc08_genAssemblerEnd),
9130         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9131         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9132         completely eliminated the use of a temporary file
9133         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9134         when more than one file linked
9135         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9136
9137 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9138
9139         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9140         which fixes bug #543481
9141         * support/regression/tests/bug-751703.c: fixed comments left from a
9142         cut and paste error
9143         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9144         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9145         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9146         scopes
9147         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9148         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9149         are now changed to underscores in moduleName
9150
9151 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9152
9153         * as/mcs51/lkmem.c: better fix for bug #954173
9154
9155 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9156         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9157
9158         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9159         * device/include/c8051f000.h,
9160         * device/include/c8051f120.h,
9161         * device/include/c8051f300.h,
9162         * device/include/c8051f310.h,
9163         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9164         PWM16) and detab'ed
9165
9166 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9167
9168         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9169         and mailing lists, doc'ed --no-peep-comments, removed reference
9170         to knoppix (newest version has no LyX/LaTeX), other minor changes
9171         * src/SDCCglue.c (glue): save 2 bytes stack space with
9172         option --main-return. The ljmp could probably be avoided too
9173
9174 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9175
9176         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9177
9178 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9179
9180         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9181         * src/SDCCopt.c (isLocalWithoutDef),
9182         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9183         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9184         (credit to Maarten Brock for patch #949363, on which this is based)
9185         * support/regression/tests/bug-751703.c: some test cases of extern used
9186         within inner scopes.
9187
9188 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9189
9190         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9191         SPEC_STRUCT
9192         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9193         struct definitions
9194         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9195         dwWriteLabel): fix to create valid debugger symbols even when
9196         the module name has non-alphanumeric symbols in it
9197         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9198         when a variable's allocation has been optimized away
9199
9200
9201 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9202
9203         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9204         * src/hc08/main.c,
9205         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9206         * src/mcs51/main.c,
9207         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9208         * src/ds390/main.c,
9209         * src/z80/gen.c (z80_emitDebuggerSymbol),
9210         * src/z80/main.c,
9211         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9212         * src/pic/main.c,
9213         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9214         * src/pic16/main.c,
9215         * src/avr/gen.c (avr_emitDebuggerSymbol),
9216         * src/avr/main.c,
9217         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9218         * src/xa51/main.c,
9219         * src/SDCCdebug.c (emitDebuggerSymbol),
9220         * src/SDCCdebug.h,
9221         * src/port.h: added a debugger struct to the port struct. Added a
9222         callback for defining debugger symbols
9223
9224         * src/SDCCast.c (createLabel),
9225         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9226         with isitmp = 1
9227         * src/SDCCicode.h,
9228         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9229         iCode back to the ast for the function
9230
9231         * src/hc08/ralloc.c (hc08_assignRegisters),
9232         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9233         unneeded fields from the regs struct.
9234         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9235         pushReg() & pullReg() functions instead of emitcode()
9236
9237         * src/hc08/gen.c (genLabel, genhc08Code),
9238         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9239
9240         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9241         debugger hooks
9242
9243         * src/hc08/gen.c (genEndFunction, genhc08Code),
9244         * src/hc08/gen.h,
9245         * src/mcs51/gen.c (genEndFunction, gen51Code),
9246         * src/mcs51/gen.h,
9247         * src/ds390/gen.c (genEndFunction, gen390Code),
9248         * src/ds390/gen.h,
9249         * src/z80/gen.c (genEndFunction, genZ80Code),
9250         * src/z80/gen.h,
9251         * src/z80/z80.h,
9252         * src/pic/gen.c (genEndFunction, genpic14Code),
9253         * src/pic/gen.h,
9254         * src/pic16/gen.c (genEndFunction, genpic16Code),
9255         * src/pic16/gen.h,
9256         * src/avr/gen.c (genEndFunction, genAVRCode),
9257         * src/avr/gen.h,
9258         * src/xa51/gen.c (genEndFunction, genXA51Code),
9259         * src/xa51/gen.h,
9260         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9261         specific code to cdbFile.c and out of the backend code generators
9262
9263         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9264         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9265         starting address is now 0
9266
9267         * as/hc08/asm.h,
9268         * as/hc08/m08pst.c,
9269         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9270         assembler directive for DWARF support
9271         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9272
9273         * src/src.dsp,
9274         * src/Makefile.in,
9275         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9276
9277 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9278
9279         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9280         and inappropriate peephole optimization in jump tables
9281
9282 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9283
9284         * as/hc08/m08pst.c,
9285         * src/SDCCglue.c: sdccopt works for the hc08 port now
9286
9287 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9288
9289         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9290
9291 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9292
9293         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9294
9295 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9296
9297         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9298         rules
9299         * src/SDCCmain.c,
9300         * src/SDCCglobl.h,
9301         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9302         comments from the peephole optimizer replacement rules
9303         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9304         symbols
9305         * src/SDCCcse.c (updateSpillLocation),
9306         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9307         equivalents
9308         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9309         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9310         objects far pointers
9311
9312 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9313
9314         * src/SDCCsymt.h: a missing part of my last change
9315         * src/pic/ralloc.c (regTypeNum),
9316         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9317
9318 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9319
9320         * src/SDCCicode.h,
9321         * src/SDCCicode.c (aggrToPtrDclType),
9322         * src/SDCCptropt.h,
9323         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9324         ptrPseudoSymConvert),
9325         * src/pic/ralloc.c (regTypeNum),
9326         * src/pic16/ralloc.c (regTypeNum),
9327         * src/hc08/ralloc.c (regTypeNum),
9328         * src/ds390/ralloc.c (regTypeNum),
9329         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9330         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9331
9332 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9333
9334         * link/z80/lkmain.c (afile),
9335         * as/hc08/lkmain.c (afile),
9336         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9337         prevent a pointer problem when a filename has no directory and
9338         no extension specified.
9339
9340 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9341
9342         * link/z80/lkmain.c (afile): allow periods in directory names
9343         * link/z80/lkmain.c (afile),
9344         * as/mcs51/lkmain.c (afile),
9345         * as/hc08/lkmain.c (afile): allow linker script file to have an
9346         extension other than ".lnk"
9347         * link/z80/lklex.c (getfid),
9348         * link/z80/lkmain.c (parse),
9349         * as/mcs51/lklex.c (getfid),
9350         * as/mcs51/lkmain.c (parse),
9351         * as/hc08/lklex.c (getfid),
9352         * as/hc08/lkmain.c (parse): Support comments in the linker script
9353         file on lines by themselves and after filenames
9354
9355 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9356
9357         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9358
9359 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9360
9361         * src/z80/peeph-z80.def: removed some peephole rules that don't
9362         work with multibyte arithmetic (fixed bug #937126)
9363         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9364         to registers and not global variables
9365         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9366         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9367         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9368         checking for assignments not internally generated (fixed bug #931895)
9369         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9370         structure member (fixed bug #930072)
9371
9372 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9373
9374         * src/SDCCmain.c (linkEdit),
9375         * src/hc08/main.c (_hc08_parseOptions),
9376         * as/hc08/Makefile.in,
9377         * as/hc08/aslink.h,
9378         * as/hc08/asm.h,
9379         * as/hc08/m08pst.c,
9380         * as/hc08/lkrloc.c (relr, rele),
9381         * as/hc08/lkarea.c (lnkarea)
9382         * as/hc08/lkmain.c (afile, parse),
9383         * as/hc08/lkelf.c: support for ELF output
9384         * as/hc08/lks19.c (s19),
9385         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9386
9387 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9388
9389         * as/mcs51/lkihx.c: Fixed bug #899105.
9390
9391 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9392
9393         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9394         .dsp files from Unix to DOS.
9395
9396 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9397
9398         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9399         function pointers; we have been compliant for several months now.
9400         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9401         change that was accidently commented out
9402         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9403         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9404         bug #922319
9405
9406 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9407
9408         * src/hc08/gen.c: output of all of the internal debugging information
9409         is now controlled by the D() macro; it is disabled by default
9410
9411 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9412
9413         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9414         harder to keep the same registers during a CAST iCode
9415         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9416         long via int can be done in a single cast, if the signedness is
9417         correct.
9418         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9419         putchar() in tinibios.c in ds390's library
9420
9421 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9422
9423         * src/SDCCast.c (decorateType): fixed bug #898889,
9424         cast result of a literal complement too
9425         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9426         fixed check for bitfields
9427
9428 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9429
9430         * src/SDCCicode.c (geniCodeLogic): made it static,
9431         (geniCodeLogicAndOr): added in order to fix bug #905492,
9432         (ast2iCode): fixed bug #905492
9433         * support/regression/tests/bug-905492.c: added
9434         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9435         (processParms): fixed bug #927659: don't copy parms, this will clear
9436         decorated flag
9437         * support/regression/tests/bug-927659.c: added
9438
9439 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9440
9441         * src/SDCCast.c (addCast): don't cast float to char
9442         * device/lib/libsdcc.lib: added _memmove
9443
9444 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9445
9446         * device/lib/large/Makefile: fixed parallel execution by
9447         replacing `make` by `$(MAKE)`
9448
9449 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9450
9451         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9452         offsets (fixes bug #923936)
9453
9454 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9455
9456         * device/lib/small/Makefile: fixed parallel execution by
9457         replacing `make` by `$(MAKE)`
9458
9459 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9460
9461         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9462
9463 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9464
9465         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9466         * src/regression/Makefile: Regression test was not running.
9467
9468 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9469
9470         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9471         complement if possible
9472         * src/SDCCval.c (valComplement),
9473         * src/SDCCicode.c (operandOperation): fixed complement of literal
9474         * support/regression/tests/onebyte.c (testComplement): added
9475
9476 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9477
9478         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9479         return an optimized tree; actually replace actParm with the new tree
9480         * src/SDCCast.h: added some parantheses to remove side effects
9481         * support/regression/tests/bug-920866.c
9482
9483 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9484         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9485         Bit operands were not being handled properly in the pic14 port.
9486         (now src/regression/add.c passes again).
9487
9488 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9489
9490         * src/SDCC.y (labeled_statement): case and default no longer require
9491         a following statement (RFE #893037)
9492
9493 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9494
9495         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9496         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9497         disabled (fixes bug #916294)
9498         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9499         "mov a,acc"; patch provided by Lenny Story
9500         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9501
9502 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9503
9504         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9505         functions
9506         * src/ds390/gen.c (genFunction, genEndFunction),
9507         * src/ds390/ralloc.c (ds390_assignRegisters),
9508         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9509         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9510         pushed if there are parameters passed on the stack. Also, a cleaner
9511         way to decide if r0/r1 should be pushed/popped. (Together they fix
9512         bug #918693)
9513
9514 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9515
9516         * doc/sdccman.lyx,
9517         * device/lib/mcs51/crtpagesfr.asm,
9518         * device/lib/mcs51/crtxinit.asm,
9519         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9520         to avoid confusion with Si Lab's SFRPAGE register.
9521
9522 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9523
9524         * src/SDCCglue.c (emitMaps): allow public sfr variables
9525         * src/SDCCglue.c (initialComments): include compiler build date
9526         with compiler version and put the timestamp of the generated
9527         assembly file on a serperate line to be less confusing.
9528         * src/port.h: added genInitStartup hook
9529         * src/avr/main.c,
9530         * src/ds390/main.c,
9531         * src/hc08/main.c,
9532         * src/pic/main.c,
9533         * src/pic16/main.c,
9534         * src/xa51/main.c,
9535         * src/z80/main.c: genInitStartup initialize as NULL (default to
9536         historical behaviour)
9537         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9538         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9539         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9540         library instead of hard coding it into the compiler.
9541         * support/regression/ports/mcs51-stack-auto/spec.mk,
9542         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9543         * device/lib/mcs51/Makefile,
9544         * device/lib/small/Makefile,
9545         * device/lib/large/Makefile,
9546         * device/lib/mcs51/crtpagesfr.asm,
9547         * device/lib/mcs51/crtstart.asm,
9548         * device/lib/mcs51/crtxclear.asm,
9549         * device/lib/mcs51/crtxinit.asm,
9550         * device/lib/mcs51/crtclear.asm,
9551         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9552         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9553         and into user configurable files.
9554         * device/lib/clean.mk: clean mcs51 directory too
9555         * support/regression/tests/longlit.c: added static to T1 declaration
9556         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9557         accesses in the initialization code
9558
9559 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9560
9561         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9562         OSCTRIMVAL as noted in bug #916008
9563
9564 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9565
9566         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9567         in loops with multiple exits (reported as incorrect registers
9568         used by Martin Helmling in Sdcc-user list)
9569
9570 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9571
9572         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9573         made ds390 register extensions look less like error messages
9574
9575 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9576
9577         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9578         reported by Adam Wozniak in Sdcc-user list
9579
9580 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9581
9582         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9583         arithmetic optimizations, added debug output
9584
9585 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9586
9587         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9588         * sdcc.spec: updated and split sdcc into 3 rpms
9589         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9590         needed for literals of LEFT_OP and '+'
9591         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9592         introduced RESULT_TYPE_NOPROM
9593         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9594         left shift
9595         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9596         limited promotion to int only for '*'
9597         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9598
9599 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9600
9601         * src/pic16/gen.c (genSkip),
9602         (genc16bit2lit), (gencjneshort): commented out
9603         (is_LitOp): new helper function, checks operand type
9604         (genCmpEq): rewritten
9605
9606 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9607
9608         * support/regression/tests/bug-908454.c: added
9609
9610 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9611
9612         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9613         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9614         (geniCodeCast): cosmetic, don't preserve bit storage class
9615         (geniCodeLeftShift): added promotion
9616         (geniCodeLogic): fixed regression
9617         * src/SDCCsymt.c (computeTypeOr): accept bits too
9618         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9619
9620 2004-03-07  Borut Razem <borut.razem AT siol.net>
9621
9622         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9623
9624 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9625
9626         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9627         version of pic16_genPackRegisters which does not check if ic is a
9628         CAST operator,
9629         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9630         function cause string1.c regression test fails
9631
9632 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9633
9634         * sim/ucsim/configure.in,
9635         * sim/ucsim/configure,
9636         * sim/ucsim/doc/Makefile.in: use docdir
9637         * src/SDCC.y: fixed sbit atrributes
9638         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9639         * src/SDCCast.c (decorateType): |^& need special promotion handling
9640         * src/SDCCast.h,
9641         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9642         * src/SDCCsymt.h (computeType),
9643         * src/SDCCicode.c: computeType() needs op
9644         * src/SDCCsymt.c (checkTypeSanity),
9645         * doc/sddman.lyx: "plain" bitfields are unsigned
9646         * src/SDCCsymt.c (computeTypeOr): added
9647         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9648         |^& ops
9649         * src/SDCCval.c (val*): computeType() needs op
9650         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9651         * support/regression/tests/onebyte.c: added tests for |^&
9652
9653 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9654
9655         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9656         for writing icode into asm output.
9657
9658 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9659
9660         * src/pic16/device.c: added some debug lines enabled
9661         with macro DEBUG_CHECK,
9662         * src/pic16/genarith.c: more debug in genPlus,
9663         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9664         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9665         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9666         * (aopForSym): onStack symbols are re-placed in data memspace,
9667         and onStack flag is cleared,
9668         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9669         copy temporary pcodeop,
9670         * (genPcall): added warning for not updating PCLATU,
9671         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9672         always true for pic16 port,
9673         * (genMultOneWord): NEW, supports integer multiplication,
9674         * (genMult): modified to call genMultOneWord,
9675         * (ifxForOp): added warning when return NULL,
9676         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9677         flag is set before call to operandFromSymbol for implicit
9678         added structures,
9679         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9680         options.intlong_rent are set by default,
9681         * (_hasNativeMulFor): modified to allow port generation of integer
9682         multiplication,
9683         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9684         set regtype to REG_SFR for all registers, restricting seting the
9685         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9686
9687 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9688
9689         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9690         more than 500 times in the regression tests
9691
9692 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9693
9694         * support/Util/SDCCerr.h,
9695         * support/Util/SDCCerr.c,
9696         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9697         enumerator_list),
9698         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9699         for symbol conflicts.
9700         * support/valdiags/tests/enum.c,
9701         * support/valdiags/tests/tentdecl.c,
9702         * support/valdiags/tests/struct.c: expect possible error messages
9703         referring to original symbol definitions.
9704         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9705         * src/SDCCsymt.h,
9706         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9707
9708 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9709
9710         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9711
9712 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9713
9714         * src/pic16/ralloc.c (newReg): fixed bug #908929
9715
9716 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9717
9718         * src/ds390/gen.c: added missing #include "main.h"
9719
9720 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9721
9722         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9723         checking if symbol is already in set,
9724         * src/pic16/device.h: prototype for checkAddSym,
9725         * src/pic16/gen.c: (_G): added entry interruptvector,
9726         * (assignResultValue): removed some commented out lines,
9727         * (genFunction): check for ISR via sym->type, absolute section for
9728         interrupt code is created via a new pBlock, the goto instruction is
9729         placed now correctly at the interrupt vector position, changed all
9730         references from ivec to _G.interruptvector,
9731         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9732         is the interrupt is a high priority one, same for return from ISR,
9733         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9734         externs to calls of checkAddSym,
9735         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9736         pic16_pcode_verbose flag is set,
9737         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9738         * src/pic16/pcoderegs.c: message about how many registers are saved
9739         will only be emitted if pic16_pcode_verbose flag is set,
9740
9741 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9742
9743         * src/ds390/ralloc.h,
9744         * src/ds390/ralloc.c (ds390_regWithIdx),
9745         * src/ds390/gen.c (emitcode),
9746         * src/ds390/main.h,
9747         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9748         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9749         ds390operandCompare, getRegsRead, getRegsWritten,
9750         initializeAsmLineNode): customized instruction size calculation for
9751         ds390, started basis for some register optimizations
9752         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9753         corresponding assembly output
9754         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9755         missing push/pop of r0/r1. Optimized push/pops
9756
9757 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9758
9759         * src/mcs51/main.c (instructionSize): fixed ACALL size
9760         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9761
9762 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9763
9764         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9765         the sorting of rlist with NULL elements
9766         * (print_idataType, print_idata): NEW to create idata sections
9767         * src/pic16/device.h: idataSymSet new variable
9768         * src/pic16/gen.c (genFunction): fixed some bugs in string
9769         comparing, improved the absolute section creation for ISRs,
9770         added FSR0L/FSR0H in registers that are saved in an ISR,
9771         * (genInline): fixed the processing of inline snippets,
9772         now they undergo no process by the peephole optimizer
9773         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9774         are placed in idataSymSet,
9775         * (pic16emitStaticSeg): extern symbols are added in externs,
9776         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9777         switching when aboslute variables are placed in access bank memory
9778         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9779         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9780         commented out with #if,
9781         * (pic16_packRegisters): reintroduce the check for CAST because some
9782         symbols are not correctly handled,
9783         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9784         pCodeInstruction instead of pCode,
9785         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9786         pCodeAsmDir definition,
9787         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9788         directive, then the argument directive is emitted without the leading
9789         tab, hack for inline labels which must be in the first column,
9790         * (compareLabel,pic16_findNextInstruction),
9791         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9792         * (insertBankSwitch): modified for the new pCodeAsmDir,
9793
9794 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9795         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9796
9797         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9798         instance,
9799         * (pushSide): commented out with #if,
9800         * (assignResultValue): fixed some typos in saving
9801         registers,
9802         * (genPcall): FIXED and sync'ed with genCall,
9803         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9804         * (genNearPointerGet): fixed to handle some more cases,
9805         implementation scheme via table reads,
9806         * (genConstPointerGet): modified to access code memory correct,
9807         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9808         and improved to handle some cases
9809         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9810         instead of "RETLW" for init data
9811         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9812         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9813         variables are placed in access bank memory (<0x80 and >=0xf80),
9814         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9815         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9816         TBLWT_POSTDEC,TBLWT_PREINC
9817         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9818         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9819         directives
9820         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9821         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9822         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9823         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9824
9825 2004-02-29  Borut Razem <borut.razem AT siol.net>
9826
9827         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9828         support/Util/findme.h, support/Util/system.h: enhance binary relative
9829         search for lib and include by using findProgramPath()
9830
9831 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9832
9833         * src/SDCCpeeph.h,
9834         * src/SDCCpeeph.c (pcDistance),
9835         * src/port.h,
9836         * src/mcs51/ralloc.h,
9837         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9838         * src/mcs51/main.h,
9839         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9840         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9841         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9842         size calculation port specific, started basis for some register
9843         optimizations
9844         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9845         missing push/pop of r0/r1. Optimized push/pops
9846         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9847         * device/lib/_modsint.c (_modsint),
9848         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9849         and stack version so regression tests pass
9850
9851 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9852
9853         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9854         * src/SDCCast.c (decorateType): catch another small optimization
9855         with '?' operator
9856         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9857         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9858         modified to finally use computeType() all over SDCC,
9859         see Feature Request #877103
9860         * src/SDCCval.h: cosmetic
9861         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9862         valCompare(); regression tested in muldiv.c
9863         * support/regression/tests/muldiv.c (testMod): mod sign follows
9864         dividend only
9865
9866 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9867
9868         * src/SDCCast.c (decorateType): fixed bug #902362
9869         * doc/INSTALL.txt: fixed install instructions for win32
9870
9871 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9872
9873         * device/include/Makefile.in (install): fixed by replacing spaces
9874         by tabs
9875         * doc/README.txt,
9876         * doc/INSTALL.txt: updated for release
9877         * doc/sdccman.lyx: added warning for --xstack being buggy
9878
9879 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9880
9881         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9882         to eliminate build warnings.
9883         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9884
9885 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9886            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9887
9888         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9889         removed -penable-stack, added comment for stack pragma, added
9890         warning for not initializing the stack/frame registers, removed
9891         comment at interrupts section
9892
9893         Stack is made permanent, there is no ability to disable stack usage.
9894         * src/pic16/device.h,
9895         * src/pic16/device.c: removed all references to USE_STACK macro,
9896         * src/pic16/device.c (pic16_dump_section): when no elements in
9897         rlist, free rlist before return,
9898         * (pic16_dump_int_registers): NEW, internal registers are a new set
9899         of general purpose registers reused by each function,
9900         * (checkAddReg): returns 1 if registers is added to set,
9901         * (pic16_groupRegistersInSection): when a registers is of type
9902         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9903         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9904         SRCASECMP macro is moved here from device.c
9905         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9906         PO_PCLATU, PO_PRODL, PO_PRODH,
9907         * (pic16_pCodeOpType, genMinus,
9908         changed compares to "a" register, with AOP_ACC,
9909         * (pic16_genPlus): fixed some bugs and indented properly,
9910         * (pic16_addSign): changed size to size+offset in the MOVWF
9911         instruction,
9912         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9913         multiply 8-bit operand by literal, result is 8-bit,
9914         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9915         multiply 2 8-bit operand, result is 8-bit,
9916         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9917         genUMult8X*_16,
9918         * src/pic16/gen.c: changed accUse to contain WREG only,
9919         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9920         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9921         true, do not use immediate addressing any more unless sym is a
9922         pointer in codespace,
9923         * (aopForRemat): do not use immediate addressing when symbol not in
9924         codespace and when symbol's address is requested,
9925         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9926         accUse size (= 1),
9927         * (aopGet): added case for AOP_ACC and don't return "accumulator
9928         bug" but WREG instead,
9929         * (popGetTempReg): pushes contents of temporary register in stack,
9930         * (popReleaseTempReg): pops contents of temporary register from
9931         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9932         * (pic16_popGet): separated case AOP_ACC to return register WREG
9933         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9934         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9935         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9936         the use of immediate pointers to certain cases only.
9937
9938         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9939         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9940         * (assignResultValue, genCall, genRet): modified to use the new
9941         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9942         genPcall is still broken,
9943         * (genFunction): added code to create 'A' type pBlocks when
9944         interrupt functions are generated, code not extensively tested yet,
9945         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9946         * (genEndFunction): modified so ISRs pop stored registers from stack,
9947         * (genMultOneByte): cleanup,
9948         * (AccRsh): added flag andmask, to and result with appropriate mask,
9949         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9950         * (genDataPointerGet): fixed and reenabled its use,
9951         * (genNearDataPointerGet): bugs fixed,
9952         * (genDataPointerSet): bugs fixed,
9953         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9954         pic16_DumpSymbol, pic16_DumpOp,
9955         * src/pic16/genutils.h: function prototypes for the above functions,
9956         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9957         pointers,
9958         * (pic16emitRegularMap): many many many improvements, but needs a
9959         major cleanup,
9960         * src/pic16/main.c: enable_stack in pic16_options is removed,
9961         * (_pic16_parseOptions): removed command line options -penable-stack,
9962         * (_process_pragma): emit stack symbol only when stack pragma is
9963         processed,
9964         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9965         redirected to FSR0L/FSR0H pair,
9966         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9967         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9968         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9969         for immediates,
9970         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9971         * (dumpPicOptype): NEW,
9972         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9973         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9974         with movff instruction,
9975         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9976         added pic16_int_regs, some packRegsFor* functions are commented out,
9977         because produce errors,
9978         * src/pic16/NOTES: minor modifications
9979
9980 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9981
9982         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9983         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9984         --pack-iram.
9985         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9986         * as/mcs51/lkaomf51.c: fixed bug #895763
9987
9988 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9989
9990         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9991
9992 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9993
9994         * doc/sdccman.lyx: added details about the HC08 storage classes and
9995         interrupts, fixed the register usage info for z80 & gbz80
9996
9997 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9998
9999         * doc/sdccman.lyx: added more pic16 port documentation
10000         * device/include/pic16/: added header pic18fregs.h
10001
10002 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10003
10004         * doc/sdccman.lyx: added Vangelis' contribution
10005
10006 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10007
10008         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10009         extend to the next CALL or PCALL, not just to the next CALL.
10010
10011 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10012
10013         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10014
10015 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10016
10017         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10018         bug #895752 and a better fix for bug #716790
10019
10020 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10021
10022         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10023
10024 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10025
10026         * doc/sdccman.lyx: minor changes, minor changed
10027
10028 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10029
10030         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10031         which can't handle SDCC_NEWONEBYTEOPS,
10032         (geniCodeMultiply): removed conversion from mult to shift for pic14
10033         and pic16
10034
10035 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10036
10037         * src/hc08/gen.h,
10038         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10039         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10040         thus fixing bug #895406
10041
10042 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10043
10044         * device/lib/_modsint.c,
10045         * device/lib/_modslong.c: sign follows divisor only
10046         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10047         signs or signedness can be ignored
10048         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10049         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10050         added optimization for IFX,
10051         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10052         arguments;
10053         reenabled optimization for IFX, which was removed on 2004-01-11
10054         * src/SDCCast.h: added return type IFX
10055         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10056         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10057         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10058         SDCC_OLDONEBYTEOPS selects the old behaviour
10059         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10060         changed again and commented promotion rule
10061         * src/SDCCval.c (valDiv): promotion no longer necessary
10062         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10063         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10064         rewritten
10065         * support/regression/tests/onebyte.c: added
10066
10067 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10068
10069         * gen.c (genInline): reverted to old code for assemnling inline
10070         code because of bug reported James Chadd
10071
10072 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10073
10074         * ralloc.h: missing declarations from previous patch,
10075         seems that patch for ralloc.h was never applied, fixed
10076
10077 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10078            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10079
10080         * pcode.c,
10081         * pcode.h,
10082         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10083         indirect addressing. Marked FSR0 as deprecated
10084         * gen.c (pointerCode): commented out, not needed now
10085         (pic16_popGet2p): new MOVFF helper function
10086         (genGenPointerGet),
10087         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10088         (shiftRLong): removed duplicate debugging info
10089
10090 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10091
10092         * src/ds390/gen.c (genNearPointerGet),
10093         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10094         optimization with bits, but not bitfields.
10095         * src/ds390/ralloc.c (packRegisters),
10096         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10097
10098 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10099
10100         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10101
10102 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10103
10104         * src/SDCCsymt.h,
10105         * src/SDCCicode.c (operandFromSymbol),
10106         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10107         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10108         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10109         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10110         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10111         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10112         bug #892038
10113         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10114         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10115         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10116         * src/SDCCsymt.c (newSymbol),
10117         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10118         enumerator_list),
10119         * src/SDCCval.h,
10120         * src/SDCCval.c (newiList): fixed bug #885705
10121
10122 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10123
10124         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10125         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10126
10127 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10128
10129         * device/include/c8051f120.h,
10130         * device/include/c8051f300.h,
10131         * device/include/c8051f310.h: added/updated header files for Silicon
10132         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10133         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10134         in new section Submitting patches
10135
10136 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10137
10138         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10139         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10140         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10141         genGenPointerSet),
10142         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10143         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10144         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10145         genGenPointerSet),
10146         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10147         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10148         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10149         genGenPointerSet),
10150         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10151         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10152         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10153         genGenPointerSet): fixed bug #892400
10154         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10155         to eliminate build warnings.
10156         * src/SDCCast.c (processParms),
10157         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10158         fixed bug 751859
10159         * support/valdiag/valdiag.py: added GCC to the list of defines active
10160         when compiling with gcc
10161
10162 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10163
10164         * support/Util/SDCCerr.h,
10165         * support/Util/SDCCerr.c,
10166         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10167         with an incomplete type (fixed bug #883734)
10168         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10169
10170 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10171
10172         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10173
10174 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10175
10176         * src/SDCCast.c (decorateType),
10177         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10178         function pointer implementation
10179         * support/regression/tests/funptrs.c: added tests to verify both forms
10180         of function pointers work correctly. Added tests to verify parameters
10181         are passed in the correct order.
10182
10183 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10184
10185         * device.c (regCompare): registers are sorted by ascending
10186         address and increasing size,
10187         * main.c (_pic16_finaliseOptions): removed the declaration
10188         of compiler macro MCU. Now a macro of the format pic18fxxxx
10189         will be defined from the command line
10190
10191 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10192             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10193
10194         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10195         PCOP_RLCF was overwritten!
10196         * gen.c (genSkip): commented out calls to pic16_emitcode,
10197         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10198         * (genlshTwo),
10199         * (genRRC): added debugging info,
10200         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10201         overwritten while shifting,
10202         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10203         overwritten while shifting,
10204         * (AccLsh),
10205         * (AccRsh),
10206         * (shiftLLeftOrResult),
10207         * (shiftRLeftOrResult),
10208         * (shiftRLong),
10209         * (shiftLLong): Implemented with pic16_emitpcode
10210         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10211         * (genLeftShift): Fixed bug, operand for shift by variable always
10212         was "and"ed with 0x0f,
10213         * (genLeftShiftLiteral),
10214         * (genrshTwo),
10215         * (genRightShiftLiteral): added debugging info,
10216         * (genrshFour): added comment,
10217         * (genRightShift): determined signedness from operand "left"
10218         instead of "result"
10219
10220 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10221
10222         * src/SDCCicode.c (geniCodeParms),
10223         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10224         function pointers, fixed function pointer bugs #861242 and #861896
10225
10226 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10227
10228         * device/include/c8051f000.h,
10229         * device/include/c8051f120.h,
10230         * device/include/c8051f300.h: added header files for Silicon
10231         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10232
10233 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10234
10235         * src/SDCCast.c (processParams): added new type flow and restructured
10236         (gatherAutoInit): added new type flow
10237         (addCast): cosmetic changes
10238         (getLeftResultType): added new type flow for array indices, patch
10239         provided by Stas, see FR #877103
10240         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10241         array index patch by Stas
10242         * src/SDCCast.h: added prototype getResultTypeFromType()
10243         * src/SDCCval.h,
10244         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10245         * src/pic/glue.c (pic14emitStaticSeg),
10246         * src/pic16/glue.c (pic16emitStaticSeg),
10247         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10248         for initialization of symbols
10249         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10250         * support/Util/SDCCerr.h:
10251         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10252         * .version: bumped version number to 2.3.8
10253         * device/include/Makefile.in (install),
10254         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10255         avoid warnings
10256
10257 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10258
10259         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10260         Slade Rich fixed an optimization bug
10261         * src/pic/pcodepeep.c,
10262         * src/pic/pcoderegs.c
10263         * doc/Makefile (install): added test for directory
10264
10265 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10266
10267         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10268         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10269         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10270         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10271         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10272         * as/mcs51/asexpr.c (term),
10273         * as/hc08/asexpr.c (term): fixed bug #887146
10274
10275 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10276
10277         * src/z80/gen.c (genMult): handle single byte result product
10278         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10279         DUMMY_READ_VOLATILE (fixed bug #886367)
10280
10281 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10282
10283         * support/regression/tests/libmullong.c: fixed logic, on little endian
10284         hosts we ended without a mullong_wrapper()
10285
10286 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10287
10288         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10289         virus/worm forged address usage.
10290
10291 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10292
10293         Fixed promotion, it should be done on AST level:
10294         * src/SDCCast.c (addCast): added promotion to int
10295         (decorateType): updated call to upCast()
10296         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10297         usualUnaryConversions()
10298
10299 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10300
10301         * support/regression/tests/literalop.c (mulWrapper): Added a
10302         wrapper to remove integer overflow warnings.
10303
10304         * support/regression/tests/float_trans.c: Made work on host.
10305
10306         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10307         location of sz80.
10308
10309         * support/regression/generate-cases.py (main): Changed from inline
10310         to a main method.
10311
10312         * doc/Makefile (install): Changed to depth first to get rid of
10313         missing directory install warning.
10314
10315         * as/Makefile (install-doc): Made work on Mac.
10316
10317 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10318
10319         * src/SDCCast.c: added an additional type flow in decorateType() of
10320         opposite direction, see feature request #860006; it's enabled at runtime
10321         by setting the environment variable SDCC_NEWTYPEFLOW
10322         * src/SDCCast.h: changed prototype of decorateType()
10323         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10324         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10325         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10326         see feature request #877103
10327         * src/SDCCval.c: updated call of decorateType()
10328         (valBitwise): fixed bug #882876
10329         (valMinus): added promotion
10330         (valLogicAndOr): result is unsigned
10331         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10332         * src/SDCCsymt.c (computeType),
10333         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10334         must not cause an unsigned operation
10335         * src/pic/glue (pic14emitRegularMap),
10336         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10337
10338 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10339
10340         * src/pic/pcode.c (PCodeID): commented out left over debug code
10341
10342 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10343
10344         * support/valdiag/tests/overflow.c: added shift tests
10345         * src/pic/device.c,
10346         * src/pic/gen.c,
10347         * src/pic/gen.h,
10348         * src/pic/glue.c,
10349         * src/pic/main.c,
10350         * src/pic/pcode.c,
10351         * src/pic/pcode.h,
10352         * src/pic/pcodepeep.c,
10353         * src/pic/pcoderegs.c,
10354         * src/pic/ralloc.c,
10355         * src/pic/ralloc.h: applied patch from Slade Rich;
10356         added support for multiple code pages and multiple RAM banks on the
10357         PIC 14 port. The ASM files now no longer simply assume all the
10358         code / RAM are in the same page / bank. This means the linker can
10359         safely allocate code/RAM of separate ASM files to different pages/banks.
10360         * doc/sdccman.lyx: added Slade's tips
10361         * src/mcs51/peeph.def: fixed bug #880768
10362
10363 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10364
10365         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10366         * src/SDCCast.c (decorateType): fixed bug #880197
10367
10368 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10369
10370         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10371         getopt.h.
10372
10373         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10374         strtof is not part of C89 and isn't included with Mac OS X.
10375
10376 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10377
10378         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10379         shiftL2Left2Result): fixed bug #879326
10380         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10381         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10382         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10383         address fetch for clr instruction
10384         * device/lib/hc08/_mulint.c: created optimized assembly version
10385         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10386
10387 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10388
10389         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10390         proposed in FR #877103
10391
10392 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10393
10394         * src/SDCCval.c (cheapestVal): added missing checks
10395         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10396         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10397
10398 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10399
10400         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10401         equal operands
10402
10403 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10404
10405         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10406         loaded with the linker search paths (-L arguments) and the libraries
10407         to be linked with the current source (-l arguments). Changes
10408         currently will affect only the pic16 port.
10409         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10410         include path the port specific paths and port specific libraries,
10411         * gplink command now contains the $3 argument,
10412         * src/pic16/device.h,
10413         * src/pic16/device.c,: structure PIC_device is made public and
10414         renamed to PIC16_device, the same for variable Pics which is renamed
10415         to Pics16. Updated all references to them.
10416         * src/pic16/glue.c (pic16glue): corrected bug with code
10417         initialization which bypassed the variable initializations block.
10418
10419         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10420         COMPILE_FLAGS and added the --nostdinc option
10421
10422 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10423
10424         * device/include/mc68hc908jb8.h: Register defs for another member
10425         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10426
10427 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10428
10429         Documenting changes from previous commits.
10430         * configure.in (version 1.56),
10431         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10432         when generating output files to configure the pic16 library,
10433         but now I've commented it out, since gputils aren't installed in the
10434         SF compile farm, so library won't compile
10435
10436         * device/lib/Makefile.in (version 1.56): initially I've added in
10437         target 'all' the prerequestive 'model-pic16' so it compiled the
10438         pic16 library, but now I've commented it out for the same reasons
10439         above,
10440         * added targets 'model-pic16' and 'objects-pic16' to compile the
10441         library
10442         * added target 'port-specific-objects-pic16' to handle the
10443         generated libraries and copy them into the build/ directory
10444         * added target 'clean-intermediate-pic16' to clean intermediate
10445         files into pic16 directory
10446         * in target 'installdirs' added line to create directory pic16 in
10447         the installation path
10448
10449         * device/include/Makefile.in (version 1.11): in target 'install'
10450         added lines to copy all header files to installation path,
10451         * in target 'installdirs' added line create directory for pic16
10452         headers in the installation path
10453
10454 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10455
10456         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10457          a function call
10458
10459 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10460
10461         * configure,
10462         * device/lib/configure.in,
10463         * device/lib/configure: fixed for autoconf 2.57
10464
10465 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10466
10467         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10468         option so that it actually works. Made it specific to the z80, since
10469         the gbz80 doesn't have these kinds of I/O ports.
10470
10471 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10472
10473         * device/include/z180.h,
10474         * device/lib/_memcpy.c,
10475         * device/lib/_memmove.c,
10476         * device/lib/_mulint.c,
10477         * device/lib/ser_ir.c,
10478         * device/lib/ser_ir_cts_rts.c,
10479         * device/lib/_strcmp.c,
10480         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10481         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10482         portmode; added deprecation warning for bank= and protmode= forms.
10483         Also, guard against buffer overflow.
10484         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10485
10486 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10487
10488         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10489         changed interrupt vector table generation to only emit declared vectors.
10490         * device/include/Makefile.in: added missing backslash
10491         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10492
10493 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10494
10495         Mainly changes to support compilation of the device libraries
10496         * src/pic16/device.c: stack is allocated via symbol and not
10497         via literal number. The symbol is placed in the corresponding
10498         position of the data ram
10499         * (pic16_dump_section): relocatable and absolute uninitialized
10500         data are now emitted in sorted order to reduce section naming,
10501         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10502         weren't marked as being in the access bank,
10503
10504 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10505
10506         Added portion of GNU PIC Library under the directory
10507         device/include/pic16 and device/lib/pic16. These files
10508         contain the declarations of SFRs for the PIC18Fxx2 devices.
10509         The directory is initialized via configure from toplevel.
10510
10511 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10512
10513         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10514         the spilllocations to be compared correctly
10515
10516 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10517
10518         * src/SDCCast.c (decorateType): fixed bug introduced today
10519
10520 2004-01-12  Borut Razem <borut.razem AT siol.net>
10521
10522         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10523         doc/sdccman.lyx: upper case pragmas are deprecated
10524
10525 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10526
10527         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10528         in simpler and even better code
10529
10530 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10531
10532         * src/SDCCicode.c (operandOperation): fixed bug #874819
10533         * src/SDCCast.c (decorateType): fixed
10534         char foo (unsigned long ul) { return ul > 0; }
10535
10536 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10537
10538         * doc/sdccman.lyx: Moved and added some sections, small changes
10539         all over. Telling LaTeX to be less strict with word spacing
10540         to better keep the right margin. Changed some notes about
10541         maintainance of the ports in section 3.2.1 - is it OK like this?
10542
10543 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10544
10545         SDCC source changes:
10546         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10547         convilong): modified to inform the pic16 port that builtin functions
10548         are external
10549
10550         PIC16 PORT specific changes:
10551         * src/pic16/device.c pic16_dump_equates() added,
10552         processor registers declared internally by the port are emitted in
10553         the translation as equates,
10554         * src/pic16/gen.c: inline code is passed unprocessed to the
10555         translation,
10556         * (pic16_popGetLit2): fnuction modified to take second operand as
10557         pCodeOp pointer and not as literal,
10558         * (popRegFromIdx): prefixed with pic16_,
10559         * (pic16_popCombine2): modified to receive already allocated pCode
10560         operands,
10561         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10562         * (genFunction): initializes local stack frame and pushes on stack
10563         all the registers used by this function,
10564         * (genEndFunction): restores all registers from stack and restores
10565         stack frame,
10566         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10567         improvements,
10568         * (pic16glue): changed the program startup sequence,
10569         * added new dbName code 'A' for functions placed in absolute section
10570         * src/pic16/main.c: added function attribute _naked,
10571         * added pragma 'code' to place a fnuction at an absolute address,
10572         * added command line arguments --debug-ralloc and --pcode-verbose,
10573         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10574         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10575         * (pic16_newpCodeOpLit2): modified to take the second operand as
10576         pCodeOp pointer,
10577         * (pic16_printpBlock): modified to emit each function in a separate
10578         section,
10579         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10580         UPPER for immediate operands,
10581         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10582         instruction,
10583         * src/pic16/peeph.def: all peepholes with movff are commented out,
10584         because there is a problem in the pcode peep optimizer,
10585         * src/pic16/ralloc.c: the register allocator can now reuse local
10586         function symbols for another function. This saves register usage.
10587         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10588
10589         Added file src/pic16/NOTES with information about program writing on
10590         the current port version.
10591
10592 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10593
10594         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10595         and peephole 252 (array access)
10596
10597 2004-01-09  Borut Razem <borut.razem AT siol.net>
10598
10599         * src/SDCCmain.c : fixed #872250: -l command line defined library
10600           files are scanned before standard library files
10601
10602 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10603
10604         * src/SDCCast.c (decorateType): fixed bug #874046
10605
10606 2004-01-09  Borut Razem <borut.razem AT siol.net>
10607
10608         * support/scripts/sdcc.nsi: remove previous installation
10609
10610 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10611
10612         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10613         bytes for last interrupt vector (mcs51)
10614         * sdcc.spec: fixed typo
10615
10616 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10617
10618         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10619         gen51Code): more efficient parameter receive for --model-large
10620         ("bug" #845294)
10621
10622 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10623
10624         * src/ds390/main.c,
10625         * src/z80/main.c: added missed needLinkerScript flags (more than
10626         one port structure defined in these file)
10627         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10628         bug #795325
10629
10630 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10631
10632         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10633         * src/port.h: added flag needLinkerScript in port->linker
10634         structure to inform whether to create a .lnk file or not,
10635         * src/avr/main.c,
10636         * src/ds390/main.c,
10637         * src/hc08/main.c,
10638         * src/mcs51/main.c,
10639         * src/pic/main.c,
10640         * src/pic16/main.c,
10641         * src/xa51/main.c,
10642         * src/z80/main.c: changed appropriately to configure
10643         needLinkerScript flag
10644         * src/pic/gen.c,
10645         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10646         * src/pic/glue.c: added variable udata_section_name to
10647         override default uninitialized data segment definition for
10648         devices only with SHAREBANK memory (reported from Erik Epetrich)
10649         * (pic14emitOverlay): modified to emit a commented overlay segment
10650         directive when no overlay data exist
10651         * (picglue): modified to emit uninitialized data segment
10652         according to udata_section_name
10653         * src/pic/main.c (_pic14_parseOptions): added command line
10654         options --udata-section-name=[name] to override default
10655         udata definition name
10656         * modified _linkCmd and _asmCmd to include compiler passed
10657         arguments via -W option
10658         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10659         object file from '.rel' to '.o' in port->linker structure,
10660         changed size of fptr from 2 to 3 in port structure
10661
10662 2004-01-07  Borut Razem <borut.razem AT siol.net>
10663
10664         * support/scripts/sdcc.nsi: update PATH
10665         * support/scripts/sdcc.ico: craeted
10666
10667 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10668
10669         * device/include/Makefile.in: fix install
10670         * doc/Makefile: fix install
10671
10672 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10673
10674         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10675         in bug #860505
10676         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10677         how the function variable allocation summary is displayed; also
10678         include information about variables allocated to the overlay
10679         segment
10680
10681 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10682
10683         * as/mcs51/lkmain.c: Help about -Y option
10684         * as/mcs51/lkarea.c: Fixed gcc warnings
10685
10686 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10687
10688         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10689         fixed warning
10690         * support/valdiag/tests/overflow.c: added
10691         * src/SDCCast.c (decorateType),
10692         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10693         LEFT_OP (left shift)
10694
10695 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10696
10697         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10698         (default behaviour).
10699
10700 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10701
10702         A python script to validate compiler diagnostic messages. It can be
10703         used to verify that sdcc complains about bad c source code and
10704         gives a good location of the error.
10705         * support/valdiag/Makefile,
10706         * support/valdiag/valdiag.py,
10707         * support/valdiag/tests/*
10708
10709 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10710
10711         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10712         * src/SDCCsymt.c (newEnumType),
10713         * src/SDCCsymt.h
10714         * support/Util/SDCCerr.c,
10715         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10716         enum related bugs.
10717         * support/regression/tests/enum.c: added test for enum values that
10718         require at least 2 bytes of storage.
10719
10720 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10721
10722         * src/common.h: added ifndef/define/endif macros
10723         around the header file.
10724         Bug reported from Jesus Calvino-Fraga
10725
10726 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10727
10728         * sdcc.spec: updated
10729         * device/include/Makefile.in: don't install CVS directories
10730         * device/lib/Makefile.in: added removal of CVS directories after install
10731         * doc/Makefile: fixed install, added local_icons
10732         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10733         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10734         * src/ds390/gen.c (genRightShift): fixed bug #870788
10735         * src/SDCCast.c (decorateType): fixed bug #870781
10736
10737 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10738
10739         PIC16 port related changes:
10740         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10741         added variable stackPos,
10742
10743         * gen.c: genCall, assignResultValue: added support for
10744         pushing/retrieving function parameters to/from stack,
10745         genFunction,genEndFunction: setup stack frame for the
10746         generated function,
10747         genAddrOf: will be changed according to bug 863624
10748
10749         * added files genutils.c and genutils.h which contain gen*
10750         debugged and optimised functions extracted from gen.c
10751
10752         * glue.c: added variable 'externs' which holds extern symbols,
10753         pic16emitRegularMap: is modified to properly handle relocatable
10754          symbols under the new scheme,
10755         pic16createInterruptVect: is modified
10756         pic16printPublics: is modified to emit 'global' assembler directives,
10757         added pic16_printExterns to print extern symbols,
10758         pic16glue: initializes stack/frame pointer in the beginning of
10759         the assembly output. Temporary hack, will be corrected later,
10760         because gplink yet does not support stack and SDCC does not
10761         yet support a type of crt0.o object to create the final binary.
10762
10763         * Removed many lines that contain 8051 legacy code.
10764         * The code is finally placed under a 'code' directive.
10765         * Added port specific options.
10766
10767         * _process_pragma: simplified since now we do not need *special*
10768         include file to define SFR registers. But a separate header
10769         will be needed. This will be developed later.
10770         * _pic16_parseOptions: added, parses port specific options:
10771         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10772         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10773         --preplace-udata-with=
10774
10775         * _pic16_setDefaultOptions: modified to initialize section names,
10776         but hack is temporarly out of order since it needs improvement.
10777         * _pic16_genAssemblerPreamble: configuration words are emitted by
10778         their address instead of their name. This part is incomplete and
10779         supports only the 18Fxx2 devices. Other devices will emit an error
10780         during assembly since they do not contain the same set of config
10781         registers
10782         * _pic16_genIVT: is modified,
10783
10784         * pcode.c: added definitions for some hardware registers that are needed
10785         for stack support
10786         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10787         All PCI entries are updated. Now LFSR is supported.
10788         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10789         * added pic16_newpCodeOpLit2 to support instructions with
10790         two literal arguments
10791         * pic16_pCode2str: corrected code that emits assembler instructions
10792         with two literal operands and those that have an access bit modifier
10793         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10794         this fixes a bug which caused some labels to be lost, when an
10795         assembler directive was added, i.e. banksel,
10796         * pic16_FixRegisterBanking: improved logic that causes the insertion
10797         of bank switching,
10798         * InlineFunction: functions that are called once, are not any more
10799         inlined. This can be a port option in the future,
10800
10801         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10802
10803         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10804         hold the corresponding uninitialized symbols,
10805         * pic16_allocProcessorRegister: registers have explicit marked the
10806         accessBank field,
10807         * pic16_allocInternalRegister: registers are explicit marked as
10808         not used,
10809         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10810         processing list, so bit registers were lost,
10811         *
10812
10813         * ralloc.h: added field 'accessBank' and original symbol operand
10814         in register definition,
10815         * removed the field isMapped from register definition,
10816
10817         ** Several functions have been removed from various sources:
10818         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10819         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10820         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10821         pic16_assignRelocatableRegisters
10822
10823         ** others have been introduced:
10824         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10825         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10826
10827 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10828
10829         * support/scripts/inc2h.pl: changed definition of BIT_AT
10830         to emit 'sbit at' instead of 'bit at'. This was a request.
10831
10832         PIC16 port related preliminary changes:
10833         * gen.c: prefixed function popRegFromString with
10834         pic16_ and all references to it corrected
10835         * pcode.c: all pic16_pc_* hardware registers prefixed
10836         with underscore (_),
10837         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10838         * ralloc.c: newReg(): when register is REG_SFR then
10839         set address to rIdx,
10840         pic16_allocProcessorRegister(): marks register wasUsed=0
10841         pic16_writeUsedRegs(): added a call to assign processor
10842         registers via pic16_assignFixedRegisters
10843
10844 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10845
10846         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10847         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10848         variables in unused register banks.  Also the SSEG is placed
10849         wherever there is enough space for it, and IDATA can be anywhere
10850         in internal RAM.  For now compile using -Wl-Y[stack_size].
10851         The mem file is different for this option as well, since it
10852         makes no sense of talking about DSEG lenght.
10853
10854 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10855
10856         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10857         in certain cases, e.g. when ROM assignment, patch provided
10858         from Albert den Haan.
10859
10860 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10861
10862         Many signedness and type propagation fixes:
10863         * src/SDCCicode.c: made geniCodeCast() static
10864         replaced SPEC_ by IS_ (cosmetic)
10865         (operandOperation): fixed div and mod operation
10866         (usualBinaryConversions): added support for promotion of char
10867         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10868         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10869         (geniCodeAdd): an array index will stay unsigned, even if promoted
10870         from char to int
10871         (geniCodeArray): ditto
10872         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10873         * src/SDCCsymt.c (computeType): added more support for char;
10874         promotion of char is selectable by promoteCharToInt, fixed signedness
10875         for all cases
10876         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10877         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10878         * src/SDCCval (val*): replaced signedness calculation by
10879         computeType()
10880         rearranged if-branches (cosmetic)
10881         (valShift): added warning W_SHIFT_CHANGED
10882         (valCompare): fixed problem with different types
10883         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10884         * support/regression/tests/literalop.c: added many cases
10885         * support/regression/tests/ast_constant_folding.c: changed finally to
10886         'unsigned int'
10887         * .version: new year, new version: 2.3.7
10888         * src/SDCCmain.c (main): applied patch #866468
10889         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10890         provided by Scott Bronson
10891         * doc/sdccman.lyx: updated documentation for sdcdb
10892         updated and added chapter tips
10893
10894 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10895
10896         * src/SDCCsymt.h: missing from yesterday's commits
10897
10898 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10899
10900         * src/SDCC.y (struct_or_union_specifier),
10901         * support/Util/SDCCerr.c,
10902         * support/Util/SDCCerr.h: verify that struct & union tags are used
10903         as declared.
10904
10905 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10906
10907         * src/SDCCglobl.h: missing from yesterday's commits
10908
10909 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10910
10911         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10912         sft_attributes, struct_declaration, parameter_declaration,
10913         type_name, start_block, declaration_list),
10914         * src/SDCC.lex (check_type): support redefinition of typedef names
10915
10916 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10917
10918         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10919         aligned xdata arrays. Erik helped me with the if clause.
10920
10921 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10922
10923         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10924         warning
10925
10926 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10927
10928         * src/SDCCast.h,
10929         * src/SDCCast.c (newAst_),
10930         * src/SDCCicode.h,
10931         * src/SDCCicode.c (ast2iCode, newiCode),
10932         * src/SDCCglobl.h,
10933         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10934         expr, statement, expression_statement, selection_statement,
10935         iteration_statement, expr_opt, jump_statement): foundation for tracking
10936         sequence points
10937         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10938         point code too)
10939
10940 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10941
10942         * support/Util/SDCCerr.c,
10943         * src/SDCCast.h,
10944         * src/SDCCast.c (createCase, createDefault, decorateType),
10945         * src/SDCClabel.c (labelUnreach),
10946         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10947         to error messages.
10948         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10949         (with thanks to Stas Sergeev)
10950         * device/include/time.h,
10951         * device/lib/time.c (CheckTime): suppress unreachable code warning
10952
10953 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10954
10955         * src/SDCCast.c (createIvalCharPtr),
10956         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10957         bug #753752)
10958         * support/regression/tests/nullstring.c: tests for these two bugs
10959
10960 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10961
10962         * support/Util/SDCCerr.h,
10963         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10964         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10965         about storage class and 'at' used inside struct or union
10966         * src/SDCCBBlock.c (iCodeFromeBBlock),
10967         * src/SDCCcse.c (ifxOptimize),
10968         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10969         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10970         printIval, emitStaticSeg, emitOverlay),
10971         * src/SDCClabel.c (deleteIfx),
10972         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10973         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10974         gatherAutoInit, processParms),
10975         * support/Util/SDCCerr.h,
10976         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10977         reporting for post-parse errors.
10978
10979 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10980
10981         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10982         implicit casts via union; they don't work on big endian systems
10983         (possible fix for bug #861138)
10984
10985 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10986
10987         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10988         * src/mcs51/main.c: fixed the fix for bug #737001
10989
10990 2003-12-15  Borut Razem <borut.razem AT siol.net>
10991
10992         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10993
10994 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10995
10996         * support/makebin/makebin.c: put output in binary mode
10997
10998 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10999
11000         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11001         xdata and data memory on startup. Set the environment variable
11002         SDCC_NOGENRAMCLEAR to disable this.
11003         * src/mcs51/peephole.def,
11004         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11005         (allows non-interrupt and interrupt code to safely compete for a resource
11006         without the non-interrupt code having to disable interrupts)
11007
11008 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11009
11010         * src/SDCCicode.c (geniCodeAdd),
11011         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11012         with valFromType if type might be a pointer and host is big endian).
11013         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11014         types, not just integer types.
11015         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11016         multiply defined with mismatching "at" address.
11017
11018 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11019
11020         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11021         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11022         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11023         with embedded nulls (fixed bug #753752)
11024
11025 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11026
11027         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11028         Apparently this did not see much testing (endless loop)
11029
11030 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11031
11032         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11033
11034 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11035
11036         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11037         gracefully handle NULL memmap pointers
11038
11039 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11040
11041         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11042         instead of deleting the iCode when an operand is volatile
11043         * src/z80/gen.c (genDummyRead),
11044         * src/mcs51/gen.c (genDummyRead),
11045         * src/ds390/gen.c (genDummyRead),
11046         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11047         not just IC_RIGHT
11048         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11049         * src/SDCC.y: fixed bug #850420
11050
11051 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11052
11053         Applied z80 i/o port patch from Peter Townson and fixed some operators
11054         to better handle operands in A register.
11055         * device/include/z180.h
11056         * src/SDCC.y
11057         * src/SDCCglue.c
11058         * src/z80/gen.c
11059         * src/z80/gen.h
11060         * src/z80/main.c
11061         * src/z80/peeph-z80.def
11062         * src/z80/peeph.def
11063         * src/z80/z80.h
11064
11065 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066
11067         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11068
11069 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11070
11071         * device/lib/hc08/_mullong.c: Removed extra #endif
11072
11073 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11074
11075         * sim/ucsim/hc08.src/inst.cc,
11076         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11077         carries from x to h
11078         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11079         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11080         * device/include/stdarg.h: fixed varargs for hc08
11081         * device/lib/Makefile.in,
11082         * device/lib/hc08/Makefile,
11083         * device/lib/hc08/_mulint.c,
11084         * device/lib/hc08/_mullong.c: fixed some endian problems
11085
11086 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11087
11088         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11089         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11090         * device/lib/_gptrget.c,
11091         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11092
11093 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11094
11095         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11096         * src/SDCCast.c (astErrors): fixed bug #846007
11097         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11098
11099 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11100
11101         * src/SDCCast.c (decorateType): disabled a transformation I added in
11102         revision 1.188 (access to fields of a structure at an absolute address);
11103         it breaks with bitfields, extern declarations, and gcse analysis.
11104         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11105         could be assigned through a pointer, so don't complain.
11106         * src/SDCCast.c (astErrors),
11107         * src/SDCCast.h,
11108         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11109
11110 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11111
11112         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11113         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11114         output of __config directives, since gpasm now supports them
11115         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11116         pre-processor macro, i.e. -DMCU=p18f452
11117         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11118         and modified to handle 'cast' icode similarly to '=' icode
11119         * src/pic16/device.h (typedef struct PIC_device): added field
11120         'extMIface' to indicate that chip has external memory interface
11121         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11122         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11123         18F8720
11124
11125 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11126
11127         * src/SDCC.y (pointer): fixed bug #846006
11128         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11129         * src/SDCCast.c (decorateType): fixed bug #846009
11130         * src/ds390/peeph.def,
11131         * src/ds390/gen.c (genAnd, genOr),
11132         * src/mcs51/peeph.def,
11133         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11134
11135 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11136
11137         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11138         * src/SDCCdflow.c
11139         * src/SDCCcse.c
11140         * src/SDCCcse.h
11141         * src/SDCCBBlock.h
11142         * src/SDCCBBlock.c
11143
11144 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11145
11146         fixed bug #845089
11147         * src/SDCCbitv.h,
11148         * src/SDCCbitv.c: added function to free a bitvector
11149         * src/SDCClrange.h,
11150         * src/SDCClrange.c: added function to recompute the liveranges
11151         * src/avr/ralloc.c,
11152         * src/ds390/ralloc.c,
11153         * src/hc08/ralloc.c,
11154         * src/mcs51/ralloc.c,
11155         * src/pic/ralloc.c,
11156         * src/pic16/ralloc.c,
11157         * src/xa51/ralloc.c,
11158         * src/z80/ralloc.c: recompute the liveranges after register packing
11159
11160 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11161
11162         * src/SDCCloop.c (newInduction): fixed bug #845630
11163
11164 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11165
11166         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11167         inadvertantly left behind from my 2003-11-12 change
11168
11169 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11170
11171         Updated headers I neglected to commit yesterday.
11172         * src/SDCClrange.h,
11173         * src/SDCCicode.h
11174
11175 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11176
11177         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11178         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11179         * src/SDCCopt.c (eBBlockFromiCode),
11180         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11181         the creation of the key hash table from the sequencing so it can be used
11182         earlier (for some GCSE bug fixes still pending)
11183
11184 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11185
11186         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11187         * support/regression/tests/addsub.c: testing genPlus shortcut
11188
11189 2003-11-15  Borut Razem <borut.razem AT siol.net>
11190
11191         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11192
11193 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11194
11195         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11196         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11197         ordering is immaterial.
11198         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11199
11200 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11201
11202         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11203         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11204         (SIGSEV) of bug #840381
11205         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11206         unlink new file before rename if new and old filenames are the same)
11207
11208 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11209
11210         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11211         uninitialized variables) for the mcs51. Set environment variable
11212         SDCC_GENRAMCLEAR to test.
11213         xdata initialization slightly shorter
11214
11215 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11216
11217         * src/SDCCsymt.h,
11218         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11219         #838241 & 780691 (basicly the same bug)
11220         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11221         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11222
11223 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11224
11225         * src/SDCCmain.c (linkEdit): "fix" #834252
11226
11227 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11228
11229         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11230         * src/SDCCast.h,
11231         * src/SDCC.y: fixed bug #819403
11232
11233 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11234
11235         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11236         the reentrant attribute.
11237         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11238         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11239         simulation
11240         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11241         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11242         erroneously reduced to a literal.
11243         * src/hc08/ralloc.c (packRegisters, rematStr),
11244         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11245         some cases
11246
11247 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11248
11249         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11250         * doc/sdccman.lyx: changed from 'article' to 'book'
11251         * doc/Makefile: readded test_suite_spec and cdbfileformat
11252
11253 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11254
11255         * device/include/stdlib.h: include malloc.h to comply with ANSI
11256         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11257
11258 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11259
11260         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11261         * doc/clean.mk: also remove *.out files
11262         * doc/sdccman.lyx: some additions, larger top/bottom margins
11263
11264 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11265
11266         * src/SDCC.y: fixed bug #837365
11267         * support/regression/tests/bitopcse.c
11268         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11269         a symbol (might be valop instead)
11270         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11271         * device/lib/clean.mk: added hc08 to the cleaning list
11272
11273 2003-11-04  Borut Razem <borut.razem AT siol.net>
11274
11275         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11276           made 2003-11-04
11277         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11278           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11279           malloc is declared in standard stdlib.h
11280
11281 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11282
11283         * device/lib/hc08/Makefile: need to clean .rel not .o files
11284         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11285
11286 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         * src/port.h,
11289         * src/hc08/main.c,
11290         * src/mcs51/main.c,
11291         * src/ds390/main.c,
11292         * src/z80/main.c,
11293         * src/avr/main.c,
11294         * src/pic/main.c,
11295         * src/pic16/main.c,
11296         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11297         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11298         tests (which uses the port's oclsExpense function)
11299         * src/SDCC.y,
11300         * src/SDCCast.c,
11301         * src/SDCCicode.c,
11302         * src/hc08/gen.c,
11303         * src/ds390/gen.c,
11304         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11305
11306 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11307
11308         * src/SDCCcse.c (ifxOptimize),
11309         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11310         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11311         deleting the IFX iCode.
11312         * src/hc08/ralloc.c: reduced unneeded slocs
11313         * src/hc08/gen.c: fixed bug in asmopToBoolean
11314
11315 2003-11-04  Borut Razem <borut.razem AT siol.net>
11316
11317         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11318           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11319           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11320           transferred to configure
11321
11322 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11323
11324         Use headers defined in the C[++] standards:
11325         * sim/ucsim/gui.src/serio.src/fileio.cc
11326         * sim/ucsim/gui.src/serio.src/frontend.cc
11327         * sim/ucsim/gui.src/serio.src/main.cc
11328         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11329         * support/Util/NewAlloc.c
11330         * as/hc08/lklibr.c
11331         * as/mcs51/lklibr.c
11332         * as/z80/aslist.c
11333         * as/z80/assym.c
11334
11335 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11336
11337         * Added MSVC projects for hc08 assembler and linker:
11338         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11339         /as/hc08/link_hc08.dsp
11340
11341 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11342
11343         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11344
11345 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11346
11347         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11348
11349 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11350
11351         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11352
11353 2003-10-31  Borut Razem <borut.razem AT siol.net>
11354
11355         * support/cpp2/cpplib.h,
11356           support/cpp2/cpplib.c,
11357           support/cpp2/cpplex.c,
11358           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11359           to switch _asm block preprocessing on / off. Default is
11360           #pragma preproc_asm +
11361
11362 2003-10-31  Borut Razem <borut.razem AT siol.net>
11363
11364         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11365           when outputting comment blocks (when executed with -C option) and
11366           _asm (SDCPP specific) blocks
11367
11368 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11369
11370         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11371
11372 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11373
11374         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11375
11376 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11377
11378         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11379         * src/SDCCast.c (decorateType): fixed bug #832664
11380
11381 2003-10-31  Borut Razem <borut.razem AT siol.net>
11382
11383         * support/cpp2/cpplex.c: fixed for SDCPP:
11384           comments(when executed with -C option) and _asm blocks
11385           were included even if they where in skipped #if block.
11386           Applied solution from GCC cpp 3.3.2
11387
11388 2003-10-31  Borut Razem <borut.razem AT siol.net>
11389
11390         * src/SDCC.lex: sdcc now understands both formats:
11391           '# <line_number> <file_name>' and
11392           '#line <line_number> <file_name>'
11393         * support/cpp2/cppmain.c: sdcpp now generates the standard
11394           '# <line_number> <file_name>' instead of former
11395           '#line <line_number> <file_name>'
11396
11397 2003-10-30  Borut Razem <borut.razem AT siol.net>
11398
11399         * support/cpp2/cpphash.h,
11400         * support/cpp2/cpplib.h
11401         * support/cpp2/cpplex.c,
11402         * support/cpp2/cppmain.c,
11403         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11404
11405 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11406
11407         Fixed a number of problems revealed by bug #827883.
11408         * src/SDCCloop.c (loopInvariants): Spill location of the
11409         result operand should be recomputed if extracted from
11410         a loop. Also, don't extract assignments of an iTemp
11411         from a literal.
11412         * src/SDCCast.c (isConformingBody): loop reversal should
11413         not occur if the control variable is involved with a
11414         relational operator.
11415
11416 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11417
11418         * .version: bumped to 2.3.6 to reflect the big improvements
11419         made by Erik and Klaus. Thanks!
11420
11421 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11422
11423         Replaced the livrange code.
11424         * src/SDCClrange.c: added new LR code
11425         * src/SDCCloop.c,
11426         * src/SDCCBBlock.h: removed remainig parts from old LR code
11427         * src/ds390/ralloc.c,
11428         * src/ds390/gen.c: minor fixes to make it work with new code
11429
11430 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11431
11432         * as/hc08/asm.h,
11433         * as/hc08/lkrloc.c,
11434         * src/hc08/gen.c,
11435         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11436         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11437         (tweaked fix for bug #818696)
11438
11439 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11440
11441         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11442
11443 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11444
11445         * src/SDCCmain.c,
11446         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11447         * src/mcs51/gen.c (gencjneshort),
11448         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11449         more efficient (per Scott Bronson's suggestion)
11450
11451 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11452
11453         Extended the semantics of the critical keyword to include
11454         individual statements. See RFE #827755 and #799831
11455         * src/SDCC.y
11456         * src/SDCCicode.c
11457         * src/SDCCopt.c
11458         * src/SDCCast.c
11459         * support/Util/SDCCerr.c
11460         * support/Util/SDCCerr.h
11461         * src/mcs51/gen.c
11462         * src/ds390/gen.c
11463         * src/hc08/gen.c
11464
11465 2003-10-19  Borut Razem <borut.razem AT siol.net>
11466
11467         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11468
11469 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11470
11471         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11472         Fixed bug #818696
11473         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11474         and predecrement operand is displayed
11475
11476 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11477
11478         * src/SDCCval.c (valMinus): fixed bug #826041
11479
11480 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11481
11482         Some hc08 related updates that I missed earlier
11483         * sim/ucsim/stypes.h
11484         * support/regression/ports/hc08/spec.mk
11485
11486 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11487
11488         New target "hc08" for the Motorola 68hc08 family of micros
11489
11490         * configure
11491         * configure.in
11492         * Makefile
11493         * src/hc08/*
11494         * src/SDCCmain.c
11495         * src/port.h
11496         * sim/ucsim/hc08.src/*
11497         * sim/ucsim/configure.in
11498         * src/ucsim/configure
11499         * sim/ucsim/packages_in.mk
11500         * as/hc08/*
11501         * as/Makefile
11502         * device/include/mc68hc908qy.h
11503         * device/lib/hc08/*
11504         * device/lib/Makefile.in
11505         * support/regression/ports/hc08/*
11506         * support/regression/Makefile
11507
11508 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11509
11510         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11511         regression test
11512         * src/ds390/gen.c (genCast): fixed bug #821957
11513
11514 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11515
11516         * device/lib/logf.c: "fixed" overlay bug
11517         * support/regression/ports/host/spec.mk: added m library
11518         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11519         * support/regression/tests/float_trans: added (for Eric)
11520
11521 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11522
11523         * src/mcs51/gen.c (genCpl): fixed bug
11524         http://sf.net/mailarchive/message.php?msg_id=6263915
11525
11526 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11527
11528         * src/SDCCast.c (decorateType): added extended constant folding
11529         * src/SDCCsymt.c (computeType): cleanup
11530         * src/SDCCval.c (valShift): minor optimization
11531         * support/regression/tests/ast_constant_folding.c: added
11532
11533 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11534
11535         * src/SDCCmain.c: removed some unintended changes
11536
11537 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11538
11539         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11540         * src/z80/gen.c: fixed part of bug #817589
11541         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11542
11543 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11544
11545         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11546         * src/SDCCcflow.c
11547         * src/SDCCcse.c
11548         * src/SDCCdflow.c
11549         * src/SDCClabel.c
11550         * src/SDCClrange.c
11551         * src/SDCCmem.c
11552         * src/SDCCopt.c
11553         * src/SDCCpeeph.c
11554         * src/SDCCset.c
11555         * src/avr/ralloc.c
11556         * src/ds390/ralloc.c
11557         * src/izt/ralloc.c
11558         * src/mcs51/ralloc.c
11559         * src/pic/ralloc.c
11560         * src/pic16/ralloc.c
11561         * src/xa51/ralloc.c
11562         * src/z80/ralloc.c
11563         * src/z80/gen.c: removed unused label "release:"
11564
11565 2003-10-06  Borut Razem <borut.razem AT siol.net>
11566
11567         * src/SDCC.lex: removed definition of unused variables
11568           save_optimize and save_options
11569
11570 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11571
11572         * clean.mk: removed '=' in "-maxdepth=1"
11573         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11574         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11575
11576 2003-10-06  Borut Razem <borut.razem AT siol.net>
11577
11578         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11579           my_unput() replaced by unput()
11580
11581 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11582
11583         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11584         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11585         type-punned pointer will break strict-aliasing rules"
11586         Old LR behaviour is again default; Klaus' LR can be choosen by
11587         defining the environment variable LRKLAUS
11588         * src/SDCCBBlock.h
11589         * src/SDCCloop.c
11590         * src/SDCClrange.c
11591         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11592         * clean.mk: fixed removal of files in bin/CVS/
11593         * device/lib/clean.mk: fixed removal of directories small and large
11594         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11595         * src/SDCCicode.c,
11596         * src/SDCCval.c: removed superflous test for pedantic
11597
11598 2003-10-05  Borut Razem <borut.razem AT siol.net>
11599
11600         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11601           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11602           message "unmatched #pragma SAVE and #pragma RESTORE"
11603
11604 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11605
11606         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11607           assembly, critical functions, atomic, nojtbound)
11608
11609 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11610
11611         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11612         * src/SDCCBBlock.h
11613         * src/SDCCloop.c
11614         * src/SDCCloop.h
11615         * src/SDCClrange.c
11616
11617 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11618
11619         * src/z80/gen.h,
11620         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11621         * src/mcs51/gen.h
11622         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11623         * src/ds390/gen.h
11624         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11625         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11626         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11627
11628 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11629
11630         * src/z80/gen.c (genRet): fixed bug #524753
11631         * src/z80/gen.c (genCast): fixed internal error on cast from
11632         pointer to long
11633         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11634         fix for bug #477835 to the z80
11635         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11636         for tracking iCodes in the peephole optimizer for z80
11637
11638 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11639
11640         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11641         the other part of bug #814548
11642         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11643
11644 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11645
11646         * src/SDCCcse.c: fixed part of bug #814548
11647
11648 2003-09-28  Borut Razem <borut.razem AT siol.net>
11649
11650         * src/asm.c: rewrite of printILine() to use temporary file instead
11651           a pipe
11652         * src/xa51/main.c: commented out declaration of int rewinds
11653
11654 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11655
11656         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11657
11658 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11659
11660         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11661         * src/asm.c (printILine): Fixed bug #811015
11662
11663 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11664
11665         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11666         freeing.
11667
11668 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11669
11670         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11671         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11672         to correctly handle general case of AOP_PAIRPTR
11673         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11674
11675 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11676
11677         * src/mcs51/ralloc.c (fillGaps),
11678         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11679         register positioning bug)
11680
11681 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11682
11683         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11684
11685 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11686
11687         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11688         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11689         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11690         (ralloc doesn't intentionally do this now, but perhaps later)
11691         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11692         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11693         register positioning bugs (Fixed bug #762602 and #795325)
11694         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11695         (Fixed bug #808779)
11696         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11697         lines that --i-code-in-asm generates
11698
11699 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11700
11701         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11702         trying to fclose a FILE* that was already closed.
11703
11704 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11705
11706         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11707         of const struct should be treated as if const themselves)
11708
11709 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11710
11711         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11712
11713 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11714
11715         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11716         Unix (/n) and DOS (/r/n) line terminations.
11717
11718 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11719
11720         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11721         bug #613775
11722
11723 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11724
11725         * src/mcs51/gen.c (genFunction, genEndFunction),
11726         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11727         and restore of EA so that stack offsets to parameters are
11728         correct when using both critical and reentrant/stack-auto.
11729         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11730         size (can be triggered in error if sloc is shared between
11731         different sized objects)
11732         * device/include/float.h: fixed macros to explicitly use
11733         unsigned long where needed
11734
11735 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11736
11737         Feature req. 799831: added code to allow nesting of critical functions
11738         * src/mcs51/gen.c (genFunction, genEndFunction)
11739         * src/ds390/gen.c (genFunction, genEndFunction)
11740
11741 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11742
11743         * src/SDCCsymt.c (sclsFromPtr),
11744         * src/SDCCsymt.h,
11745         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11746         support for standard C idiom of memory mapped variables; for
11747         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11748         to xdata int at 0x1234 tempvar = 1.
11749         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11750         provided by Akiya ISHIDA
11751
11752 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11753
11754         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11755         * src/SDCCval.c (constVal): added reduction from int to char
11756         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11757         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11758         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11759         to ignore the sign
11760         * support/regression/tests/shifts.c: fixed
11761
11762 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11763
11764         * src/z80/gen.c (genXor): Fixed bug #805445
11765
11766 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11767
11768         Fixed bug #621531 (const & volatile confusion in the type chain).
11769         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11770         refer to the const or volatile state of the pointer itself.
11771
11772         * src/SDCCast.c
11773         * src/SDCCglue.c
11774         * src/SDCCicode.c
11775         * src/SDCCsymt.c
11776         * src/SDCCval.c
11777         * src/SDCC.y
11778         * src/SDCCsymt.h
11779         * src/pic/gen.c
11780         * src/pic/ralloc.c
11781         * src/pic16/gen.c
11782         * src/pic16/ralloc.c
11783         * support/regression/tests/const.c
11784
11785 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11786
11787         When checking for duplicated modules, use absolute paths
11788         instead of relative paths.  Files changed:
11789
11790         * as/mcs51/lklib.c
11791         * link/z80/lklib.c
11792
11793 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11794
11795         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11796
11797 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11798
11799         * device/include/string.h: added size_t typedef, changed
11800         prototypes to use size_t, eliminated separate reentrant and
11801         non-reentrant declarations, added _memmove declaration
11802         * device/lib/_memcpy.c: changed to use size_t instead of int,
11803         changed /4 to >>2 to avoid division library call
11804         * device/lib/_memcmp.c,
11805         * device/lib/_memset.c,
11806         * device/lib/_strncat.c,
11807         * device/lib/_strncpy.c,
11808         * device/lib/_strncmp.c: changed to use size_t instead of int
11809         * device/lib/_memmove.c: new file (fixed bug #772294)
11810         * device/lib/Makefile.in: added _memmove.c
11811         * device/lib/z80/asm_strings.s: fixed bug #772290
11812         * support/regression/tests/bitfields.c: attempt to fix host assertion
11813         failure on amd64-unknown-linux2.2
11814
11815 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11816
11817         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11818         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11819         * as/z80/asmain.c (main): fixed bug #801766
11820
11821 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11822
11823         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11824         compilers
11825
11826 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11827
11828         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11829         reported in bug #800609
11830
11831 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11832
11833         * Top header beautifications in src/pic16 directory:
11834           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11835           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11836           pcoderegs.h, ralloc.c, ralloc.h
11837         * main.c: added top header and GPL license notice
11838         * pcode.c: fixed the if-conditional warning
11839
11840 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11841
11842         * device/lib/_mullong.c: replaced int by short for gcc
11843
11844 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11845
11846         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11847         and JUMPTABLE iCodes properly now (worked by accident before)
11848         * src/mcs51/gen.c (leftRightUseAcc),
11849         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11850         iCode properly now. Use getSize instead of nRegs since a & b
11851         aren't part of the nRegs tally.
11852
11853 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11854
11855         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11856         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11857           before instructions that use the _STATUS register
11858
11859 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11860
11861         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11862         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11863         fetching of the pointer
11864         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11865         copied from genNearPointerSet()
11866         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11867         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11868         If they pop r0/r1 they must be called in the opposite order than aopOp().
11869         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11870         (resp. --stack-auto), prepared for --xstack
11871
11872 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11873
11874         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11875
11876 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11877
11878         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11879         these ports have their own __sdcc_external_start()
11880
11881 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11882
11883         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11884         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11885         type for bits was changed. It resulted in bit variables becoming
11886         global, which is not permitted in PIC 14 assembly output.
11887
11888 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11889
11890         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11891
11892 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11893
11894         Z80 and MCS51 linkers complaint if a public symbol is defined
11895         in more than one library module:
11896
11897         * as/mcs51/lklib.c
11898         * link/z80/lklib.c
11899         * as/mcs51/Makefile.in
11900
11901 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11902
11903         A few small changes that speed up the peephole optimizer.
11904
11905         * src/SDCCpeeph.c
11906
11907 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11908
11909         Try to make the peephole optimizer smarter by maintaining
11910         an association between the assembly source code and the
11911         iCodes that originated them. Put this information to use
11912         with a new peephole rule condition "notVolatile" so that
11913         the rules can be aggressive yet still safe.
11914
11915         * src/SDCCpeeph.c
11916         * src/SDCCpeeph.h
11917         * src/mcs51/gen.c
11918         * src/mcs51/peeph.def
11919
11920 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11921
11922         Fixed bug #741761
11923
11924         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11925         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11926         if the left or right operand symbols have the accuse flag set.
11927
11928 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11929
11930         Changed the type of the result of the ! (NOT) operator to char;
11931         previously it returned the same type as the source. This allows
11932         us to eliminate all the genFloatNot functions (all of its target
11933         implementations were very buggy) since !float can use the same
11934         code as !long now.
11935
11936         * src/SDCCicode.c (ast2iCode): ! returns char
11937         * src/mcs51/gen.c (genNot, genNotFloat),
11938         * src/ds390/gen.c (genNot, genNotFloat),
11939         * src/z80/gen.c (genNot, genNotFloat),
11940         * src/pic/gen.c (genNot, genNotFloat),
11941         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11942
11943 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11944
11945         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11946         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11947            during interrupts. Ensure WSAVE is located at a shared bank address.
11948         2. Fixed page selection in some places
11949         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11950            the registers name strings.
11951         4. Fixed "signed / unsigned compare" compiler warnings.
11952         5. The PIC port manages its own allocation of the general purpose
11953            registers, but makes no attempt to reuse them. As a result when
11954            compiling it soon runs out of general purpose registers. Some
11955            additional code was added to the files pcode.c and device.c to walk
11956            through the function call tree and rename the registers so that they
11957            get reused.
11958
11959         * src/pic/device.c
11960         * src/pic/gen.c
11961         * src/pic/glue.c
11962         * src/pic/pcode.c
11963         * src/pic/pcode.h
11964         * src/pic/ralloc.c
11965         * src/pic/ralloc.h
11966         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11967         genPlus() & genMinus() when the result is the same as left or right
11968
11969 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11970
11971         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11972
11973 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11974
11975         Made bitfield a distinct type from bit so that bitfields
11976         convert as per ANSI C and bits retain their traditional
11977         boolean style behaviour. Implemented bitfield support in
11978         the z80 port.
11979
11980         * src/SDCCsymt.h,
11981         * src/SDCCsymt.c,
11982         * src/SDCCast.c,
11983         * src/cdbFile.c,
11984         * src/mcs51/gen.c,
11985         * src/ds390/gen.c: bit v bitfield split
11986         * src/z80/gen.c: New support for bitfields
11987         * support/regression/tests/bitfields.c: reenabled z80,
11988         added more tests
11989
11990 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11991
11992         Rules 246.x, 247.x relate to bitfields, the others speed up
11993         access to xdata mapped I/O devices.
11994
11995         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11996
11997 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11998
11999         Cleaned up genPackBits and genUnpackBits and added two helper
12000         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12001         for literal assignments in genPackBits (thanks to Frieder for
12002         reminding me).
12003
12004         * src/mcs51/gen.c
12005         * src/ds390/gen.c
12006
12007 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12008
12009         Fixed bug #748310 (pointer to function type mishandled when the
12010         function name is omitted). Also fixed a SIGSEGV when a function
12011         attribute (reentrant, etc) is used on a non-function or on a
12012         function but misplaced before the parameter list.
12013
12014         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12015         bug #748310
12016         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12017         * support/Util/SDCCerr.h,
12018         * support/Util/SDCCerr.c: Added func attr misuse error msg
12019
12020 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12021
12022         Fixed bug #787649 by anonymous
12023         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12024         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12025
12026 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12027
12028         Fixed numerous bitfield problems.
12029
12030         * src/SDCC.y: More bitfield related error checking
12031         * src/SDCCsymt.h,
12032         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12033         * support/Util/SDCCerr.h,
12034         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12035         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12036         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12037         * support/regression/tests/bitfields.c: tests added
12038
12039 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12040
12041         Made the constant following the "interrupt" keyword optional. If
12042         omitted, the function will not automatically be given an entry
12043         in the interrupt vector table (similar to #pragma NOIV, but
12044         less syntacticly kludgy). The interrupt number is also now
12045         range checked. Also fixed a bug in the high order bit example
12046         in the manual.
12047
12048         * src/SDCC.y
12049         * src/SDCCmem.c
12050         * src/SDCCglue.c
12051         * src/SDCCsymt.h
12052         * support/Util/SDCCerr.c
12053         * support/Util/SDCCerr.h
12054         * doc/sdccman.lyx
12055
12056 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12057
12058         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12059         * src/SDCCicode.c (operandOperation): rewritten some ops
12060         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12061         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12062         other type
12063         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12064         be re-activated by defining REDUCE_LITERALS)
12065         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12066         unsigned, but are signed by default
12067         * src/SDCCval.c (constVal): rearranged
12068         * src/SDCCval.c (valMod): preliminary fix
12069         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12070         * support/regression/literalop.c: added, work in progress
12071
12072 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12073
12074         Generate warnings for useless declarations like "char data;"
12075         that don't do what new users expect.
12076
12077         * src/SDCC.y
12078         * support/Util/SDCCerr.h
12079         * support/Util/SDCCerr.c
12080
12081 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12082
12083         * src/SDCCval.c (valMult): fix overflow detection of negative int
12084
12085 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12086
12087         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12088
12089         Changes to support big endian targets:
12090
12091         * src/ports.h
12092         * src/SDCCglue.c
12093         * src/avr/main.c
12094         * src/ds390/main.c
12095         * src/izt/i186.c
12096         * src/mcs51/main.c
12097         * src/pic/main.c
12098         * src/pic16/main.c
12099         * src/xa51/main.c
12100         * src/z80/main.c
12101
12102 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12103
12104         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12105         * device/lib/time.c: fixed warning "integer overflow in expression"
12106
12107 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12108
12109         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12110         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12111         constants are unsigned; added recognition of "u" flag for unsigned
12112         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12113         * src/SDCCval.c (valDiv, valMod): fixed signdness
12114         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12115         signedness of modulo, left and right shift
12116         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12117         * support/Util/SDCCerr.h: added warning W_INT_OVL
12118         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12119         * src/SDCCast.c (ast_print): improved output of constants
12120
12121 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12122
12123         Fixed some warnings when building with MSVC:
12124
12125         * as/mcs51/asdata.c
12126         * as/z80/asdata.c
12127         * as/mcs51/asm.h
12128         * as/z80/asm.h
12129         * link/z80/aslink.h
12130         * link/z80/lkdata.c
12131         * link/z80/lkeval.c
12132         * link/z80/lkgb.c
12133         * link/z80/lkihx.c
12134         * link/z80/lks19.c
12135         * link/z80/lksym.c
12136         * support/cpp2/cpplib.c
12137         * src/ds390/gen.c
12138         * src/mcs51/gen.c
12139
12140 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12141
12142         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12143
12144 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12145
12146         * support/librarian/clean.mk: Do not remove Makefile.
12147         * support/librarian/Makefile: added.
12148
12149 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12150
12151         Added librarian to MSVC build:
12152         * all.dsp
12153         * sdcc.dsw
12154         * support/librarian/librarian.dsp
12155
12156         'configure' not needed for librarian, removed:
12157         * support/librarian/configure
12158         * support/librarian/configure.in
12159         * support/librarian/config_in.h
12160         * support/librarian/Makefile.in
12161
12162         Hopefully these ones built the librarian and the rest of sdcc properly:
12163         * Makefile
12164         * Makefile.common.in
12165
12166         Messed up 'configure', so revert to previous version:
12167         * configure
12168         * configure.in
12169
12170 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12171
12172         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12173         there, while the mantissa of a double is "only" 53 bits wide.
12174
12175 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12176
12177         Adding sdcclib to the build.  MSVC project coming soon.
12178         Files added/changed:
12179
12180         * support/librarian/clean.mk
12181         * support/librarian/configure
12182         * support/librarian/configure.in
12183         * support/librarian/config_in.h
12184         * support/librarian/Makefile.bcc
12185         * support/librarian/Makefile.in
12186         * support/librarian/sdcclib.c
12187         * Makefile.bcc
12188         * Makefile
12189         * Makefile.common.in
12190         * configure
12191         * configure.in
12192
12193 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12194
12195         Linker now complaints if linked modules have conflicting options, for
12196         example, one compiled using --model-large and another one compiled with
12197         --model-small.  The following files were modified:
12198
12199         * as/mcs51/asdata.c
12200         * as/mcs51/aslink.h
12201         * as/mcs51/asm.h
12202         * as/mcs51/asmain.c
12203         * as/mcs51/asout.c
12204         * as/mcs51/i51pst.c
12205         * as/mcs51/lkdata.c
12206         * as/mcs51/lklibr.c
12207         * as/mcs51/lkmain.c
12208         * as/z80/asdata.c
12209         * as/z80/asm.h
12210         * as/z80/asmain.c
12211         * as/z80/asout.c
12212         * as/z80/z80pst.c
12213         * link/z80/aslink.h
12214         * link/z80/lkdata.c
12215         * link/z80/lklibr.c
12216         * link/z80/lkmain.c
12217         * src/SDCCglue.c
12218
12219 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12220
12221         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12222         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12223
12224 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12225
12226         * src/z80/mappings.i: fix _mul[us][int,long] entries
12227
12228 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12229
12230         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12231
12232 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12233
12234         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12235         * support/regression/tests/bitopcse.c: added
12236         fixed warning:
12237         * src/avr/gen.c:
12238         * src/pic/gen.c:
12239         * src/pic16/gen.c:
12240         * src/z80/gen.c:
12241         * src/xa51/gen.c:
12242
12243 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12244
12245         added support for new library format to z80, gbz80 linkers:
12246         *link/z80/aslink.h
12247         *link/z80/lklex.c
12248         *link/z80/lklib.c
12249         *link/z80/lklist.c
12250
12251 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12252
12253         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12254         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12255
12256 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12257
12258         added DUMMY_READ_VOLATILE:
12259         * src/SDCC.y:
12260         * src/avr/gen.c:
12261         * src/xa51/gen.c:
12262         * src/z80/gen.c:
12263         * src/pic/gen.c:
12264         * src/pic16/gen.c:
12265         * src/mcs51/gen.c:
12266         * src/ds390/gen.c:
12267         * src/SDCCcse.c (algebraicOpts): many improvements
12268         * src/SDCCcse.h: removed algebraicOpts()
12269         * src/SDCCicode.c (picDummyRead): added
12270
12271 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12272
12273         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12274         "Insufficient space in data memory".
12275
12276 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12277
12278         * src/mcs51/gen.c: fixed bug #771358
12279         * src/z80/gen.c: fixed bug #759087
12280
12281 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12282
12283         * src/pic16/glue.c: minor cleanup by Vangelis
12284
12285 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12286
12287         * device/include/regc515c.h: fixed #758477
12288         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12289         * device/lib/_gptrput.c: saved a few bytes
12290         * my tab spacing is 8, yours too?)
12291         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12292         * device/lib/serial.c: process RX bytes earlier than TX bytes
12293         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12294
12295 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12296
12297         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12298
12299 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12300
12301     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12302
12303 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12304
12305         * device/lib/Makefile.in: bad fix, reverted to 1.43
12306
12307 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12308
12309         * device/lib/Makefile.in: added missing z80 object files
12310
12311 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12312
12313         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12314         pic16 progress by Vangelis:
12315         * src/SDCCglobl.h:
12316         * src/SDCCmain.c:
12317         * src/pic/Makefile:
12318         * src/pic:
12319         * pic/Makefile:
12320         * pic16/device.c:
12321         * pic16/device.h:
12322         * pic16/gen.c:
12323         * pic16/gen.h:
12324         * pic16/genarith.c:
12325         * pic16/glue.c:
12326         * pic16/main.c:
12327         * pic16/pcode.c:
12328         * pic16/pcode.h:
12329         * pic16/pcodepeep.c:
12330         * pic16/peeph.def:
12331
12332 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12333
12334     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12335
12336 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12337
12338     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12339     added gbz80 build to MSVC project.
12340     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12341     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12342     from 8051 stuff and setup so it links using a .lnk file.
12343
12344 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12345
12346     * support/librarian/sdcclib.c: sdcc librarian.
12347     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12348     with sdcclib.
12349
12350 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12351
12352     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12353
12354 2003-07-02  Borut Razem <borut.razem AT siol.net>
12355
12356         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12357         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12358         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12359         src/xa51/main.c, src/z80/main.c:
12360         virtualization of glue() function: each port has it's own glue function,
12361         which is accessed by do_glue function pointer in PORT.general structure
12362
12363 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12364
12365         * DS800C400 fun, improved ROM interface and tinibios.
12366
12367 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12368
12369         * More support for DS80C400. Now includes beginning of interface to ROM.
12370
12371 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12372
12373         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12374
12375 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12376
12377         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12378
12379 2003-06-19  Borut Razem <borut.razem AT siol.net>
12380
12381         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12382
12383 2003-06-19  Borut Razem <borut.razem AT siol.net>
12384
12385         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12386         fixed Z80 port - crt0.o: cannot open.
12387
12388 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12389
12390         * support/Util/MySystem.c (merge_command): revert bad fix
12391
12392 2003-06-18  Borut Razem <borut.razem AT siol.net>
12393
12394         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12395
12396 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12397
12398         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12399         option --use-stdout sends errors to stdout instead of stderr.
12400
12401 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12402
12403         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12404
12405 2003-06-15  Borut Razem <borut.razem AT siol.net>
12406
12407         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12408         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12409         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12410         fixed width array of pointers replaced with sets;
12411         multiple include and lib paths ared transferred to preprocessor and linker
12412         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12413         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12414         fixed width array of pointers
12415         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12416         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12417         fixupPath(), getPathDifference()
12418         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12419         fixed width array of pointers
12420
12421 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12422
12423         * src/pic16/ralloc.c: fix warnings
12424         * src/pic16/pcode.c: fix warning
12425
12426 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12427
12428          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12429         know all the details, but essentially this set of changes enable
12430         the pic16 port to generate movff instructions and generate assembler
12431         directives,
12432         * src/SDCCmain.c:
12433         * src/pic16/gen.c:
12434         * src/pic16/glue.c:
12435         * src/pic16/pcode.c:
12436         * src/pic16/device.c:
12437         * src/pic16/main.c:
12438         * src/pic16/pcode.h:
12439         * src/pic16/pcoderegs.c:
12440         * src/pic16/ralloc.c:
12441         * src/pic16/ralloc.h:
12442
12443 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12444
12445         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12446         added option --vc, so sdcc errors and warnings are compatible with
12447         Microsoft Visual Studio.
12448
12449 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12450
12451         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12452           device/lib/libfloat.lib: added atof function.
12453
12454 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12455
12456         * doc/sdccman.lyx: updated to Lyx 1.3
12457         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12458         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12459         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12460
12461 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12462
12463         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12464
12465 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12466
12467         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12468           additions to the "related tools/documentation" section
12469
12470 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12471
12472         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12473
12474 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12475
12476         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12477         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12478
12479 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12480
12481         * doc/sdccman.lyx: fix double dash and other minor things
12482         * doc/Makefile: fix double dash
12483
12484 2003-05-28  Karl Bongers(patches from Martin Helmling)
12485         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12486           condition and ignore commands.
12487
12488 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12489
12490         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12491           is in parts still quite out of date, I did changes as far as I felt makes sense
12492           for a non-native english speaker.
12493           Please feel free to add to the manual or to correct my changes.
12494         * doc/Makefile: undid touching the date of intermediate tex files.
12495
12496 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12497
12498         * doc/sdccman.lyx: Manual has an index now
12499
12500 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12501
12502         Finalize muluint/mulsint and mululong/mulslong merging:
12503         * device/lib/_mulint.c
12504         * device/lib/_mullong.c
12505         * device/lib/gbz80/mul.s
12506         * device/lib/gbz80/stubs.s
12507         * device/lib/z80/mul.s
12508         * device/lib/z80/stubs.s
12509         * src/SDCCsymt.c (initCSupport)
12510
12511 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12512
12513         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12514         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12515           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12516           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12517           instead of /Zm500.
12518
12519 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12520
12521         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12522           the regression tests I'm not brave enough to enable 245.b, 245.c
12523         * doc/sdccman.lyx: added latex preamble for hyperref package.
12524           Using pdflatex this will give you a hyperlinked pdf file with
12525           bookmarks. (prepend '%' before /usepackage if this breaks something)
12526
12527 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12528
12529          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12530
12531 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12532
12533         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12534
12535 2003-05-21    <johan AT balder>
12536
12537         * src/SDCCglue.c (printIval): fixed bug #739934
12538
12539 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12540
12541         Applied patch from bug 737905 (renamed yylineo to mylineno):
12542         * src/altlex.c
12543         * src/SDCCast.c
12544         * src/SDCglobl.h
12545         * src/SDCC.lex
12546         * src/SDCCsymt.c
12547         * src/SDCCval.c
12548         * src/pic16/pcode.c: Cleaned warnings
12549         * src/pic16/pcodeflow.c: Cleaned warnings
12550         * src/pic16/pcoderegs.c: Cleaned warnings
12551
12552 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12553
12554         * src/pic16/pcode.c: Cleaned warnings
12555         * src/pic16/pcodepeep.c: Cleaned warnings
12556         * src/pic16/ralloc.c: Cleaned warnings
12557
12558 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12559
12560         * doc/sdccman.lyx: fixed bug 739745
12561         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12562
12563 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12564
12565         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12566         it can be defined with CFLAGS when running configure
12567         * src/SDCCmain.c: fixed compiling + linking with object files
12568
12569 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12570
12571         * configure.in: configure for pic16 port,
12572             added --disable-pic16-port
12573         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12574         * src/SDCCmain.c: linkOptions is changed to set *,
12575             added if/endif conditional macros to remove options help
12576             messages from optionsTable when a port is not configured, added
12577             support for the PIc16 port in the ports table, when executing
12578             the compiler with no port specified on command line, a default
12579             port is selected with the new macro DEFAULT_PORT which is
12580             defined in port.h, in setDefaultOptions() linkOptions is removed
12581             from initialization assignment, since now it is a set,
12582             parseCmdLine uses setParseWithComma for linkOptions, in
12583             linkEdit() linkOptions are accessed with new function indexSet()
12584             which returns the i'th item of a set variable. See SDCCset.c, in
12585             linkEdit() when calling buildCmdLine(), added linkOptions as
12586             last argument. Now users can pass arguments to gplink via the
12587             -Wl option, main() uses pic16glue() to glue up pic16 programs
12588         * src/SDCCpeeph.c: various changes to support pic16
12589         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12590             return the i'th item of the set
12591         * src/SDCCset.h: added function prototype for indexSet()
12592         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12593         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12594         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12595             added macro DEFAULT_PORT
12596         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12597         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12598             generated
12599         * src/pic16/glue.c: commented out some error producing lines
12600         * src/pic16/main.c: __config directives are commented out to stop
12601             gpasm complaining and test the linkage with gplink, _linkCmd and
12602             _asmCmd changed to be more gplink and gpasm friendly
12603         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12604             produced an error when parsed, peep rule 12 is added to utilize
12605             movff, but it is commented out since the pCode does not support
12606             yet a command with 2 address arguments
12607
12608 2003-05-18    <johan AT balder>
12609
12610         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12611         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12612 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12613
12614         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12615   Added feature to script commands from file.
12616
12617 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12618
12619         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12620         * src/SDCCutil.c: include ctype.h for win32
12621
12622 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12623
12624         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12625
12626 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12627
12628         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12629   Fixed so you can set breakpoints prior to run, run does not stop
12630   on entry now.  Add tbreak.  Other enhancements and fixes for use
12631   with ddd.
12632
12633 2003-05-12  Borut Razem <borut.razem AT siol.net>
12634
12635         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12636
12637 2003-05-11  Borut Razem <borut.razem AT siol.net>
12638
12639         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12640         the path of bin directory, so that PATH is the only env. variable, which has to be set
12641         in case of standard installation.
12642         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12643         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12644         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12645
12646 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12647
12648         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12649         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12650         temp files are in the port dir; clean the gen/test directory when
12651         generating new test.c
12652         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12653         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12654         * support/regression/tests/zeropad.c: added
12655
12656 2003-05-09    <johan AT balder>
12657
12658         * src/SDCCglue.c: fixed bug #597940
12659
12660 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12661
12662         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12663   cache sfr, optimize next,step, fix off by one sourceline,
12664   support ddd list function.
12665         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12666
12667 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12668
12669         * support/regression/HTMLgen.py: added compare_s2f()
12670         * support/regression/Makefile: redo 1.27
12671         * support/regression/generate-cases.py: redo 1.5
12672
12673 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12674
12675         * support/regression/tests/float.c: workaround 33 bit hex constant
12676         * support/regression/tests/simplefloat.c: fix division for host
12677
12678 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12679
12680         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12681         that tame's the PIC's over-aggressive optimizer.
12682
12683 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12684
12685          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12686          support for MSVC.
12687
12688 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12689
12690         Initial support for DS80C400. "Hello world" runs on TINIm400
12691         (with polled I/O).
12692
12693 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12694
12695          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12696          * Some notes on ddd usage added in debugger/README
12697          Martin Helmling adding more features and fixes for ddd GUI debugger.
12698          Code added for nexti, stepi, up, down, and other adjustments.
12699
12700 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12701
12702         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12703         * src/pic/peeph.def Added two rules to optimize carry manipulation
12704         * src/pic/* removed debug printfs
12705
12706 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12707
12708         * debugger/mcs51/cmd.c: added header newalloc.h
12709
12710 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12711
12712         * as/Makefile: new EXEEXT
12713         * as/z80/Makefile: remove trailing slash of BUILDIR
12714         * as/z80/clean.mk: new EXEEXT
12715         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12716         * support/cpp2/Makefile.in: new EXEEXT
12717         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12718
12719 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12720
12721         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12722         EXEEXT was introduced to fix all related problems with targets
12723         "clean", "install" and "uninstall"; a couple of further flaws
12724         especially with "clean" have been fixed too
12725         * as/mcs51/Makefile.in
12726         * as/mcs51/clean.mk
12727         * as/z80/Makefile
12728         * Makefile
12729         * clean.mk
12730         * debugger/mcs51/Makefile.in
12731         * debugger/mcs51/clean.mk
12732         * link/z80/Makefile
12733         * link/z80/Makefile.in
12734         * link/z80/clean.mk
12735         * link/Makefile
12736         * packihx/Makefile.in
12737         * packihx/clean.mk
12738         * sim/ucsim/Makefile
12739         * sim/ucsim/clean.mk
12740         * sim/ucsim/avr.src/Makefile.in
12741         * sim/ucsim/avr.src/clean.mk
12742         * sim/ucsim/s51.src/Makefile.in
12743         * sim/ucsim/s51.src/clean.mk
12744         * sim/ucsim/xa.src/Makefile.in
12745         * sim/ucsim/xa.src/clean.mk
12746         * sim/ucsim/z80.src/Makefile.in
12747         * sim/ucsim/z80.src/clean.mk
12748         * sim/ucsim/main_in.mk
12749         * sim/ucsim/packages_in.mk
12750         * sim/ucsim/gui.src/Makefile.in
12751         * sim/ucsim/gui.src/serio.src/Makefile.in
12752         * sim/ucsim/gui.src/serio.src/clean.mk
12753         * src/Makefile.in
12754         * src/clean.mk
12755         * support/cpp2/Makefile.in
12756         * support/cpp2/clean.mk
12757         * support/makebin/Makefile
12758         * support/makebin/clean.mk
12759         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12760         * doc/sdccman.lyx: --program-suffix no longer needed
12761
12762 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12763
12764          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12765          Martin Helmling added support for ddd GUI debugger.
12766          Code added to display assembly, set variables, and other commands
12767          to interface to ddd.
12768
12769 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12770
12771         * as/Makefile: fix target clean
12772         * as/clean.mk: fix target clean
12773         * as/z80/clean.mk: fix target clean
12774
12775 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12776
12777         * Makefile.common.in: added  AT EXEEXT AT
12778         * configure.in: removed all mingw32 stuff
12779         * configure: rebuilt from configure.in
12780         * doc/sdccman.lyx: updated section "installation"
12781         * support/scripts/sdcc_mingw32: adapted to configure
12782         * support/scripts/sdcc_cygwin_mingw32: added
12783
12784 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12785
12786         * src/pic Added object file support for the PIC port
12787         * src/pic Applied patch from Craig Franklin (this started the object file support)
12788         * src/regression Updated the PIC regression tests for object files
12789
12790 2003-04-20  Borut Razem <borut.razem AT siol.net>
12791
12792         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12793           lklex.c: In function `getfid':
12794           lklex.c:203: warning: array subscript has type `char'
12795         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12796           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12797         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12798           stack handling macros
12799
12800 2003-04-19  Borut Razem <borut.razem AT siol.net>
12801
12802         * "handling space characters in file path" task:
12803         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12804         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12805         * support/Util/MySystem.h: make it self-sufficient
12806         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12807           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12808           handling space characters in file path
12809         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12810           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12811         * support/Util/MySystem.c: handling space characters in executable's path
12812
12813 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12814
12815         * as/z80/Makefile: fix permanent rebuild of z80
12816         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12817         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12818
12819 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12820
12821         * src/SDCCopt.c: add special case optimization to replace modulo by
12822           a power of two with a bitwise AND.
12823
12824 2003-04-18    <johan AT balder>
12825
12826         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12827
12828 2003-04-17    <johan AT balder>
12829
12830         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12831         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12832
12833 2003-04-13  Borut Razem <borut.razem AT siol.net>
12834
12835         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12836         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12837           fixed mingw problem in adl_NORMALIZE_PATH
12838
12839 2003-04-12  Borut Razem <borut.razem AT siol.net>
12840
12841         * fixed "#pragma SAVE/RESTORE can not be nested":
12842         * src/SDCC.lex: reworked pragma handling functions
12843         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12844         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12845
12846 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12847
12848         * src/SDCCutil.c (pathEquivalent): defined but not used
12849         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12850         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12851         * configure: rebuilt from configure.in
12852         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12853         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12854         * device/include/Makefile.in: replace sdcc_datadir
12855         * device/lib/Makefile.in: replace sdcc_datadir
12856         * Makefile.common.in: add LDFLAGS from configure
12857         * packihx/Makefile.in: use LDFLAGS
12858         * src/Makefile.in: use LDFLAGS
12859         * support/cpp2/Makefile.in: add LDFLAGS from configure
12860         * support/makebin/Makefile: use LDFLAGS
12861         * .version: bumped version number to 2.3.5
12862
12863 2003-04-12  Borut Razem <borut.razem AT siol.net>
12864
12865         * completed "different paths" task:
12866         * src/SDCCmacro.c: fixed bug in handling quotes
12867         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12868         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12869
12870 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12871
12872         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12873
12874 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12875
12876         * ds390/gen.c ds390/peeph.def: fix bug 706781
12877
12878 2003-04-11  Borut Razem <borut.razem AT siol.net>
12879
12880         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12881
12882 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12883
12884         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12885         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12886          set - this bit used to not be set...).
12887         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12888           bad code in PIC Port
12889         * src/regression/and2.c added to test bug 609268
12890         * src/regression/Makefile added and2.c to regression test
12891
12892
12893 2003-04-08    <johan AT CP255758-A>
12894
12895         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12896         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12897         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12898
12899 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12900
12901         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12902         fix bug #487815
12903         * support/cpp2/Makefile.in: fix bug #487815
12904         * configure: rebuilt from configure.in
12905         * Makefile.common.in: docdir changed, new path suffixes
12906         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12907         * sdcc_vc_in.h: reflect changes from sdccconf.h
12908         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12909         * src/SDCCutil.h: remove BINDIR hack
12910         * doc/sdccman.lyx: update new path hierarchy
12911
12912 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12913
12914         * src/SDCCpeeph.c: added okToRemoveSLOC test
12915
12916 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12917
12918         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12919
12920 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12921
12922         * src/SDCCpeeph.c: added labelIsReturnOnly test
12923         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12924
12925 2003-04-05    <johan AT balder>
12926
12927         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12928         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12929         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12930         * src/SDCCast.c: fixed a warning
12931         * src/SDCCast.h: fixed a warning
12932         * src/SDCCicode.c (operandFromAst): fixed a warning
12933
12934 2003-04-04    <johan AT balder>
12935
12936         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12937         * src/SDCCast.c (decorateType): fixed bug #715076
12938         * src/SDCC.y: fixed bug #702907
12939
12940 2003-04-03    <johan AT balder>
12941
12942         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12943         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12944         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12945         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12946         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12947
12948 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12949
12950         * _decdptr.c: fix return values
12951         * _gptrget.c: fix return values
12952         * _gptrgetc.c: fix return values
12953         * _gptrput.c: fix return values
12954         * _mulint.c: fix return values
12955         * as/z80/Makefile: fix 'make -j' problem
12956
12957 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12958
12959         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12960         * configure.in: big cleanup, updated to autoconf 2.5x
12961         * configure: rebuilt from configure.in
12962         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12963         * sdcc_vc_in.h: reflect changes from sdccconf.h
12964         * doc/Makefile: fixed a flaw in "make install"
12965
12966 2003-04-02    <johan AT balder>
12967
12968         * src/ds390/gen.c (genCmp): no comments
12969         * src/mcs51/gen.c (genCmp): no comments
12970         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12971         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12972
12973 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12974
12975         * support/regression/generate-cases.py: place generated file in given sub directory
12976         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12977         * support/regression/Makefile: improvements for 'make -j';
12978         side effect: it's simpler and faster now
12979
12980 2003-03-31  Borut Razem <borut.razem AT siol.net>
12981
12982         * src/z80/main.c: link-{port} and as-{port} defined without path
12983         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12984
12985 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12986
12987         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12988
12989 2003-03-30  Borut Razem <borut.razem AT siol.net>
12990
12991         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12992           changed type of list parameter to set
12993         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12994         * src/port.h: changed type of do_assemble() parameter to set
12995         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12996           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12997           definition of "cppoutfilename" macro with NULL value in preProcess()
12998         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12999         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13000         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13001           replaced with set *binPathSet
13002         * shash_add() deallocates the item, if allready exsists, before adding the new one
13003         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13004
13005 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13006
13007         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13008           a nested for loop bug in the PIC port
13009         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13010           for loops
13011
13012 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13013
13014         * support/Util/dbuf.h: remove C++ stuff to make it portable
13015
13016 2003-03-28  Borut Razem <borut.razem AT siol.net>
13017
13018         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13019           literal strings in stringLiteral()
13020         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13021         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13022           to the project
13023
13024 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13025
13026         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13027
13028 2003-03-26    <johan AT balder>
13029
13030         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13031         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13032         * src/SDCCast.c (decorateType): fixed " -v < 3"
13033
13034 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13035
13036         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13037         Added Lenny Story's debug infrastructure changes:
13038         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13039         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13040         * src/cdbFile.c: added
13041         * src/SDCCdebug.c: added
13042         * src/SDCCdebug.h: added
13043         * src/SDCCast.c (createFunction)
13044         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13045         * src/SDCCmain.c (parseCmdLine, main)
13046         * src/SDCCmem.c (redoStackOffsets)
13047         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13048         * src/SDCCsymt.h
13049         * src/common.h
13050         * src/avr/gen.c (genAVRCode)
13051         * src/ds390/gen.c (gen390Code)
13052         * src/mcs51/gen.c (gen51Code)
13053         * src/pic/gen.c (genpic14Code)
13054         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13055         * src/xa51/gen.c (genXA51Code)
13056         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13057
13058 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13059
13060         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13061         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13062
13063 2003-03-22    <johan AT balder>
13064
13065         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13066
13067 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13068
13069         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13070         * doc/cdbfileformat.lyx: added, written by Lenny Story
13071         * doc/Makefile: added cdbfileformat.lyx
13072         * doc/clean.mk: added cdbfileformat.lyx
13073
13074 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13075
13076         * src/mcs51/peeph.def: fix bug #705773
13077
13078 2003-03-20    <johan AT balder>
13079
13080         An sfr/sbit can have an "at #" AND an initializer
13081         * src/SDCCsymt.c (checkSClass):
13082         * src/SDCCmem.c (allocGlobal):
13083         * src/SDCCmem.c (allocLocal):
13084         * src/SDCCast.c (createBlock):
13085
13086 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13087
13088         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13089
13090 2003-03-16    <johan AT balder>
13091
13092         Undid the hackup of const and volatile, the problem is much bigger
13093         * src/SDCC.y:1.65
13094         * src/SDCCast.c:1.171
13095         * src/SDCCglue.c:1.138
13096         * src/SDCCicode.c:1.146
13097         * src/SDCCsymt.c:1.150
13098         * src/SDCCval.c:1.65
13099
13100 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13101
13102         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13103         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13104
13105 2003-03-13    <johan AT balder>
13106
13107         Hackup const and volatile modifiers in type chains a bit:
13108         * src/SDCC.y:1.63
13109         * src/SDCCast.c:1.169
13110         * src/SDCCglue.c:1.136
13111         * src/SDCCicode.c:1.143
13112         * src/SDCCsymt.c1.146
13113         * src/SDCCsymt.h1.59
13114         * src/SDCCval.c:1.63
13115
13116 2003-03-12    <johan AT balder>
13117
13118         * src/SDCCBBlock.h: more LRH debugging junk
13119         * src/SDCCcflow.h: more LRH debugging junk
13120         * src/SDCCloop.c: more LRH debugging junk
13121         * src/SDCC.y (struct_declaration): fixed bug #697590
13122         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13123         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13124         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13125
13126 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13127         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13128         test function names must now match exactly).
13129         * src/SDCCcse.c: added special case in findCheaperOp to allow
13130         extending a short integer. Makes less awful code for bug 700121 test case.
13131
13132 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13133
13134         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13135         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13136
13137 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13138
13139         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13140         actually called (operandsNotEqual() was called for all
13141         operandsNotEqualX tests).
13142
13143 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13144
13145         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13146         with shorter literals. Fixes bug 700121.
13147
13148 2003-03-11    <johan AT balder>
13149
13150         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13151
13152 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13153
13154         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13155         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13156
13157 2003-03-10  Borut Razem <borut.razem AT siol.net>
13158
13159         * src/SDCCmain.c: pipe preprocessor's output
13160         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13161         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13162         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13163         which closes all pipes in pipeSet set
13164         * src/SDCCset.c: free deleted item in function deleteSetItem()
13165         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13166         moved from z80 to src subproject
13167         * .version: increased version number to 2.3.4
13168
13169 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13170
13171         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13172         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13173         * support/regression/ports/xa51/spec.mk: fix typo
13174
13175 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13176
13177         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13178
13179 2003-03-09  Borut Razem <borut.razem AT siol.net>
13180
13181         * src/SDCCmain.c: pipe preprocessor's output
13182         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13183         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13184         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13185         which closes all pipes in pipeSet set
13186         * src/SDCCset.c: free deleted item in function deleteSetItem()
13187         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13188         moved from z80 to src subproject
13189
13190 2003-03-09  Borut Razem <borut.razem AT siol.net>
13191
13192         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13193         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13194         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13195         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13196         * src/SDCCglobl.h: unification of WIN32 native definitions
13197
13198 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13199
13200         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13201
13202 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13203
13204         * src/configure.in:   check for endianess (even while cross-compiling)
13205         * src/configure:      check for endianess (even while cross-compiling)
13206         * src/configure_in.h: check for endianess (even while cross-compiling)
13207         * src/avr/gen.c:        remove old endianess stuff
13208         * src/mcs51/gen.c:      remove old endianess stuff
13209         * src/ds390/gen.c:      remove old endianess stuff
13210         * src/pic/gen.c:        remove old endianess stuff
13211         * src/pic/genarith.c:   remove old endianess stuff
13212         * src/pic/glue.c:       fix endianess check
13213         * src/pic16/gen.c:      remove old endianess stuff
13214         * src/pic16/genarith.c: remove old endianess stuff
13215         * src/pic16/glue.c:     fix endianess check
13216         * src/xa51/gen.c:       remove old endianess stuff
13217         * src/z80/gen.c:        fix endianess check
13218         * src/SDCCglue.c:       fix endianess check
13219         * src/ds390/peeph.def: fix bug 700036
13220
13221 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13222
13223         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13224         * src/configure: find appropriate data-types on host for SDCC's int and long
13225         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13226         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13227         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13228
13229 2003-03-07    <johan AT balder>
13230
13231         Just a big NOOP:
13232                 some minor cleanups before the big shot
13233                 OP_DEFS and OP_USES now use Kevin's protection
13234                 new option --nolabelopt
13235
13236         * src/SDCCBBlock.c:
13237         * src/SDCCast.c,:
13238         * src/SDCCcflow.c:
13239         * src/SDCCcse.c:
13240         * src/SDCCicode.c:
13241         * src/SDCCicode.h:
13242         * src/SDCClabel.c:
13243         * src/SDCCloop.c:
13244         * src/SDCCmain.c:
13245         * src/ds390/ralloc.c:
13246         * src/mcs51/ralloc.c:
13247         * src/pic/ralloc.c:
13248         * src/xa51/ralloc.c:
13249         * src/z80/ralloc.c:
13250
13251 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13252
13253         * src/pic/pcode.c (get_op): fix 64 bit warnings
13254         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13255         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13256         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13257         * support/regression/tests/malloc.c: fix 64 bit warnings
13258
13259 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13260
13261         * src/mcs51/gen.c (genMinus): fixed bug 696436
13262
13263 2003-03-02  Borut Razem <borut.razem AT siol.net>
13264
13265         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13266
13267 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * configure.in: test for mkstemp
13270         * sdccconf_in.h: add HAVE_MKSTEMP
13271
13272 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13273
13274         * device/include/ctype.h: removed warning while using --stack-auto
13275         * device/include/malloc.h: removed warning while using --stack-auto
13276         * device/include/string.h: removed warning while using --stack-auto
13277
13278 2003-02-23  Borut Razem <borut.razem AT siol.net>
13279
13280         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13281         because NDEBUG is defined (see man assert)
13282         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13283
13284 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13285
13286         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13287         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13288
13289 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13290
13291         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13292         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13293
13294 2003-02-18    <johan AT balder>
13295
13296         * as/mcs51/asmain.c (asmbl): module can start with a digit
13297         * as/z80/asmain.c (asmbl): module can start with a digit
13298
13299 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13300
13301         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13302         * src/asm.c: fix pipe() for Mingw32
13303
13304 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13305
13306         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13307         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13308         make -V work again; --c1mode reads now from stdin
13309         * doc/sdccman.lyx: added --c1mode
13310         * support/Util/SDCCerr.c: new messages for c1 mode
13311         * support/Util/SDCCerr.h: new messages for c1 mode
13312         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13313
13314 2003-02-15    <johan AT balder>
13315
13316         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13317
13318 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13319
13320         * doc/sdccman.lyx: Environment variables, -o and other minor things
13321
13322 2003-02-14    <johan AT balder>
13323
13324         * src/xa51/main.c: before anyone really tries to use it :)
13325
13326         * Install doc's in share/sdcc/doc
13327         * removed some obsolete files
13328         * Do a proper make distclean and uninstall
13329         M Makefile.common.in
13330         R sdccbuild.sh
13331         M as/Makefile
13332         M device/include/Makefile.in
13333         M device/lib/Makefile.in
13334         M doc/sdccman.lyx
13335         M link/Makefile
13336         M sim/ucsim/doc/Makefile.in
13337         M src/clean.mk
13338         R src/avr/peeph.rul
13339         R src/xa51/peeph.rul
13340         M support/cpp2/Makefile.in
13341         M support/makebin/Makefile
13342
13343
13344 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13345
13346         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13347
13348 2003-02-10  Borut Razem <borut.razem AT siol.net>
13349
13350         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13351         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13352         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13353         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13354         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13355         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13356         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13357         src/z80/Makefile.bcc: Borland Makefile cleanup
13358         * as/z80/Makefile.bcc: Added Borland Makefile
13359         * support/cpp2/borland.h: Removed
13360
13361 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13362
13363         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13364         * src/SDCC.lex: new pragma NOIV
13365         * src/SDCCglobl.h: new pragma NOIV
13366         * src/SDCCmem.c: new pragma NOIV
13367
13368 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13369
13370         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13371
13372 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13373
13374         * src/SDCCmain.c: signal handling is switched off by --debug
13375         * doc/Makefile: small fix for install; use clean.mk again
13376         * doc/clean.mk: clean *.pdf and *.html too
13377
13378 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13379
13380         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13381         * device/lib/printfl.c: fix a ds390 bug by making it portable
13382         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13383         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13384         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13385         * debugger/mcs51/cmd.c: converted multi-line string literals
13386         * sim/ucsim/globals.cc: converted multi-line string literals
13387         * src/SDCCmain.c: introduced signal handler to remove temp files
13388         * doc/Makefile: small tweaks, implement clean
13389         * doc: removed generated files
13390
13391 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13392
13393         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13394         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13395         Address Record is not correctly generated for DS390."
13396
13397 2003-02-02  Borut Razem <borut.razem AT siol.net>
13398
13399         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13400         * as/mcs51/asm.h: fixed compilation with Borland C
13401         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13402         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13403         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13404         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13405         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13406         src/z80/Makefile.bcc: delete $(LIB) only if exist
13407         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13408
13409 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13410
13411         * device/include/malloc.h: introduced NULL
13412         * device/include/string.h: introduced NULL
13413         * device/include/stdlib.h: introduced NULL
13414         * device/lib/_memcpy.c: removed NULL
13415         * device/lib/_strcat.c: removed NULL
13416         * device/lib/_strchr.c: removed NULL
13417         * device/lib/_strcmp.c: removed NULL
13418         * device/lib/_strcpy.c: removed NULL
13419         * device/lib/_strcspn.c: removed NULL
13420         * device/lib/_strlen.c: removed NULL
13421         * device/lib/_strncat.c: removed NULL
13422         * device/lib/_strncmp.c: removed NULL
13423         * device/lib/_strncpy.c: removed NULL
13424         * device/lib/_strpbrk.c: removed NULL
13425         * device/lib/_strrchr.c: removed NULL
13426         * device/lib/_strspn.c: removed NULL
13427         * device/lib/_strstr.c: removed NULL
13428         * device/lib/_strtok.c: removed NULL
13429         * device/lib/malloc.c: removed NULL, include own header
13430
13431 2003-02-02    <johan AT balder>
13432
13433         * 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
13434         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13435         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13436         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13437         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13438         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13439
13440 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13441
13442         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13443         area 'DATA'"
13444
13445 2003-02-01    <johan AT balder>
13446
13447         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13448
13449 2003-01-31    <johan AT CP255758-A>
13450
13451         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13452
13453 2003-01-30    <johan AT balder>
13454
13455         * src/SDCCBBlock.c: automatic bug detection
13456         * src/SDCCicode.c: automatic bug detection
13457
13458 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13459
13460         * src/SDCCglobl.h:   now --xram-size 0 works
13461         * src/SDCCmain.c:    now --xram-size 0 works
13462
13463 2003-01-29    <johan AT balder>
13464
13465         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13466
13467 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13468
13469         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13470         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13471         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13472         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13473         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13474         * src/SDCCmain.c:    Added options --xram-size and --code-size
13475
13476 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13477
13478         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13479         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13480
13481 2003-01-27    <johan AT balder>
13482
13483         * src/SDCC.y: fixed bug #613764
13484
13485 2003-01-26    <johan AT balder>
13486
13487         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13488         * src/SDCCsymt.h: fixed bug #673374
13489         * src/SDCCglue.c: fixed bug #661910
13490         * src/SDCCast.c: fixed bug #458099 and 673374
13491
13492 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13493
13494         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13495         * as/mcs51/strcmpi.h: added
13496         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13497         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13498         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13499         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13500         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13501         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13502         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13503         * as/mcs51/Makefile.aslink: new module strcmpi
13504         * as/mcs51/Makefile.asx8051: new module strcmpi
13505         * as/mcs51/Makefil.bcc: new module strcmpi
13506         * as/mcs51/Makefile.in: new module strcmpi
13507         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13508
13509 2003-01-26    <johan AT balder>
13510
13511         * src/SDCCglue.c: reverted back to 1.124
13512         * src/SDCCast.c: reverted back to 1.156
13513         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13514
13515 2003-01-25    <johan AT balder>
13516
13517         * src/SDCCglue.c: A better fix for bug #661910
13518         * src/SDCCast.c: A better fix for bug #661910
13519         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13520
13521 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13522
13523         * src/Makefile.in: remove spawn.o
13524         * src/SDCCmain.c: remove spawn.h
13525         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13526         * src/spawn.c: removed
13527         * src/spawn.h: removed
13528         * support/regression/ports/ds390/spec.mk: link with -r
13529
13530 2003-01-24    <johan AT CP255758-A>
13531
13532         * src/ds390/gen.c (aopOp): fixed bug #667458
13533         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13534         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13535         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13536
13537 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13538
13539         * src/mcs51/peeph.def: better assembler identation by Frieder
13540         * src/mcs51/gen.c: better assembler identation by Frieder
13541
13542 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13543
13544         * as/z80/string.h: removed for gcc 3.2
13545         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13546         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13547
13548 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13549
13550         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13551         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13552         * support/regression/Makefile: separate temp files for ports
13553         * support/regression/generate-cases.py: separate temp files for ports
13554         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13555         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13556
13557 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13558
13559         * moved tinitalk to device/examples/ds390
13560
13561 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13562
13563         * as/mcs51/lkmem.c: rflag is for DS390
13564         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13565         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13566                          (linkEdit): move mem- and map-files the same way as ihx-files
13567         * src/z80/main.c (_setDefaultOptions): removed --generic
13568         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13569         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13570         * src/pic/glue.c (picglue): --c1mode works again
13571         * src/pic16/glue.c (pic16glue): --c1mode works again
13572         * src/asm.c (printCLine): fix #660034
13573
13574 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13575
13576         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13577         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13578         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13579         * as/mcs51/lkmem (summary): better fix for sp problem
13580         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13581         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13582         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13583                                               remove --stack-after-data
13584
13585 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13586
13587         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13588         * src/SDCCutil.c (join): ugly bug: missing '\0'
13589         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13590
13591 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13592
13593         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13594         * src/port.h: typo
13595         * src/pic/main.c (_asmCmd): gpasm supports -o
13596         * src/z80/main.c: more general macros
13597         * device/lib/Makefile.in: remove intermediate files
13598
13599 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13600
13601         * .version: Bumped version number to 2.3.3
13602         * src/SDCCBBlock.c: new option -o
13603         * src/SDCCglobl.h: new option -o
13604         * src/SDCCglue.c: new option -o
13605         * src/SDCCmain.c: new option -o
13606         * src/asm.c: new option -o
13607         * src/ds390/main.c: new option -o
13608         * src/pic/glue.c: new option -o
13609         * src/pic/pcode.c: new option -o
13610         * src/pic/ralloc.c: new option -o
13611         * src/pic16/glue.c: new option -o
13612         * src/pic16/pcode.c: new option -o
13613         * src/pic16/ralloc.c: new option -o
13614         * src/z80/main.c: new option -o
13615         * device/lib/Makefile.in: use -o
13616         * support/regression/ports/ds390/spec.mk: use -o
13617         * support/regression/ports/gbz80/spec.mk: use -o
13618         * support/regression/ports/mcs51/spec.mk: use -o
13619         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13620         * support/regression/ports/z80/spec.mk: use -o
13621         * support/regression/ports/ucz80/spec.mk: use -o
13622         * support/regression/ports/xa51/spec.mk: use -o
13623         * support/regression/fwk/lib/timeout.c: fix usage string
13624
13625 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13626         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13627
13628 2003-01-07    <johan AT balder>
13629
13630         * src/SDCCast.c (decorateType): fixed bug #600035
13631
13632 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13633         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13634         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13635         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13636         * src/pic/pcode.c: outcommented unused variable to remove warnings
13637         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13638
13639 2003-01-06    <karl AT turbobit.com>
13640         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13641    regression tests.
13642
13643 2003-01-06    <johan AT balder>
13644
13645         * src/SDCCicode.c: fixed array add
13646
13647 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13648         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13649         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13650
13651 2003-01-04    <johan AT balder>
13652
13653         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13654
13655 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13656         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13657
13658 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13659         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13660         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13661
13662 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13663         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13664
13665 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13666         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13667
13668 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13669         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13670
13671 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13672
13673     * in /sdcc/as/mcs51/ changed these files in order to create an
13674     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13675     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13676     following files to include the previous two files: aslink.dsp,
13677     Makefile.aslink, Makefile.bcc, and Makefile.in.
13678
13679     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13680     .adb instead of .cdb
13681
13682 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13683
13684         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13685         value from option --iram-size.
13686
13687 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13688
13689         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13690         dram[] array.
13691
13692 2002-09-18    <wiml AT hhhh.org>
13693
13694         * SDCClrange.h: exposed setFromRange() and setToRange()
13695         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13696           packRegsForAccUse() (bug 542397)
13697         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13698           multiple times and emitting the fetch operations more than once
13699           added aopGetUsesAcc() function to allow binary operators to
13700           fetch their operands in the correct order; made genMinus() emit
13701           compact code for X = LITERAL - Y
13702
13703 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13704         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13705         sprintf() in line 1267.
13706
13707 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13708         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13709         like ports.
13710
13711 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13712         Changes to aslink (All the changes are marked with 'JCF'):
13713
13714         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13715         summary().
13716
13717         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13718         area BSEG.  Also moves, if possible, the DATA area down into the internal
13719         ram so more space is available.
13720
13721         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13722         sflag.
13723
13724         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13725         not bytes.  Function summary() which creates a memory usage summary
13726         file with extension .mem.  Reports of overlaping stack and small stack
13727         size.  If the space for the stack is less than 16 bytes aslink trows a
13728         warning.
13729
13730         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13731         the 8051.  Option 'y' for memory summary output file.
13732
13733         Changes to sdcc (All the changes are marked with 'JCF'):
13734
13735         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13736
13737         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13738         overlaying area for it (uses RegBankUsed[4]).
13739
13740         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13741         bank zero as used by default.  By default aslink locates the stack
13742         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13743         the creation of the .mem file.  Delegates the allocation of data area
13744         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13745         the begining of the stack area to aslink.
13746
13747         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13748         glue() in SDCCglue.c creates an area for it.
13749
13750 2002-09-03  Borut Razem <borut.razem AT siol.net>
13751         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13752         sdcc/src/pic/glue.c:
13753         introduced atexit() handler for teporay files removal in case of
13754         errors, assertions, ...
13755
13756 2002-08-29  Borut Razem <borut.razem AT siol.net>
13757         * sdcc/support/cpp2/auto-host_vc_in.h:
13758         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13759         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13760         Maybe there is a similar problem with BORLANDC? It should be checked!
13761
13762         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13763         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13764         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13765         was not executed, and the compiler (cl) launched a warning:
13766         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13767
13768 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13769         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13770
13771 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13772         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13773
13774         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13775           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13776           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13777           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13778           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13779           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13780           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13781         - added Release configuration in VS projects
13782         - review of compiler an linker options
13783         - VC .exe files are generated in bin_vc directory, not to interfere
13784           with binaries generated from other projects (cygwin, mingw, bcc ...)
13785
13786         * sdcc/src/yacc.dsp: added
13787
13788         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13789         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13790         and insert the version number definitions from .version
13791
13792         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13793
13794         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13795         added - genarate auto-host.h using auto-host_vc_in.h as template
13796
13797         * sdcc/sdcc_vc.h,
13798         removed from CVS, generated automatically
13799
13800 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13801         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13802
13803 2002-08-11  Borut Razem <borut.razem AT siol.net>
13804         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13805
13806 2002-08-10  Borut Razem <borut.razem AT siol.net>
13807         * src/SDCCmain.c (main):
13808         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13809         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13810         The consequence was that some temporary files were not removed.
13811
13812         * src/SDCCglue.c:
13813         unification of code in functions tempfilename() and tempfile():
13814         function tempnam() is defined in Visual Studio 6.0 and .NET
13815
13816         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13817
13818         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13819           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13820         - removed compiler command line option /WX: Treats all warnings as errors
13821         - update a list of source files, included into the project
13822
13823         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13824           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13825         changed project type to Generic Project so that can be correcly converted to VS.NET project
13826
13827         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13828
13829         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13830
13831         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13832
13833         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13834         added return 0 statements after assert() to make compiler happy
13835
13836         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13837         added newline in the def file to keep MSC compiler satisfied
13838
13839         * sdcc/src/z80/gen.c:
13840         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13841           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13842         - solved MSC error in function aopDump()
13843
13844         * sdcc_vc.h: define PREFIX as "\\sdcc"
13845
13846 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13847         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13848
13849 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13850         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13851         - Rewrote the register banking algorithm.
13852         - Added pCode live-range analysis to registers (for now, only non-used and
13853         singly-used registers optimized away)
13854
13855         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13856
13857         * 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.
13858
13859 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13860         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13861
13862 2002-04-22  Michael Hope  <michaelh AT vroom>
13863
13864         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13865
13866         * configure.in (DD_COPT): Added include support required for gbdk.
13867
13868         * .version: Bumped version number just to increase it.
13869
13870         * src/SDCCmain.c: Added -nostdinc to the default options.
13871
13872 2002-04-15  Michael Hope  <michaelh AT vroom>
13873
13874         * device/lib/z80/printf.c (sprintf): Added.
13875
13876         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13877
13878         * src/z80/peeph.def: Added transpose redundent load rule.
13879
13880         * src/z80/main.c: Added force callee saves for jaune.
13881
13882         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13883
13884         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13885
13886 2002-03-28  Johan Knol  <johan AT balder>
13887
13888         * src/SDCCval.c: fixed bug #532436
13889
13890 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13891         * /src/port.h:
13892         Added "char *Processor" field to the port structure.
13893
13894         * /src/SDCCmain.c:
13895         Added -p option. Allows port dependent processor to be specified.
13896
13897         * all ports:
13898         Initialized the new field char *Processor field to NULL in all ports
13899
13900         * /src/pic/*:
13901         Compiler generated registers for interrupt context saving
13902         were not getting allocated.
13903
13904 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13905
13906         * /src/SDCCast.c:
13907         Fixed left shift. Will promote the left side of a left shift
13908         if a) left shifting more than size of operand or b) when assigned
13909         to something size > size of left side
13910
13911 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13912         * src/pic/*
13913         tons of changes. Register allocation has been
13914         rewritten. Added customization for the various PICs. Flow
13915         analysis is restructured. ...
13916
13917         * src/pic/device.h:
13918         Added
13919
13920         * src/pic/device.c:
13921         Added. device.c is a PIC port hack to accomodate variations
13922         in PIC devices.
13923
13924 2002-03-13  Michael Hope  <michaelh AT vroom>
13925
13926         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13927
13928 2002-03-04  johanknol  <johanknol AT manik>
13929
13930         * /src/SDCCval.c: fixed
13931
13932         const unsigned char arr[][2] = { { 0, 1 } };
13933         t18.c:1: error: Initializer element is not constant
13934
13935 2002-03-04  bela  <bela AT manik>
13936
13937         * /device/include/mcs51reg.h:
13938         ds89c420 register definition update
13939
13940 2002-03-03    <johan AT FRIJA>
13941
13942         * support/Util/SDCCerr.c: did something, but don't no why anymore
13943
13944         * support/regression/tests/bug-524691.c: made it a little less shy
13945
13946         * src/SDCCast.c (decorateType): fixed bug #524697
13947
13948         * src/SDCCast.c: made some lineno improvements
13949
13950         * src/SDCCval.c (getNelements): changed warning to error
13951
13952         * src/SDCCglue.c (printIvalArray): changed warning to error
13953
13954         * src/SDCCicode.c: fixed a warning for mingw
13955
13956         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13957
13958         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13959
13960 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13961
13962         * src/ds390/peeph.def:
13963         Added some more peephole rules
13964
13965         * src/ds390/gen.c: Various fixes & enhancements
13966
13967         * src/SDCClrange.c, src/SDCClrange.h:
13968         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13969
13970         * src/ds390/ralloc.c:
13971         various fixes & enhancements (ds390) specific
13972
13973         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13974         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13975         from rallocs.
13976
13977         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13978
13979 2002-03-02    <johan AT FRIJA>
13980
13981         * src/SDCCast.c (decorateType): fixed bug #524708
13982
13983         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13984
13985         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13986
13987 2002-03-01  Michael Hope  <michaelh AT vroom>
13988
13989         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13990
13991         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13992
13993 2002-03-01    <johan AT FRIJA>
13994
13995         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13996
13997         * src/SDCCast.c (decorateType): fixed bug #524209
13998
13999         * src/SDCCval.c (valNot): fixed bug #524195
14000
14001 2002-02-26    <johan AT balder>
14002
14003         * src/xa51/gen.c: fixed a warning
14004
14005         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14006
14007         * src/SDCCast.c (decorateType): fixed bug #522534
14008
14009 2002-02-23    <johan AT balder>
14010
14011         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14012
14013 2002-02-22    <johan AT balder>
14014
14015         * src/SDCCast.c: fixed bug #514865
14016
14017         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14018
14019 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14020
14021         * sdcc/src/SDCCloop.c:
14022         Previous fix was not good. basic blocks that have "break" or "return" are
14023         not really partof a loop , but live ranges used in these blocks should
14024         be live thru the entire loop, so set partOfLoop but don't add them to
14025         loop region
14026
14027 2002-02-21    <johan AT FRIJA>
14028
14029         * src/SDCCcse.c: fixed bug #514308
14030
14031 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14032
14033         * src/SDCCloop.c:
14034         Fixed BUG #519583. If a conditional block ended in a return/break
14035         statement inside a loop, it was not being considered part of the loop.
14036
14037         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14038
14039 2002-02-10  Karl Bongers <karl AT turbobit.com>
14040
14041         * debugger/*:
14042         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14043         with lots of comments and notes.
14044
14045         * device/examples/test2.c:
14046         Fix bug, "red" variable not being initialized(compiler complained).
14047
14048         * device/examples/Makefile, examples/test3.c:
14049         Add Makefile in device/examples folder, compiles test3.c
14050         for use as a multiple module SDCDB test case.
14051
14052         * sim/ucsim/cmd.src/cmdset.cc:
14053         Took out debug printfs in ucsim "next" command.
14054
14055         * sim/ucsim/xa.src:
14056         Karl and Johan start ucsim XA support.  Most dissassembly working,
14057         about 75% emulation done(plenty of work remaining).
14058
14059         * sim/ucsim/z80.src:
14060         Add Z80 support to ucsim, add test-ucz80 regression test,
14061         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14062         Notice z80 compiler fails on examples/test3.c/crc code.
14063
14064 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14065
14066         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14067         Added support for --parms-in-bank1
14068
14069         * src/ds390/peeph.def:
14070         added a few more peephole optimzations
14071
14072         * src/ds390/main.c:
14073         1) added __builtin_inp & __builtin_outp used to read in data of given length
14074            from a memory mapped port
14075         2) added __builtin_memcmp
14076         3) added __builtin_swapw swap bytes of a short
14077
14078         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14079         1) handle multiple send & receives from register bank1
14080         2) ralloc can now allocate DPTR1 to some liveRanges
14081
14082         * src/SDCCsymt.c, src/SDCCsymt.h:
14083         changes to handle multiple sends & receives
14084
14085         * src/SDCCptropt.h:
14086         added some pointer arithmetic optimization
14087
14088         * src/SDCCptropt.c:
14089         added some pointer arithmetic optimizations but not stable yet so not
14090         called from anywhere (will get this working shortly)
14091
14092         * src/SDCCopt.c: fixed for multiple sends & receives
14093
14094         * src/SDCCmain.c:
14095         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14096         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14097            set preprocessor defines (depending on options)
14098
14099         * src/SDCCicode.c, src/SDCCicode.h:
14100         changes made to handle multiple sends & receives
14101
14102         * src/SDCCglobl.h:
14103         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14104
14105         * src/SDCCcse.c, src/SDCCcse.h:
14106         added function findbackward def (to be used in upcoming optimization)
14107
14108         * src/SDCCcflow.c, src/SDCCcflow.h:
14109         added function returnAtEnd - to determine if a basic block terminates with
14110         a RETURN iCode
14111
14112         * src/SDCCast.c, src/SDCCast.h:
14113         added option parms-in-bank1
14114
14115         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14116         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14117         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14118         adjusted for --parms-in-bank1 option
14119
14120         * device/include/string.h:
14121         donot redefine "reentrant" keyword
14122
14123         * device/include/ds80c390.h: Added some more SFRs
14124
14125 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14126
14127         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14128
14129 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14130
14131         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14132
14133 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14134
14135         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14136
14137 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14138
14139         * Added --xram-movc option
14140
14141 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14142
14143         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14144
14145 2002-01-11  Johan Knol
14146
14147         * Added math lib of Jesus Calvino-Fraga
14148
14149 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14150
14151         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14152         * support/regression/Makefile: new target test-mcs51-stack-auto
14153         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14154
14155 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14156
14157         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14158
14159 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14160
14161         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14162
14163 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14164
14165         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14166
14167         * src/SDCCglue.h: add definition for printIvalChar()
14168
14169 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14170
14171         * src/SDCCast.c: fix #498138 by Johan
14172
14173         * src/SDCCglue.c: fix #498138 by Johan
14174
14175 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14176
14177         * support/regression/Makefile: fix clean
14178
14179         * support/regression/ports/ds390/support.c: fix transmission of last character
14180
14181 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14182
14183         * /sdcc/src/ds390/gen.c:
14184         a) improved computing address of stack variable
14185         b) took out some #if 0 code
14186         c) improved parmBytes adjustment
14187         d) improved genPlusIncr & genMinusIncr
14188         e) genCmp could generate bad code (when left assigned to DPTR)
14189         f) Fixed bug in hasInc
14190
14191         * /sdcc/src/ds390/ralloc.c:
14192         a) packRegsForSupport could mess up live information (Fixed)
14193         b) packRegsDPTRuse could be incorrect for left & right shift
14194
14195         * /sdcc/src/mcs51/ralloc.c:
14196         packRegsForSupport could mess up the live information (Fixed)
14197
14198         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14199
14200         * /sdcc/src/SDCCast.c:
14201         can reverse a loop even if function call is present as long
14202         as the loop control variable is local & is not passed as parameter
14203
14204 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14205
14206         * /sdcc/ChangeLog: *** empty log message ***
14207
14208         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14209         More builtin function additions for TININative
14210
14211         * /sdcc/src/ds390/ralloc.c:
14212         Had broken the regression testsuite
14213
14214         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14215
14216         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14217         Added funcattr hasStackParms will be set for reentrant functions when there
14218         are paramteres on the stack, this helps in minimizing frame pointer generation
14219         typeFromStr can handle function pointers now
14220
14221         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14222         *** empty log message ***
14223
14224 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14225
14226         * /src/ds390/gen.c, /src/ds390/main.c:
14227         More builtin function additions for TININative
14228
14229         * /src/ds390/ralloc.c:
14230         Had broken the regression testsuite
14231
14232         * /src/SDCCast.c: Fixed a bug in dumptree
14233
14234         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14235         Added funcattr hasStackParms will be set for reentrant functions when there
14236         are paramteres on the stack, this helps in minimizing frame pointer generation
14237         typeFromStr can handle function pointers now
14238
14239         * /doc/builtins.txt, /doc/TININative.txt:
14240         *** empty log message ***
14241
14242
14243 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14244
14245         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14246         ALPHA version for -mTININative
14247
14248         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14249         updated to reflect changes in the port structure
14250
14251         * /src/port.h:
14252         added function do_assemble (similar to do_link) if non-null this function
14253         will be called to do assembly (-mTININative) requires a multi command
14254         assembly
14255         added function genAssemblerEnd will be called to generate assembler Epilogue
14256
14257         * /src/SDCCsymt.c:
14258         added _JavaNative to debug info printing
14259
14260         * /src/SDCCmain.c: added option --tini-libid
14261         added port->do_assemble function (-mTININative) has a multi command assemble
14262
14263         * /src/SDCCglue.c: Disabled "constExpr" check
14264         added port->genAssemblerEnd function
14265
14266         * /src/SDCCglobl.h: Added option --tini-libid value
14267
14268         * /src/SDCCast.h:
14269         tookout optimizeCompare from the header (has no external references)
14270
14271         * /src/SDCCast.c: made one more function "static"
14272
14273 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14274
14275         * src/z80/mappings.i: Added z80asm support.
14276
14277         * src/z80/main.c: Added z80asm support on --asm=z80asm
14278
14279         * src/z80/gen.c: Fixed asm portability issues.
14280
14281         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14282
14283         * src/SDCCglue.c (printExterns): Added global/extern split.
14284
14285 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14286
14287         * support/regression/Makefile: added test for mcs51 model large
14288
14289         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14290
14291         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14292
14293 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14294
14295         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14296
14297 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14298
14299         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14300
14301         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14302
14303 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14304
14305         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14306
14307         * support/regression/tests/simplefloat.c: Port to mcs51.
14308
14309 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14310         * support/regression/tests/bug-485362.c: Added.
14311
14312         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14313
14314         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14315
14316         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14317
14318         * src/z80/gen.c (aopDump): Added a dump function.
14319
14320 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14321         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14322
14323         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14324
14325         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14326
14327         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14328
14329         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14330
14331         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14332
14333         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14334
14335         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14336
14337         * support/regression/ports/ds390/support.c: Use tinibios.
14338
14339         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14340
14341 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14342
14343         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14344         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14345
14346         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14347
14348         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14349
14350 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14351
14352         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14353
14354         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14355         (packRegsForIYUse): Created and optimised.
14356
14357 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14358
14359         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14360 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14361
14362         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14363
14364         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14365
14366         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14367
14368 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14369
14370         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14371
14372         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14373
14374 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14375
14376         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14377
14378         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14379
14380         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14381
14382 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14383
14384         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14385         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14386         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14387
14388         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14389
14390         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14391         (genNotFloat): Added.
14392         (genUminusFloat): Added.
14393
14394         * device/lib/z80/Makefile: Added floating pt stubs.
14395
14396         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14397
14398         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14399
14400         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14401
14402 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14403
14404         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14405
14406         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14407
14408         * sdcc/support/regression/Makefile: Add port ds390.
14409
14410         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14411
14412         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14413
14414         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14415
14416         * sdcc/support/regression/ports/ds390/support.c: Added.
14417
14418         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14419
14420         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14421
14422         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14423
14424 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14425
14426         * device/include/malloc.h: Added z80 and gbz80 support.
14427
14428         * device/lib/gbz80/heap.s: Added.
14429
14430         * device/lib/z80/heap.s: Added.
14431
14432         * device/lib/malloc.c: Added z80 and gbz80 support.
14433
14434         * support/regression/tests/malloc.c (testMalloc): Added.
14435
14436         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14437
14438         * support/regression/tests/bug-478094.c: Added.
14439
14440         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14441
14442 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14443
14444         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14445
14446         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14447
14448         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14449
14450         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14451
14452         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14453
14454 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14455
14456         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14457
14458 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14459
14460         * support/regression/tests/bug-477927.c: Added.
14461
14462         * src/z80/peeph.def: Added minor rules.
14463
14464         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14465
14466         * src/z80/peeph.def: Added jump optimisation modification.
14467
14468 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14469
14470         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14471
14472 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14473
14474         * support/regression/tests/funptrs.c: Added.
14475
14476 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14477
14478         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14479
14480 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14481
14482         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14483
14484         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14485
14486         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14487         (movLeft2ResultLong): Created.
14488
14489         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14490         (joinPushes): Added.  Joins two char pushes into a word push.
14491
14492 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14493
14494         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14495
14496         * support/makebin/Makefile (install): Added creation of dest dir.
14497
14498 2001-10-24 Karl Bongers <karl AT turbobit.com>
14499
14500         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14501
14502 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14503
14504         * src/z80/ralloc.c: Turned off faulty pack for one use.
14505
14506         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14507
14508         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14509
14510 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14511
14512         * support/regression/Makefile: Improved clean
14513
14514         * support/regression/ports/gbz80/spec.mk: Added clean
14515
14516         * support/regression/ports/host/spec.mk: Added clean
14517
14518         * support/regression/ports/z80/spec.mk: Added clean
14519
14520         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14521
14522         * support/regression/ports/mcs51/timeout.c: little improvements
14523
14524 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14525
14526         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14527
14528         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14529
14530         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14531
14532 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14533
14534         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14535
14536         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14537
14538 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14539         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14540
14541         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14542
14543         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14544
14545         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14546
14547         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14548
14549         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14550
14551         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14552
14553         * support/regression/tests/longor.c: Added.
14554
14555 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14556
14557         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14558
14559         * as/mcs51/aslink.h: define PATH_MAX
14560
14561         * as/mcs51/asm.h: define PATH_MAX
14562
14563         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14564
14565         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14566
14567         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14568
14569         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14570
14571         * src/SDCCglobl.h: define PATH_MAX
14572
14573         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14574
14575         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14576
14577 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14578
14579         * src/z80/gen.c (gencjneshort): Fixed
14580
14581         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14582
14583 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14584
14585         * support/regression/tests/bug-469671.c: Added.
14586
14587         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14588
14589 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14590
14591         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14592
14593         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14594
14595 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14596
14597         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14598
14599         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14600
14601         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14602
14603         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14604
14605         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14606
14607         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14608
14609         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14610
14611 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14612
14613         * 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.
14614
14615         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14616
14617         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14618
14619 2001-10-07    <johan AT FRIJA>
14620
14621         * device/lib/gets.c (gets): fixed the return value.
14622
14623 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14624         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14625
14626         * 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.
14627
14628         * 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.
14629
14630         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14631
14632         * src/pic/gen.c: Removed Safe_strdup.
14633
14634         * configure.in: Added option to enable libgc support.
14635
14636         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14637         (bitVectUnion): Optimised.
14638         (bitVectIntersect): Optimised.
14639         (bitVectBitsInCommon): Optimised.
14640         (bitVectCplAnd): Optimised.
14641
14642         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14643
14644 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14645
14646         * src/SDCCmain.c: distinguish between assembler debug and plain options
14647
14648         * src/avr/main.c:   remove standard assembler options
14649
14650         * src/ds390/main.c: remove standard assembler options
14651
14652         * src/mcs51/main.c: remove standard assembler options
14653
14654         * src/port.h: removed "PENDING" comment
14655
14656 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14657
14658         * src/device/lib/_mulint.c  : new, with assember functions
14659
14660         * src/device/lib/_mullong.c : new, with assember functions
14661
14662         * src/device/lib/_divuint.c : with assember functions
14663
14664         * src/device/lib/_divsint.c : with assember functions
14665
14666         * src/device/lib/_divulong.c: with assember functions
14667
14668         * src/device/lib/_divslong.c: with assember functions
14669
14670         * src/device/lib/_moduint.c : with assember functions
14671
14672         * src/device/lib/_modsint.c : with assember functions
14673
14674         * src/device/lib/_modulong.c: with assember functions
14675
14676         * src/device/lib/_modslong.c: with assember functions
14677
14678         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14679
14680         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14681
14682         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14683                                       replaced _mululong.c and _mulslong.c by _mullong.c
14684
14685 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14686
14687         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14688
14689 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14690
14691         * src/SDCCglue.c: test, if win32api is available for MINGW
14692
14693 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14694
14695         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14696         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14697         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14698         * support/regression/ports/host/spec.mk: removed GENERIC
14699         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14700         * support/regression/ports/z80/spec.mk: removed GENERIC
14701
14702 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14703
14704         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14705
14706         * support/regression/tests/bug-467035.c: Created.
14707
14708 2001-10-01    <johan AT FRIJA>
14709
14710         * src/SDCC.y: fixed bug #466586 part 1
14711
14712 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14713
14714         * SDCCicode.c: z80 has no generic pointers
14715         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14716
14717 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14718
14719         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14720
14721 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14722
14723         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14724
14725         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14726
14727 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14728
14729         * configure.in: Fixed up so that ucsim is only configured once.
14730
14731         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14732
14733         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14734         (getPathDifference): As above.
14735
14736         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14737
14738         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14739
14740 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14741         * .version: Updated to 2.3.1
14742
14743         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14744         Added copyright header.
14745
14746         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14747         (assemble): Added support for macro based assembler commands.
14748         (linkEdit): Added support for macro based linker commands.
14749         (preProcess): Changed the pre-processor to use macros.
14750         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14751         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14752
14753         * device/lib/z80/crt0.s: Added module name for debugging.
14754
14755 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14756
14757         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14758
14759         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14760
14761         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14762
14763         * src/Makefile.in: Added SDCCmacro and SDCCutil
14764
14765 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14766
14767         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14768
14769 2001-09-16    <johan AT FRIJA>
14770
14771         * 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.
14772
14773 2001-09-15    <johan AT FRIJA>
14774
14775         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14776         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14777
14778 2001-09-11    <johan AT FRIJA>
14779
14780         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14781
14782 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14783
14784         * support/regression/tests/bug-460444.c: Added test case.
14785
14786         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14787         (genCast): Added justification for all of the asserts.
14788
14789 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14790
14791         * support/regression/support.c: _xdata replaced by xdata
14792
14793         * support/regression/spec.mk: removed _generic
14794
14795 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14796
14797         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14798
14799         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14800         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14801
14802         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14803
14804         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14805
14806         * support/regression/tests/bug-460010.c: Added test case.
14807
14808         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14809
14810 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14811
14812         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14813
14814         * support/regression/testfwk.c: removed workaround for bug #436344
14815
14816         * support/regression/tests/bp.c: use less memory with mcs51
14817
14818         * support/regression/tests/bug-441448.c: use less memory
14819
14820         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14821
14822         * support/regression/collate-results.py: typo
14823
14824 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14825
14826         * support/regression/tests/fetchoverlap.c: Added new test case.
14827
14828         * support/regression/tests/bp.c: Added new test case.
14829
14830         * support/regression/tests/bug-448984.c: Added new test case.
14831
14832         * support/regression/tests/pow2shifts.c: Added new test case.
14833
14834         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14835         (genlshTwo): Fixed right shift for count > 8.
14836
14837         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14838
14839 2001-09-08    <johan AT FRIJA>
14840
14841         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14842
14843 2001-09-07    <johan AT FRIJA>
14844
14845         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14846
14847         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14848
14849 2001-09-06    <johan AT FRIJA>
14850
14851         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14852         * bernhard noted me at this: "() equals to (void)" (1.38)
14853
14854 2001-09-05    <johan AT FRIJA>
14855
14856         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14857
14858 2001-09-04    <johan AT FRIJA>
14859
14860         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14861
14862
14863 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14864
14865         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14866
14867 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14868
14869         * link/z80/aslink.h: Fixed path for PATH_MAX
14870
14871 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14872
14873         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14874
14875         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14876
14877         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14878
14879         * 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.
14880
14881 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14882
14883         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14884         (genCmp): Fixed up genCmp for the GB with longs.
14885
14886         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14887
14888         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14889
14890         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14891
14892         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14893
14894 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14895
14896         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14897
14898 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14899
14900         * 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.
14901
14902         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14903
14904 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14905
14906         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14907
14908         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14909
14910 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14911
14912   * sim/ucsim/configure:    little improvement of Cygwin-detection
14913   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14914   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14915   * support/regression/tests/bug-221100.c: small changes for mcs51
14916   * support/regression/tests/bug-221168.c: small changes for mcs51
14917   * support/regression/tests/bug-227710.c: small changes for mcs51
14918   * support/regression/tests/staticinit.c: small changes for mcs51
14919   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14920   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14921   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14922
14923 $Revision$