* device/include/pic16/pic18f1220.h,
[fw/sdcc] / ChangeLog
1 2007-08-22 Raphael Neider <rneider AT web.de>
2
3         * device/include/pic16/pic18f1220.h,
4         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
5
6 2007-08-12 Borut Razem <borut.razem AT siol.net>
7
8         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
9
10 2007-08-11 Borut Razem <borut.razem AT siol.net>
11
12         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
13           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
14           support/Util/SDCCerr.[ch] moved to src
15         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
16           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
17           device/examples/ds390/tinitalk/tinitalk.dsp,
18           device/examples/serialcomm/windows/serialcomm.dsp,
19           support/librarian/librarian.dsp:
20           removed linking of unused odbc32.lib and odbccp32.lib
21         * support/scripts/winres.h:
22           added for compilation with Visual C++ 2005 Express Edition
23
24 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
25
26         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
27           and CKCON1.
28
29 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
30
31         * sdccconf_in.h: update the endian test so that SPARC Solaris
32           does not throw syntax errors
33
34 2007-08-06 Borut Razem <borut.razem AT siol.net>
35
36         * doc/sdccman.lyx: removed two index entries which prevented the
37           generation of sdcc doc archive
38
39 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
40
41         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
42           instead of lyx 1.5.0.
43
44 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
45
46         * device/include/hc08/mc68hc908apxx.h: new header contributed by
47           Lucas Loizaga, with minor modifications. Thanks!
48
49 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
50
51         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
52           in sdcclib.
53
54 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
55
56         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
57           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
58           with acall/ajmp.
59
60 2007-07-22 Borut Razem <borut.razem AT siol.net>
61
62         * configure.in, configure: re-introduced .version
63         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
64           the version reverted to 2.7.0
65
66 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * configure.in,
69         * doc/sdccman.lyx: bumped version to 2.7.3
70         * device/include/mcs51/compiler.h: fixed elif->else
71         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
72         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
73           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
74            enable accuse for bit operands
75         * src/SDCCmain.c (printVersionInfo),
76         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
77           environment descriptor
78         * src/SDCCutil.h: added getBuildEnvironment
79         * src/SDCCglue.c (initialComments): use getBuildEnvironment
80         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
81         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
82         * support/regression/tests/bug1348008.c,
83         * support/regression/tests/bug1496419.c,
84         * support/regression/tests/bug1503067.c,
85         * support/regression/tests/preproc.c: added empty tests
86
87 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
88
89         * support/regression/tests/bug1678803.c: new, added
90
91 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
92
93         * as/link/aslink.h,
94         * as/link/hc08/lkihx.c,
95         * as/link/hc08/lkrloc.c,
96         * as/link/mcs51/lkihx.c,
97         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
98           ihxExtendedLinearAddress
99         * as/link/mcs51/lkrloc.c (relr),
100         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
101           acall/ajmp, see bug 830513
102
103 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
106           (cseBBlock): remember aggr2ptr has been used
107         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
108           (geniCodeAssign): fixed bug 868103
109         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
110           added operandSize prototype
111         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
112           (genDataPointerSet): use max of size of right and result,
113           (gencjne): added parameter useCarry for optimization,
114           (genCmpEq): use carry if appropriate,
115           (genXor): check if operand already in carry
116         * support/regression/tests/bug-868103.c: enabled test
117
118 2007-07-12 Raphael Neider <rneider AT web.de>
119
120         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
121
122 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
123
124         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
125           from Robert Larice, thanks
126         * support/regression/tests/bitopcse.c,
127         * support/regression/tests/bitvars.c,
128         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
129         * support/regression/tests/bug-927659.c: enabled test for z80
130         * support/regression/tests/bug1738367.c: added extra tests by Frieder
131         * support/regression/tests/bug1745717.c: new, added
132         * support/regression/tests/literalop.c,
133         * support/regression/tests/nullstring.c: removed storage definitions that
134           are now in testfwk.h
135
136 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
137
138         * device/include/stdbool.h: do not define __bool_true_false_are_defined
139           and bool for targets that do not fully support it.
140         * support/regression/tests/bug1546986.c,
141         * support/regression/tests/bug1723128.c,
142         * support/regression/tests/bug1734654.c,
143         * support/regression/tests/bug1738367.c,
144         * support/regression/tests/constantRange.c: only use bool if allowed
145
146 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
147
148         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
149           Larice, also handle function pointers
150         * support/regression/tests/bug1749275.c: new, added
151
152 2007-07-03 Borut Razem <borut.razem AT siol.net>
153
154         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
155           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
156           #1746528: SDCC should ignore ':' in inline assembler comments
157         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
158
159 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
160
161         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
162         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
163
164 2007-06-29 Borut Razem <borut.razem AT siol.net>
165
166         * src/SDCCmain.c: fixed bug
167           #1744746: SDCC #4867: broken option --xram-size
168
169 2007-06-28 Borut Razem <borut.razem AT siol.net>
170
171         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
172           find out the endianess of host machine for ucsim
173
174 2007-06-27 Borut Razem <borut.razem AT siol.net>
175
176         * support/regression/generate-cases.py: corrected the file name
177           in warning
178         * configure.in, configure, sdccconf_in.h: find out the endianess of
179           host machine
180         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
181           negative size
182
183 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
184
185         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
186
187 2007-06-26 Borut Razem <borut.razem AT siol.net>
188
189         * support/regression/generate-cases.py: display warning if function
190           list is empty; implemented more flexible rule for detection of
191           testing functions, allowing return type 'void' in the same line as
192           the function name in the function definition
193         * support/regression/tests/bug-1654060.c: corrected test
194         * support/librarian/sdcclib.c: fixed warning:
195           format '%s' expects type 'char *', but argument 2 has type 'int'
196
197 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
198
199         * support/librarian/sdcclib.c: Added feature Requests [1510635]
200           Multiple infiles for sdcclib.
201
202 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
203
204         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
205           bug 1731741
206
207 2007-06-18 Borut Razem <borut.razem AT siol.net>
208
209         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
210           how to handle comments, so they have to be removed by the
211           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
212         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
213           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
214           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
215           table driven option hadling
216
217 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
218
219         * src/SDCCast.c (decorateType),
220         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
221           iCode to ast level to fix bug 1738367
222         * support/regression/tests/bug1738367.c: new, added
223
224 2007-06-15 Raphael Neider <rneider AT web.de>
225
226         * src/pic16/devices.inc,
227         * device/lib/pic16/pics.all,
228         * device/include/pic16/pic18fregs.h,
229         * device/include/pic16/pic18f[24][45]20.h,
230         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
231           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
232         * device/lib/pic16/Makefile.in: faster cleanup
233
234 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
235
236         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
237
238 2007-06-13 Raphael Neider <rneider AT web.de>
239
240         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
241
242 2007-06-12 Raphael Neider <rneider AT web.de>
243
244         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
245           suppress bit defines if NO_BIT_DEFINES is #define'd
246         * device/include/pic/pic*.h: recreated all headers to include
247           conditional bit defines
248         * device/include/pic/pic16f886.h,
249         * device/include/pic/pic16f887.h: fixed based on newer .inc file
250         * device/include/pic/recreate.sh: script to recreate the complete
251           device library files based on the currently supported devices
252
253 2007-06-12 Borut Razem <borut.razem AT siol.net>
254
255         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
256           support/regression/Makefile.in, support/scripts/build.mak,
257           support/scripts/Makefile.snapshot:
258           use new svn URL scheme
259         * doc/sdccman.lyx: SDCC Wiki moved to
260           http://sdcc.wiki.sourceforge.net/
261
262 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
263
264         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
265         * support/regression/tests/bug1734654.c: added
266
267 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
268
269         * src/SDCCast.c (decorateType): optimized '?' for equal operands
270         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
271           with literal operands
272
273 2007-06-10 Borut Razem <borut.razem AT siol.net>
274
275         * as/link/z80/lklibr.c: fixed mingw build warning
276           lklibr.c:575: warning: implicit declaration of function 'tolower'
277         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
278           src/z80/main.c: move target specific options from src/SDCCmain.c
279           to src/<target>/main.c
280
281 2007-06-09 Borut Razem <borut.razem AT siol.net>
282
283         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
284           removed unused swap_sense; removed outBitCLong, replaced with outBitC
285         * support/regression/tests/bug-1294691.c: added
286
287 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
288
289         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
290           can also be static, fixes bug 1733438
291         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
292           have absolute address too
293           (computeType): added optimization for 'cond ? true : false'
294         * support/regression/tests/absolute.c: added test for static absolute var
295
296 2007-06-08 Raphael Neider <rneider AT web.de>
297
298         * src/regression/Makefile: suppress parallel builds, allow easy
299           switching between pic14/pic16 ports
300         * src/regression/picregs.h: added pic14/16 header file switch
301         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
302           inline.c,nestfor.c,string1.c}: include "picregs.h"
303
304 2007-06-07 Borut Razem <borut.razem AT siol.net>
305
306         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
307           permanent solution to suppress GCC 4.2.0 c++ warning:
308           deprecated conversion from string constant to `char *'
309           use 'const char *' where ever required
310         * support/regression/generate-cases.py: implemented more flexible rule
311           for detection of testing functions, allowing white-spaces surrounding
312           the function name and the 'void' parameter.
313         * support/regression/tests/constantRange.c,
314           support/regression/tests/scott-compare3.c: fixed failing regression
315           tests, uncovered by implementation of more flexible rule for detection
316           of testing functions
317
318 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
319
320         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
321
322 2007-06-04 Borut Razem <borut.razem AT siol.net>
323
324         * configure.in, configure, config_vc.awk: sdcc version number is now
325           stored in configure.in; removed .version
326         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
327           doc/INSTALL.txt: version bumped to 2.7.2
328         * sim/ucsim/configure.in, sim/ucsim/configure:
329           use "read" to read from .version
330
331 2007-06-03 Borut Razem <borut.razem AT siol.net>
332
333         * */Makefile.in: removed annoying warning:
334           Makefile:xx: Makefile.dep: No such file or directory
335
336 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
337
338         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
339           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
340         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
341         * src/SDCCast.c (resultTypePropagate): propagate for '!',
342           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
343           bugfix: only use newBoolLink for bit result type
344         * src/SDCCicode.c (geniCodeLogic): added param tree,
345           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
346           (geniCodeLogicAndOr): use IS_BIT,
347           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
348           (ast2iCode): added tree param to geniCodeLogic for comparisons
349         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
350         * support/regression/tests/bug1723128.c: added test NotZero
351
352 2007-06-01 Borut Razem <borut.razem AT siol.net>
353
354         * SDCPP synchronized with GCC CPP release version 4.2.0,
355           currently the latest release:
356         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
357           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
358           support/cpp2/cppdefault.h, support/cpp2/except.h,
359           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
360           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
361           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
362           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
363           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
364           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
365           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
366           support/cpp2/opts.h, support/cpp2/output.h,
367           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
368           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
369           support/cpp2/system.h, support/cpp2/version.c,
370           support/cpp2/Makefile.in: modified
371         * support/cpp2/opts-common.c: added
372         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
373         * device/lib/pic16/libdev/pic18f[24]5j10.c:
374           search for included source file in local directory
375         * sim/ucsim/configure, sim/ucsim/configure.in:
376           temporary solution to suppress GCC 4.2.0 c++ warning:
377           deprecated conversion from string constant to `char *'
378
379 2007-06-01 Raphael Neider <rneider AT web.de>
380
381         * device/lib/pic/libdev/pic12f683.c,
382         * device/include/pic/pic12f683.h: added GPIO bits
383
384 2007-06-01 Raphael Neider <rneider AT web.de>
385
386         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
387           quotation marks, clarified role of PIC14 vs. PIC16 ports
388         * src/pic16/devices.inc,
389         * device/include/pic16/pic18fregs.h,
390         * device/include/pic16/pic18f[24][45]j10.h,
391         * device/lib/pic16/pics.all,
392         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
393           18f24j10, 18f25j10, 18f44j10, and 18f45j10
394         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
395           for new devices as they are not yet supported by gputils
396
397 2007-05-31 Borut Razem <borut.razem AT siol.net>
398
399         * Small Device C Compiler 2.7.0 released
400         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
401           changed sdcc version to 2.7.1
402         * support/scripts/sdcc.nsi: added How to create WIN32 release
403           setup.exe package
404
405 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
406
407         * doc/sdccman.lyx: documented initialization and allocation of absolute
408           variables, bit parameter passing, the need for function pointers to be
409           reentrant and alpha quality support of inline and retrict
410
411 2007-05-26 Borut Razem <borut.razem AT siol.net>
412
413         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
414           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
415         * docs/knownbugs.html: updated
416
417 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
418
419         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
420           thanks Jan Waclawek
421         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
422           AOP_CRY and ruonly
423           (gencjneshort): optimized when left is AOP_DIR
424         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
425           initializing unions in a struct/array
426         * support/regression/fwk/include/testfwk.h: added defines for data, near
427           and far for host and z80
428         * support/regression/tests/bug1723128.c: new, added
429
430 2007-05-22 Borut Razem <borut.razem AT siol.net>
431
432         * doc/knownbugs.html: updated
433
434 2007-05-21 Raphael Neider <rneider AT web.de>
435
436         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
437           error message instead
438         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
439
440 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
441
442         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
443
444 2007-05-21 Raphael Neider <rneider AT web.de>
445
446         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
447           closes #1722392
448         * src/regression/gpsim_assert.h,
449         * src/regression/Makefile,
450         * src/regression/pcodeopt.c: regression test for the above fix
451
452 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
453
454         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
455           jumps to self, fixed bug 1717281
456
457 2007-05-10 Borut Razem <borut.razem AT siol.net>
458
459         * support/scripts/gen_known_bugs.pl: cosmetic fix
460         * doc/knownbugs.html: generated by gen_known_bugs.pl
461
462 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
463
464         * src/SDCCast.c (createFunction): also generate non-inlined version of
465           function for functions declared as "static inline"
466         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
467           function can be inlined after non-inlined version generated.
468
469 2007-05-10 Borut Razem <borut.razem AT siol.net>
470
471         * support/scripts/gen_known_bugs.pl: added script
472           which generates knownbugs.html
473
474 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
475
476         * doc/knownbugs.html: updated for release 2.7.0
477
478 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
479
480         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
481
482 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
483
484         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
485           (throughout): updated generating comments
486         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
487           (throughout): updated generating comments
488         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
489           rule instead of at the second, or it might skip lines when removing the
490           complete match
491         * support/regression/tests/bug1714204.c: changed test to foo
492
493 2007-05-08 Borut Razem <borut.razem AT siol.net>
494
495         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
496           thanks to SDCC Distributed Compile Farm members,
497           added Z80 and GBZ80 command line options
498         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
499
500 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
501
502         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
503         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
504         * support/regression/tests/longlit.c: modified to be tested at all and
505           to pass the actual test
506
507 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
508
509         * device/include/mcs51/uPSD33xx.h: Added.
510
511 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
512
513         * device/lib/_gptrput.c,
514         * device/lib/_gptrget.c: removed old code,
515          (_gptrgetWord),
516         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
517         * support/regression/tests/bug1714204.c: new, added
518
519 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
520
521         * support/regression/tests/regtrack.c: test was never executed
522           because of the regression test being picky about white spaces.
523         * device/lib/mcs51/crtclear.asm: added comment
524
525 2007-05-06 Raphael Neider <rneider AT web.de>
526
527         * device/lib/pic/Makefile.rules,
528         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
529           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
530
531 2007-05-06 Raphael Neider <rneider AT web.de>
532
533         * src/pic16/device.h,
534         * src/pic16/main.h,
535         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
536           _pic16_setDefaultOptions): removed/reordered command-line args
537         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
538           devices, regrouped command line args, environment variables),
539           clarified sone points, added sections on how to add devices to the
540           PIC14/PIC16 ports
541
542 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
543
544         * src/z80/peeph.def: fixed bug in rule 2
545
546 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
547
548         * src/port.h: added TARGET_MCS51_LIKE
549         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
550           take advantage of it too
551         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
552           (shiftR2Left2Result): Optimized: don't check shifting by 0
553         * src/z80/peeph-z80.def,
554         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
555           modifications, see patch 1700823
556         * src/mcs51/peep.c (): fixed bug 1712928
557         * support/regression/tests/bug1712928.c: new, added
558
559 2007-05-05 Borut Razem <borut.razem AT siol.net>
560
561         * device/lib/pic16/Makefile.common.in,
562           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
563           removed bash dependencies
564
565 2007-05-01 Borut Razem <borut.razem AT siol.net>
566
567         * src/SDCCicode.c:
568           fixed bug #1710507: --i-code-in-asm makes compile fail
569           all iCode comments are now one liners
570         * src/mcs51/gen.c: fixed memory leak
571
572 2007-05-01 Raphael Neider <rneider AT web.de>
573
574         * device/lib/pic/libdev/*.c
575         * device/include/pic/*.h: regenerated all device libs from updated
576           .inc files
577         * support/scripts/inc2h.pl: documented usage, now uses strict to
578           catch more bugs
579
580 2007-04-30 Borut Razem <borut.razem AT siol.net>
581
582         * doc/sdccman.lyx:
583           fixed bug #1669175: Problem with space in output paths
584           documented how to use paths with spaces for Windows users
585
586 2007-04-29 Borut Razem <borut.razem AT siol.net>
587
588         * Fixed svn:eol-style and svn:keywords properties
589         * src/SDCCval.c: fixed bug
590           #1592871: Segfault with "large" const arrays of characters
591           replaced recursion with iteration
592         * Removed svn:executable property from non-executable files
593
594 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
595
596         * src/mcs51/gen.c (genRet): fixed bug 1707003
597
598 2007-04-27 Raphael Neider <rneider AT web.de>
599
600         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
601           createReachingDefinitions,assignValnums,pic16_destructDF,
602           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
603           prevent NULL pointer dereferences
604         * device/lib/pic/libdev/pic16f886.c,
605         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
606           prevent building them, gputils do not really support them yet
607
608 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
609
610         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
611           helps printf_small. 32 bytes more __idata mem.
612
613 2007-04-27 Raphael Neider <rneider AT web.de>
614
615         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
616           return early when pb or pb->pcHead is NULL (patch #1708427)
617         * src/regression/empty.c,
618         * src/regression/Makefile: added test with empty functions
619         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
620
621 2007-04-27 Borut Razem <borut.razem AT siol.net>
622
623         * src/SDCCast.c: fixed feature request
624           #1547512: Redundant strings linked when using sizeof("abc")
625
626 2007-04-23 Borut Razem <borut.razem AT siol.net>
627
628         * doc/sdccman.lyx, src/SDCCmain.c:
629           peep-hole comments are generated only if --fverbose-asm option is
630           specified and --no-peep-comments is not, as proposed by Frieder.
631         * support/regression/Makefile.in: compile regression tests with
632           --fverbose-asm option so one can "grep" whether a new (or an old)
633           peephole is (still) applied; requested by Frieder.
634
635 2007-04-23 Kevin Buettner <kevin AT buettner.to>
636
637         * device/include/pic/pic16f886.h,
638         * device/include/pic/pic16f887.h,
639         * device/lib/pic/libdev/pic16f886.c,
640         * device/lib/pic/libdev/pic16f887.c,
641         * device/include/pic/pic14devices.txt,
642         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
643
644 2007-04-23 Kevin Buettner <kevin AT buettner.to>
645
646         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
647           fixes #1704666
648
649 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
650
651         * device/lib/_memset.c: assembler version for mcs51
652
653 2007-04-22 Borut Razem <borut.razem AT siol.net>
654
655         * support/scripts/listerr.c: program to create the list of errors and
656           warnings list from - added
657         * doc/sdccman.lyx: removed the note
658           "For list of warnings and corresponding codes, see err_warn.txt"
659         * src/SDCCsymt.c: fixed bug #1699804:
660           Bug with some uses of sizeof(static local array) (MCS51)
661         * support/regression/tests/bug-1699804.c: added
662
663 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
664
665         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
666           (main): added option -i,
667           (asmbl, case S_INCL): use search_path_fopen,
668           mostly from patch 1579668 by Peter Miller, thanks
669         * src/z80/main.c: fixed typo --callee-saves-bc
670         * device/include/mcs51/compiler.h: added sfrword for Tasking
671
672 2007-04-20 Borut Razem <borut.razem AT siol.net>
673
674         * src/z80/main.c: replaced reserved keyword asm with asmblr
675
676 2007-04-19 Borut Razem <borut.razem AT siol.net>
677
678         * src/port.h: use const pointers to strings
679         * src/SDCCargs.h: declared getStringArg() and getIntArg()
680         * src/pic16/main.c: include SDCCargs.h
681         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
682           const char, since the strings are dynamically allocated
683         * src/SDCCmain.c: options.code_seg and options.const_seg are
684           dynamically allocated; check port specific command line options
685           before the general ones
686         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
687
688 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
689
690         * device/include/ds400rom.h,
691         * device/lib/ds390/lcd390.c,
692         * device/lib/ds390/memcpyx.c,
693         * device/lib/ds390/rtc390.c,
694         * device/lib/ds400/ds400rom.c,
695         * device/lib/ds400/memcpyx.c,
696         * device/lib/hc08/_ret.c: more replacements of keywords with their
697           double underscore equivalents
698         * device/lib/ds390/Makefile.in,
699         * device/lib/ds400/Makefile.in,
700         * device/lib/gbz80/Makefile.in,
701         * device/lib/hc08/Makefile.in,
702         * device/lib/mcs51/Makefile.in,
703         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
704
705 2007-04-17 Borut Razem <borut.razem AT siol.net>
706
707         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
708           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
709           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
710           to --fverbose-asm, to be gcc'ish
711
712 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
713
714         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
715
716 2007-04-17 Borut Razem <borut.razem AT siol.net>
717
718         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
719         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
720           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
721           with their double underscore equivalent
722
723 2007-04-14 Borut Razem <borut.razem AT siol.net>
724
725         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
726           source"
727
728 2007-04-13 Borut Razem <borut.razem AT siol.net>
729
730         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
731           C99 standard
732         * device/examples/serialcomm/windows/serial.[ch],
733           device/examples/serialcomm/windows/test_serialcomm.cpp:
734           updated by Bela Torok
735         * device/examples/serialcomm/windows/serialcomm.dsw,
736           device/examples/serialcomm/windows/serialcomm.dsp: added
737
738 2007-04-13 Jan Waclawek <wek AT efton.sk>
739
740         * doc/sdccman.lyx: additions and changes at various places
741           (submitted as #1697136).
742           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
743
744 2007-04-10 Borut Razem <borut.razem AT siol.net>
745
746         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
747           LyX file format changed to 245
748         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
749           "FreeWare" replaced with "free open source"
750
751 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
752
753         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
754
755 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
756
757         * device/include/pic16/pic18fregs.h,
758         * device/lib/_bp.c,
759         * device/lib/_decdptr.c,
760         * device/lib/_divsint.c,
761         * device/lib/_divslong.c,
762         * device/lib/_divuint.c,
763         * device/lib/_divulong.c,
764         * device/lib/_fs2schar.c,
765         * device/lib/_fs2sint.c,
766         * device/lib/_fs2slong.c,
767         * device/lib/_fs2uchar.c,
768         * device/lib/_fs2uint.c,
769         * device/lib/_fs2ulong.c,
770         * device/lib/_fsadd.c,
771         * device/lib/_fscmp.c,
772         * device/lib/_fsdiv.c,
773         * device/lib/_fseq.c,
774         * device/lib/_fsget1arg.c,
775         * device/lib/_fsget2args.c,
776         * device/lib/_fsgt.c,
777         * device/lib/_fslt.c,
778         * device/lib/_fsmul.c,
779         * device/lib/_fsneq.c,
780         * device/lib/_fsnormalize.c,
781         * device/lib/_fsreturnval.c,
782         * device/lib/_fsrshift.c,
783         * device/lib/_fssub.c,
784         * device/lib/_fsswapargs.c,
785         * device/lib/_gptrget.c,
786         * device/lib/_gptrgetc.c,
787         * device/lib/_gptrput.c,
788         * device/lib/_logexpf.c,
789         * device/lib/_modsint.c,
790         * device/lib/_modslong.c,
791         * device/lib/_moduint.c,
792         * device/lib/_modulong.c,
793         * device/lib/_mulint.c,
794         * device/lib/_mullong.c,
795         * device/lib/_schar2fs.c,
796         * device/lib/_ser.c,
797         * device/lib/_setjmp.c,
798         * device/lib/_sint2fs.c,
799         * device/lib/_slong2fs.c,
800         * device/lib/_spx.c,
801         * device/lib/_uchar2fs.c,
802         * device/lib/_uint2fs.c,
803         * device/lib/_ulong2fs.c,
804         * device/lib/asincosf.c,
805         * device/lib/atanf.c,
806         * device/lib/calloc.c,
807         * device/lib/ds390/tinibios.c,
808         * device/lib/ds400/tinibios.c,
809         * device/lib/expf.c,
810         * device/lib/free.c,
811         * device/lib/hc08/_mulint.c,
812         * device/lib/logf.c,
813         * device/lib/malloc.c,
814         * device/lib/printf_fast.c,
815         * device/lib/printf_tiny.c,
816         * device/lib/printfl.c,
817         * device/lib/realloc.c,
818         * device/lib/ser_ir.c,
819         * device/lib/serial.c,
820         * support/regression/tests/libmullong.c: replaced all special keywords
821           with their double underscore equivalent
822         * support/regression/ports/mcs51-xstack-auto/spec.mk,
823         * device/lib/Makefile.in: compile libs with --std-c99 instead of
824           --std-sdcc99
825         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
826           (genRet): if the bit-symbol is ruonly it already is in the carry
827         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
828         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
829         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
830           type UCHAR if dest is not bit
831
832 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
833
834         * device/include/math.h,
835         * device/lib/cotf.c,
836         * device/lib/expf.c,
837         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
838
839 2007-04-01 Borut Razem <borut.razem AT siol.net>
840
841         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
842           fixed bug #1692042: input buffer overflow...scanner uses REJECT
843         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
844           gcc_unreachable() called internal_error()...
845
846 2007-03-30 Raphael Neider <rneider AT web.de>
847
848         * src/pic/ralloc.c (isData): suppress garbage debug output
849
850 2007-03-28 Borut Razem <borut.razem AT siol.net>
851
852         * doc/sdccman.lyx:
853           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
854           is developed, built and used worldwide, and the word "night" doesn't
855           make any sense.
856
857 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
858
859         * device/include/mcs51/C8051F360.h: new, added
860         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
861
862 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
863
864         * src/SDCC.y (declaration_specifiers, function_specifier),
865         * support/Util/SDCCerr.c,
866         * support/Util/SDCCerr.h,
867         * src/SDCCsymt.h,
868         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
869           inline keyword
870         * src/SDCCmem.c (deallocParms),
871         * src/SDCCast.c: support for function inlining, not quite complete
872         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
873           'restrict' qualifier
874
875 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
876
877         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
878           (saveRBank, unsaveRBank): don't save bits,
879           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
880         * support/regression/tests/bug1535242.c: new, added
881         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
882           thanks Alexey Shamrin <shamrin AT gmail.com>,
883           made assert.h header ANSI compliant (added a check for NDEBUG macro,
884           removed header guard)
885         * .version,
886         * sdcc.spec: bumped version to 2.6.5
887         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
888
889 2007-03-22 Borut Razem <borut.razem AT siol.net>
890
891         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
892           fixed bug #1653671: sdcdb integration into ddd is broken
893
894 2007-03-22 Raphael Neider <rneider AT web.de>
895
896         * src/pic/gen.c (popGetExternal): augmented to also create references
897           to external variables (not only labels),
898           (genCall): comment on plan to reduce PAGESEL overhead,
899           (genFunction, genEndFunction): also save/restore FSR around interrupt
900           handling code, removed lots of unused code
901           (genDivOneByte): release acquired temp register
902         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
903           of popGetExternal
904         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
905           for registers that need to be saved during interrupts (FSR, STATUS,
906           PCLATH; W needs special handling), currently only FSR is used
907
908 2007-03-22 Raphael Neider <rneider AT web.de>
909
910         * device/include/pic/pic14devices.txt: 16f688 has only one config word
911
912 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
913
914         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
915
916 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
917
918         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
919
920 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
921
922         * as/link/aslink.h: added LKOBJEXT
923         * as/link/hc08/link_hc08.dsp,
924         * as/link/hc08/Makefile.bcc,
925         * as/link/hc08/Makefile.in,
926         * as/link/mcs51/aslink.dsp,
927         * as/link/mcs51/Makefile.bcc,
928         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
929         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
930         * as/link/lkaomf51.c: merged and moved
931         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
932         * as/link/z80/lkdata.c,
933         * as/link/lkdata.c: merged and moved
934         * as/link/hc08/lkmain.c,
935         * as/link/mcs51/lkmain.c: cosmetic changes
936         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
937         * as/link/lklex.c: use LKOBJEXT
938         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
939           ANSI-fied functions, removed bubble-sorts
940         * as/link/z80/lksym.c           as/link/lksym.c: merged,
941           ANSI-fied functions
942         * as/link/z80/linkgbz80.dsp,
943         * as/link/z80/linkz80.dsp,
944         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
945           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
946         * as/link/z80/lkhead.c,
947         * as/link/z80/lklex.c: deleted
948         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
949         * as/link/z80/lkmain.c: added copyfile()
950
951 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
952
953         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
954
955 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
956
957         * device/lib/_strlen.c: assembler version for mcs51
958
959 2007-03-13 Raphael Neider <rneider AT web.de>
960
961         * device/include/pic16/pic18f2221.h,
962         * device/include/pic16/pic18f2321.h,
963         * device/include/pic16/pic18f2331.h,
964         * device/include/pic16/pic18f4221.h,
965         * device/include/pic16/pic18f4321.h,
966         * device/include/pic16/pic18f4331.h: fixed config byte location names
967         * support/scripts/inc2h-pic16.pl: removed debug output, emit
968           consistently named config byte locations
969
970 2007-03-13 Borut Razem <borut.razem AT siol.net>
971
972         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
973           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
974           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
975           as/link/z80/Makefile.in, as/z80/Makefile.in:
976           introduced LDFLAGS
977
978 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
979
980         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
981         * device/lib/printf_large.c: pointer was converted to generic
982         pointer for mcs51 models other than model-small (Maarten noticed)
983
984 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
985
986         * device/include/mcs51/ADuC84x.h: Added.
987
988 2007-03-10 Borut Razem <borut.razem AT siol.net>
989
990         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
991           fixed RFE #1624219: double backslashes in filenames;
992           functions hexEscape(), octalEscape() and copyStr() moved from
993           SDCCval.c to SDCCutil.c and made them glovbally available
994
995 2007-03-09 Borut Razem <borut.razem AT siol.net>
996
997         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
998           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
999           1673361: Missaligned comments in output files
1000
1001 2007-03-09 Raphael Neider <rneider AT web.de>
1002
1003         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1004
1005 2007-03-09 Raphael Neider <rneider AT web.de>
1006
1007         * src/pic/gen.c,
1008         * src/pic/glue.c,
1009         * src/pic/ralloc.c: suppress undesired debug output
1010         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1011
1012 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1013
1014         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1015
1016 2007-03-07 Borut Razem <borut.razem AT siol.net>
1017
1018         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1019           search include files in the current directory
1020
1021 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1022
1023         * src/SDCCglue.c (emitMaps, glue),
1024         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1025           absolute xdata
1026         * support/regression/tests/absolute.c: added xdata test
1027
1028 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1029
1030         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1031           added condition to macro, fixes bug 1666080
1032
1033 2007-03-02 Raphael Neider <rneider AT web.de>
1034
1035         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1036
1037 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1038
1039         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1040         be cleared. Unconditionally set __XPAGE
1041         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1042
1043 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1044
1045         * src/SDCCglobl.h,
1046         * src/SDCCmain.c,
1047         * src/mcs51/gen.c,
1048         * src/mcs51/rtrack.c,
1049         * src/ds390/gen.c,
1050         * doc/sdccman.lyx: added --no-gen-comments
1051         * src/mcs51/peeph.def: added 192.b, disabled 185
1052
1053 2007-02-25 Raphael Neider <rneider AT web.de>
1054
1055         * src/pic16/gen.c (genCast): fixed typo
1056         * device/lib/pic16/Makefile.subdir: only install existing files
1057         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1058
1059 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1060
1061         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1062         * device/lib/mcs51/crtclear.asm,
1063         * device/lib/mcs51/crtxclear.asm: renumbered labels
1064         * device/lib/mcs51/Makefile.in: added crtcall.asm
1065         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1066         * src/mcs51/gen.c (movc): removed,
1067           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1068             acc.x or psw.x),
1069           (toCarry, genSend, genRet): added function toCarry,
1070           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1071           (assignBit, genAssign, genCast): added function assignBit
1072         * src/mcs51/Makefile.bcc: added rtrack.c
1073         * src/mcs51/ralloc.h: made valueKnown a bitfield
1074         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1075           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1076           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1077         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1078         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1079           (_pop): only pop valid pairs, see gencjneshort,
1080           (gencjneshort): return pair that still needs to be popped, restructured,
1081           (gencjne, genCmpEq): call _pop
1082
1083 2007-02-23 Raphael Neider <rneider AT web.de>
1084
1085         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1086
1087 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1088
1089         * device/include/mcs51/P89LPC925.h: Added.
1090
1091 2007-02-18 Raphael Neider <rneider AT web.de>
1092
1093         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1094
1095 2007-02-17 Borut Razem <borut.razem AT siol.net>
1096
1097         * support/cpp2/directives.c, support/cpp2/version.c:
1098           synchronized with GCC CPP 4.1.2
1099
1100 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1101
1102         * src/mcs51/rtrack.h,
1103         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1104           by checking the strings passed by emitcode() to the assembler.
1105           Feel free to change. This in part addresses RFE #482179.
1106           Set environment variable SDCC_RTRACK to enable.
1107         * src/mcs51/gen.c: inserted hooks
1108         * src/mcs51/ralloc.h: added two members to struct regs
1109         * support/regression/tests/regtrack.c: added
1110
1111 2007-02-14 Borut Razem <borut.razem AT siol.net>
1112
1113         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1114         * Makefile.in: applied patch from Makefile related part of
1115           #1469393: Compiler does not initialize static data
1116
1117 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1118
1119         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1120           for better fix of bug 1273984, compiles pic16 rand.c
1121
1122 2007-02-12 Borut Razem <borut.razem AT siol.net>
1123
1124         * src/pic16/main.c: fixed pic16 standard library directory bug
1125
1126 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1127
1128         * src/hc08/gen.c (genSwap): fix swap regression test
1129
1130 2007-02-10 Borut Razem <borut.razem AT siol.net>
1131
1132         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1133           with same scope
1134         * support/regression/tests/bug-1654060.c: added regression test for
1135           #1654060
1136
1137 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1138
1139         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1140         bit moves in return statement
1141
1142 2007-02-09 Borut Razem <borut.razem AT siol.net>
1143
1144         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1145           syntax error
1146
1147 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1148
1149         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1150         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1151
1152 2007-02-07 Raphael Neider <rneider AT web.de>
1153
1154         * src/pic16/devices.inc,
1155         * device/include/pic16/pic18fregs.h,
1156         * device/include/pic16/pic18f[24][34]31.h,
1157         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1158         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1159         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1160
1161 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1162
1163         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1164           can this have lived here for so many years?
1165         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1166           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1167         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1168
1169 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1170
1171         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1172         appended by loop induction must be at the very end of the eBBlock
1173
1174 2007-02-05 Kevin Vigor
1175
1176         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1177
1178 2007-02-05 Borut Razem <borut.razem AT siol.net>
1179
1180         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1181           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1182
1183 2007-02-03 Borut Razem <borut.razem AT siol.net>
1184
1185         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1186           applied patch #1646602 option to set default signedness of char to
1187           unsigned, added -funsigned-char command line option,
1188           thanks to Gunther Jehle
1189         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1190           prompt for file deletion a few hundred times (especially the
1191           subversion files, which have ro permissions so it asks for
1192           confirmation), thanks to Simon McAuliffe;
1193           added {} + option to find in order to remove multiple files from a
1194           single rm commad
1195
1196 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1197
1198         * device/include/mcs51/SST89x5xRDx.h: Added.
1199
1200 2007-02-02 Raphael Neider <rneider AT web.de>
1201
1202         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1203         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1204
1205 2007-02-01 Raphael Neider <rneider AT web.de>
1206
1207         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1208           config words again
1209
1210 2007-01-31 Borut Razem <borut.razem AT siol.net>
1211
1212         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1213           if compiled with GCC. Thanks to Raphael Neider
1214
1215 2007-01-31 Raphael Neider <rneider AT web.de>
1216
1217         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1218             operand names, handles name and (name + n) for all n,
1219           (sameBank): restructured, also check bank allocation policy,
1220         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1221           (pic14_operandsAllocatedInSameBank): check whether to operands
1222             will be allocated into the same bank (i.e., section) to reduce
1223             BANKSEL overhead, queried from pcode.c:sameBank,
1224           (pic14printLocals): reintroduced clustering registers into a single
1225             section: all compiler generated symbols will now reside in one
1226             bank (per file), reducing BANKSEL overhead and code size,
1227           (showAllMemmaps): use local dbuf where possible
1228
1229 2007-01-29 Raphael Neider <rneider AT web.de>
1230
1231         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1232           (call_libraryfunc): retrieve/create symbol and mark as used,
1233           (genFunction): mark defined functions as non-extern and add again
1234            to code memmap for later output
1235         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1236           (pic14printLocals): reworked for new symbol emission,
1237           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1238           showAllMemmaps): reworked symbol output using dbufs, added handling
1239             of string literals (still incomplete),
1240           (picglue): removed symbol emission, moved into showAllMemmaps,
1241           (emitSymbolSet): new workhorse for symbol output,
1242           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1243
1244 2007-01-29 Borut Razem <borut.razem AT siol.net>
1245
1246         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1247           component contains the extension separator.
1248
1249 2007-01-28 Borut Razem <borut.razem AT siol.net>
1250
1251         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1252           on WIN32
1253         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1254           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1255           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1256           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1257           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1258           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1259           src/z80/gen.c, support/Util/MySystem.c:
1260           accept slash and backslash as directory separator on WIN32 and
1261           Cygwin ports
1262
1263 2007-01-28 Raphael Neider <rneider AT web.de>
1264
1265         * src/pic16/devices.inc,
1266         * device/include/pic16/pic18f[24][23]21.h,
1267         * device/include/pic16/pic18fregs.h,
1268         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1269         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1270         * device/lib/pic16/libio/adc.ignore,
1271         * device/lib/pic16/libio/i2c.ignore,
1272         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1273           family, as gputils do not yet support the devices
1274         * device/lib/pic16/Makefile.subdir: ignore errors on install
1275         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1276           headers and libraries from gputils .inc files
1277
1278 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1279
1280         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1281
1282 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1283
1284         * doc/sdccman.lyx: add printf benchmarks
1285
1286 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1287
1288         * device/lib/printf_fast.c: fix %c, char promoted to int
1289         * device/lib/printf_tiny.c: fix %c, char promoted to int
1290
1291 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1292
1293         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1294
1295 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1296
1297         * support/regression/tests/swap.c: 64 bit hosts failed
1298         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1299
1300 2007-01-25 Raphael Neider <rneider AT web.de>
1301
1302         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1303           based on absolute register address, patch by Alex Blond
1304
1305 2007-01-22 Raphael Neider <rneider AT web.de>
1306
1307         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1308           emitted, do not emit them again...
1309
1310 2007-01-22 Raphael Neider <rneider AT web.de>
1311
1312         * src/regression/bank1.c, src/regression/compare6.c,
1313           src/regression/add.c: cosmetic changes
1314         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1315         * src/pic/gen.c: fixed global zero and one,
1316           (aopForSym): removed unued code,
1317           (aopGet): assert aop is defined, check and use `index' of
1318             pCodeImmd operands (fixes #1630908),
1319         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1320           (register_reassign): prevent accidental register unification,
1321           (ReuseReg): cosmetic changes (also above)
1322         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1323           pic14emitStaticSeg): do not emit initialized data,
1324           (printIval*): replaced with working versions,
1325           (pic14createInterruptVect,picglue): use idata for initialized data,
1326             now init data should work in all modules (not only main()),
1327         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1328
1329 2007-01-21 Borut Razem <borut.razem AT siol.net>
1330
1331         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1332           use -fPIC or -fpic if they are supported and not ignored
1333         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1334         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1335
1336 2007-01-20 Borut Razem <borut.razem AT siol.net>
1337
1338         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1339           implemented RFE #1470316: allow "$" in variable names
1340
1341 2007-01-20 Raphael Neider <rneider AT web.de>
1342
1343         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1344
1345 2007-01-20 Raphael Neider <rneider AT web.de>
1346
1347         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1348         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1349         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1350         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1351           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1352         * device/lib/pic/libdev/pic*.c,
1353         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1354         * device/lib/pic/libdev/Makefile.in: show progress
1355
1356 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1357
1358         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1359         * support/scripts/sdcc_cygwin_mingw32,
1360         * support/scripts/sdcc_mingw32,
1361         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1362         conformance with autoconf 2.6
1363
1364 2007-01-19 Raphael Neider <rneider AT web.de>
1365
1366         * src/pic/device.c (register_map): fixed list construction
1367         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1368           (genMod): removed case for genModbits,
1369           (genModbits): removed as now unused/unimplemented
1370         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1371
1372 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1373
1374         * support/regression/tests/swap.c: added in response to #1638622
1375         * doc/sdccman.lyx: synced version, minor changes
1376
1377 2007-01-18 Borut Razem <borut.razem AT siol.net>
1378
1379         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1380           thanks to Gunther Jehle
1381         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1382         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1383           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1384           use filename in lineno instead.
1385         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1386           print the file name in ast_print()
1387
1388 2007-01-18 Borut Razem <borut.razem AT siol.net>
1389
1390         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1391           defined in MSVC
1392         * src/SDCC.lex: stringLiteral() returns const char pointer,
1393           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1394           fixed column counting
1395         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1396           accept const char pointer as parameter
1397         * src/SDCCdwarf2.c: corrected buffer size
1398
1399 2007-01-17 Borut Razem <borut.razem AT siol.net>
1400
1401         * support/Util/dbuf_string.c: fixed for amd64
1402
1403 2007-01-15 Borut Razem <borut.razem AT siol.net>
1404
1405         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1406           removed terminal symbol ELIPSIS, since it was never generated by the
1407           lexer and it was wrongly used in parameter_identifier_list rule
1408
1409 2007-01-15 Raphael Neider <rneider AT web.de>
1410
1411         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1412             code page and data banking description
1413         * src/pic/genarith.c,
1414         * src/pic/gen.h: removed bit arithmetic functions,
1415             updated exit(1) to exit(EXIT_FAILURE)
1416         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1417         * device/include/pic16/pic18f2455.h,
1418         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1419             TRISD and TRISE, fixed/added some bit names
1420         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1421         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1422             updated pic18f2455.{c,h} instead of duplicating them
1423
1424 2007-01-14 Borut Razem <borut.razem AT siol.net>
1425
1426         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1427           Cannot debug files that contain spaces in the path name
1428           by converting spaces in asm file name to underscores
1429
1430 2007-01-13 Borut Razem <borut.razem AT siol.net>
1431
1432         * doc/sdccman.lyx: fixed format errors
1433
1434 2007-01-10 Borut Razem <borut.razem AT siol.net>
1435
1436         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1437           codeseg/constseg #pragma fail
1438         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1439         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1440           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1441           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1442
1443 2007-01-09 Borut Razem <borut.razem AT siol.net>
1444
1445         * get rid of diagnistic.[ch], pretty-print.[ch],
1446           c-pretty-print.[ch], ... used just for error, warning, ...
1447           message formatting
1448         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1449           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1450           suppoprt/cpp2/pretty-print.[ch]:
1451           removed
1452         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1453           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1454           suppoprt/cpp2/sdcpp.dsp:
1455           changed
1456
1457 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1458
1459         * device/lib/printf_large.c (output_float): removed recursion,
1460           use smaller buffer on stack for mcs51,
1461           fixed bug printing 1.96
1462         * support/regression/tests/snprintf.c: added test
1463
1464 2007-01-07 Borut Razem <borut.razem AT siol.net>
1465
1466         * use dynamic memory buffers instead temporary files
1467         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1468           added
1469         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1470           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1471           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1472           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1473           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1474           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1475           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1476           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1477           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1478           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1479           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1480           support/Util/dbuf.c, support/Util/dbuf.h:
1481           modified
1482         * .version, sdcc.spec: bumped version to 2.6.4
1483
1484 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1485
1486         * src/port.h: added TARGET_Z80_LIKE macro
1487         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1488           output PSEG location if --xram-loc or --xstack-loc was used
1489         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1490
1491 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1492
1493         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1494         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1495         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1496         * sdcc.dsw: moved project files into subdir
1497         * as/hc08/as_hc08.dsp,
1498         * as/hc08/Makefile.bcc,
1499         * as/hc08/Makefile.in,
1500         * as/mcs51/Makefile.bcc,
1501         * as/mcs51/Makefile.in,
1502         * as/z80/Makefile.bcc,
1503         * as/z80/Makefile.in,
1504         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1505         * as/hc08/asm.h,
1506         * as/mcs51/asm.h,
1507         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1508         * as/hc08/asmain.c,
1509         * as/hc08/assym.c,
1510         * as/mcs51/asmain.c,
1511         * as/mcs51/assym.c,
1512         * as/z80/assym.c: removed include "strcmpi.h"
1513         * as/hc08/strcmpi.c,
1514         * as/hc08/strcmpi.h,
1515         * as/mcs51/strcmpi.c,
1516         * as/mcs51/strcmpi.h,
1517         * support/Util/strcmpi.c,
1518         * support/Util/strcmpi.h: removed files
1519         * as/strcmpi.c: added as_strncmpi()
1520
1521 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1522
1523         * sdcc.dsw: Added some dependencies on project config.dsp
1524
1525 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1526
1527         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1528           with [di]ram_start to fix a regresion
1529
1530 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1531
1532         * configure.in: added missing mcs51 in status output
1533         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1534         directory
1535         * debugger/mcs51/clean.mk (distclean): remove config.h
1536         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1537         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1538         options.h, s-options-h and options.c
1539         * support/cpp2/clean.mk: unused, removed
1540         * Makefile.common.in,
1541         * main_in.mk,
1542         * as/Makefile.in,
1543         * as/hc08/Makefile.in,
1544         * as/hc08/clean.mk,
1545         * as/mcs51/Makefile.in,
1546         * as/mcs51/clean.mk,
1547         * as/z80/clean.mk,
1548         * as/z80/conf.mk,
1549         * as/z80/Makefile.in,
1550         * as/z80/clean.mk,
1551         * as/link/Makefile.in,
1552         * as/link/hc08/Makefile.in,
1553         * as/link/hc08/clean.mk,
1554         * as/link/mcs51/Makefile.in,
1555         * as/link/mcs51/clean.mk,
1556         * as/link/z80/Makefile.in,
1557         * as/link/z80/clean.mk,
1558         * as/link/z80/conf.mk,
1559         * debugger/mcs51/Makefile.in,
1560         * debugger/mcs51/clean.mk,
1561         * device/include/Makefile.in,
1562         * device/lib/Makefile.in,
1563         * device/lib/mcs51/Makefile.in,
1564         * device/lib/pic/Makefile.in,
1565         * device/lib/pic/Makefile.common.in,
1566         * device/lib/pic/Makefile.subdir,
1567         * device/lib/pic/Makefile.rules,
1568         * device/lib/pic16/libio/Makefile.in,
1569         * device/lib/pic16/Makefile.subdir,
1570         * device/lib/pic16/libdev/Makefile.in,
1571         * device/lib/pic16/Makefile.rules,
1572         * device/lib/pic16/Makefile.common.in,
1573         * sim/ucsim/avr.src/Makefile.in,
1574         * sim/ucsim/main_in.mk,
1575         * sim/ucsim/cmd.src/Makefile.in,
1576         * sim/ucsim/doc/Makefile.in,
1577         * sim/ucsim/gui.src/Makefile.in,
1578         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1579         * sim/ucsim/gui.src/serio.src/Makefile.in,
1580         * sim/ucsim/hc08.src/Makefile.in,
1581         * sim/ucsim/libltdl/Makefile.in,
1582         * sim/ucsim/s51.src/Makefile.in,
1583         * sim/ucsim/sim.src/Makefile.in,
1584         * sim/ucsim/sim.src/conf.mk,
1585         * sim/ucsim/xa.src/Makefile.in,
1586         * sim/ucsim/z80.src/Makefile.in,
1587         * src/Makefile.in,
1588         * src/clean.mk,
1589         * src/port.mk,
1590         * support/cpp2/Makefile.in,
1591         * support/librarian/Makefile.in,
1592         * support/librarian/clean.mk,
1593         * support/makebin/Makefile.in,
1594         * support/makebin/clean.mk,
1595         * support/packihx/Makefile.in,
1596         * support/regression/Makefile.in,
1597         * support/regression/ports/ds390/spec.mk,
1598         * support/regression/ports/gbz80/spec.mk,
1599         * support/regression/ports/hc08/spec.mk,
1600         * support/regression/ports/mcs51/spec.mk,
1601         * support/regression/ports/mcs51-large/spec.mk,
1602         * support/regression/ports/mcs51-medium/spec.mk,
1603         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1604         * support/regression/ports/pic14/spec.mk,
1605         * support/regression/ports/pic16/spec.mk,
1606         * support/regression/ports/mcs51-stack-auto/spec.mk,
1607         * support/regression/ports/ucz80/spec.mk,
1608         * support/regression/ports/xa51/spec.mk,
1609         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1610         adding a slash after $(top_builddir) and/or adding @datarootdir@
1611         * configure.in,
1612         * debugger/mcs51/configure.in,
1613         * device/lib/pic/configure.in,
1614         * device/lib/pic16/configure.in,
1615         * sim/ucsim/configure.in,
1616         * support/cpp2/configure.in,
1617         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1618         * configure,
1619         * debugger/mcs51/configure,
1620         * device/lib/pic/configure,
1621         * device/lib/pic16/configure,
1622         * sim/ucsim/configure,
1623         * support/cpp2/configure,
1624         * support/packihx/configure: generated with autoconf 2.60
1625
1626 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1627
1628         * as/link/hc08/lkihx.c (newArea),
1629         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1630
1631 2007-01-02 Borut Razem <borut.razem AT siol.net>
1632
1633         * doc/sdccman.lyx: documented #pragma sdcc_hash
1634         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1635           initialized to 0
1636         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1637
1638 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1639
1640         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1641         empty 'while'-loop to work correctly, see regression test 'while.c'
1642         * support/regression/tests/while.c: added
1643
1644 2007-01-01 Borut Razem <borut.razem AT siol.net>
1645
1646         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1647           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1648           support/cpp2/libcpp/sdcpp.c:
1649           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1650         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1651         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1652
1653 2006-12-31 Borut Razem <borut.razem AT siol.net>
1654
1655         * SDCPP synchronized with GCC CPP release version 4.1.1,
1656           currently the latest release:
1657         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1658           support/cpp2/libcpp/include/cpp-id-data.h
1659           support/cpp2/libiberty/fopen_unlocked.c
1660           support/cpp2/libiberty/md5.c
1661           support/cpp2/md5.h
1662           support/cpp2/opt-functions.awk
1663           support/cpp2/opt-gather.awk
1664           support/cpp2/optc-gen.awk
1665           support/cpp2/opth-gen.awk:
1666           added
1667         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1668           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1669           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1670           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1671           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1672           support/cpp2/diagnostic.h, support/cpp2/except.h,
1673           support/cpp2/hwint.h, support/cpp2/input.h,
1674           support/cpp2/intl.h, support/cpp2/move-if-change,
1675           support/cpp2/opts.c, support/cpp2/opts.h,
1676           support/cpp2/output.h, support/cpp2/prefix.c,
1677           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1678           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1679           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1680           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1681           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1682           support/cpp2/version.c:
1683           modified
1684         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1685           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1686           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1687           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1688           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1689           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1690           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1691           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1692           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1693           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1694           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1695           moved
1696         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1697           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1698           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1699           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1700           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1701           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1702           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1703           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1704           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1705           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1706           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1707           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1708           support/cpp2/system.h:
1709           deleted / moved
1710
1711 2006-12-31 Borut Razem <borut.razem AT siol.net>
1712
1713         * configure.in, configure: fixed bug #1538756: configure dies if bison
1714           and flex are not installed, 2nd try
1715
1716 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1717
1718         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1719         400.x for better code in RFE 899102
1720
1721 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1722
1723         * src/SDCCpeeph.c (deadMove),
1724         * src/port.h,
1725         * src/mcs51/peep.h: renamed 'op' by 'reg'
1726         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1727         (scan4op): small change for removeDeadMove(), added support for
1728         'callee saves' and/or PACLL function calls,
1729         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1730         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1731         left in new dispatcher mcs51DeadMove()
1732         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1733         removeDeadMove()
1734         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1735
1736 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1737
1738         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1739           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1740
1741 2006-12-30 Borut Razem <borut.razem AT siol.net>
1742
1743         * support/cpp2/spacs.h: deleted from svn
1744         * configure.in, configure: fixed bug #1538756: configure dies if bison
1745           and flex are not installed
1746
1747 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1748
1749         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1750           with this z80 passes printf float test when enabled
1751         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1752
1753 2006-12-28 Borut Razem <borut.razem AT siol.net>
1754
1755         * support/cpp2/config.in, support/cpp2/configure.in,
1756           support/cpp2/configure, support/cpp2/Makefile.in:
1757           fix for the solaris build
1758
1759 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1760
1761         * src/SDCC.y (type_specifier2, pointer),
1762         * src/SDCCsymt.h,
1763         * src/SDCCsymt.c (mergeSpec, checkSClass),
1764         * support/Util/SDCCerr.c,
1765         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1766         * support/valdiag/valdiag.py: Allow test cases to specify
1767           required language standard
1768         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1769         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1770
1771 2006-12-27 Borut Razem <borut.razem AT siol.net>
1772
1773         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1774         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1775           mbchar removed
1776         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1777           fixed for borland C
1778         * support/cpp2/libiberty/Makefile.bcc: updated
1779         * src/pic16/main.c: fixed #pragma udata handling
1780         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1781
1782 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1783
1784         * src/SDCCpeeph.c: made labelHashEntry global,
1785         made pcDistance, FBYNAME static,
1786         (pcDistance): made static, use isComment and isLabel,
1787         (deadMove): added,
1788         (getLabelRef): added, extracted from labelRefCount(),
1789         (labelRefCount): use new getLabelRef(),
1790         (callFuncByName): made static, added deadMove,
1791         use isComment and isLabel,
1792         (newPeepRule): made static, set isLabel,
1793         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1794         labels from peephole rules,
1795         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1796         when isComment or isLabel is set
1797         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1798         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1799         to make them global
1800         * src/mcs51/peep.h: added
1801         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1802         * src/port.h: added peep->deadMove to port structure
1803         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1804         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1805         deadMove, finally removed no. 1 and 2
1806         * src/mcs51/gen.c,
1807         * src/pic/gen.c,
1808         * src/z80/gen.c,
1809         * src/z80/ralloc.c,
1810         * src/pic16/gen.c,
1811         * src/ds390/gen.c,
1812         * src/hc08/gen.c: mark lines with isComment or isLabel
1813         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1814         * .version,
1815         * sdcc.spec: bumped version to 2.6.3
1816
1817 2006-12-26 Borut Razem <borut.razem AT siol.net>
1818
1819         * support/cpp2/Makefile.in: added dependency on options.h
1820         * configure: regenerated
1821         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1822         * support/cpp2/Makefile.in: added vasprintf.c
1823
1824 2006-12-25 Borut Razem <borut.razem AT siol.net>
1825
1826         * SDCPP synchronized with GCC CPP release version 3.4.6,
1827           the latest release before 4.x:
1828         * support/cpp2/Makefile.in, support/cpp2/config.h,
1829           support/cpp2/configure, support/cpp2/configure.in,
1830           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1831           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1832           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1833           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1834           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1835           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1836           support/cpp2/cpptrad.c, support/cpp2/except.h,
1837           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1838           support/cpp2/hwint.h, support/cpp2/intl.h,
1839           support/cpp2/line-map.c, support/cpp2/line-map.h,
1840           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1841           support/cpp2/output.h, support/cpp2/prefix.c,
1842           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1843           support/cpp2/system.h, support/cpp2/version.c:
1844           modified
1845         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1846           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1847           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1848           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1849           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1850           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1851           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1852           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1853           support/cpp2/move-if-change, support/cpp2/opts.c,
1854           support/cpp2/opts.h, support/cpp2/opts.sh,
1855           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1856           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1857           support/cpp2/win32, support/cpp2/win32/dirent.c,
1858           support/cpp2/win32/dirent.h:
1859           added
1860         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1861         * support/cpp2/sdcpp.h: renamed from sdcc.h
1862         * sdcppinit.c: deleted
1863
1864 2006-12-23 Borut Razem <borut.razem AT siol.net>
1865
1866         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1867           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1868           preproc.c: an other try to fix bug #982435: introduced
1869           -pedantic-parse-number command line option and pedantic_parse_number
1870           pragma
1871
1872 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1873
1874         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1875            BSEG handling,
1876           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1877            corrected overlayed areax addresses, warn about memory overlaps
1878         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1879         * src/avr/main.c,
1880         * src/ds390/main.c,
1881         * src/hc08/main.c,
1882         * src/mcs51/main.c,
1883         * src/pic16/main.c,
1884         * src/pic/main.c,
1885         * src/xa51/main.c,
1886         * src/z80/main.c,
1887         * src/port.h: added xabs_name and iabs_name
1888         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1889           (glue, emitMaps): create and emit maps d_abs and i_abs
1890         * src/SDCCglue.h: cosmetic changes
1891         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1892         * src/SDCCmem.h,
1893         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1894           (allocDefault): put absolute, initialized globals in them
1895         * support/regression/tests/absolute.c: added absolute bdata test
1896         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1897
1898 2006-12-20 Borut Razem <borut.razem AT siol.net>
1899
1900         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1901         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1902           added regression test for bug #982435
1903
1904 2006-12-18 Borut Razem <borut.razem AT siol.net>
1905
1906         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1907         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1908           small cosmetic changes
1909         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1910         * support/regression/tests/bug-1351710.c: added regression test
1911
1912 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1913
1914         * doc/sdccman.lyx: added the long missed iCode table
1915           "<where is figure II?>", added links to wiki
1916
1917 2006-12-17 Borut Razem <borut.razem AT siol.net>
1918
1919         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1920           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1921           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1922           unified table driven pragma handling, pragma argument type checking
1923         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1924           current one - version 1.1.3
1925         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1926
1927 2006-12-13 Raphael Neider <rneider AT web.de>
1928
1929         * src/pic/device.h: removed AssignedMemory structure and macros
1930         * src/pic/device.c: removed global finalMapping (linker assigns
1931             memory locations),
1932           (register_map): add SFRs to remembered memRanges
1933           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1934           assignFixedRegisters,assignRelocatableRegisters): removed,
1935           (setMaxRAM,validAddress): adapted accordingly,
1936           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1937             reasonably sized sharebanks,
1938         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1939           (allDefsOutOfRange): removed unused code,
1940         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1941             handling
1942         * src/pic/pcode.c (register_reassign): removed recursion warning,
1943             fired far too often,
1944         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1945             to use existing pic14_stringInSet() to avoid duplicate symbols,
1946             tidied up the code a bit,
1947           (pic14printLocals): added in symmetry to printExterns, replaces
1948             writeUsedRegs more or less,
1949           (picglue): call new pic14_printLocals(),
1950         * device/include/pic/pic*.h: removed #pragma memmap directives,
1951             information gathered from include/pic/pic14devices.txt
1952         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1953
1954 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1955
1956         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1957
1958 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1959
1960         * device/include/mcs51/cc2430.h: fixed missing ';'
1961
1962 2006-12-10 Raphael Neider <rneider AT web.de>
1963
1964         * device/lib/pic16/libc/stdio/vfprintf.c,
1965         * device/lib/pic16/libc/stdio/printf_small.c,
1966         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1967           char arguments, as char varargs are cast to int by the caller,
1968           hopefully fixes #1604915 (other device libraries are still affected)
1969
1970 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1971
1972         * src/mcs51/ralloc.c (packRegsForAssign),
1973         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1974
1975 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1976
1977         * device/include/malloc.h: removed init_dynamic_memory
1978         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1979           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1980         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1981         * device/lib/libsdcc.lib,
1982         * device/lib/Makefile.in,
1983         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1984         * doc/sdccman.lyx: documented use of new _heap.c
1985         * support/regression/tests/malloc.c: removed init_dynamic_memory
1986         * src/cdbFile.c(spacesToUnderscores): new function,
1987           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1988           1068030
1989         * device/include/tinibios.h: removed defines for putchar and getchar
1990         * device/lib/ds390/Makefile.in: added putchar.c
1991         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1992
1993 2006-12-09 Borut Razem <borut.razem AT siol.net>
1994
1995         * support/cpp2/sdcc.h: prevent multiple inclusion
1996         * support/cpp2/options.h: deleted
1997
1998 2006-12-08 Borut Razem <borut.razem AT siol.net>
1999
2000         * support/cpp2/sdcc.h: removed x*alloc() macros
2001         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2002         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2003           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2004         * support/cpp2/system.h: moved #include "sdcc.h"
2005         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2006           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2007           added
2008         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2009           -funsigned-char options
2010         * support/cpp2/sdcppmain.c: fixed bug 1611411
2011
2012 2006-12-07 Borut Razem <borut.razem AT siol.net>
2013
2014         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2015           directive
2016
2017 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2018
2019         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2020         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2021         * doc/sdccman.lyx,
2022         * .version: bumped to 2.6.2 because a) it's been a while
2023           b) the linker sources have moved c) the preprocessor is upgraded
2024
2025 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2026
2027         * support/regression/tests/snprintf.c: some checks
2028         * lib/src/printf_large.c: %bc: read char instead of int from stack
2029
2030 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2031
2032         * device/include/mcs51/cc2430.h: inserted _XPAGE
2033
2034 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2035
2036         * device/include/mcs51/cc2430.h: added
2037
2038 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2039
2040         * device/include/asm/default/features.h,
2041         * device/include/asm/ds390/features.h,
2042         * device/include/mcs51/at89s53.h,
2043         * device/include/ser.h,
2044         * device/include/ser_ir.h,
2045         * device/include/serial.h: changed keywords to double underscore variants,
2046           fixes bug 1590261 some more, thanks Steven Borley
2047
2048 2006-12-01 Raphael Neider <rneider AT web.de>
2049
2050         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2051           but emit warning (recursion is not supported for pic14)
2052
2053 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2054
2055         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2056         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2057
2058 2006-11-30 Raphael Neider <rneider AT web.de>
2059
2060         * src/pic/device.c (dump_sfr): always emit symbols
2061         * src/pic/glue.c (pic14printPublics): fixed typo
2062
2063 2006-11-30 Raphael Neider <rneider AT web.de>
2064
2065         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2066           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2067           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2068            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2069            a sharebank, use a non-shared bank for the stack if none available
2070         * src/pic/device.h (struct memRange): added linked list next field,
2071           added prototypes for above functions
2072         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2073           (typeRegWithIdx): accept fixed and unfixed stack registers
2074         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2075           the stack, handle shared and banked stack (except for WSAVE),
2076           (insertBankSel): removed useless optimization (will never fire),
2077           (FixRegisterBanking): added optimization for devices with only one
2078           possibly aliased bank of memory, like 16f84
2079         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2080           devices have no SHAREBANK in the linker script
2081         * device/include/pic/pic14devices.txt: documented memmap
2082         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2083
2084 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2085
2086         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2087           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2088           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2089           genhc08Code): switched most of the D (debug) macros to DD (detailed
2090           debug) macros to better control clutter in the generated .asm file.
2091         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2092           genRightShift): fixed bug with non-constant bit shift stored to
2093           a volatile result (SF Open Discussion forum thread #1616749).
2094           Single byte case is not yet optimized.
2095
2096 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2097
2098         * device/include/asm/mcs51/features.h,
2099         * device/include/malloc.h,
2100         * device/include/stdio.h: changed keywords to double underscore variants,
2101           fixes bug 1590261
2102
2103 2006-11-27 Borut Razem <borut.razem AT siol.net>
2104
2105         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2106           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2107           support/cpp2/output.h, support/cpp2/cppinit.c,
2108           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2109           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2110           support/cpp2/cppdefault.c, support/cpp2/system.h,
2111           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2112           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2113           support/cpp2/prefix.c, support/cpp2/except.h,
2114           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2115           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2116           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2117           support/cpp2/version.c, support/cpp2/cppmain.c,
2118           support/cpp2/version.h, support/cpp2/hashtable.c,
2119           support/cpp2/cpperror.c:
2120           synchronized with GCC CPP release version 3.3.6,
2121           the latest where cppmain.c still exists.
2122         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2123           support/cpp2/sdcppinit.c: added
2124
2125 2006-11-27 Borut Razem <borut.razem AT siol.net>
2126
2127         * support/cpp2/cpplex.c:
2128           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2129           synchronization
2130         * support/cpp2/cpplib.c: removed definitions of unused variables
2131
2132 2006-11-26 Borut Razem <borut.razem AT siol.net>
2133
2134         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2135           since they are redefined by macros in support/cpp2/sdcc.h
2136         * support/cpp2/sdcc.h: x*alloc macro redefinition
2137
2138 2006-11-25 Borut Razem <borut.razem AT siol.net>
2139
2140         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2141           support/cpp2/configure, support/cpp2/Makefile.in,
2142           support/cpp2/cppfiles.c, support/cpp2/output.h,
2143           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2144           support/cpp2/config.h, support/cpp2/cpplib.h,
2145           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2146           support/cpp2/cppdefault.c, support/cpp2/config.in,
2147           support/cpp2/system.h, support/cpp2/cpplex.c,
2148           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2149           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2150           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2151           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2152           support/cpp2/configure.in, support/cpp2/intl.h,
2153           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2154           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2155           support/cpp2/version.c, support/cpp2/cppmain.c,
2156           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2157           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2158           support/cpp2/cpperror.c,
2159           support/cpp2/libiberty/safe-ctype.c,
2160           support/cpp2/libiberty/safe-ctype.h,
2161           support/cpp2/libiberty/splay-tree.c,
2162           support/cpp2/libiberty/obstack.c,
2163           support/cpp2/libiberty/lbasename.c,
2164           support/cpp2/libiberty/splay-tree.h,
2165           support/cpp2/libiberty/obstack.h:
2166           synchronized with GCC CPP release version 3.2.3,
2167           the latest before integration of cpp into gcc
2168         * support/cpp2/except.h, support/cpp2/line-map.c,
2169           support/cpp2/line-map.h,
2170           support/cpp2/libiberty/hex.c,
2171           support/cpp2/libiberty/concat.c,
2172           support/cpp2/libiberty/filenames.h: added
2173         * support/cpp2/intl.c: deleted
2174
2175 2006-11-24 Borut Razem <borut.razem AT siol.net>
2176
2177         * src/SDCC.y: enabled compilation of empty source file
2178         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2179           "ISO C forbids an empty source file"
2180         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2181           if all the code is ifdefed out.
2182
2183 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2184
2185         * src/hc08/gen.c (genPcall): fix for bug #1601032
2186
2187 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2188
2189         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2190         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2191         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2192         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2193         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2194         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2195         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2196         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2197         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2198         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2199         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2200         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2201         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2202         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2203         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2204           Renamed to all upper case as per the standard set by SiLabs
2205
2206 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * device/include/mcs51/C8051F520.h: new, added
2209         * device/include/mcs51/compiler.h: added link about predefined macros
2210
2211 2006-11-23 Raphael Neider <rneider AT web.de>
2212
2213         * src/regression/Makefile: add -L path to fresh library
2214         * src/regression/simulate: emphasize FAILED output
2215         * src/regression/create_stc: output _failures from gpsim
2216         * src/regression/compare4.c,
2217         * src/regression/rotate6.c: fixed char literals,
2218           all compile, all run =8-D
2219
2220         * src/pic/pcode.h: added isPCASMDIR macro
2221         * src/pic/gen.c (genAnd): fixed bit offset
2222         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2223           packBits): unified register numbering schemes,
2224           (newReg): do not insert stack registers into hash table,
2225           (initStack): unpinned pseudo stack, simplified,
2226           (typeRegWithIdx): fixed retrieval of stack registers,
2227         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2228           (pCodeReplace): removed invalid assertion,
2229           (insertPCodeInstruction): fixed newly added labels,
2230           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2231           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2232           DumpFlow): removed unsed (broken?) code,
2233           (insertBankSel): prevent STATUS from being BANKSELed,
2234           (FixRegisterBanking): rewritten from scratch, implemented generic
2235             optimizations (suppress BANKSELs to same register and to registers
2236             present in all banks),
2237           (AnalyzeBanking): update flow after BANKSELection
2238
2239         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2240             sharebank, let linker place it, mark STKxx symbols as emitted
2241
2242 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2243
2244         * src/regression/arrays.c,
2245         * src/regression/bank1.c,
2246         * src/regression/bool2.c,
2247         * src/regression/compare7.c,
2248         * src/regression/compare8.c,
2249         * src/regression/compare9.c,
2250         * src/regression/compare10.c,
2251         * src/regression/configword.c,
2252         * src/regression/for.c,
2253         * src/regression/mult1.c,
2254         * src/regression/pointer1.c,
2255         * src/regression/rotate6.c,
2256         * src/regression/string1.c,
2257         * src/regression/struct1.c,
2258         * src/regression/Makefile: make PIC14 regression tests run again
2259           (3 fail, 6 won't compile)
2260
2261 2006-11-21 Raphael Neider <rneider AT web.de>
2262
2263         * device/include/pic16/pic18f4550.h,
2264         * device/include/pic16/pic18f4455.h,
2265         * device/lib/pic16/libdev/pic18f4550.c,
2266         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2267         * configure.in: removed superfluous closing bracket
2268
2269 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2270
2271         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2272           always positive.
2273
2274 2006-11-21 Raphael Neider <rneider AT web.de>
2275
2276         * src/pic/device.{c,h}: added pic14_getPIC()
2277         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2278           (genAnd): added PIC code for one case, fixes #1597044
2279         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2280           SFRs that are present in all banks (e.g., STATUS)
2281
2282 2006-11-20 Raphael Neider <rneider AT web.de>
2283
2284         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2285           INCFSZ/INCFSZW and declared them as changing Z bit,
2286           (insertPCodeInstruction): correctly invert the above instructions,
2287           fixes #1599333,
2288           (DoBankSelect): don't panic on po_immediates
2289
2290 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2291
2292         * as/link/aslink.h,
2293         * as/link/mcs51/lkihx.c (newArea),
2294         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2295         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2296
2297 2006-11-11 Raphael Neider <rneider AT web.de>
2298
2299         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2300           bitfield symbols, fixes #1579535 (once more...).
2301
2302 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2303
2304         * support/regression/generate-cases.py,
2305         * support/regression/fwk/include/testfwk.h,
2306         * support/regression/fwk/lib/testfwk.c: used code pointers,
2307           (about 50kByte less code generated for mcs51)
2308
2309 2006-11-06 Borut Razem <borut.razem AT siol.net>
2310
2311         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2312           debugger/mcs51/configure: fixed failed check because the function
2313           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2314           who submitted the patch for gpsim.
2315         * debugger/mcs51/configure.in: removed the result message
2316         * debugger/mcs51/Makefile.in: fixed the config.status warning
2317           "... seems to ignore the --datarootdir setting"
2318
2319 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2320
2321         * device/include/mcs51/c8051f020.h,
2322         * device/include/mcs51/c8051f040.h,
2323         * device/include/mcs51/c8051f060.h,
2324         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2325         * src/z80/gen.c (gencjneshort),
2326         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2327
2328 2006-10-31 Borut Razem <borut.razem AT siol.net>
2329
2330         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2331           debugger/mcs51/configure: get readline version
2332
2333 2006-10-30 Borut Razem <borut.razem AT siol.net>
2334
2335         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2336         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2337           debugger/mcs51/configure: locate readline even when cross compiling
2338         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2339
2340 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2341
2342         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2343           serial port.
2344
2345 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2346
2347         * device/include/malloc.h,
2348         * device/lib/calloc.c,
2349         * device/lib/free.c,
2350         * device/lib/malloc.c,
2351         * device/lib/realloc.c: moved definition of struct into sources
2352         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2353
2354 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2355
2356         * as/asx8051.dsp: corrected output directories
2357         * as/link/hc08: new directory for hc08 linker
2358         * as/hc08/aslink.h,             as/link/aslink.h,
2359         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2360         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2361         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2362         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2363         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2364         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2365         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2366         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2367         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2368         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2369         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2370         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2371         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2372         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2373         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2374         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2375         * as/link/hc08/conf.mk,
2376         * configure,
2377         * configure.in,
2378         * Makefile.in,
2379         * sdcc.dsw: moved hc08 linker to as/link/hc08
2380         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2381         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2382         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2383         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2384         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2385         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2386         * as/link/mcs51/aslink.dsp,
2387         * as/link/mcs51/Makefile.in: factored out the common files
2388         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2389         * as/clean.mk: extra cleaning common files
2390         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2391         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2392         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2393
2394 2006-10-29 Raphael Neider <rneider AT web.de>
2395
2396         * src/pic/ralloc.c (newReg): create aliases for registers with
2397           multiple names to fix #1579535 and #1584001,
2398           (regWithIdx,dirregWithName): resolve aliases on lookup
2399         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2400           bankselect
2401         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2402           to prevent build errors on small devices
2403
2404 2006-10-28 Raphael Neider <rneider AT web.de>
2405
2406         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2407           assumption within interrupt handlers, fixes #1584940
2408         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2409           "emitted" to avoid emitting them again in udata
2410
2411 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2412
2413         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2414         Removed.
2415
2416 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2417
2418         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2419         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2420         on/off CR to CRLF conversion.
2421
2422 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2423
2424         * doc/sdccman.lyx: updated IRQ section
2425
2426 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2427
2428         * device/lib/serial_io.c: removed
2429         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2430         replacements for serial_io.c
2431
2432 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2433
2434         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2435
2436 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2437
2438         * device/lib/serial_io.c: Default putchar() and getchar() for
2439           mcs51 uses serial port.
2440
2441 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2442
2443         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2444
2445 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2446
2447         * support/regression/ports/mcs51/support.c: smaller
2448         _sdcc_external_startup()
2449         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2450
2451 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2452
2453         * device/lib/gbz80/crt0.s,
2454         * device/lib/gbz80/crt0_rle.s,
2455         * device/lib/gbz80/div.s,
2456         * device/lib/gbz80/fstubs.s,
2457         * device/lib/gbz80/heap.s,
2458         * device/lib/gbz80/mul.s,
2459         * device/lib/gbz80/putchar.s,
2460         * device/lib/gbz80/stubs.s,
2461         * device/lib/z80/crt0.s,
2462         * device/lib/z80/crt0_rle.s,
2463         * device/lib/z80/div.s,
2464         * device/lib/z80/fstubs.s,
2465         * device/lib/z80/heap.s,
2466         * device/lib/z80/mul.s,
2467         * device/lib/z80/putchar.s,
2468         * device/lib/z80/stubs.s: reverted, I was mistaken
2469
2470 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2471
2472         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2473         * support/regression/ports/mcs51/support.c: removed race
2474         condition on TI in _putchar allowing to use serial port mode 0
2475
2476 2006-10-20 Borut Razem <borut.razem AT siol.net>
2477
2478         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2479
2480 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2481
2482         * device/lib/gbz80/crt0.s,
2483         * device/lib/gbz80/crt0_rle.s,
2484         * device/lib/gbz80/div.s,
2485         * device/lib/gbz80/fstubs.s,
2486         * device/lib/gbz80/heap.s,
2487         * device/lib/gbz80/mul.s,
2488         * device/lib/gbz80/putchar.s,
2489         * device/lib/gbz80/stubs.s,
2490         * device/lib/z80/crt0.s,
2491         * device/lib/z80/crt0_rle.s,
2492         * device/lib/z80/div.s,
2493         * device/lib/z80/fstubs.s,
2494         * device/lib/z80/heap.s,
2495         * device/lib/z80/mul.s,
2496         * device/lib/z80/putchar.s,
2497         * device/lib/z80/stubs.s: removed all leading underscores from area names
2498
2499 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2500
2501         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2502           regression tests are not waiting in the simulator for simulated
2503           transmission of debug output
2504
2505 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2506
2507         * device/lib/printf_large.c: slightly smaller
2508         * doc/sdccman.lyx: do not use spaces within html links
2509
2510 2006-10-16 Borut Razem <borut.razem AT siol.net>
2511
2512         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2513           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2514           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2515           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2516           debugger/mcs51/configure:
2517           [ 1185668 ] add gnu readline support to sdcdb - enabled
2518
2519 2006-10-16 Raphael Neider <rneider AT web.de>
2520
2521         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2522           fixes #1577882, removes close to all banking optimizations
2523
2524 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2525
2526         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2527           variables in code memory
2528         * support/regression/tests/absolute.c: added test for this
2529
2530 2006-10-15 Raphael Neider <rneider AT web.de>
2531
2532         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2533           devices,
2534           (BankSelect): emit BANKSEL before touching linker-placed regs,
2535           fixes #1570934
2536
2537 2006-10-10 Raphael Neider <rneider AT web.de>
2538
2539         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2540         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2541         * src/pic/main.c (_pic14_parseOptions),
2542         * src/pic/main.h: mostly reverted to previous state, now use results
2543             from SDCCmain.c's argument parsing
2544
2545 2006-10-10 Borut Razem <borut.razem AT siol.net>
2546
2547         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2548           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2549           [ 1185668 ] add gnu readline support to sdcdb -
2550           prepared for READLINE, not enabled yet,
2551           thanks to <tal.bav AT gmail.com>
2552
2553 2006-10-10 Raphael Neider <rneider AT web.de>
2554
2555         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2556         * src/pic16/devices.inc,
2557         * device/include/pic16 (pic18f[24]620.h),
2558         * device/include/pic18fregs.h,
2559         * device/lib/pic16/pics.all,
2560         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2561             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2562             Gary Plumbridge and Anton Strobl
2563
2564 2006-10-10 Raphael Neider <rneider AT web.de>
2565
2566         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2567           --stack-siz=NUM options to configure the argument passing stack
2568         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2569         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2570           (pic14_getSharebankSize): obey --stack-siz=NUM,
2571           (pic14_getSharebankAddress): obey --stack-loc=NUM
2572
2573 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2574
2575         * doc/sdccman.lyx: added to the manual
2576         * doc/figures/ddd_example.png: added (neither pdflatex nor
2577         most browsers seem to like the .eps file)
2578
2579 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2580
2581         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2582         to /tmp and /var/tmp acc. LSB
2583         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2584         RESULT_TYPE_IFX
2585         * support/regression/tests/onebyte.c: added test
2586
2587 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2588
2589         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2590
2591 2006-10-05 Borut Razem <borut.razem AT siol.net>
2592
2593         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2594           thanks to dfulab:
2595           - sdcc.dsw: changed property eol-style to CRLF
2596           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2597
2598 2006-10-04 Raphael Neider <rneider AT web.de>
2599
2600         * device/include/pic/{pic16f84.h,pic16f84a.h},
2601         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2602           from patch #1522504, thanks to Robas Teodor
2603
2604 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2605
2606         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2607           fixes bug 1566015
2608
2609 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2610
2611         * src/pic16/glue.c (pic16emitMaps),
2612         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2613         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2614         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2615         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2616           Philipp Krause
2617         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2618         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2619
2620 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2621
2622         * support/librarian/sdcclib.c: Added option -l.
2623         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2624           usage totals.
2625         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2626           using Windows command prompt.
2627
2628 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * device/lib/libsdcc.lib: added module rand
2631         * src/ds390/ralloc.c (rematStr),
2632         * src/hc08/ralloc.c (rematStr),
2633         * src/mcs51/ralloc.c (rematStr),
2634         * src/z80/ralloc.c (rematStr): made output more consistent
2635         * src/mcs51/gen.c: cosmetic changes
2636
2637 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2638
2639         * src/port.h: added mem.cabs_name to PORT
2640         * src/ds390/main.c,
2641         * src/hc08/main.c,
2642         * src/mcs51/main.c,
2643         * src/pic16/main.c,
2644         * src/pic/main.c,
2645         * src/xa51/main.c,
2646         * src/z80/main.c: added cabs_name initializers
2647         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2648           constants
2649           (emitMaps): emit absolutes in code memory into cabs_name
2650         * src/SDCCmem.c,
2651         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2652         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2653         * support/regression/fwk/include/testfwk.h: added define for at
2654         * support/regression/tests/absolute.c: added, new
2655
2656 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2657
2658         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2659           optimizations, see also patch 887161 by Stas Sergeev
2660         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2661           to be necessary anymore,
2662           (102, 103, 104, 127): renamed all occurances of bp to _bp
2663
2664 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2665
2666         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2667           thanks Weston T. Schmidt for patch 1555221
2668         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2669         * src/SDCCicode.c(geniCodeMultiply): small optimization
2670
2671 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2672
2673         * device/include/stdlib.h: added rand prototypes
2674         * device/lib/rand.c: new, added
2675         * device/lib/Makefile.in: added rand.c
2676         * src/z80/peeph.def,
2677         * src/z80/peeph-gbz80.def,
2678         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2679
2680 2006-09-20 Raphael Neider <rneider AT web.de>
2681
2682         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2683
2684 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2685
2686         * as/link/aslink.h: cosmetic changes
2687         * as/link/mcs51/Makefile.in,
2688         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2689
2690 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2691
2692         * as/link/aslink.h,
2693         * as/link/mcs51/aslink.h,
2694         * as/link/z80/aslink.h: merged and moved to as/link/
2695         * as/link/lkstore.c,
2696         * as/link/mcs51/lkstore.c: moved to as/link/
2697         * as/link/clean.mk: remove *.o
2698         * as/link/mcs51/alloc.h: deleted
2699         * as/link/mcs51/lkarea.c: added lnksect prototype
2700         * as/link/mcs51/lkdata.c,
2701         * as/link/mcs51/lklex.c,
2702         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2703         * as/link/mcs51/lkmem.c,
2704         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2705         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2706         * as/link/mcs51/aslink.dsp,
2707         * as/link/mcs51/Makefile.aslink,
2708         * as/link/mcs51/Makefile.bcc,
2709         * as/link/mcs51/Makefile.in: updated for moved files
2710         * as/link/z80/lkarea.c,
2711         * as/link/z80/lkhead.c,
2712         * as/link/z80/lklex.c,
2713         * as/link/z80/lklibr.c,
2714         * as/link/z80/lklist.c,
2715         * as/link/z80/lkmain.c,
2716         * as/link/z80/lkrloc.c,
2717         * as/link/z80/lksym.c: synced with mcs51
2718         * as/link/z80/lkdata.c,
2719         * as/link/z80/lkeval.c,
2720         * as/link/z80/lkihx.c,
2721         * as/link/z80/lks19.c: cosmetic changes
2722         * as/link/z80/Makefile.in,
2723         * as/link/z80/linkgbz80.dsp,
2724         * as/link/z80/linkz80.dsp: updated for moved files
2725
2726 2006-09-16 Borut Razem <borut.razem AT siol.net>
2727
2728         * debugger/mcs51/sdcdb.c: partially fixed
2729           [ 1203664 ] sdcdb fails to open files w. two "." periods
2730         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2731           debugger/mcs51/symtab.h: fixed indenting
2732         * configure.in, configure: up to date with latest Maarten's changes
2733
2734 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2735
2736         as/link/mcs51
2737         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2738         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2739         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2740         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2741         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2742         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2743         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2744         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2745         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2746         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2747         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2748         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2749         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2750         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2751         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2752         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2753         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2754         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2755         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2756         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2757         as/link/mcs51/alloc.h,
2758         as/link/mcs51/clean.mk,
2759         as/link/mcs51/conf.mk,
2760         as/link/mcs51/Makefile.bcc,
2761         as/link/mcs51/Makefile.in,
2762         as/link/mcs51/readme.390,
2763         as/link/mcs51/strcmpi.c,
2764         as/link/mcs51/strcmpi.h,
2765         as/mcs51/clean.mk,
2766         as/mcs51/Makefile.bcc,
2767         as/mcs51/Makefile.in,
2768         configure,
2769         Makefile.in,
2770         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2771
2772 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2773
2774         * as/link,
2775         * as/link/Makefile.in,
2776         * as/link/z80/linkgbz80.dsp,
2777         * as/link/z80/linkz80.dsp,
2778         * configure,
2779         * link,
2780         * link/clean.mk,
2781         * link/Makefile.in,
2782         * link/README,
2783         * link/z80,
2784         * link/z80/aslink.h,
2785         * link/z80/clean.mk,
2786         * link/z80/conf.mk,
2787         * link/z80/linkgbz80.dsp,
2788         * link/z80/linkz80.dsp,
2789         * link/z80/lkarea.c,
2790         * link/z80/lkdata.c,
2791         * link/z80/lkeval.c,
2792         * link/z80/lkgb.c,
2793         * link/z80/lkgg.c,
2794         * link/z80/lkhead.c,
2795         * link/z80/lkihx.c,
2796         * link/z80/lklex.c,
2797         * link/z80/lklibr.c,
2798         * link/z80/lklist.c,
2799         * link/z80/lkmain.c,
2800         * link/z80/lkrloc.c,
2801         * link/z80/lks19.c,
2802         * link/z80/lksym.c,
2803         * link/z80/Makefile.in,
2804         * Makefile.in,
2805         * sdcc.dsw: moved link/ to as/link/
2806
2807 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2808
2809         * as/mcs51/i51mch.c (machine): fixed warning
2810
2811 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2812
2813         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2814
2815 2006-09-09 Borut Razem <borut.razem AT siol.net>
2816
2817         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2818           sdcdb WIN32 native port
2819         * src/clean.mk: fixed
2820
2821 2006-09-08 Borut Razem <borut.razem AT siol.net>
2822
2823         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2824
2825 2006-09-08 Raphael Neider <rneider AT web.de>
2826
2827         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2828         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2829             to gplink to disable processor mismatch warning and to allow
2830             the use of devices with only aliased (shared) memory banks,
2831           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2832
2833 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2834
2835         * doc/sdccman.lyx: Some re-formating plus example on using
2836           #pragma preproc_asm +/-
2837
2838 2006-09-07 Borut Razem <borut.razem AT siol.net>
2839
2840         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2841           section
2842
2843 2006-09-06 Borut Razem <borut.razem AT siol.net>
2844
2845         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2846           line at sdcc.nsi:153
2847         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2848
2849 2006-09-05 Borut Razem <borut.razem AT siol.net>
2850
2851         * configure.in, configure: support for winsock2
2852         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2853           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2854           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2855           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2856           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2857
2858 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2859
2860         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2861           and OP_DEFS
2862         * support/regression/tests/bug1551947.c: new, added
2863         * src/SDCCsymt.h: strings are char* not byte*
2864
2865 2006-09-05 Raphael Neider <rneider AT web.de>
2866
2867         * device/lib/pic16/libdev/pic18f4550.c,
2868           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2869             declarations/definitions from patch #1520949
2870
2871 2006-09-05 Raphael Neider <rneider AT web.de>
2872
2873         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2874           byte-aligned bitfields, fixes #1539278
2875
2876 2006-09-05 Raphael Neider <rneider AT web.de>
2877
2878         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2879           fixes #1544120
2880
2881 2006-09-04 Borut Razem <borut.razem AT siol.net>
2882
2883         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2884         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2885           -mno-cygwin is a part of the compiler name
2886         * support/scripts/sdcc_mingw32: don't disable ucsim
2887
2888 2006-09-03 Borut Razem <borut.razem AT siol.net>
2889
2890         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2891         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2892
2893 2006-09-03 Raphael Neider <rneider AT web.de>
2894
2895         * src/pic/ralloc.c,
2896         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2897           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2898           fixes #1550049
2899
2900 2006-09-01 Borut Razem <borut.razem AT siol.net>
2901
2902         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2903           to make ppc-osx happy
2904
2905 2006-08-31 Borut Razem <borut.razem AT siol.net>
2906
2907         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2908         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2909         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2910         * support/regression/ports/ds390/spec.mk,
2911           support/regression/ports/mcs51/spec.mk,
2912           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2913           To run regression tests in mingw environment:
2914           make DEV_NULL=NUL CC=gcc
2915
2916 2006-08-30 Borut Razem <borut.razem AT siol.net>
2917
2918         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2919           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2920           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2921           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2922           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2923           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2924           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2925           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2926           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2927           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2928           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2929           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2930           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2931           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2932           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2933           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2934           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2935           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2936           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2937           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2938           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2939           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2940           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2941           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2942           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2943           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2944           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2945           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2946           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2947           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2948           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2949           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2950           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2951           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2952           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2953           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2954           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2955           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2956           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2957           ucsim WIN32 native port
2958
2959 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2960
2961         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2962
2963 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2964
2965         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2966         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2967
2968 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2969
2970         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2971         * support/regression/tests/bug1546986.c: new, added
2972         * as/mcs51/.cvsignore,
2973         * debugger/mcs51/.cvsignore,
2974         * src/.cvsignore: deleted
2975
2976 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2977
2978         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2979           definitions)
2980
2981 2006-08-20 Borut Razem <borut.razem AT siol.net>
2982
2983         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2984           removed cl_listen_console::match(), cl_console::match(),
2985           restructured cl_commander::proc_input()
2986
2987 2006-08-16 Borut Razem <borut.razem AT siol.net>
2988
2989         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2990           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2991           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2992
2993 2006-08-14 Borut Razem <borut.razem AT siol.net>
2994
2995         * support/regression/Makefile.in,
2996           support/regression/ports/pic14/gpsim.cmd,
2997           support/regression/ports/pic14/spec.mk,
2998           support/regression/ports/pic14/support.c:
2999           added pic14 regression test
3000
3001 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3002
3003         * as/doc/asxhtm.html: documented changed ABS behaviour
3004         * as/doc/README: fixed some typos
3005
3006 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3007
3008         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3009           not defined on host
3010
3011 2006-08-12 Borut Razem <borut.razem AT siol.net>
3012
3013         * support/regression/fwk/include/testfwk.h,
3014           support/regression/fwk/lib/testfwk.c,
3015           support/regression/generate-cases.py,
3016           support/regression/Makefile.in:
3017           regression test framework does not depend on function pointers and
3018           variable arguments
3019
3020 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3021
3022         * device/include/stddef.h: c temporary hack to fix bug 1518273
3023
3024 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3025
3026         * device/include/mcs51/cc2510fx.h: added
3027         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3028           to projects.
3029
3030 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3031
3032         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3033         * as/z80/Makefile.in: added strcmpi.c
3034         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3035         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3036
3037 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3038
3039         * device/lib/gbz80/asm_strings.s,
3040         * device/lib/gbz80/crt0_rle.s,
3041         * device/lib/gbz80/div.s,
3042         * device/lib/gbz80/mul.s,
3043         * device/lib/gbz80/shift.s,
3044         * device/lib/z80/asm_strings.s,
3045         * device/lib/z80/crt0_rle.s,
3046         * device/lib/z80/div.s,
3047         * device/lib/z80/mul.s,
3048         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3049           flags which are all upper case
3050
3051 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3052
3053         * as/z80/asm.h: made CASE_SENSITIVE 1
3054         * link/z80/aslink.h: made CASE_SENSITIVE 1
3055         * src/z80/gen.c (throughout): made all conditionals upper case
3056         * support/regression/tests/bug1503067.c: new
3057
3058 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3059
3060         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3061           (shiftIntoPair): added case 2 for PAIR_IY,
3062           (setupToPreserveCarry): replaced parameters with iCode and check if
3063            PAIR_DE is in use to fix bug 1399290,
3064           (genPlus, genMinus): updated call to setupToPreserveCarry
3065         * support/regression/tests/bug1399290.c: new
3066
3067 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3068
3069         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3070         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3071         * src/ds390/gen.c (shiftRLong),
3072         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3073         * src/mcs51/gen.c (sameReg): changed to sameByte,
3074           (xch_a_aopGet): new,
3075           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3076            shiftRLong): fixed bug 1533966
3077         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3078           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3079         * support/regression/Makefile.in: disabled z80, enabled ucz80
3080         * support/regression/tests/float_trans.c: enabled test for z80 and host
3081         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3082
3083 2006-08-01 Borut Razem <borut.razem AT siol.net>
3084
3085         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3086           comparison is always false due to limited range of data type
3087           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3088
3089 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3090
3091         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3092         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3093         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3094         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3095
3096 2006-07-31 Borut Razem <borut.razem AT siol.net>
3097
3098         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3099           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3100           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3101           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3102           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3103           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3104           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3105           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3106           enable ucsim mingw compilation. Serial port is disabled,
3107           since it uses termios.h API, which is not available on native
3108           WIN32
3109
3110 2006-07-31 Borut Razem <borut.razem AT siol.net>
3111
3112         * Small Device C Compiler 2.6.0 released
3113         * support/scripts/sdcc.nsi: added FULL_DOC option
3114         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3115
3116 2006-07-28 Borut Razem <borut.razem AT siol.net>
3117
3118         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3119         * doc/INSTALL.txt: updated
3120
3121 2006-07-27 Borut Razem <borut.razem AT siol.net>
3122
3123         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3124           device/lib/pic/libdev/Makefile.in: fixed bug
3125           [ 1438354 ] pic libsdcc: distclean doesn't work
3126         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3127           device/lib/pic16/libio/Makefile.in: fixed bug
3128           [ 1438344 ] pic16 lib: clean doesn't work properly
3129         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3130
3131 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3132
3133         * device/lib/pic/libsdcc/fsdiv.c,
3134         * device/lib/pic/libsdcc/fsmul.c,
3135         * device/lib/pic16/libsdcc/float/fsdiv.c,
3136         * device/lib/pic16/libsdcc/float/fsmul.c,
3137         * device/lib/_fsdiv.c,
3138         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3139         * support/regression/tests/bug1520966.c: added
3140         * doc/knownbugs.html: removed [ 1520966 ] from the list
3141
3142 2006-07-25 Borut Razem <borut.razem AT siol.net>
3143
3144         * configure.in, configure, sdccconf_in.h: fixed bug
3145           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3146         * doc/knownbugs.html: removed [ 1519095 ] from the list
3147
3148 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3149
3150         * doc/knownbugs.html: added, contains list of known bugs at release
3151         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3152
3153 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3154
3155         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3156           function registers and corrected defaults with additional warning
3157         * device/lib/malloc.c: cosmetic changes
3158         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3159         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3160           (fillGaps): and used it
3161
3162 2006-07-20 Raphael Neider <rneider AT web.de>
3163
3164         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3165           output unless SDCCPICDEBUG is set
3166         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3167           output if SILENT is set
3168
3169 2006-07-11 Borut Razem <borut.razem AT siol.net>
3170
3171         * doc/README.txt: updated
3172
3173 2006-07-10 Borut Razem <borut.razem AT siol.net>
3174
3175         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3176           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3177           in WIN32 installation
3178         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3179           release candidate 1
3180
3181 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3182
3183         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3184         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3185
3186 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3187
3188         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3189
3190 2006-07-06 Borut Razem <borut.razem AT siol.net>
3191
3192         * support/regression/tests/bitfields.c:
3193           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3194         * support/regression/tests/constantRange.c:
3195           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3196
3197 2006-07-04 Borut Razem <borut.razem AT siol.net>
3198
3199         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3200           src/port.mk,
3201           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3202           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3203           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3204           reverted changes from 2006-07-03
3205         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3206         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3207           added CPPFLAGS, used by the host port
3208
3209 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3210
3211         * support/regression/valdiag/tests/switch.c,
3212         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3213         * support/regression/tests/libmullong.c: fixed for host
3214         * support/regression/ports/host/spec.mk: disable all warnings for host,
3215         SDCC runs with --less-pedantic too
3216
3217 2006-07-03 Borut Razem <borut.razem AT siol.net>
3218
3219         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3220           defined CPPFLAGS
3221         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3222         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3223           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3224           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3225           include ../port.mk
3226         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3227           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3228           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3229           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3230
3231 2006-07-02 Raphael Neider <rneider AT web.de>
3232
3233         * src/pic16/devices.inc,
3234         * device/include/pic16/pic18fregs.h,
3235         * device/include/pic16/pic18f4550.h,
3236         * device/lib/pic16/pics.all,
3237         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3238
3239 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3240
3241         * as/hc08/lkaomf51.c (OutputName),
3242         * as/mcs51/lkaomf51.c (OutputName),
3243         * as/z80/asmain.c (asmbl),
3244         * src/ds390/main.c (asmLineNodeFromLineNode),
3245         * src/hc08/ralloc.c (hc08_assignRegisters),
3246         * src/mcs51/main.c (asmLineNodeFromLineNode),
3247         * src/xa51/ralloc.c (checkRegMask),
3248         * src/xa51/gen.c (emitcode),
3249         * src/z80/gen.c (_emit2),
3250         * src/SDCCast.c (searchLitOp),
3251         * src/SDCCglobl.h,
3252         * support/packihx/packihx.c,
3253         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3254         * src/ds390/gen.c (aopPutUsesAcc),
3255         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3256         * support/regression/tests/libmullong.c (mullong_wrapper),
3257         * src/SDCCsymt.c (powof2),
3258         * src/SDCCast.c,
3259         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3260         * src/SDCCsymt.h: added TYPE_TARGET_*
3261         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3262         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3263         SDCCast because 1) header problems 2) this is the right place
3264         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3265         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3266         prototype
3267
3268 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3269
3270         * src/SDCCicode.h: removed buggy semicolon in unused macro
3271         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3272         search for previous definiton of auto symbols too,
3273         (findPrevUse): fixed logic of emitWarnings
3274
3275 2006-06-26 Raphael Neider <rneider AT web.de>
3276
3277         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3278           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3279
3280 2006-06-25 Raphael Neider <rneider AT web.de>
3281
3282         * device/lib/pic/libm: NEW, added math library functions
3283         * device/lib/pic/libsdcc: NEW; added float support functions
3284         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3285         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3286           NEW, added math related headers
3287         * device/include/asm/pic/features.h: NEW
3288         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3289           (popGet): allow larger offsets for AOP_PCODE,
3290           (genDataPointerSet): handle literals explicitly, more debug output,
3291           (genAssign): fixed for float using aopLiteral ;-)
3292         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3293           GOTO initialisation routine
3294         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3295           flag on registers, fixes #1469043 (local variables do not work)
3296         * src/pic/main.c (_pic14_do_link),
3297         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3298           available
3299
3300 2006-06-25 Borut Razem <borut.razem AT siol.net>
3301
3302         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3303           characters printed (not including the trailing '\0' used to end
3304           output to strings). Problem detected in regression test bug-927659.c.
3305           NOTE: printf() family functions should return int instead
3306           unsigned int!
3307         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3308           specifier are printed as themselves
3309         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3310           support flags, width and precision specifiers
3311
3312 2006-06-24 Borut Razem <borut.razem AT siol.net>
3313
3314         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3315           to the list of sdcc tagrets not supporting bit type
3316         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3317           testfor pic16 due to bug:
3318           [ 1511794 ] pic16: regression test bug-895992.c fails
3319
3320 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3321
3322         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3323         * src/SDCCglue.c (initPointer), fixed bug 1496419
3324         * support/regression/tests/bug1496419.c: new, added
3325
3326 2006-06-22 Borut Razem <borut.razem AT siol.net>
3327
3328         * support/regression/ports/pic16/support.c: use gpsim usart module from
3329           libgpsim_modules library
3330
3331 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3332
3333         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3334         IP0H to IPH0.
3335
3336 2006-06-19 Raphael Neider <rneider AT web.de>
3337
3338         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3339         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3340           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3341           (pic14printExterns,pic14printPublics,pic16printPublics,
3342           pic16_printExterns): use new functions to emit symbols
3343           (picglue,pic16glue): emit publics before emitting externs
3344         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3345           locally defined functions to avoid bug #1443651
3346         * support/regression/tests/bug-716242.c: removed pic16 workaround
3347         * support/regression/ports/pic16/spec.mk: ignore errors during build
3348
3349 2006-06-19 Raphael Neider <rneider AT web.de>
3350
3351         * src/pic/glue.h: added pic14aopLiteral prototype
3352         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3353         * src/pic/gen.c: removed stdint.h dependency
3354           (aopGet): use Safe_strdup()
3355           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3356           (genDataPointerSet): use pic14aopLiteral()
3357         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3358           for pic16; thanks to Bernhard and Maarten
3359
3360 2006-06-18 Borut Razem <borut.razem AT siol.net>
3361
3362         * support/regression/tests/structflexarray.c: flexible array members
3363           not supported by gcc < 3
3364         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3365           GUI tool by default
3366         * src/pic/gen.c: don't include [p]strdin.h on solaris
3367         * support/Util/pstdint.h: addad svn attributes
3368         * support/regression/tests/constantRange.c,
3369           support/regression/tests/rotate.c: include inttypes.h instead
3370           stdint.h on solaris, addad svn attributes
3371
3372 2006-06-18 Raphael Neider <rneider AT web.de>
3373
3374         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3375           int for PIC16
3376         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3377           (pic16_genMinusBits): simplified sign-extension
3378           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3379             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3380             adjusted to correctly handle mixed-signed operands, disabled
3381             now unused multiplciation routines
3382         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3383           (assignResultValue): added argument denoting the size of the result
3384             as returned by the function (fixes upcasts in assigning from
3385             function calls: char foo(); int i = foo();)
3386           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3387             function result to assignResultValue
3388           (genMult): disabled inlined multiplication code
3389           (genDiv): augmented to also handle the modulus operator, fixed to
3390             handle mixed-signed operands correctly
3391           (genMod): simply call genDiv, disabled unused code
3392           (genAssign): fixed missing (sign-)extension on result
3393         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3394             valid char operands, allow signed operands for native code, added
3395             division and modulo operator handling
3396         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3397
3398         As a consequence, onebyte.c (if split into two files) and muldiv.c
3399         pass regression tests.
3400
3401 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3402
3403         * doc/Makefile.in: two runs of makeindex seem needed to get
3404         correct page references in the index of sdccman.pdf
3405         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3406
3407 2006-06-17 Borut Razem <borut.razem AT siol.net>
3408
3409         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3410
3411 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3412
3413         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3414         mentioned ec2drv and paulmon
3415
3416 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3417
3418         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3419           consecutive abs areas
3420           (find_empty_space, allocate_space): added map to handle codemap or
3421            xdatamap,
3422           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3423            absolute idata and xdata
3424         * as/mcs51/lkmem.c (summary2): updated legend
3425
3426 2006-06-16 Raphael Neider <rneider AT web.de>
3427
3428         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3429
3430 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3431
3432         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3433           1208515
3434         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3435
3436 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3437
3438         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3439         value of generic pointers,
3440         * src/avr/main.c,
3441           src/ds390/main.c,
3442           src/hc08/main.c,
3443           src/izt/i186.c,
3444           src/izt/tlcs900h.c,
3445           src/mcs51/main.c,
3446           src/pic/main.c,
3447           src/pic16/main.c,
3448           src/xa51/main.c,
3449           src/z80/main.c: PORT structure, added elements for gp_tags field,
3450         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3451         fields in the PORT structure of each port,
3452         * src/SDCCast.c (decorateType): allow processing of generic pointers
3453         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3454         S_FIXED symbols
3455
3456 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3457
3458         * link/z80/lkgb.c,
3459         * link/z80/lkgg.c,
3460         * src/pic16/gen.c,
3461         * src/pic16/main.c,
3462         * src/pic16/pcode.c,
3463         * src/pic/main.c,
3464         * src/pic/pcoderegs.c,
3465         * src/SDCCicode.c,
3466         * src/SDCCmain.c,
3467         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3468           bug 1504689 on minGW
3469
3470 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3471
3472         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3473
3474 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3475
3476         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3477
3478 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3479
3480         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3481           for optimization
3482
3483 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3484
3485         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3486         to a char variable. Fixed bug #1504211
3487         * device/include/pic16/adc.h,
3488         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3489         and fixed bug #1364390
3490
3491 2006-06-10 Borut Razem <borut.razem AT siol.net>
3492
3493         * CVSROOT: removed the CVS left-over
3494
3495 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3496
3497         * as/hc08/asmain.c (asexit),
3498         * as/hc08/lkmain.c (lkexit),
3499         * as/mcs51/asmain.c (asexit),
3500         * as/mcs51/lkmain.c (lkexit),
3501         * src/SDCCglue.c (DEFSETFUNC),
3502         * src/SDCCmain.c (linkEdit, assemble),
3503         * support/librarian/sdcclib.c (AddRel),
3504           replaced unlink() by standard C remove()
3505         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3506         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3507           gatherImplicitVariables): new, added to fix bug 608752,
3508           (createFunction): added gatherImplicitVariables()
3509         * src/SDCCast.h: added createRMW prototype
3510         * src/SDCCsymt.h (struct symbol): added infertype
3511         * support/regression/tests/bug608752.c: new, added
3512
3513 2006-06-10 Raphael Neider <rneider AT web.de>
3514
3515         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3516           multibyte dummy reads (fixes #1503234)
3517
3518 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3519
3520         * device/include/mcs51/compiler.h: new, added header file to enable
3521           creating common sfr definition header files for different compilers
3522
3523 2006-06-05 Raphael Neider <rneider AT web.de>
3524
3525         * src/pic16/{pcode.h,genarith.c}:
3526           introduced pCodeOp combining any two pCodeOps (previously only
3527           two register operands could be combined), removed pcop2 from
3528           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3529         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3530         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3531           rewritten to use new PO_TWO_OPS
3532         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3533         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3534           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3535           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3536           (pic16_get_op): embraced return arg to allow #define return(x),
3537             added new case for combined opcodes
3538           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3539           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3540            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3541
3542 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3543
3544         * src/SDCCval.c (checkConstantRange): added
3545         * src/SDCCval.h: added checkConstantRange
3546         * support/Util/SDCCerr.c,
3547         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3548         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3549         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3550         * src/SDCCast.c (decorateType): added checkConstantRange,
3551         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3552         can be emitted with the correct always true/false warning,
3553         added optimization for double '!';
3554         result of decorateType() must be assigned back to the tree, because
3555         decorateType() can change the tree
3556         * src/SDCCicode.c (geniCodeLogic),
3557         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3558         (checkConstantRange): removed, it was only a fragment which never
3559         emitted a warning
3560         * src/SDCCsymt.c (computeType): fixed promotion for
3561         "-1 < (unsigned bit) b"
3562         * src/pic/ralloc.c (packRegsForAssign),
3563         * src/pic16/ralloc.c (packRegsForAssign),
3564         * src/hc08/ralloc.c (packRegsForAssign),
3565         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3566         from mcs51
3567         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3568         * support/regression/tests/constantRange.c: added
3569         * support/valdiag/tests/constantRange.c: added
3570         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3571
3572 2006-06-02 Borut Razem <borut.razem AT siol.net>
3573
3574         * support/regression/ports/pic16/support.c: increase stack size
3575           to 255 bytes
3576         * support/regression/Makefile.in: sort tests by name so that the
3577           resutlts can be compared on different machines / platforms
3578
3579 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3580
3581         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3582         * src/ds390/gen.c (emitLabel): new, added,
3583           (genDjnz): fixed stack overflow bug,
3584           (throughout): cosmetic changes to sync with mcs51/gen.c,
3585           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3586         * src/mcs51/gen.c (genEndFunction): small optimization,
3587           (throughout): cosmetic changes to sync with ds390/gen.c
3588
3589 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3590
3591         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3592           (_print_format): fixed printing pointers
3593         * src/mcs51/gen.c (emitLabel, movb): new, added,
3594           (genAssign): small optimization,
3595           (genDjnz): fixed stack overflow bug,
3596           (throughout): replaced sprintf with SNPRINTF,
3597           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3598           replaced emitcode("mov", "b,...") with MOVB(...),
3599           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3600           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3601         * src/mcs51/peeph.def: added rules 140 and 264
3602         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3603           so they may get optimized into registers
3604
3605 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3606
3607         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3608           immediately when encountered,
3609           (printUsage): always use stderr even on windows
3610
3611 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3612
3613         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3614         (processParms): fixed bug #1247551
3615         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3616         parseCmdLine, main): print '--version' to stdout,
3617         print 'help' to stdout if --help is given,
3618         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3619         arguments are given; fixed --help
3620
3621 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3622
3623         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3624         * support/regression/tests/bug-1493710.c: added
3625
3626 2006-05-27 Borut Razem <borut.razem AT siol.net>
3627
3628         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3629           static instead auto
3630         * support/regression/ports/pic16/support.c: increase stack size
3631           from default 64 bytes to 128 bytes
3632         * support/regression/tests/staticinit.c,
3633           support/regression/tests/float.c: regression tests fully enabled
3634           for pic16 port by putting the initialized data arrays into the code
3635           section
3636         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3637           This was changed by mistake in the previous version.
3638
3639 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3640
3641         * src/pic16/gen.c (genFunction, genEndFunction): some
3642         beautifications, fixed bug with falsely restoring FSR2 in large
3643         stack model, thanks to Beau E. Cox for reporting the bug
3644
3645 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3646
3647         * debugger/mcs51/break.c,
3648         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3649           use %p to print pointers, made address variables unsigned
3650         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3651         * debugger/mcs51/symtab.c (parseSymbol): must return something
3652         * src/mcs51/gen.c (aopForSym): small optimization,
3653            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3654           (freeAsmop): added missing break,
3655           (aopPut): removed parameter bvolatile, determine it inside the function,
3656           (saveRegisters, unsaveRegisters): small optimization,
3657           (genIpush): removed pointless check,
3658           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3659           replaced sprintf with SNPRINTF,
3660           replaced strcpy with strncpyz,
3661           updated aopPut calls,
3662           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3663         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3664
3665 2006-05-24 Borut Razem <borut.razem AT siol.net>
3666
3667         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3668           modification of test for the pic16 port, put the array to the code
3669           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3670
3671 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3672
3673         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3674         * support/Util/pstdint.h: added
3675
3676 2006-05-22 Borut Razem <borut.razem AT siol.net>
3677
3678         * src/regression/Makefile: removed bool2.c test, added -q linker option
3679         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3680           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3681           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3682           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3683           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3684           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3685           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3686           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3687           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3688
3689 2006-05-22 Raphael Neider <rneider AT web.de>
3690
3691         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3692           bug #1492360 (problematic due to generic pointers, see code)
3693
3694 2006-05-22 Borut Razem <borut.razem AT siol.net>
3695
3696         * support/regression/ports/pic16/specs.mk: removed stack size linker
3697           directive
3698         * support/regression/tests/array.c,
3699           support/regression/tests/bitopcse.c,
3700           support/regression/tests/bug-908454.c,
3701           support/regression/tests/malloc.c: modified for pic16 regression test
3702         * support/regression/tests/bitfields.c:
3703           pic16 - excluded bitfileds of size > 8
3704         * support/regression/tests/bp.c: pic16 - reduced data size
3705         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3706         * support/regression/tests/bug-460010.c:
3707           pic16 - used the absolute address the fits in memory
3708         * support/regression/tests/bug-716242.c:
3709           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3710         * support/regression/tests/float.c:
3711           pic16 - excluded - data size too big
3712         * support/regression/tests/onebyte.c:
3713           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3714         * support/regression/tests/shifts.c:
3715           pic16 - function names probably have to differ in first X characters
3716           (gpasm limitation?)
3717         * support/regression/tests/staticinit.c:
3718           pic16 - excluded some tests due error: no target memory available for
3719           section ".idata"
3720
3721 2006-05-22 Borut Razem <borut.razem AT siol.net>
3722
3723         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3724           second try. Thanks Stas Sergeev once more.
3725
3726 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3727
3728         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3729           (genLeftShift, genRightShift): fixed bug 1491627
3730         * src/hc08/peeph.def (rules 7, 8.x): added
3731         * support/regression/tests/shifts.c (ShiftLeftByParam,
3732           ShiftRightByParam, testShiftByParam): added to test variable shifting
3733
3734 2006-05-20 Raphael Neider <rneider AT web.de>
3735
3736         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3737         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3738           (allocReg): add only new registers to dynAllocRegs,
3739           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3740             #1489055, #1445850, and probably #1483693
3741
3742 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3743
3744         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3745         bug in for-loop that didn't emit the last of CONFIG and ID registers
3746
3747 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3748
3749         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3750           with offset
3751         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3752           1489016, 1434401 and 1490124
3753         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3754           1489016, 1434401 and 1490124
3755
3756 2006-05-17 Borut Razem <borut.razem AT siol.net>
3757
3758         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3759           thanks Stas Sergeev
3760
3761 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3762
3763         * device/include/mcs51/P89c51RD2.h,
3764         * device/include/mcs51/P89LPC901.h,
3765         * device/include/mcs51/P89LPC922.h,
3766         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3767
3768 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3769
3770         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3771         to fix missing stack pragma in compiled binary object file,
3772
3773 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3774
3775         * support/packihx/configure.in,
3776         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3777         determine sizeof basic types even while cross compiling
3778
3779 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3780
3781         * src/avr/gen.c (aopop),
3782         * src/ds390/gen.c (aopOp),
3783         * src/hc08/gen.c (aopOp),
3784         * src/mcs51/gen.c (aopop),
3785         * src/pic16/gen.c (pic16_aopOp),
3786         * src/pic/gen.c (aopOp),
3787         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3788         if size of operand is smaller than spill location
3789
3790 2006-05-12 Borut Razem <borut.razem AT siol.net>
3791
3792         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3793           have to have CR/LF line endings even if they are checked out on *nix
3794           or on WIN32 in cygwin binmode
3795
3796 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3797
3798         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3799         * device/include/ds80c390.h: added sfr16 definitions
3800         * src/ds390/gen.c,
3801         * src/ds390/gen.h,
3802         * src/ds390/main.c,
3803         * src/ds390/ralloc.c,
3804         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3805           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3806           bit returning functions
3807         * support/regression/tests/sfr16.c: enabled test on ds390
3808
3809 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3810
3811         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3812         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3813
3814 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3815
3816         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3817         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3818           (cl_address_space constructor): removed expensive initialization,
3819           (cl_address_space::get_cell): extended for late initialization,
3820           (cl_address_space::*): use late initialization,
3821           (cl_address_decoder::activate): removed expensive initialization,
3822           This reduced regression test running time by 25%
3823
3824 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3825
3826         * packihx/,
3827         * configure.in,
3828         * configure,
3829         * sdcc.dsw,
3830         * Makefile.bcc,
3831         * Makefile.in,
3832         * support/packihx/Makefile.in,
3833         * support/packihx/clean.mk,
3834         * support/packihx/Makefile.bcc,
3835         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3836
3837 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3838
3839         * src/SDCCval.c (valNot): fix for regression test failure
3840           of not.c on big endian hosts
3841
3842 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3843
3844         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3845
3846 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3847
3848         * device/lib/mcs51/Makefile.in: changed string comparison operator
3849           to = for POSIX compliance; == is bash extension
3850
3851 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3852
3853         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3854           kosmonaut_pirx
3855
3856 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3857
3858         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3859         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3860         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3861         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3862         bug report #1478657,
3863
3864 2006-05-05 Borut Razem <borut.razem AT siol.net>
3865
3866         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3867           making the html
3868
3869 2006-05-02 Borut Razem <borut.razem AT siol.net>
3870
3871         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3872           create *.ind, which made make to fail if invoked with -j 2
3873
3874 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3875
3876         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3877           Hubert Sack for patch 1479782
3878
3879 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3880
3881         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3882
3883 2006-05-01 Raphael Neider <rneider AT web.de>
3884
3885         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3886           (create_pic): store only prefix-free device name,
3887           (init_pic): check for device names with "16" prefix,
3888           (list_valid_pics),
3889         * src/pic/device.h (struct PIC_device),
3890         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3891             stored device name,
3892         * device/include/pic/pic12f{635,675,629,683}.h,
3893         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3894         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3895         * device/include/pic/pic16f505.h,
3896         * device/lib/pic/libdev/pic16f505.c: removed
3897         * device/include/pic/pic14devices.txt: added support for pic12f
3898             devices, removed unsupported non 16-bit devices
3899             [above changes provided by patch from Zik Saleeba]
3900         * src/pic/*, src/pic16/*, device/include/pic16/*,
3901           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3902
3903 2006-05-01 Borut Razem <borut.razem AT siol.net>
3904
3905         * configure.in, configure, doc/Makefile.in:
3906           sync with nightly build makefile - latex, dvipdf and dvips
3907           not needed any more
3908
3909 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3910
3911         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3912         in the library source
3913
3914 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3915
3916         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3917
3918 2006-04-28 Raphael Neider <rneider AT web.de>
3919
3920         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3921         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3922           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3923         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3924
3925 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3926
3927         * device/lib/pic/libdev/Makefile.in,
3928         * device/lib/hc08/Makefile.in,
3929         * device/lib/gbz80/Makefile.in,
3930         * device/lib/z80/Makefile.in,
3931         * device/lib/ds390/Makefile.in,
3932         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3933         thanks to Borut for the bug report
3934         * configure.in,
3935         * configure: always create doc/Makefile independent from --enable-doc
3936         * Makefile.in: always install from directory doc independent from
3937         --enable-doc
3938         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3939         removed
3940         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3941         * doc/Makefile.in: install *.txt if present
3942         * device/include/Makefile.in (install): added installation of pic/*.inc
3943         and pic/*.txt files again, they were erroneously removed
3944
3945 2006-04-28 Raphael Neider <rneider AT web.de>
3946
3947         * src/pic/{gen.c,main.h,pcode.c},
3948         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3949             concerning signedness with casts
3950
3951 2006-04-28 Raphael Neider <rneider AT web.de>
3952
3953         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3954             definition of an interrupt handler,
3955         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3956             interrupt handler stuff from picglue() to separate routine,
3957           (picglue): enabled definition of intr handlers in files w/o main()
3958
3959 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3960
3961         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3962           compilation with MSVC 2005 Express Edition (VC8)
3963
3964 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3965
3966         * device/lib/Makefile: fixed build of gbz80 lib
3967
3968 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3969
3970         * support/regression/tests/bug-460010.c,
3971         * support/regression/tests/bug-524691.c,
3972         * support/regression/tests/bug-716242.c: removed conditional defines
3973           that are already in testfwk.h
3974
3975 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3976
3977         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3978           (AccAXRsh1): added, shift right by 1,
3979           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3980            AccAXLrl1
3981         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3982
3983 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3984
3985         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3986         remove cast to same type
3987         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3988         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3989         * as/z80/Makefile,
3990         * link/z80/Makefile: removed, they have moved to
3991         Makefile.in files
3992         * configure,
3993         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3994         * install-sh: fix bug #1204398 by setting umask 0022
3995         * device/lib/Makefile: separate build of z80 and gbz80 lib
3996
3997 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3998
3999         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4000         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4001
4002         One basic decision: e.g. src/clean.mk includes further files. In order
4003         to make this work there are two solutions:
4004         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4005           run configure on them. This way they can use
4006           'include $(srcdir)/port-clean.mk'
4007         - always include clean.mk by the Makefile at the same level. To avoid
4008           that `make clean` tries to include and build Makefile.dep the
4009           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4010           implemented, because now even `make uninstall` doesn't create
4011           Makefile.in. clean.mk could be eliminated by pasting it in
4012           Makefile.in.
4013
4014         * debugger/mcs51/Makefile.in: build own objects from library sources
4015         (SLIB, SDCC) in current directory
4016
4017         * configure, configure.in: renamed --disable-device-lib-build in
4018         --disable-device-lib; added --enable-doc, the required tools are
4019         searched by configure; added result message; the toolchain for the
4020         belonging ports are now only built, if the port is enabled.
4021
4022         * support/regression/*: all output is written in directory gen, because
4023         the fwk and ports directories don't livet in the build tree using vpath
4024
4025         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4026         --disable-device-lib, added --enable-doc, added section VPATH
4027
4028         * sim/ucsim/configure.in,
4029         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4030         z80 are enabled by default
4031
4032 2006-04-24 Raphael Neider <rneider AT web.de>
4033
4034         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4035             to config word, "pic14_"-prefixed some extern functions
4036           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4037             config word has been found
4038         * src/pic/device.h: added prototypes
4039         * src/pic/pcode.c: added "pic14_"-prefix where needed
4040         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4041             fixup
4042         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4043             words,
4044           (pic14emitRegularMap): ignore config words,
4045           (pic14createInterruptVect): moved generating __config directives away
4046           (picglue): have __config directives emitted
4047
4048 2006-04-24 Borut Razem <borut.razem AT siol.net>
4049
4050         * doc/Makefile: sync with nightly build makefile
4051
4052 2006-04-24 Raphael Neider <rneider AT web.de>
4053
4054         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4055             registers that have not been assigned proper liveranges,
4056             fixes #1469504 and #1474602,
4057           (pCodeRegOptimizeRegUsage): fixed typo in comment
4058
4059 2006-04-24 Borut Razem <borut.razem AT siol.net>
4060
4061         * device/examples/main8051.c: deleted - it was removed from CVS
4062           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4063           after the transition to Subversion
4064         * src/SDCCalloc.h: deleted - it was removed  from CVS
4065           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4066           after the transition to Subversion
4067         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4068           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4069           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4070           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4071
4072 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4073
4074         * as/asx8051.dsp: added mcs51/strcmpi.h
4075         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4076         * as/hc08/aslink.h: updated lnksect prototype
4077         * as/hc08/asm.h,
4078         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4079         * as/hc08/asmain.c,
4080         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4081           (newdot): handle A_ABS
4082         * as/hc08/asout.c,
4083         * as/mcs51/asout.c (outarea): output address
4084         * as/hc08/lkaomf51.c,
4085         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4086         * as/hc08/m08pst.c,
4087         * as/mcs51/i51pst.c,
4088         * as/z80/z80pst.c: "ABS" is not A_OVR
4089         * as/hc08/lkarea.c (newarea): read a_addr,
4090           (lnkarea): added codemap array, sort absolute areas to the front,
4091            combine all GSINITx/GSFINAL,
4092           (find_empty_space, allocate_space): new functions,
4093           (lnksect): return next address, handle absolute sections
4094         * as/mcs51/lkarea.c (newarea): read a_addr,
4095           lnksect2 prototype changed,
4096           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4097           (find_empty_space, allocate_space): new, factored out of lnksect2,
4098           (lnksect2): return next address, handle absolute sections
4099         * as/hc08/lkhead.c,
4100         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4101         * as/hc08/lklibr.c (addfile, fndsym),
4102         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4103           index out of range and detect both '\' and '/'
4104         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4105         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4106           regression tests (ds390 cannot return bool yet)
4107         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4108           document critical interrupts on z80, document changed SDCC define
4109         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4110           (_a390_mapping): added .org directive
4111         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4112           (genMultOneByte): fixed warnings
4113         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4114           ones
4115         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4116         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4117           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4118         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4119         * src/pic16/main.c: removed newReg prototype
4120         * src/pic16/pcode.c,
4121         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4122           warnings
4123         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4124           ones
4125         * src/pic16/ralloc.c
4126         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4127           to fix warnings
4128         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4129           from short to PIC_OPTYPE
4130         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4131         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4132           optype from short to PIC_OPTYPE
4133         * src/port.h: made int_size unsigned to fix warnings
4134         * src/SDCC.y: fixed warning on MSVC
4135         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4136         * src/SDCCopt.c (convertToFcall): fixed warnings
4137         * src/SDCCsymt.h: removed double prototype for genSymName
4138         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4139           offset int to fix warnings
4140
4141 2006-04-22 Borut Razem <borut.razem AT siol.net>
4142
4143         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4144           references to CVS replaced with Subversion
4145
4146 2006-04-21 Borut Razem <borut.razem AT siol.net>
4147
4148         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4149           references to CVS replaced with Subversion
4150
4151 2006-04-19 Borut Razem <borut.razem AT siol.net>
4152
4153         * src/version.awk: adapted for svn
4154         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4155           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4156           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4157           /binutils-avr/etc/*.vi, *.jin: removed all properties
4158           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4159
4160 2006-04-19 Borut Razem <borut.razem AT siol.net>
4161
4162         * CVS to Subversion migration completed
4163
4164 2006-04-18 Borut Razem <borut.razem AT siol.net>
4165
4166         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4167           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4168
4169 2006-04-17 Borut Razem <borut.razem AT siol.net>
4170
4171         * device/include/Makefile.in: added pic/*.inc to the installation
4172
4173 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4174
4175         * support/regression/collate-results.py: fixed output in case of
4176         a valdiag error
4177         * support/regression/generate-cases.py: fixed splitting of pathnames
4178         with dots
4179         * as/hc08/lklibr.c (addfile),
4180         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4181
4182 2006-04-11 Raphael Neider <rneider AT web.de>
4183
4184         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4185         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4186         * src/pic16/pcode.c (assignValnums): fixed #1460578
4187
4188 2006-04-11 Raphael Neider <rneider AT web.de>
4189
4190         * device/lib/pic/libdev/*.c,
4191         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4192           fixes #1468739, enables compilation in --std-c99 mode
4193         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4194
4195 2006-04-11 Raphael Neider <rneider AT web.de>
4196
4197         * src/pic/device.c (find_device): removed debug output
4198           (list_valid_pics): enabled verbose listing of supported devices
4199         * device/include/stdbool.h: define bool as char for pic14/16 as well
4200
4201 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4202
4203         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4204
4205 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4206
4207         * .version: bumped version to 2.5.6
4208         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4209
4210 2006-04-06 Raphael Neider <rneider AT web.de>
4211
4212         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4213         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4214         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4215           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4216             pic14_constructAbsMap
4217           (pic14printPublics): declare absolute global symbols as global
4218           (pic14createInterruptVect),
4219         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4220           (newReg): assume new registers unused, use correct name in
4221             hashtable (reg->name instead of name), more debugLog output
4222         * src/pic/device.h (PIC_device): added fields for verbose output
4223         * src/pic/device.c: moved device definition to pic14devices.txt,
4224             added routines for runtime parsing of pic14devices.txt,
4225             added support for second config word
4226         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4227           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4228           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4229           (_pic14_parseOptions): moved pCodeInitRegisters here
4230           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4231         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4232           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4233             handling the pseudo stack
4234         * device/lib/Makefile.in: ignore failures in objects-pic16,
4235         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4236         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4237         * device/lib/pic/Makefile.subdir,
4238         * device/lib/pic16/Makefile.subdir: improved clean rules
4239         * device/lib/pic/libdev/: NEW, pic14 device libraries
4240         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4241         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4242         * device/include/Makefile.in: create subdir and install pic14 headers
4243         * device/include/pic/p16f_common.inc: removed unused declarations
4244         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4245             PICs from inc2h.pl v1.6,
4246             replaced BIT_AT macros with struct declarations
4247         * device/include/pic/pic14devices.txt: definition of supported devices,
4248             all above improvements contributed by Zik Saleeba, thanks
4249         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4250         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4251             headers
4252
4253 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4254
4255         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4256         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4257           thanks to Charles Olds
4258
4259 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4260
4261         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4262
4263 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4264
4265         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4266         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4267         * support/regression/bug1464657.c: added, new test
4268
4269 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4270
4271         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4272           version number
4273
4274 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4275
4276         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4277           --no-peep and --peep-file <file> are used don't use default rules but
4278           do use the <file>
4279
4280 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4281
4282         * src/mcs51/gen.c (genCall): fixed bug 1457608
4283
4284 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4285
4286         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4287         changes seem to cause (trigger?) problems with the build system.
4288
4289 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4290
4291         * src/SDCCpeeph.c (operandsLiteral): new, added,
4292           (callFuncByName): inserted operandsLiteral
4293         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4294
4295 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4296
4297         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4298         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4299
4300 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4301
4302         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4303           implemented patch 1120823 Thanks to Willy De la Court (normal
4304           interrupts need an interrupt number now if they are made critical),
4305           and enabled nesting of critical functions though not for gbz80
4306           (genCritical, genEndCritical): added functions
4307           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4308         * src/z80/mappings.i: added "ei" to all mappings
4309
4310 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4311
4312         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4313         submitted by the Debian SDCC maintainer Aurelien Jarno:
4314         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4315         archive with gcc 4.1 on mips and wrote the patch"
4316
4317 2006-03-16 Raphael Neider <rneider AT web.de>
4318
4319         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4320           the left operand is shorter than the result (c* = lit-c* + int),
4321           fixes bug #1450796
4322         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4323           OP_SYMBOL
4324
4325 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4326
4327         * src/.version: increased version number to 2.5.5
4328         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4329         linking is done manually in pic16 port's _linkEdit,
4330         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4331         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4332         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4333         allocate asmop as AOP_ACC,
4334         (aopForRemat): added parameter 'bool result' in function declaration,
4335         (pic16_aopGet): return AOP_ACC when accessing WREG,
4336         (pic16_popGetTempReg): minor modification,
4337         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4338         'pic16_allocWithIdx',
4339         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4340         calling function in absolute addresses,
4341         (genAssign): take into account AOP_ACC asmop,
4342         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4343         * src/pic16/pcoderegs.c: some debug functions and lines added,
4344         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4345         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4346         register too,
4347         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4348         call to allocReg, not by manually allocating a new one,
4349         (pic16_assignRegisters): now before going through the register
4350         allocating functions mark all registers as free. This eliminates some
4351         side effects resulting from peephole parser done earlier in the backbone
4352
4353 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4354
4355         * src/SDCCicode.c (geniCodeLogic),
4356         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4357
4358 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4359
4360         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4361           (genSend): bugfix, do not allocate and free twice,
4362           (shiftRLong): handle partially overlapping aops
4363         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4364
4365 2006-03-08 Borut Razem <borut.razem AT siol.net>
4366
4367         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4368           for pic16
4369
4370 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4371
4372         * support/regression/tests/bug1409955.c: new, added
4373         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4374         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4375           (aopForSym, aopOp): increment asmop.allocated if reused,
4376           (freeAsmop): decrement asmop.allocated and check for zero instead of
4377           using asmop.freed,
4378           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4379           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4380            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4381            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4382            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4383            genSignedRightShift, genRightShift, genDataPointerGet,
4384            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4385            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4386             in reverse order from allocation,
4387           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4388             added swappedLR to keep track
4389         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4390           pdata & code for GCC, z80, gbz80 & hc08
4391         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4392
4393 2006-03-08 Raphael Neider <rneider AT web.de>
4394
4395         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4396
4397 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4398
4399         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4400         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4401         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4402
4403 2006-03-06 Borut Razem <borut.razem AT siol.net>
4404
4405         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4406           made the linker quiet
4407
4408 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4409
4410         * src/pic16/gen.c (genPcall): fixed bug #1443644
4411         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4412         which dumps before the function entry point a data byte which represents
4413         the number of the local variables used by the specified function, added
4414         'xinst' for initial support for Extended Instruction Support,
4415         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4416         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4417         port->fun_prefix anymore (may change later),
4418         (genFunction, genEndFunction): do not store/restore local registers for
4419         _main (this should take care the --main-return command line option in
4420         the future),
4421         (genOr): removed some legacy pic-port instructions,
4422         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4423         performing operations with SFR's causes data to be written more than
4424         once to each SFR. Perhaps SFRs should be handled in special cases...
4425         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4426         pcode.h
4427         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4428         into account for stack starting position,
4429         (struct OPTIONS pic16_optionsTable): added command line argument
4430         --extended or -y for Extended Instruction Support,
4431         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4432         (deassignLRs): *** perhaps the most important change, old 'for' code
4433         (commented out for reference), didn't account for some registers which
4434         were left marked 'not free' after a pointer operation. The change
4435         reduces register usage a lot in some cases
4436
4437 2006-03-04 Borut Razem <borut.razem AT siol.net>
4438
4439         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4440           _clean
4441         * support/regression/tests/bug-524697.c: decreased array size for
4442           mcs51 to fit into the internal RAM
4443         * support/regression/Makefile.in: a little bit more verbose
4444
4445 2006-03-03 Borut Razem <borut.razem AT siol.net>
4446
4447         * support/regression/fwk/lib/testfwk.c,
4448           support/regression/fwk/include/testfwk.h: introduced function
4449           _prints(), nonrecursive _printn(), call _initEmu() from main()
4450         * support/regression/ports/gbz80/support.asm,
4451           support/regression/ports/ucz80/support.asm,
4452           support/regression/ports/z80/support.asm,
4453           support/regression/ports/ds390/support.c,
4454           support/regression/ports/hc08/support.c,
4455           support/regression/ports/host/support.c,
4456           support/regression/ports/mcs51/support.c,
4457           support/regression/ports/xa51/support.c: added empty _initEmu()
4458           function
4459         * support/regression/ports/pic16/gpsim.cmd,
4460           support/regression/ports/pic16/spec.mk,
4461           support/regression/ports/pic16/support.c,
4462           support/regression/Makefile.in: added pic16 regression test
4463
4464 2006-03-01 Raphael Neider <rneider AT web.de>
4465
4466         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4467           genConstPointerGet): use safe way of generating MOVFF to cover
4468             literals as well as registers, fixes bug #1440527
4469         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4470             dereference
4471           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4472             more correctly, fixes bug #1232186
4473           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4474         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4475             gplink guess the correct processor in more cases, applied patch
4476             from Till Riedel attached to and fixing bug #1436552
4477
4478 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4479
4480         * support/regression/tests/array.c: added, contains check for #1434401
4481         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4482
4483 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4484
4485         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4486         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4487         * device/include/mcs51/c8051f326.h,
4488         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4489         * device/include/mcs51/c8051f000.h,
4490         * device/include/mcs51/c8051f018.h,
4491         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4492           PCON_IDLE,PCON_STOP and added sfr16 definitions
4493
4494 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4495
4496         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4497           genGetWord): fixed bug 1409955
4498
4499 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4500
4501         * device/include/hc08/mc68hc908gp32.h,
4502         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4503
4504 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4505
4506         * src/SDCCast.c (constExprValue): return NULL if not a value
4507         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4508         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4509         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4510
4511 2006-02-13 Borut Razem <borut.razem AT siol.net>
4512
4513         * src/regression/ptrarg.c: added, fails due to bug #1430967
4514         * src/regression/Makefile: ptrarg.c added, ...
4515
4516 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4517
4518         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4519         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4520
4521 2006-02-11 Borut Razem <borut.razem AT siol.net>
4522
4523         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4524           print "Processor: xxx" message to stdout only if --verbose
4525
4526 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4527
4528         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4529         * support/regression/tests/bug1426356.c: added
4530         * support/regression/tests/bitfields.c: removed 2 tests
4531
4532 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4533
4534         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4535         * device/include/mcs51/c8051f330.h,
4536         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4537           PCON_IDLE,PCON_STOP and added sfr16 definitions
4538         * device/lib/_divsint.c,
4539         * device/lib/_divuint.c,
4540         * device/lib/_divulong.c,
4541         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4542           register bank bug for small stackauto
4543
4544 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4545
4546         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4547
4548 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4549
4550         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4551         * all.dsp: corrected several bin paths
4552         * device/include/mcs51/c8051f120.h,
4553         * device/include/mcs51/c8051f300.h,
4554         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4555           to PCON_IDLE,PCON_STOP
4556         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4557         * device/lib/printf_large.c (output_float): fixed bug 1388703
4558         * support/regression/tests/bug1057979.c: added test for bug 1388703
4559
4560 2006-02-08 Raphael Neider <rneider AT web.de>
4561
4562         * src/pic/pcode.c (pciTRIS): fixed typo,
4563           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4564           (LinkFlow): fixed handling of flows that end in a call,
4565           (ReuseReg): perform safety check earlier
4566         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4567             to work with flows at the beginning of a pBlock,
4568             fixes #1426557 (Symbol not previously defined),
4569           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4570             usage information
4571           (RemoveUnusedRegisters): update register usage info
4572         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4573             created, reuse existing ones instead
4574         * src/pic/gen.c (genPcall): fixed #1424719
4575
4576 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4577
4578         * link/z80/lkmain.c,
4579         * link/z80/lklex.c,
4580         * link/z80/lkdata.c,
4581         * link/z80/aslink.h: fixed build on current cygwin:
4582         replaced getline() by lk_getline()
4583
4584 2006-02-01 Borut Razem <borut.razem AT siol.net>
4585
4586         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4587           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4588           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4589           src/regression/bool1.c, src/regression/bool2.c,
4590           src/regression/bool3.c, src/regression/call1.c,
4591           src/regression/compare.c, src/regression/compare10.c,
4592           src/regression/compare2.c, src/regression/compare3.c,
4593           src/regression/compare4.c, src/regression/compare5.c,
4594           src/regression/compare6.c, src/regression/compare7.c,
4595           src/regression/compare8.c, src/regression/compare9.c,
4596           src/regression/configword.c, src/regression/for.c,
4597           src/regression/inline.c, src/regression/mult1.c,
4598           src/regression/nestfor.c, src/regression/or1.c,
4599           src/regression/pointer1.c, src/regression/ptrfunc.c,
4600           src/regression/rotate1.c, src/regression/rotate2.c,
4601           src/regression/rotate3.c, src/regression/rotate4.c,
4602           src/regression/rotate5.c, src/regression/rotate6.c,
4603           src/regression/rotate7.c, src/regression/string1.c,
4604           src/regression/struct1.c, src/regression/sub.c,
4605           src/regression/sub2.c, src/regression/switch1.c,
4606           src/regression/while.c, src/regression/xor.c,
4607           src/regression/create_stc, src/regression/simulate,
4608           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4609           regression tests
4610         * src/regression/gpsim_assert.h: added
4611
4612 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4613
4614         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4615         ((void (code *) (void)) 0) ();
4616         * as/hc08/aslex.c,
4617         * as/hc08/aslink.h,
4618         * as/hc08/asm.h,
4619         * as/hc08/asmain.c,
4620         * as/hc08/lkdata.c,
4621         * as/hc08/lklex.c,
4622         * as/hc08/lkmain.c,
4623         * as/mcs51/aslex.c,
4624         * as/mcs51/aslink.h,
4625         * as/mcs51/asm.h,
4626         * as/mcs51/asmain.c,
4627         * as/mcs51/lkdata.c,
4628         * as/mcs51/lklex.c,
4629         * as/mcs51/lkmain.c,
4630         * as/z80/aslex.c,
4631         * as/z80/asm.h,
4632         * as/z80/asmain.c: fixed build on current cygwin:
4633         replaced getline() by as_getline()
4634
4635 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4636
4637         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4638         declarator in the symbol chain
4639         * src/SDCCsymt.h,
4640         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4641         parameter list for function pointers
4642         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4643         * support/regression/tests/bug-716242.c: added
4644
4645 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4646
4647         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4648         offset if possible
4649         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4650
4651 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4652
4653         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4654         inifinitely recurseable, added static
4655         * support/regression/tests/bug-1408066.c: added
4656
4657 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4658
4659         * src/SDCCicode.h,
4660         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4661         renamed, added possibility to create "postLoopLbl"-labels
4662         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4663         newiTempLoopHeaderLabel
4664         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4665         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4666         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4667         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4668         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4669         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4670         (basicInduction): fixed bug #136564, made static,
4671         (loopInduction): changed parameter of basicInduction, made static,
4672         (addPostLoopBlock): added
4673         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4674         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4675         findLoopEndSeq
4676         * support/regression/tests/bug-136564.c: added
4677         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4678         --std-sdcc99 to LIBSDCCFLAGS
4679
4680 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4681
4682         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4683         while loop
4684         * support/regression/tests/bug-1406131.c: added
4685
4686 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4687
4688         * src/SDCCast.c (decorateType): fix promotion of unary minus
4689         * src/SDCCsymt.c (computeType): beautified
4690         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4691         (valUnaryPM, valComplement): fix sign and promotion,
4692         (valNot): ANSI: result type is int (SDCC: unsigned char)
4693         * support/regression/tests/uminus.c: speedup by removing superflous
4694         test case 'int'
4695         * support/regression/tests/onebyte.c: added promotion and signedness
4696         tests for unary minus
4697         * support/regressions/tests/bug-477927.c: disable warning about
4698         uninitialized variables
4699         * support/regression/tests/not.c: added
4700
4701 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4702
4703         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4704         * src/mcs51/gen.c (gen51Code): show final register usage after
4705         fillGaps in asm with --i-code-in-asm
4706         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4707         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4708         incUsed, rliveClear, adjustIChain): made static,
4709         (setFromRange): excluded because it's unused,
4710         (findPrevUseSym, markWholeLoop): added,
4711         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4712         through all branches of predecessors enables sdcc to emit the warning
4713         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4714         (rlivePoint): made static, added parameter emitWarnings which is only
4715         true during the first run out of two,
4716         (findRecursiveSucc, findRecursivePred): removed,
4717         (computeLiveRanges): made static, added parameter emitWarnings,
4718         (dumpIcRlive): added for debugging only
4719         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4720         removed prototype of setFromRange()
4721         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4722         in call of computeLiveRanges()
4723         * support/regression/tests/bug-895992.c: added
4724         * support/regression/tests/bug-971834.c: added
4725         * support/valdiag/tests/bug-895992.c: added
4726         * support/valdiag/tests/bug-971834.c: added
4727
4728 2005-12-18 Raphael Neider <rneider AT web.de>
4729
4730         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4731           (genUnpackBits): improved code for direct operands,
4732           (genPackBits): improved code for literal assignment to bitfields
4733             and for direct destination operands (no FSR indirection),
4734             prevented redundant AND, fixes #1362800,
4735           (AccLsh): added parameter to disable masking of the result
4736         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4737           skip instructions with side-effects (like incfsz),
4738           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4739         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4740         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4741           fixes #1375263
4742
4743 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4744
4745         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4746         volatile variables as spill location
4747
4748 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4749
4750         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4751         replacing literals
4752         * support/regression/tests/bug-1376320.c: added
4753
4754 2005-12-08 Raphael Neider <rneider AT web.de>
4755
4756         * src/pic/device.c: renamed is_shared to pic14_is_shared
4757         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4758         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4759           (is_valid_identifier): added for above workaround
4760
4761 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4762
4763         * device/lib/Makefile.in: fixed to enable port-specific-objects
4764         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4765           char, thanks Hubert Sack
4766         * doc/sdccman.lyx: documented --xstack-loc,
4767           elaborated a bit more on interrupts and pitfalls,
4768           removed "setjmp/longjmp unsupported",
4769           documented some unsupported C99 features
4770         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4771         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4772           if, thanks Hubert Sack
4773         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4774         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4775           make make_library
4776         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4777           regression tests can report resource usage (rfe 700441)
4778         * support/regression/collate-results.py: report resource usage
4779         * support/regression/ports/ds390/spec.mk,
4780         * support/regression/ports/hc08/spec.mk,
4781         * support/regression/ports/mcs51/spec.mk,
4782         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4783         * support/regression/ports/ds390/uCsim.cmd,
4784         * support/regression/ports/hc08/uCsim.cmd,
4785         * support/regression/ports/mcs51/uCsim.cmd,
4786         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4787         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4788           library, use the default one
4789         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4790           building the library
4791
4792 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4793
4794         * config.dsp: added dependency on .version and configure_vc.awk
4795         * device/include/setjmp.h: updated for --stack-auto and --xstack
4796         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4797         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4798         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4799         * device/lib/libsdcc.lib: added _setjmp
4800         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4801           (decorateType): fixed bug 1372851,
4802           (optimizeGetHbit): fixed warning
4803         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4804           array initialisation
4805         * support/regression/tests/bug1057979.c: added test for bug 1358192
4806         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4807
4808 2005-12-03 Borut Razem <borut.razem AT siol.net>
4809
4810         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4811           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4812
4813 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4814
4815         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4816         createIval): implement symbol independant "flexible array member",
4817         (createIvalCharPtr): implemented flexible array initialisation with a
4818         string
4819         * src/SDCCsymt.c (copyStruct): removed,
4820         (getSize): fixed misleading comment,
4821         (getAllocSize): removed, the additional allocation size is now in
4822         sym->flexArrayLength,
4823         (checkStructFlexArray): new, syntax checks for flexible array members,
4824         (compStructSize): added syntax checks for "flexible array members"
4825         (copyStruct): removed,
4826         (copyLinkChain): removed inefficient fix for bug 770487
4827         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4828         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4829         symbol->flexArrayLength
4830         * src/SDCCerr.c,
4831         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4832         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4833         * support/regression/tests/structflexarray.c: added
4834         * support/valdiag/tests/structflexiblearray.c: added
4835
4836 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4837
4838         * src/SDCCast.c (decorateType): fixed bug 1368489
4839         * support/Util/SDCCerr.c,
4840         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4841
4842 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4843
4844         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4845           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4846
4847 2005-11-27 Borut Razem <borut.razem AT siol.net>
4848
4849         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4850           support/cpp2/mkdeps.h: added command line option
4851           -obj-ext=<extension> to SDCPP to define object file externion, used
4852           for generation of make dependencies (-M)
4853         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4854
4855 2005-11-26 Borut Razem <borut.razem AT siol.net>
4856
4857         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4858           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4859           added pic and pic16 libraries
4860
4861 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4862
4863         * device/include/float.h: Corrected typo in prototype of __fsgt
4864
4865 2005-11-25 Borut Razem <borut.razem AT siol.net>
4866
4867         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4868           added creation of model-mcs51-stack-auto libraries
4869
4870 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4871
4872         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4873         and fields-list too
4874         * src/SDCCast.c (createIvalArray): removed obsolete comment
4875
4876 2005-11-24 Borut Razem <borut.razem AT siol.net>
4877
4878         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4879           added missing device/lib/mcs51/crt*.asm sources
4880
4881 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4882
4883         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4884
4885 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4886
4887         * device/lib/_fs2schar.c,
4888         * device/lib/_fs2sint.c,
4889         * device/lib/_fs2slong.c: optimized inline asm
4890
4891 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4892
4893         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4894           Better handling of floats between -1.0 and 0.0.
4895
4896 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4897
4898         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4899           (the missing "if"s prohibited removal of redundant labels)
4900
4901 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4902
4903         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4904           Properly convert floats between -1.0 and 0.0 to long, int, and char
4905           types (max integer value of negative floats tends to zero).
4906         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4907           Removed changes made so to work properly with floats between
4908           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4909           and _fs2char.c
4910
4911 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4912
4913         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4914         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4915         (genCast) cosmetic change
4916         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4917         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4918         from mcs51
4919         * support/regression/tests/bitfields (testSignedBitfields): added
4920
4921 2005-11-18 Borut Razem <borut.razem AT siol.net>
4922
4923         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4924         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4925           introduced SILENT option to make building of pic16 libraries less
4926
4927 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4928
4929         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4930           Now they work properly with floats between -1.0 and 0.0
4931         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4932
4933 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4934
4935         * src/SDCCicode.c (printOperand): added missing else
4936
4937 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4938
4939         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4940         reformatted for better readability
4941         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4942         signed bitfields
4943
4944 2005-11-17 Borut Razem <borut.razem AT siol.net>
4945
4946         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4947           introduced SILENT option to make building of pic16 libraries less
4948           verbose - used for nightly snapshot build
4949         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4950           available on Win32 platforms.
4951         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4952           medium, large, pic and pic16
4953
4954 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4955
4956         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4957           printf("%f"...) sets fraction to zero.
4958
4959 2005-11-16 Raphael Neider <rneider AT web.de>
4960
4961         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4962           fixes #1357221
4963         * src/pic/gen.c (genIfx): implemented for CARRY bit
4964         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4965           to generic pointers, fixes #1357332,
4966           (pic16_movLit2f): NEW,
4967           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4968
4969 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4970
4971         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4972
4973 2005-11-11 Raphael Neider <rneider AT web.de>
4974
4975         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4976         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4977           compute pointer's type from operand,
4978           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4979           improved single bit reads, fixes bug #1353379
4980
4981 2005-11-09 Borut Razem <borut.razem AT siol.net>
4982
4983         * support/scripts/sdcc.nsi: added lib/pic to the package
4984
4985 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4986
4987         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4988
4989 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4990
4991         * support/regression/tests/bug1348008.c: added
4992         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4993         * support/regression/tests/bug1337835.c: updated comment
4994
4995 2005-11-06 Borut Razem <borut.razem AT siol.net>
4996
4997         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4998           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4999           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5000           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5001           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5002           dynamic construction of cl_error_class and derivates - 2.nd try
5003
5004 2005-11-05 Borut Razem <borut.razem AT siol.net>
5005
5006         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5007           bug, which caused Bus Errors on sparc solaris
5008
5009 2005-11-04 Borut Razem <borut.razem AT siol.net>
5010
5011         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5012           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5013           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5014           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5015           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5016           and derivates to resolve the initialization problem on OSX
5017
5018 2005-11-02 Borut Razem <borut.razem AT siol.net>
5019
5020         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5021           corrected typo - #include <winsock2.h>
5022
5023 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5024
5025         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5026           (_asxxxx_mapping): added org directive for future enhancements
5027
5028 2005-11-01 Borut Razem <borut.razem AT siol.net>
5029
5030         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5031           enabled sockets on WIN32
5032         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5033
5034 2005-10-31 Borut Razem <borut.razem AT siol.net>
5035
5036         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5037           WIN32 backslash path delimiters should be escaped when used in C strings
5038         * support/regression/tests/bitfields.c: exclude failing assertions for
5039           __CYGWIN32__ and __MINGW32__ hosts
5040
5041 2005-10-30 Borut Razem <borut.razem AT siol.net>
5042
5043         * src/SDCCutil.c: corrected double comparison typo
5044
5045 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5046
5047         * device/lib/medium/Makefile: added for new memory model medium
5048         * device/include/asm/mcs51/features.h: updated for medium/pdata
5049         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5050           added Multiply & Accumulate sbit's and MAC0_PAGE define
5051         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5052         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5053         * device/lib/_mullong.c: update for medium model
5054         * device/lib/incl.mk: added medium model
5055         * doc/sdccman.lyx: documented medium model
5056         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5057         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5058         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5059         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5060           (allocParms): set SCLS and OCLS to pdata for medium model
5061         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5062           for pdata,
5063           (powof2): return <0 if not power of 2
5064         * src/avr/gen.c (genBitWise): use updated powof2
5065         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5066           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5067           (shiftLLeftOrResult): use B if necessary
5068         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5069         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5070         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5071         * support/regression/Makefile.in: added test-mcs51-medium
5072         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5073
5074 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5075
5076         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5077         specifier unsigned
5078         * device/lib/time.c (mktime): fixed bug 1334315
5079
5080 2005-10-28 Raphael Neider <rneider AT web.de>
5081
5082         * device/include/pic/p16f_common.inc: added common declarations
5083         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5084
5085 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5086
5087         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5088           (aopPutUsesAcc): added to predict accumulator use,
5089           (assignResultValue): save acc if necessary,
5090           (genMinusDec): store result if indirectly addressed,
5091           (genDivOneByte):  save acc if necessary,
5092           (movLeft2Result): bugfix if left already in acc,
5093           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5094             attention to accumulator use (esp. pdata),
5095           (genReceive): receive pdata correctly
5096         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5097         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5098
5099 2005-10-27 Raphael Neider <rneider AT web.de>
5100
5101         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5102
5103 2005-10-27 Raphael Neider <rneider AT web.de>
5104
5105         * .version: changed version to 2.5.4
5106         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5107         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5108           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5109             arithmetics support routines
5110         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5111         * device/lib/Makefile.in: also create installdir for pic
5112
5113         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5114           pic14 port as well
5115         * src/pic/device.c (dump_sfr): rewritten to delegate register
5116           placement to the linker (use `extern sym' rather than sym EQU addr),
5117           (validAddress): fixed to check last specified address
5118         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5119           (popGetLit): truncate literal value to 8 bit,
5120           (popGet): moved assert to more appropriate place
5121           (popGetExternal): create pCode operand from and mark the according
5122             symbol as being `extern'
5123           (popGetAddr): added sanity check on immediate's offset, provide
5124             GPOINTER tag on demand
5125           (aopPut): fixed for immediates,
5126           (mov2w_op): move operand's address or contents to WREG (depending on
5127             operand type), safer variant of mov2w,
5128           (movwf,call_libraryfunc): NEW, handy abbreviations,
5129           (get_argument_pcop,get_return_val_pcop,pass_argument,
5130           get_returnvalue): interface for accessing function parameters and
5131             return values,
5132           (assignResultValuei,genRet): use new parameter/return value interface
5133           (pic14_getDataSize): back to old version handling generic pointers,
5134           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5135             provided implementation and/or fixed old one,
5136           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5137             calls, removed legacy 8051 reference code
5138           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5139           (loadSignToC): NEW, move the operands sign bit to CARRY,
5140           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5141             genRightShiftSigned, accepts negative shift counts,
5142           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5143           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5144             generic pointers, __data pointers and __code pointers,
5145           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5146             and signed bitfields, limit bitfields to 8 bit,
5147           (genDataPointerGet): fixed number of bytes read,
5148           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5149           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5150             pointers to constant data are no longer assumed to point to __code
5151             space, removed invalid pointer types,
5152           (bitpatternFromVal): retrieve the PICs representation of an integer
5153             or float literal,
5154           (genDataPointerSet): fixed assigning to po_immediate operands,
5155           (genGenPointerSet): implemented as library call,
5156           (genIfx): fixed incorrect condition,
5157           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5158             provide GPOINTER tag according to destination's storage class,
5159           (genCast): added code to handle casting to generic pointers, added
5160             sign-/zero extension of the result
5161           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5162         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5163         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5164           extend the result
5165         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5166           address/register resides in the shared banks
5167           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5168             put all variables into separate sections (have the linker arrange
5169             them)
5170           (picglue): put init code and interrupt handlers in separate sections
5171         * src/pic/main.c: added port specific options table, modified to PORT
5172           structure to make GPOINTERs 3 byte, added pic14_options
5173           (_pic14_do_link): private linking routine (update paths to libraries,
5174             add libsdcc.lib by default)
5175         * src/pic/main.h: declare pic14_options
5176         * src/pic/pcode.c: fixed instructions i/o relations,
5177           (RegCond): reverted to correct version,
5178           (newpCodeOpLit): truncate literals to 8 bit,
5179           (genericPrint): added debug output,
5180           (getRegFromInstruction): fixed for various operand types, simplified
5181           (BuildFlow): fixed broken handling of isntructions with labels
5182           (LinkFlow): start at last instruction in flow (skip trailing comments),
5183             pass the flow on to the next instruction after CALL
5184           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5185           (insertPCodeInstruction): fixed inserting after a skip instruction,
5186           (DoBankSelect): fixed for labeled instructions
5187           (OptimizepBlock): honor --nopeep switch
5188           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5189         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5190         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5191           (pCodeOptime2pCodes): allow disabling this optimization via
5192             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5193             but is still buggy), started implementation of a dataflow based
5194             pCode optimization (CSE + dead code elimination)
5195           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5196         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5197           names are independant of the stack location and therefore portable across
5198           devices
5199
5200 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5201
5202         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5203           (selectSpil): fixed bug 1337835 by not spilling bit variables
5204         * support/regression/tests/bug1337835.c: added test for this bug
5205         * src/mcs51/peeph.def: restart after rule 3.c,
5206           addded rules 263.x to optimize loading constants
5207
5208 2005-10-26 Raphael Neider <rneider AT web.de>
5209
5210         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5211         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5212           (genAssign): emit warning when casting literals to generic pointer
5213             type, also applies when taking the address of a fixed variable,
5214           (genCast): improved casting to generic pointers
5215         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5216           extern variables, added verbose error message
5217         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5218
5219 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5220
5221         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5222         carry must be complemented too
5223         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5224         could be emitted by genMinus
5225         * src/SDCCval.c (constVal): fixed bug 1305065
5226
5227 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5228
5229         * src/SDCCast.c (addCast): added promotion for bit variables
5230         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5231         promotion casts + optimisation
5232         (optimizeGetWord): fix warning 'i' might be used uninitialized
5233         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5234         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5235
5236 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5237
5238         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5239         all chars are promoted to int; promotion should be handled in SDCCast.c
5240
5241 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5242
5243         * device/lib/_strcmp.c: Fixed bug 1326457
5244
5245 2005-10-11 Raphael Neider <rneider AT web.de>
5246
5247         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5248         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5249
5250 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5251
5252         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5253         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5254
5255 2005-10-04 Raphael Neider <rneider AT web.de>
5256
5257         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5258           device/lib/pic16/pics.all: added pic18f1320
5259         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5260
5261 2005-09-30 Raphael Neider <rneider AT web.de>
5262
5263         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5264         * src/pic16/devices.inc: NEW, provides device descriptions
5265         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5266
5267 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5268
5269         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5270           GETHBIT
5271
5272 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5273
5274         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5275           documented Any Order Bit, Higher Order Byte and Higher Order Word
5276         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5277         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5278           (optimizeGetAbit): new, to get any bit, not only the high bit,
5279           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5280           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5281           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5282           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5283             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5284             GETABIT, GETBYTE, GETWORD: decorate them,
5285           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5286           (ast_print): added GETABIT, GETBYTE, GETWORD
5287         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5288         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5289           (geniCodeBinary): new generic binary icode,
5290           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5291         * src/port.h: updated comment for PORT.hasExtBitOp
5292         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5293           (genGetByte): new, to get a single byte,
5294           (genGetWord): new, to get a word from a long,
5295           (gen51Code): added GETABIT, GETBYTE, GETWORD
5296         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5297
5298 2005-09-23 Raphael Neider <rneider AT web.de>
5299
5300         * configure.in, configure: have device/lib/pic configured
5301         * device/lib/Makefile.in: added model-pic14
5302         * device/lib/clean.mk: added pic/ to clean rule
5303         * device/lib/pic: added rudimentary pic14 library providing support
5304           functions for multiplication/division/generic pointer access
5305         * src/SDCCopt.c (convilong): mark support functions as extern
5306           for pic14 port as well
5307         * src/pic/gen.c (genMult): added assertions,
5308           (genpic14Code): emit warning on unhandled iCodes
5309         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5310         * src/pic/pcode.c (pCodeOpCopy),
5311         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5312           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5313           SFR_REGISTER}), made safe for future extensions
5314         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5315           instructions even if preceeded by SKIP instructions (also remove
5316           them); removed unused code
5317         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5318           prevents leaving parts of the structure uninitialized after copying
5319
5320 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5321
5322         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5323           ago by me
5324         * support/regression/tests/addsub.c: added test for the bug
5325
5326 2005-09-21 Raphael Neider <rneider AT web.de>
5327
5328         * device/include/pic16/pic18f1220.h,
5329           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5330         * device/lib/pic16/Makefile.rules: added missing opening paren
5331         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5332           are provided in genutils.c,
5333           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5334           operand/result sizes,
5335           (genCmp): assert on NULL pointers first, then check deref'ed values
5336         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5337           result size
5338
5339 2005-09-18 Raphael Neider <rneider AT web.de>
5340
5341         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5342           as these are now unused,
5343           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5344         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5345           local, avoids uninitialized pointer dereference on r->name
5346         * src/pic16/ralloc.c (newReg): fixed indentation
5347
5348 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5349
5350         * src/SDCCval.c (constVal): fixed bug 730366
5351         * support/Util/SDCCerr.c,
5352         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5353
5354 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5355
5356         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5357
5358 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5359
5360         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5361
5362 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5363
5364         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5365           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5366         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5367           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5368         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5369         * packihx/packihx.c (hexDigit): made c unsigned char
5370         * as/mcs51/lklibr.c (fndsym),
5371         * link/z80/lkgb.c (gb),
5372         * link/z80/lklibr.c (fndsym),
5373         * link/z80/lkrloc.c (relr),
5374         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5375         * src/SDCC.lex (checkCurrFile, process_pragma),
5376         * src/SDCCglue.c (spacesToUnderscores),
5377         * src/SDCCmain.c (setParseWithComma, processFile),
5378         * src/asm.c (tvsprintf, printCLine),
5379         * src/avr/gen.c (emitcode, aopPut),
5380         * src/ds390/gen.c (emitcode),
5381         * src/hc08/gen.c (emitcode, emitinline),
5382         * src/mcs51/gen.c (emitcode, genInline),
5383         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5384           tokenizeLineNode),
5385         * src/pic/ralloc.c (debugLog),
5386         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5387           tokenizeLineNode),
5388         * src/pic16/ralloc.c (debugLog),
5389         * src/z80/main.c (_process_pragma):
5390            made all ctype.h function calls safe
5391         * src/SDCCopt.c: include math.h for fabs
5392         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5393           and used them throughout the code to make ctype.h function calls safe
5394         * src/ds390/main.c (asmLineNodeFromLineNode),
5395         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5396         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5397            unsigned char*
5398         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5399           (newpCodeAsmDir): made ctype.h function calls safe
5400         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5401           pic16_emitcode):  made lbp unsigned char*
5402         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5403           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5404         * src/xa51/gen.c (emitcode),
5405         * src/z80/gen.c (_emit2): made lbp unsigned char*
5406         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5407            char*
5408
5409 2005-09-05 Raphael Neider <rneider AT web.de>
5410
5411         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5412           access bank splitpoint
5413
5414 2005-09-05 Raphael Neider <rneider AT web.de>
5415
5416         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5417
5418 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5419
5420         * .version: changed to version 2.5.3
5421         * doc/sdccman.lyx: changed version to 2.5.3,
5422           documented --codeseg and --constseg and pragma codeseg and constseg,
5423           documented bit parameters (reentrant) and bit returning
5424         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5425            currFunc->recvSize, but is this ok for all ports?
5426           (ast2iCode): result of ~ on unsigned char must be cast to int for
5427            bool to work
5428         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5429           function pointers in bit space
5430         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5431           (processFuncArgs): call port.reg_parm() with reentrancy info
5432         * src/port.h,
5433         * src/avr/main.c,
5434         * src/ds390/main.c,
5435         * src/hc08/main.c,
5436         * src/pic/main.c,
5437         * src/pic16/main.c,
5438         * src/xa51/main.c,
5439         * src/z80/main.c: port.reg_parm prototype extended with
5440           "bool reentrant" parameter
5441         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5442           options.stackAuto for allocating bit register parameters
5443         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5444           (genSend): set BitBankUsed if it is,
5445           (selectRegBank): factored out of genCall for use in genPcall,
5446           (genCall): removed redundant dtype assignmen, use selectRegBank,
5447           (genPcall): handle returning in Carry properly, save in F0 if needed,
5448           (genReceive): handle bit register parameters
5449         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5450           (mcs51_assignRegisters): enable bit registers for all reentrant
5451            functions and don't set BitBankUsed unconditionally
5452         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5453         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5454         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5455
5456 2005-08-27 Borut Razem <borut.razem AT siol.net>
5457
5458         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5459         ppc-osx (Darwin) does not support -u option. It seems that it is
5460         supported only on Linux - GNU cp
5461
5462 2005-08-25 Borut Razem <borut.razem AT siol.net>
5463
5464         * sim/ucsim/gui.src/serio.src/Makefile.in,
5465           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5466           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5467           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5468           install and strip, since the strip at /usr/ccs/bin should be used
5469           on solaris
5470
5471 2005-08-24 Borut Razem <borut.razem AT siol.net>
5472
5473         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5474
5475 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5476
5477         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5478         ffffffffu
5479
5480 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5481
5482         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5483         * as/mcs51/lkmain.c (link_main): fixed warning
5484         * device/include/stdbool.h: ds390 has no advanced bit support yet
5485         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5486         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5487         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5488           and updated their macros
5489         * src/SDCCval.c (constVal): updated comment for renamed b_long
5490
5491 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5492
5493         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5494         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5495           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5496           (oprio): set priority for '['
5497         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5498            and adb_24_bit
5499         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5500         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5501         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5502         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5503           added overlayable BIT_BANK area
5504         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5505           (summary2): explain 'T' in legenda
5506         * as/mcs51/lkrloc.c: replaced old K&R style,
5507           (relr): added R_BIT processing,
5508           (errmsg): added "Bit-addressable relocation error",
5509           (adb_bit): added for converting from byte- to bit-addressable space,
5510           (adb_24_bit): added for converting from byte- to bit-addressable space
5511         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5512            used in reentrant functions now even as return value
5513         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5514         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5515           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5516         * src/SDCCglobl.h: added indicator BitBankUsed
5517         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5518            the bit registers b0-b7
5519         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5520           (geniCodeCast): fixed bug 1263853,
5521           (geniCodeLogicAndOr): put result in bool or char,
5522           (geniCodeReceive): added parameter func for accessing the return type,
5523           (geniCodeFunctionBody): pass func to geniCodeReceive
5524         * src/SDCCmain.c: added indicator BitBankUsed
5525         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5526         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5527           (checkSClass): don't put automatic bool/bit on stack,
5528           (checkFunction): removed check on function cannot return bit
5529         * src/SDCCsymt.h: added newBoolLink prototype
5530         * src/mcs51/gen.c (rb1regs): added bit registers,
5531           (movc): created for assigning to carry,
5532           (pushReg, popReg): created for pushing registers,
5533           (sameRegs): check both AOP_REG and AOP_CRY types,
5534           (aopOp): handle bit registers,
5535           (aopPut): optimization no self-assign,
5536           (saveRegisters): push reg->base (bits) only once for bit registers,
5537            and use pushReg,
5538           (unsaveRegisters): pop reg->base only once and use popReg,
5539           (assignResultValue): added parameter func and return in carry for bits,
5540           (genIpush): optimization no reload in A if not changed,
5541           (genSend): bit parameters in reentrant functions are passed in bit
5542            registers by first assigning to bits in B, then save registers and
5543            copy B to bits,
5544           (genCall): handle returning in Carry properly, save it in F0 if needed,
5545           (genPcall): updated assignResultValue call, this is not safe yet for bit
5546            returning function !!!
5547           (genFunction): don't generate equ's for bit registers and use pushReg,
5548           (genEndFunction): take care of bit returning functions and use popReg,
5549           (genRet): return bit in Carry,
5550           (genIfx): optimize bit registers and other directly addressable bits,
5551           (genReceive): updated assignResultValue call
5552         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5553           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5554            registers when using stack-auto
5555         * src/mcs51/ralloc.c (_G): added allBitregs,
5556           (regs8051): added the bit registers,
5557           (createStackSpil): use macro IS_BIT,
5558           (getRegBit): added to allocate a bit register, else spill,
5559           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5560           (updateRegUsage): factored out to ease stepping while debugging,
5561           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5562            also allocate bit registers,
5563           (fillGaps): handle bit registers,
5564           (findAllBitregs): added to create bit vector with all bit registers,
5565           (mcs51_allBitregs): returns this bit vector,
5566           (mcs51_assignRegisters): when using stack-auto use bit registers for
5567            passing parameters and creating local variables
5568         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5569
5570 2005-08-22 Borut Razem <borut.razem AT siol.net>
5571
5572         * device/lib/Makefile.in: replaced find option -or with -o
5573           to make it run on solaris
5574
5575 2005-08-22 Raphael Neider <rneider AT web.de>
5576
5577         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5578           fixes #1265442 (crash on Solaris)
5579
5580 2005-08-20 Borut Razem <borut.razem AT siol.net>
5581
5582         * configure, configure.in: added tests for libsocket and libnsl libraries,
5583           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5584           from support/regression/Makefile.in
5585         * support/regression/Makefile.in: added
5586         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5587         * sim/ucsim/libtool: regenerated on sparc-solaris
5588         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5589           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5590           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5591           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5592           sparc-solaris, which doesn't use GNU ld linker
5593         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5594         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5595
5596 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5597
5598         * src/mcs51/peeph.def: updated comments
5599
5600 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5601
5602         * device/lib/_gptrget.c,
5603         * device/lib/_gptrput.c: slightly shorter
5604         * doc/sdccman.lyx: incremented version
5605         * src/mcs51/peeph.def: moved peephole comments to the line of first
5606           change to better keep line correlation, reanimated 186.e
5607         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5608
5609 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5610
5611         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5612           David Saxton with quotes around file name.
5613
5614 2005-08-15 Borut Razem <borut.razem AT siol.net>
5615
5616         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5617           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5618           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5619           make tests run on x86_64 platform
5620
5621 2005-08-13 Raphael Neider <rneider AT web.de>
5622
5623         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5624           as it might be executed DURING a build (parallel make is wonderful)
5625
5626 2005-08-13 Raphael Neider <rneider AT web.de>
5627
5628         * device/lib/Makefile.in (port-specific-objects-pic16):
5629           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5630         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5631           dependency
5632         * device/lib/pic16/Makefile.rules: build subdirs before creating
5633           the library, removed builddir rule, create $(builddir) early in
5634           recurse rule, use empty recurse rule for leaf directories
5635         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5636           mkdir errors (race condition), removed duplicate suffix "hex"
5637           from clean rules
5638         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5639         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5640           prevents mkdir -p from aborting on Alpha
5641
5642 2005-08-12 Raphael Neider <rneider AT web.de>
5643
5644         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5645           db-statements in order to allow for arrays of pointers in code
5646           sections to be placed without interspersed 0-padding, fixes
5647           bug #1256215
5648         * (emitStatistics): fixed division by zero for pic18f1220
5649         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5650           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5651         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5652         * (pic16_pCodeConstString): keep track of already emitted string
5653           literals to prevent "duplicate definitions of symbol _str_NR"
5654         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5655           debug message
5656         * device/lib/Makefile.in: ignore failing PIC16 library builds
5657         * device/lib/pic16/Makefile: do not build if gputils are missing
5658         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5659
5660 2005-08-10 Raphael Neider <rneider AT web.de>
5661
5662         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5663           my last commit)
5664
5665 2005-08-10 Raphael Neider <rneider AT web.de>
5666
5667         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5668           Rokas' patch to add the new fixed point type "__fixed16x16"
5669         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5670           functions for __fixed16x16 arithmetics
5671         * device/lib/pic16: reimplemented the build system to support
5672           a separate build directory, better handling of libio (create
5673           the library in a separate subdir for each architecture) and
5674           easier configuration (centralized in Makefile.common)
5675
5676 2005-08-07 Raphael Neider <rneider AT web.de>
5677
5678         * src/pic16/gen.c (genrshTwo): fixed sign extension
5679         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5680         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5681           added T0CONbits
5682         * device/include/pic16/pic18f4220.h: NEW, header for
5683           pic18f4220 and pic18f4320
5684         * device/include/pic16/pic18fregs.h: added new devices,
5685           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5686         * device/include/pic16/signal.h: resolved name clashes
5687           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5688           to also allow testing for interrupt enable bits, added
5689           comments on how to use the macros
5690         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5691         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5692           register definitions for the devices
5693         * device/lib/pic16/pics.all: added new devices
5694         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5695           allocated memory
5696         * device/lib/pic16/libc/stdlib/memfree: do not count
5697           the block header as free memory
5698         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5699           simplified and added missing end-of-blocklist-marker
5700           (reported by Peter Onion, fixes #1252814)
5701         * (_mergeHeapBlock): fixed loop condition
5702         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5703           len==0, restructured code
5704         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5705           up a bit, reduced bitfield accesses, prevent endless loops
5706           in case of heap corruption
5707         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5708           "unreferenced arguments/must return a value" warnings
5709         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5710           replaced BAUDREG with SPBRG
5711         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5712           device/lib/pic16/debug/gstack/gstack.c: replaced
5713           _naked, _asm, _endasm with __naked, __asm, __endasm
5714
5715 2005-08-05 Raphael Neider <rneider AT web.de>
5716
5717         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5718           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5719
5720 2005-08-05 Borut Razem <borut.razem AT siol.net>
5721
5722         * device/lib/Makefile.in: added missing ';'
5723         * configure: removed ^M characters
5724
5725 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5726
5727         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5728           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5729           License
5730
5731 2005-08-04 Borut Razem <borut.razem AT siol.net>
5732
5733         * configure.in: pic16 libraries build 2nd try - enable running
5734           configure in device/lib/pic16
5735         * configure: regenerated from configure.in
5736         * device/lib/Makefile.in: create $(PORT)/bin directory
5737
5738 2005-08-03 Raphael Neider <rneider AT web.de>
5739
5740         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5741           to get/set values via pointers
5742         * (genUnpackBits,genPackBits): changed detection of
5743           ptr->bitfield vs. sym.bitfield, fixed access via generic
5744           pointers, removed dead (wrong) code for multibyte bitfields
5745         * (genNearPointerGet, genGenPointerGet): removed useless code,
5746           fixed bitfield detection, fixes #1250594
5747         * (genNearPointerSet): removed useless code
5748         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5749           and introduced macro pic16_emitpcode that conditionally emits
5750           the origin of the following pCode (useful for debugging SDCC)
5751         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5752         * (createDefmap): fixed handling of LFSR for --optimize-df
5753
5754 2005-08-02 Borut Razem <borut.razem AT siol.net>
5755
5756         * device/lib/Makefile.in: pic16 libraries build enabled since
5757           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5758
5759 2005-08-02 Raphael Neider <rneider AT web.de>
5760
5761         * src/pic16/gen.c (genPackBits): removed deprecated warning
5762         * (genGenPointerSet): fixed bitfield detection
5763
5764 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5765
5766         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5767
5768 2005-07-31 Raphael Neider <rneider AT web.de>
5769
5770         * device/lib/pic16/libdev/pic18f458.c,
5771           device/include/pic16/pic18f458.h: added missing T0CONbits
5772
5773 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5774
5775         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5776
5777 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5778
5779         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5780
5781 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5782
5783         * device/include/mcs51/at89c51ed2.h: added.
5784
5785 2005-07-23 Raphael Neider <rneider AT web.de>
5786
5787         * src/pic/gen.h: added emitpcode macro for debugging
5788         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5789           and replace by macro adding debug information on demand
5790         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5791         * (gencjne): tried to fix; replaced with correct (slower) code
5792         * (gen{Unp,P}ackBits): fixed single bit access
5793         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5794         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5795           previous instruction
5796         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5797           register has to be handled with care (forbidding movement
5798           of assignments/uses, removing assignments completely, ...)
5799         * (pCodeOptime2pCodes): make use of regIsSpecial
5800         * added lots of debugging output (commented out)
5801         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5802           from being reused as result UNLESS it is known to work
5803
5804 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5805
5806         * support/Util/dbuf.h: include <stddef.h> for size_t
5807         * .version: changed to version 2.5.2
5808
5809 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5810
5811         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5812
5813 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5814
5815         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5816           (genModOneByte): removed needless psha/pula
5817
5818 2005-07-22 Raphael Neider <rneider AT web.de>
5819
5820         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5821           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5822         * src/pic/gen.c (resolveIfx): do not "invent" labels
5823         * (genSkipc): changed to positive logic
5824         * (genSkipCond): removed as no longer needed
5825         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5826           backport from PIC16
5827         * (genLeftShift): check operands are in different registers
5828         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5829           INCF does not update CARRY...
5830         * src/pic/main.c: fixed _linkCmd
5831         * src/pic/pcode.c (unlinkpCode): added inactive code
5832         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5833           alive (do not assign result and operand overlapping registers)
5834
5835 2005-07-22 Raphael Neider <rneider AT web.de>
5836
5837         * src/pic/device.c (dump_sfr): replaced register declaration with
5838           call to emitSymbolToFile() to avoid duplicate symbols
5839         * (assignRelocatableRegisters): do not declare external symbols
5840         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5841           right (take size of type, not etype)
5842         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5843         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5844         * (packRegsForAccUse): disabled assignment of WREG as
5845           the result reg to prevent occurence of just fixed #1235003,
5846           fixes #1242954
5847         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5848           symbols (avoids duplicate symbols in .asm file)
5849         * (pic14emitRegularMap): use emitSymbolToFile()
5850         * src/pic/gen.c (aopOp): fixed spillLocation handling
5851         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5852         * (genDataPointerSet): removed unneccessary variables/output
5853
5854 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5855
5856         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5857         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5858
5859 2005-07-21 Raphael Neider <rneider AT web.de>
5860
5861         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5862           architecture cannot handle them efficiently, fixes bug #1235003
5863         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5864           check for empty sets before using them (fixes bug #1232190)
5865
5866 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5867
5868         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5869           (lnksect2): generate warnings for memory overlap
5870         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5871           constseg to set the name of these segments so you can instruct the linker
5872           to place them in banks
5873         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5874         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5875           added code_seg and const_seg to options
5876         * src/SDCCglue.c (emitMaps): use options.const_seg,
5877           (createInterruptVect): put interrupt vectors in segment HOME,
5878           (glue): put HOME before static segment and put the main glue in HOME,
5879           (glue): use options.code_seg
5880         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5881         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5882           these segments so you can instruct the linker to place them in banks
5883           (linkEdit): use code_loc for HOME segment which should be the first
5884           segment in code memory now
5885         * src/SDCCmem.c: fixed more stuff like bug 1238386
5886         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5887           (changePointer): don't change function pointers to code pointers for
5888           banked functions,
5889           (compareType): added exceptional check for banked function pointers
5890         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5891         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5892           after static in code memory
5893         * src/mcs51/gen.c: added aopLiteralLong prototype,
5894           (aopForSym): use getSize for functions,
5895           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5896           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5897           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5898           the segment,
5899           (genPcall): use call for literal function pointers and generate banked
5900           calls over the one trampoline so there's only one place for the user to
5901           modify according to his/hers hardware,
5902           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5903           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5904         * src/mcs51/main.c: added keyword banked,
5905           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5906         * support/Util/SDCCerr.c,
5907         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5908           needed for passing the bank and address to the trampoline
5909         * device/lib/mcs51/crtbank.asm: added for bankswitching
5910         * device/lib/mcs51/Makefile: added crtbank
5911
5912 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5913
5914         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5915           for fields at offset 0 of a struct or union as reported
5916           on 2005-07-07 in the developer mailing list.
5917
5918 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5919
5920         * src/SDCCmem.c: fixed bug 1238386
5921
5922 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5923
5924         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5925           (patch #1144962), added peephole 300, enabled 259.x
5926         * doc/sdccman.lyx: removed screenshot and provided link instead
5927
5928 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5929
5930         * doc/sdccman.lyx: added section about debugging with ddd
5931         * doc/figures/ddd_example.eps: screenshot of debugging session
5932
5933 2005-07-04 Raphael Neider <rneider AT web.de>
5934
5935         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5936           like CODE pointers, fixes #1115683
5937         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5938           call, fixes bugs #1232211, #1228110,
5939           fixed wrong casts to pCodeFlow from pCodeInstructions
5940
5941 2005-07-04 Raphael Neider <rneider AT web.de>
5942
5943         * src/pic/gen.c (popGet): changed assert to allow for
5944           bit operands
5945         * (popGetAddr): changed signature to provide
5946           an additional index, patched all call sites
5947         * (genCmpEq): handle literal-like operands correctly
5948         * (genAddrOf): added sanity checks on __code/__data pointers
5949         * (genAssign): added handling of symbols from __code section
5950         * (gencjne): do not generate code for comparisons whose result
5951           is neither stored nor used, fixes bug #1171114
5952         * (AccLsh, AccRsh): operate on operand instead of WREG
5953         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5954           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5955           by known count
5956         * rewrote complete shift-by-literal logic, commented unused
5957           functions out
5958         * (genConstPointerGet): get multiple bytes (if result size > 1),
5959           fixed handling of non-immediate addresses
5960         * (genPointerGet): handle CODE pointers like CONST pointers
5961         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5962         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5963           operand is to be treated as a literal or not
5964         * (mov2w,genPcall,genCmpEq),
5965           src/pic/genarith.c: use aop_isLitLike() to decide between
5966           literal/register contents
5967         * (addSign): added missing offset
5968         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5969           only emit comment in debug-mode,
5970           use {aop,op}_isLitLike throughout the file
5971         * src/pic/glue.c: fix initializers for pointers (work in progress)
5972         * src/pic/pcode.c (get_op): honor index on _const symbols
5973         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5974         * (dumppBlock): added pCode size estimation
5975         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5976           check for IS_SYMOP before OP_SYMBOL'ing
5977         * fixed indentation, compacted switch-statements
5978         * (allocReg): find free register and allocate it instead of
5979           allocating new registers all the time
5980         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5981           registers as its operands (necessary only for multibyte GETs)
5982
5983 2005-07-01 Raphael Neider <rneider AT web.de>
5984
5985         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5986           debugging .asm-output macros FENTRY + FEXIT
5987         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5988           way... I wonder...
5989         * (emitpComment): NEW, printf to pCode
5990         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5991           offset handling
5992         * (popGetAddr): NEW, variant of popGet to access an immediates
5993           high(er) bytes instead of the n'th byte of memory they reference,
5994           replaced popGet with popGetAddr where neccessary
5995         * (genDataPointerGet): reactivated and fixed implementation
5996         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5997           accesses
5998         * (genDataPointerSet): fixed multibyte assignments
5999         * (genpic14Code): fixed --i-code-in-asm handling
6000         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6001         * (genPlus): fixed index-out-of-bounds error
6002         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6003         * src/pic/ralloc.c: added debugging output macro FENTRY2
6004         * (spillThis): fixed indentation, enbraced for-body for clarity
6005         * (rematStr): commented out as now unused
6006         * (regTypeNum): commented out special spill case (overwrites
6007           arbitrary values)
6008         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6009
6010 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6011
6012         * doc/sdccman.lyx: documented sfr16/sfr32,
6013           added example for using storage class with function pointers
6014         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6015
6016 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6017
6018         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6019         * device/lib/_itoa.c,
6020         * device/lib/_ltoa.c: optimized codesize
6021         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6022           but don't know how to suppress the double warning.
6023         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6024         * support/Util/SDCCerr.c,
6025         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6026
6027 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6028
6029         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6030           fixed old K&R prototypes
6031         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6032         * device/lib/_gptrget.c,
6033         * device/lib/_gptrgetc.c,
6034         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6035           also new versions for small generic pointers and banked generic pointers
6036         * src/port.h: added const_name
6037         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6038         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6039         * src/SDCCcse.c (findPrevIc): check all associative operators
6040         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6041         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6042         * src/SDCCmem.c: updated comments,
6043           set far-space to 0 for pdata, results in optimized code
6044         * src/SDCCmem.h: added macro CONST_NAME
6045         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6046           moving the info into the highest bits, see also gptrget/gptrput
6047         * src/src.dsp: added sdcc.ico to project files
6048         * src/avr/gen.c (genCast): fixed bug 0x%d
6049         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6050         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6051           relation between ptr_type and DCL_TYPE,
6052           (genCast): fixed bug 0x%d
6053         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6054           (CODE)" for const_name
6055         * src/hc08/gen.c (genCast): fixed bug 0x%d
6056         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6057           (hc08_port): added "CONST (CODE)" for const_name
6058         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6059           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6060           between ptr_type and DCL_TYPE,
6061           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6062           operand* and took AOP() inside function so sfr-ness can be checked,
6063           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6064           new prototype,
6065           (genFunction, genEndFunction): optimized stack setup,
6066           (genMinus): optimized for literals with ending zeroes (in bytes),
6067           (genCast): fixed bug 0x%d
6068         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6069           (mcs51_port): added "CONST (CODE)" for const_name
6070         * src/mcs51/peeph.def: made rule 226 more generic
6071         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6072         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6073         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6074         * src/z80/main.c (z80_port): added NULL for const_name,
6075           (gbz80_port): added NULL for const_name
6076         * support/regression/tests/bug663539.c,
6077         * support/regression/tests/sfr16.c: new tests
6078
6079 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6080
6081         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6082
6083 2005-06-24 Raphael Neider <rneider AT web.de>
6084
6085         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6086           corrected typos...
6087         * device/include/pic16/signal.h: added USBIF
6088           and SIG_USB
6089
6090 2005-06-24 Raphael Neider <rneider AT web.de>
6091
6092         * device/lib/pic16/libdev/pic18f2455.c,
6093           device/include/pic16/pic18f2455.h: NEW
6094         * device/include/pic16/pic18fregs.h,
6095           device/lib/pic16/pics.all,
6096           src/pic16/device.c: added 18f2455
6097         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6098           device/include/pic16/{pic18f[68][567].h,usart.h}:
6099           replaced MULTIPLE_USARTS define with more relaible
6100           compatibility sfrs (for USART access)
6101
6102 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6103
6104         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6105           and the output asm file line is printed on two lines.
6106
6107 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6108
6109         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6110           BGT, BLE, BHI, and BLS instructions
6111         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6112           genCmpEq): removed
6113         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6114           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6115           fixes bug #1216342
6116         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6117
6118 2005-06-15 Raphael Neider <rneider AT web.de>
6119
6120         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6121         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6122         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6123           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6124           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6125
6126 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6127
6128         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6129           Marcel Telka in bug #1215704
6130
6131 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6132
6133         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6134           located in shared memory bank.
6135
6136 2005-05-31 Raphael Neider <rneider AT web.de>
6137
6138         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6139           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6140           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6141
6142 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6143
6144         * device/lib/_strncpy.c: fixed the fix
6145
6146 2005-05-26 Raphael Neider <rneider AT web.de>
6147
6148         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6149           initializers with \0, bug #1208187
6150         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6151           intializers with \0, bug #1208187
6152
6153 2005-05-26 Raphael Neider <rneider AT web.de>
6154
6155         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6156           initializers with \0, bug #1208187
6157         * src/pic16/main.c (_process_pragma): added sanity checks
6158           for stack position and size, emit warnings when appropriate
6159
6160 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6161
6162         * device/lib/_strncpy.c: fixed not filling with \0
6163
6164 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6165
6166         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6167           createFunction),
6168         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6169           compound_statement),
6170         * src/SDCCsymt.h,
6171         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6172
6173 2005-05-24 Raphael Neider <rneider AT web.de>
6174
6175         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6176
6177 2005-05-24 Raphael Neider <rneider AT web.de>
6178
6179         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6180           TRISE definitions, closes bug #1162453
6181
6182 2005-05-22 Raphael Neider <rneider AT web.de>
6183
6184         * src/pic16/main.c (_process_pragma): check for missing
6185           arguments to pragmas code and udata
6186         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6187           consistency fixes to match other headers (thanks to Jim Paris)
6188         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6189
6190 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6191
6192         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6193
6194 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6195
6196         * support/regression/tests/bug1198642.c: new test
6197         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6198         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6199         * support/scripts/resource.h,
6200         * support/scripts/resource.rc,
6201         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6202         * support/scripts/sdcc.ico: added 32x32 icon
6203
6204 2005-05-18 Raphael Neider <rneider AT web.de>
6205
6206         * device/lib/pic16/libdev/pic18f*.c,
6207         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6208           keywords to "__sfr" and "__at (X)"
6209         * device/include/pic16/pic18fregs.h: added pic18f4520
6210         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6211           #1203088 (MPLAB compatibility)
6212
6213 2005-05-17 Raphael Neider <rneider AT web.de>
6214
6215         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6216         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6217         * device/lib/pic16/pics.all: added new devices
6218         * src/pic16/device.c: added support for pic18f4520
6219
6220 2005-05-16 Raphael Neider <rneider AT web.de>
6221         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6222         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6223         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6224           convenience function for bit access
6225
6226 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6227
6228         * device/lib/printf_large.c: fixed bug 1193299
6229         * support/regression/tests/bug1057979.c: added test %3.3s
6230
6231 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6232
6233         * device/include/mcs51/8051.h,
6234         * device/include/mcs51/8052.h: made parseable with lint
6235         * device/include/mcs51/lint.h: added include file for (sp)lint
6236         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6237         * doc/cdbfileformat.lyx,
6238         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6239
6240 2005-05-14 Raphael Neider <rneider AT web.de>
6241
6242         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6243         * device/lib/pic16/libc/stdlib/itoa.c (new)
6244         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6245         * device/lib/pic16/libio/Makefile: exclude subdir according to
6246           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6247         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6248         * src/pic16/gen.c (genFunction): prevent annoying warning
6249         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6250           nameclashes on BeOS
6251         * support/cpp2/cppmain.c (cpp_output_string): new
6252         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6253           fixes bug 1116802
6254
6255 2005-05-13 Borut Razem <borut.razem AT siol.net>
6256
6257         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6258
6259 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6260
6261         * .version: changed to version 2.5.1; back to bleeding edge development
6262
6263 2005-05-11 Borut Razem <borut.razem AT siol.net>
6264
6265         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6266           generate PDF version 1.3 documents
6267
6268 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6269
6270         * .version: changed to version 2.5.0
6271
6272 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6273
6274         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6275
6276 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6277
6278         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6279         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6280         well as many smaller updates.
6281         * .version: changed to version 2.5.0-pre1
6282
6283 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6284
6285         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6286
6287 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6288
6289         * support/regression/tests/bug1185672.c: added
6290         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6291           bug 1185672
6292         * src/mcs51/gen.c (genCall): added comments, made it look safer
6293         * src/mcs51/gen.c (genEndFunction): simplified
6294
6295 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6296
6297         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6298
6299 2005-04-14 Borut Razem <borut.razem AT siol.net>
6300
6301         * fixed bug 1045046 - SIGSEGV with really simple code?:
6302           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6303           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6304
6305 2005-04-14 Borut Razem <borut.razem AT siol.net>
6306
6307         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6308           src/pic16/device.h: temporarily disabled experimental #inline pragma
6309           for 2.5.0 release
6310
6311 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6312
6313         * device/include/z80/stdio.h,
6314         * device/include/z80/string.h: removed these highly incomplete files so
6315           SDCC can use the default ones in device/include/
6316
6317 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6318
6319         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6320         gcc warning.
6321         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6322         fix sdcpp warnings.
6323
6324 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6325
6326         * device/include/malloc.h: removed redundant __reentrant prototypes
6327         * device/lib/_mullong.c: added working xstack variant in asm (C version
6328           doesn't pass regression tests)
6329         * device/lib/bpx.c: used __data and made bpx char for mcs51
6330         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6331           (createFunction): fixed bug with xstackPtr
6332         * src/SDCCcse.c: corrected comments
6333         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6334           (killDeadCode, eBBlockFromiCode): removed unused code
6335         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6336           corrected comments
6337         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6338           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6339           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6340           (genModOneByte): fixed warning in MSVC
6341         * src/mcs51/main.c (): added comments
6342         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6343
6344 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6345
6346         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6347
6348 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6349
6350         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6351
6352 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6353
6354         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6355         characters arrays of larger size than the declared one.
6356
6357 2005-04-10 Borut Razem <borut.razem AT siol.net>
6358
6359         * src/pic/gen.c (genInline),
6360           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6361           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6362           (findNextInstruction), (findPrevInstruction),
6363           (findInstructionUsingLabel),
6364           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6365         * src/pic/pcode.c (findLabel): added missing '\n'
6366         * src/src.dsp: added SDCCdwarf2.c to the project
6367
6368 2005-04-09 Borut Razem <borut.razem AT siol.net>
6369
6370         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6371
6372 2005-04-08 Raphael Neider <rneider AT web.de>
6373
6374         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6375           into the chain after a given one) and mergeDefmapSymbols (combine
6376           defmap entries for each symbol per pcode)
6377         * (createDefmap): have defmap entries merged in the end
6378         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6379           a symbol before replacing one access type's symbol, merge symbols in
6380           the end (replacement symbol might already have an entry)
6381         * (assignValnums): keep reference to written WREG intact
6382
6383 2005-04-08 Raphael Neider <rneider AT web.de>
6384
6385         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6386           Alpha)
6387
6388 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6389
6390         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6391         bytes
6392
6393 2005-04-07 Raphael Neider <rneider AT web.de>
6394
6395         * device/include/pic16/usart.h: added compatibility defines for
6396           devices with more than one USART
6397         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6398
6399 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6400
6401         * device/lib/Makefile.in: updated for port specific include
6402
6403 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6404
6405         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6406
6407 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6408
6409         * device/include/8051.h,
6410         * device/include/8052.h,
6411         * device/include/at89S8252.h,
6412         * device/include/at89c55.h,
6413         * device/include/at89x051.h,
6414         * device/include/at89x51.h,
6415         * device/include/at89x52.h,
6416         * device/include/mcs51reg.h,
6417         * device/include/reg51.h,
6418         * device/include/reg764.h,
6419         * device/include/regc515c.h,
6420         * device/include/sab80515.h: (re)moved these 12 files
6421         * device/include/mcs51/8051.h,
6422         * device/include/mcs51/8052.h,
6423         * device/include/mcs51/at89S8252.h,
6424         * device/include/mcs51/at89c55.h,
6425         * device/include/mcs51/at89x051.h,
6426         * device/include/mcs51/at89x51.h,
6427         * device/include/mcs51/at89x52.h,
6428         * device/include/mcs51/mcs51reg.h,
6429         * device/include/mcs51/reg51.h,
6430         * device/include/mcs51/reg764.h,
6431         * device/include/mcs51/regc515c.h,
6432         * device/include/mcs51/sab80515.h: and added them here
6433
6434 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6435
6436         * device/include/stdarg.h: changed SDCC specific keywords to double
6437           underlined form.
6438         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6439           mcs51 and ds390.
6440         * device/include/hc08/mc68hc908gp32.h,
6441         * device/include/hc08/mc68hc908jb8.h,
6442         * device/include/hc08/mc68hc908jkjl.h,
6443         * device/include/hc08/mc68hc908qy.h: fixed comments
6444         * device/include/mcs51/README: updated
6445         * device/include/mcs51/c8051f120.h: added PINRSF
6446         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6447         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6448           amidst code. Also inline is not supported.
6449
6450 2005-04-06 Raphael Neider <rneider AT web.de>
6451
6452         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6453         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6454           callers stack/frame pointers
6455
6456 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6457
6458         * device/include/pic16/usart.h: added, missing in previous commit,
6459         * device/include/pic16/adc.h: fixed typo,
6460         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6461         commit,
6462         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6463         <p18fxxx.inc>
6464         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6465         uninitialized because a bug appears with gplink
6466         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6467         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6468         complains for unrecognised option
6469
6470 2005-04-05 Raphael Neider <rneider AT web.de>
6471
6472         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6473           structs as well (using memcpy)
6474         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6475           on ISRs (GOTO has no label)
6476         * src/pic16/device.h: added OF_OPTIMIZE_DF
6477         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6478           new data flow analysis/optimization
6479         * src/pic16/pcode.c: added (prototypes for and implementation of)
6480           dataflow analysis functions, fixed pCodeInstructions' inCond and
6481           outCond values, made RCALL a branch instruction
6482         * (pic16_unlinkpCode): keep C line if possible
6483         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6484           C line moved if possible
6485         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6486         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6487           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6488         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6489           new flow)
6490         * (pic16_getJumptabpCode): NEW, needed in...
6491         * (LinkFlow): fixed handling of jumptables, calls and conditional
6492           branches
6493         * (pic16_InsertCommentAfter): NEW
6494         * (pic16_pCodeReplace): made verbose and flow preserving
6495         * (AnalyzeFlow): added call to data flow analysis
6496         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6497         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6498         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6499
6500 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6501
6502         * src/SDCCast.c (decorateType): fixed bug #1105626
6503
6504 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6505
6506         * device/include/asm/pic16/features.h,
6507         * pic18f*.h headers,
6508         * device/include/pic16/adc.h,
6509         * device/include/pic16/delay.h,
6510         * device/include/pic16/i2c.h,
6511         * device/include/pic16/malloc.h,
6512         * device/include/pic16/stdio.h,
6513         * device/include/pic16/stdlib.h,
6514         * device/include/pic16/string.h,
6515         * device/lib/pic16/libc/stdio/printf_tiny.c,
6516         * device/lib/pic16/libc/stdio/printf_small.c,
6517         * device/lib/pic16/libc/stdio/strmgpsim.c,
6518         * device/lib/pic16/libc/stdio/strmmssp.c,
6519         * device/lib/pic16/libc/stdio/strmusart.c,
6520         * device/lib/pic16/libc/stdio/vfprintf.c,
6521         * device/lib/pic16/libc/stdlib/ltoa.c,
6522         * device/lib/pic16/libc/stdlib/putchar.c,
6523         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6524         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6525         * device/lib/pic16/libc/stdlib/memchrram.c,
6526         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6527         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6528         * device/lib/pic16/libio/adc/adcbusy.c,
6529         * device/lib/pic16/libio/adc/adcread.c,
6530         * device/lib/pic16/libio/adc/adcsetch.c,
6531         * device/lib/pic16/libio/usart/ubaud.c,
6532         * device/lib/pic16/libio/usart/ubusy.c,
6533         * device/lib/pic16/libio/usart/udrdy.c,
6534         * device/lib/pic16/libio/usart/uopen.c,
6535         * device/lib/pic16/libio/usart/uputc.c,
6536         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6537         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6538         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6539         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6540         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6541         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6542         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6543         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6544         specific keywords to double underlined form,
6545         * device/lib/pic16/libc/Makefile.rules,
6546         * device/lib/pic16/libsdcc/Makefile.rules,
6547         * device/lib/pic16/libm/Makefile,
6548         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6549         to compile with C standard set in Makefile.common
6550         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6551         rand.c and crc.c in compilation process,
6552         * device/lib/pic16/libsdcc/int/divuint.c,
6553         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6554         `c' from signed to unsigned,
6555         * device/lib/pic16/startup/crt0.c,
6556         * device/lib/pic16/startup/crt0i.c,
6557         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6558         keywords to double underlined form, bug fixes in _do_cinit function
6559         which prevented the correct initialization of the .idata segment,
6560         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6561         core to enter a infinite loop
6562         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6563
6564 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6565
6566         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6567
6568 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6569
6570         * device/include/Makefile.in: add support for hc08 subdirectory
6571         * device/include/hc08/: new subdirectory
6572         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6573         Lucas Loizaga, thanks!
6574         * device/include/hc08/mc68hc908qy.h,
6575         * device/include/hc08/mc68hc908gp32.h,
6576         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6577         their own directory. Changed internal macro names to use the compiler
6578         reserved namespace. Changed SDCC specific keywords to double
6579         underlined form.
6580         * device/include/math.h,
6581         * device/include/malloc.h,
6582         * device/include/stdarg.h,
6583         * device/include/stdbool.h
6584         * device/include/string.h,
6585         * device/include/tinibios.h,
6586         * device/include/ds400rom.h,
6587         * device/include/8051.h,
6588         * device/include/8052.h,
6589         * device/include/80c51xa.h,
6590         * device/include/at89c55.h,
6591         * device/include/at89S8252.h,
6592         * device/include/at89x51.h,
6593         * device/include/at89x52.h,
6594         * device/include/ds80c390.h,
6595         * device/include/reg764.h,
6596         * device/include/regc515c.h,
6597         * device/include/sab80515.h,
6598         * device/include/mcs51/c8051f000.h,
6599         * device/include/mcs51/c8051f018.h,
6600         * device/include/mcs51/c8051f020.h,
6601         * device/include/mcs51/c8051f040.h,
6602         * device/include/mcs51/c8051f060.h,
6603         * device/include/mcs51/c8051f120.h,
6604         * device/include/mcs51/c8051f300.h,
6605         * device/include/mcs51/c8051f310.h,
6606         * device/include/mcs51/c8051f320.h,
6607         * device/include/mcs51/c8051f330.h,
6608         * device/include/mcs51/c8051f350.h,
6609         * device/include/z180.h: Changed SDCC specific keywords to double
6610         underlined form.
6611
6612 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6613
6614         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6615         18F4455,
6616         * (pic16_assignConfigWordValue): disable testing of configuration
6617         register value with config mask,
6618         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6619         function with port->fun_prefix,
6620         * (genFunction): when generating a naked interrupt function never
6621         create an absolute segment placed in interrupt vector address, place
6622         the actual interrupt function at IVA instead, when an interrupt
6623         function is generated with unspecified interrupt then do not create
6624         the absolute section,
6625         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6626         code for generating a call to generic pointer get/put function with
6627         a call to function pic16_callGenericPointer(),
6628         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6629         the call to the generic pointer get/put functions with prefixing the
6630         function name with port->fun_prefix,
6631         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6632         * src/pic16/main.c (_process_pragma): prefix function with
6633         port->fun_prefix,
6634         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6635         calling assembler, old 18Fxxxx macro is deprecated,
6636         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6637         PC_ASMDIR in while condition,
6638         * (findInstruction): add PC_ASMDIR in while condition,
6639         * (buildCallTree): prefix main with port->fun_prefix,
6640         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6641         identifier for variable with banked access in instructions BTFSS,
6642         BTFSC, BCF, BSF, BTG
6643         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6644         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6645         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6646         perform optimization when enviroment variable NO_REG_OPT is set,
6647         * (insideLRBlock): NEW, return 1 if register is inside an
6648         INF_LOCALREGS block,
6649         * (RemoveRegFromLRBlock): remove a register that is completely
6650         eliminated by register optimization, but it is still left in local
6651         register store/restore in/from stack block,
6652         * (Remove2pcodes): after removing register, check to see if it
6653         should be removed from local register store/restore in/from stack
6654         block,
6655         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6656         DUMMY_READ_VOLATILE,
6657
6658         * device/include/pic16/adc.h: minor prototype modifications and
6659         update,
6660         * device/include/pic16/malloc.h: added GPL notice various
6661         modifications,
6662         * device/include/pic16/stdint.h: NEW, standard header for ints
6663         * device/include/pic16/delay.h: NEW, header for delay functions,
6664         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6665         delay1mtcy,
6666         * device/include/pic16/signal.h: NEW, header providing helper macros
6667         for implementing signal handlers,
6668         * device/include/pic16/stdio.h: added prototypes for functions,
6669         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6670         prototypes for stdin and stdout, added macro PUTCHAR to
6671         automatically implement putchar function prototype,
6672         * device/include/pic16/usart.h: modified and updated USART library,
6673         * device/lib/pic16/libio/adc/,
6674         * device/lib/pic16/libio/i2c: some modifications to improve library
6675         performance,
6676         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6677         family of functions,
6678         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6679         family of functions and other sources,
6680         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6681         of the PIC18Fxx[28] devices,
6682         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6683         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6684         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6685         _do_cinit function, because the previous failed when local variables
6686         where not placed in the same memory bank,
6687         * device/lib/pic16/libsdcc/char/: various modifications to improve
6688         library performance,
6689         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6690         information on the new functions of the c library and more...
6691
6692 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6693
6694         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6695
6696 2005-03-26 Raphael Neider <rneider AT web.de>
6697
6698         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6699           if condition == CARRY)
6700         * (genCmp): adapted to new genSkipc semantics
6701         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6702           on rIfx (genCmp was broken)
6703
6704 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6705
6706         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6707         * src/z80/main.c (_keywords[]),
6708         * src/SDCCglobal.h (struct options),
6709         * src/SDCC.y,
6710         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6711         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6712         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6713         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6714         always available in leading double underscore form. The C99 support is
6715         mostly missing, but it's a start.
6716         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6717         reserved identifier "__data".
6718
6719 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6720
6721         * src/mcs51/peeph.def: fixed bug 1170013
6722
6723 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6724
6725         * device/include/mcs51reg.h: fixed bug 842007
6726
6727 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6728
6729         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6730         last time.
6731
6732 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6733
6734         * src/port.h (struct PORT),
6735         * src/avr/ralloc.c (avr_assignRegisters),
6736         * src/avr/main.c,
6737         * src/ds390/ralloc.c (ds390_assignRegisters),
6738         * src/ds390/main.c,
6739         * src/hc08/ralloc.c (hc08_assignRegisters),
6740         * src/hc08/main.c,
6741         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6742         * src/mcs51/main.c,
6743         * src/pic/ralloc.c (pic14_assignRegisters),
6744         * src/pic/main.c,
6745         * src/pic16/ralloc.c (pic16_assignRegisters),
6746         * src/pic16/main.c,
6747         * src/xa51/ralloc.c (xa51_assignRegisters),
6748         * src/xa51/main.c,
6749         * src/z80/ralloc.c (z80_assignRegisters),
6750         * src/z80/ralloc.h,
6751         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6752         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6753         * src/SDCCcse.h,
6754         * src/SDCCdflow.c (computeDataFlow),
6755         * src/SDCCdflow.h,
6756         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6757         * src/SDCCloop.h,
6758         * src/SDCCcflow.c (*),
6759         * src/SDCCcflow.h,
6760         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6761         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6762         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6763         immedDom() returning wrong block; probably fixes bug #1160833)
6764
6765 2005-03-20 Borut Razem <borut.razem AT siol.net>
6766
6767         * support/scripts/inc2h.pl: WIN32 port
6768
6769 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6770
6771         * device/lib/makefile.in: added abs.c and labs.c
6772
6773 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6774
6775         * device/include/stdint.h: added
6776         * device/lib/abs.c: added
6777         * device/lib/labs.c: added
6778         * device/include/stdlib.h: added abs() and labs() prototypes
6779         * device/lib/libsdcc.lib: added abs and labs
6780         * device/include/float.h,
6781         * device/lib/_fsmul.c,
6782         * device/lib/printf_fast.c,
6783         * device/lib/printf_tiny.c: updated comments
6784
6785 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6786
6787         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6788         bug #1164313
6789
6790 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6791
6792         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6793         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6794
6795 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6796
6797         * device/lib/printf_large.c: removed inline assembly for portability and
6798           readability. Use printf_fast if speed or size are more important.
6799         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6800         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6801
6802 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6803
6804         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6805         prevent compiler warning
6806
6807 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6808
6809         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6810         moved to level 0 and declared as static. Also they are explicit
6811         placed in access bank. This was necessery because some times they
6812         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6813         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6814         optimizations. Currently only compare to unsigned char is implemented,
6815         * src/pic16/gen.c: added fReturnIdx array,
6816         * (struct resolvedIfx) is moved to gen.h and made public,
6817         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6818         * (aopForSym): added an optimization to directly store in stack of
6819         the operand of a SEND iCode,
6820         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6821         but as registers instead (AOP_REG) using the fReturnIdx array,
6822         * (pic16_freeAsmop): remove the freed register from the
6823         _G.sregsAlloc field,
6824         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6825         a compare of 'WREG',
6826         * (pic16_popGetTempRegCond): changed function prototype, now
6827         function takes also a bitVector argument v which holds the current
6828         set of registers that are allocated for stack access by aopForSym,
6829         registers allocated in aopForSym for accessing stack symbols are not
6830         any more part of the functions usedRegs field,
6831         * (genCall): some times aopOp is called for a stack variable to be
6832         send, aopForSym might perform the push, if this is true make sure
6833         that genCall doesn't push the variable twice by testing _G.resDirect,
6834         * (genFunction): changed testing for unspecified interrupt number
6835         from 256 to INTNO_UNSPEC,
6836         * modified selection scheme of frame pointer generation. Previously
6837         if function did use local registers a frame pointer was generated,
6838         now a frame pointer is generated only if function has arguments
6839         (that need PLUSW2 register access), or has stack arguments, or the
6840         compiler is not instructed to omit the frame pointer,
6841         * (genEndFunction): before restoring local registers that were saved
6842         in the function preamble, also restore the registers that *might*
6843         have been allocated for stack access,
6844         * (genRet): removed some old comments,
6845         * (genCmp, the active (RN's) version): added a call to the
6846         pic16_genCmp_special function to perform the compare with a more
6847         robust and optimized way,
6848         * (genInline): a feature has been added in inline code generation,
6849         which allows a wildcard variable substitution when writing inline
6850         assembly. Code is incomplete and experimental therefore undocumented,
6851         * (genCast): changed order of aopOp for result and right to allow
6852         aopForSym to directly load the result if possible,
6853         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6854         perform an optimized compare on some selected special occasions,
6855         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6856         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6857         generate an IVT any more,
6858         * src/pic16/main.c (pic16_optionsTable): added command line option
6859         --optimize-cmp,
6860         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6861         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6862         macros,
6863         * src/pic16/NOTES: Raphael Neider added in list of active developers
6864         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6865         jumptable_end to prevent bug #,
6866         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6867         inCond and outCond fields,
6868         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6869         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6870         turn off register spilling,
6871         * (packRegsForOneUse): synced with other ports' versions although it
6872         is not used currently,
6873         * (pic16_packRegisters): added an optimization while reading
6874         structure bitfields, some registers may be saved (malloc code is
6875         decreased by 80 bytes)
6876
6877 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6878
6879         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6880         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6881         this can be optimized more?
6882
6883 2005-03-10 Raphael Neider <rneider AT web.de>
6884
6885         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6886           genNearPointerGet): (hopefully) fixed access to bitfields via
6887           pointers (p->bitN = x; and x = p->bitN; failed)
6888
6889 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6890
6891         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6892
6893 2005-03-09 Raphael Neider <rneider AT web.de>
6894
6895         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6896
6897 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6898
6899         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6900         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6901           (regTypeNum): set REG_BIT type if necessary
6902         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6903         * support/regression/tests/critical.c: check bug 1144613
6904
6905 2005-03-02 Raphael Neider <rneider AT web.de>
6906
6907         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6908
6909 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6910
6911         * src/avr/ralloc.c (serialRegAssign),
6912         * src/ds390/ralloc.c (serialRegAssign),
6913         * src/hc08/ralloc.c (serialRegAssign),
6914         * src/mcs51/ralloc.c (serialRegAssign),
6915         * src/pic/ralloc.c (serialRegAssign),
6916         * src/pic16/ralloc.c (serialRegAssign),
6917         * src/xa51/ralloc.c (serialRegAssign),
6918         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6919
6920 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6921
6922         * src/SDCCast.c (decorateType): fixed bug 1124787
6923
6924 2005-02-20 Hubert Sack <sack AT digiplan.de>
6925         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6926
6927         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6928         patch #1121755
6929
6930 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6931
6932         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6933         to keep the correct label reference count when adding/removing references
6934         to labels. A peephole file using this is appended to patch #1144962.
6935
6936 2005-02-14 Raphael Neider <rneider AT web.de>
6937
6938         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6939         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6940         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6941           retrievals of result operand's value on assignment
6942
6943 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6944
6945         * device/include/pic16/string.h: modified prototype for memccpy()
6946         to memccpy(void *, void *, char, size_t)
6947         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6948         check whether to omit frame pointer or not,
6949         * (genInline): convert all occurences of "\n" to LF in inline
6950         assembler blocks, this helps formatting the inline text,
6951         * (pic16_loadFSR0): modified prototype,
6952         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6953         removed some 8051 legacy code,
6954         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6955         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6956         before allocating temporary registers in functions,
6957
6958 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6959
6960         * support/regression/tests/bitvars.c: corrected the "fix"
6961
6962 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6963
6964         * support/regression/tests/bitvars.c,
6965         * support/regression/tests/bitwise.c,
6966         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6967
6968 2005-02-10 Raphael Neider <rneider AT web.de>
6969
6970         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6971           different size for Alpha
6972         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6973
6974 2005-02-09 Raphael Neider <rneider AT web.de>
6975
6976         * src/SDCC.lex(doPragma) : save and restore warning options as well
6977           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6978         * have #pragma less_pedantic set the errorlevel to WARNING
6979           (fixes #1117001)
6980         * (cloneOptimize) : fixed wrong malloc's size
6981         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6982           facilitate correct handling of #pragma (save|restore)
6983
6984 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6985
6986         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6987
6988 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6989
6990         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6991
6992 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6993
6994         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6995
6996 2005-02-02 Raphael Neider <rneider AT web.de>
6997
6998         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6999         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7000         * (pic16_storeForReturn): fixed to allow returning function pointers
7001         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7002         * device/include/pic16/{stddef.h,stdbool.h}: added
7003
7004 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7005
7006         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7007
7008 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7009
7010         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7011         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7012          appeared to be required
7013
7014 2005-01-31 Borut Razem <borut.razem AT siol.net>
7015
7016         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7017           include/mcs51 and include/z80 directories to the package
7018
7019 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7020
7021         * src/hc08/gen.c (genFunction): fixed bug #1112752
7022
7023 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7024
7025         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7026
7027 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7028
7029         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7030
7031 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7032
7033         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7034
7035 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7036
7037         * device/include/c8051fxxx.h: removed these 6 files
7038         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7039
7040 2005-01-26 Raphael Neider <rneider AT web.de>
7041
7042         * src/pic16/gen.c (genAssign): fixed assignment from longs
7043           in codespace (were cut to three bytes)
7044         * (genDummyRead): implemented (except for CODESPACE...),
7045           fixed bug #1108575
7046         * src/pic16/glue.c (emitStatistics): beautified
7047         * device/lib/pic16/libm/Makefile: added include path
7048
7049 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7050
7051         * src/z80/gen.c (aopPut): fixed bug #1103902
7052
7053 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7054
7055         * device/lib/expf.c: fixed bug #1095792
7056
7057 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7058
7059         * device/lib/pic16/libm: added Math library sources
7060
7061 2005-01-24 Raphael Neider <rneider AT web.de>
7062
7063         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7064           to enable upcast to pCodeOpReg2 (there is no type tag to
7065           differenciate the two and pic16_popGet2p cast into PCOR2)
7066         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7067           (sizeof(sectNames) changed to sizeof(sectName))
7068           Both patches fix segfaults under MinGW.
7069
7070 2005-01-23 Raphael Neider <rneider AT web.de>
7071
7072         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7073           Safe_[mc]?alloc()'ed variables
7074         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7075           of (byte sized) temporaries (assign them to WREG for now)
7076         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7077           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7078           this might fix SIGSEGVs on MinGW...
7079         * src/SDCCopt.c (killDeadCode): restored original behaviour
7080           (volatile operands might get thrown away though)
7081
7082 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7083
7084         * src/pic16/gen.c: fixed bug #1106975,
7085         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7086         pointer update, INTCON is saved, global interrupts are disabled and
7087         restored after updateing TOS.
7088         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7089         * added function attribute 'shadowregs' to take advantage of shadow
7090         registers,
7091         * added function attribute 'wparam' as an alternative to the wparam
7092         pragma,
7093         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7094         user declares a non-ISR function as 'shadowregs',
7095         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7096
7097 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7098
7099         * .version: bumped version number to 2.4.8
7100         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7101         pic16 port,
7102         * device/lib/pic16/libio/i2c/: I2C module support library,
7103         * device/include/pic16/i2c.h: I2C support library header,
7104         * device/lib/pic16/libc/stdio/: standard IO support sources,
7105         * (printf_small.c): printf_small() source, supports float print,
7106         * (printf_tiny.c): printf_tiny() source, does not support floats,
7107         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7108         enable global optimizations for entire library source, other
7109         Makefiles in the source tree are also modified to reflect this,
7110         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7111         function,
7112         * doc/sdccman.lyx: updated to reflect new changes,
7113         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7114         sym->onStack if-case,
7115         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7116         sbit, idata, _idata, xdata, _xdata,
7117         * added pragma library, to link an external library, (see doc),
7118         * removed command line options, --pomit-config-words, --pomit-ivt,
7119         --pleave-reset-vector,
7120         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7121         when calling assembler to reflect memory model used, also define
7122         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7123         reflect stack model used,
7124         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7125         on stack return NULL,
7126
7127 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7128
7129         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7130           of the operands is volatile. Fixes #1020220
7131
7132 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7133
7134         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7135         * (OptimizeRegUsage): make sure that there is really no other flow where
7136           the first pCode is used
7137
7138 2005-01-22 Raphael Neider <rneider AT web.de>
7139
7140         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7141           to fix #1106967 (pCode->seq are not set up correctly)
7142
7143 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7144
7145         * src/SDCCglue.c (glue): make sure code area is declared before the
7146         static initialization area.
7147
7148 2005-01-21 Raphael Neider <rneider AT web.de>
7149
7150         * device/lib/Makefile.in: fixed test for pic16 install dir
7151         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7152           optimizations
7153         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7154           added --optimize-goto compiler switch and pragma wparam documentation
7155         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7156         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7157           and PRODH closing bug #1071770 (peephole optimizer)
7158
7159 2005-01-19 Raphael Neider <rneider AT web.de>
7160
7161         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7162           cmdLine buffers (used when calling sdcpp...) are large enough
7163           (MAX_PATH=256 truncates arguments leading to system halts when
7164           used in MinGW...)
7165         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7166         * (genUminus): rewritten to for efficiency
7167         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7168           used uninitialized in some cases)
7169         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7170           copy the third byte from the int -- now assumes 0x80 (data memory)
7171         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7172           operands (genAddLit expects the iCode's operands to swapped as
7173           well), fixed leftover bytes (crashed for short left operands)
7174         * (pic16_genMinusDec): performance improvements, removed false
7175           PIC14 emitSKPNCs
7176         * (pic16_genMinus): fixed to cope with differently sized operands
7177         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7178           for --obanksel > 1
7179         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7180         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7181           new banksel optimization
7182         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7183           analysis for temporary registers (segfaults...)
7184         * src/pic16/peeph.def: added rule
7185
7186 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7187
7188         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7189         which converts a float number to its ASCII representation
7190         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7191         functions to convert the fractional and integer part of a float to ASCII,
7192         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7193         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7194         ram
7195         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7196         _STATMEM macros,
7197         * device/include/pic16/adc.h: added GPL info,
7198         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7199         a pCodeOp as tested operand,
7200         * (genNearPointerGet): optimized bit testing, does not use
7201         intermediate register for bit value, test directly instead with
7202         BTFSS, BTFSC, works only for single bits,
7203         * (genpic16Code): dump the name of the iCode in the asm,
7204         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7205         renamed to pic16_decodeOp,
7206         * (serialRegAssign): do not allocate a temporary register for iCode
7207         sequences that test a single bit for 1/0
7208
7209 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7210
7211         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7212         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7213         access stack and frame pointers. They are initially assigned to
7214         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7215         accessing SFRs. Updated all occurences of modification of stack or
7216         frame pointer in gen.c and pcode.c,
7217         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7218         assigning of a literal value to pointers,
7219         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7220         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7221         selected
7222
7223 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7224
7225         * doc/sdccman.lyx: update documentation about stack pragma, added
7226         some info for stack memory models
7227
7228 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7229
7230         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7231
7232 2005-01-08 Raphael Neider <rneider AT web.de>
7233
7234         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7235           udata sections to fix bug #1097823
7236
7237 2005-01-05 Raphael Neider <rneider AT web.de>
7238
7239         * src/pic16/gen.c (genGenericShift): added handling of differently
7240           sized left operand and result
7241
7242 2005-01-04 Raphael Neider <rneider AT web.de>
7243
7244         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7245         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7246           to hold the condition bit)
7247         * added new version of genCmp (old code available via #define)
7248         * added new version of genShiftLeft/genShiftRight in a generic
7249           way, now supports shifting by negative values
7250         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7251           shiftCount (expected by genGenericShift)
7252         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7253         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7254           dump
7255         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7256           is an invalid literal too...)
7257
7258 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7259
7260         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7261         from Raphael Neider,
7262         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7263         for 8-bit literals. This fixes some literal operands which are sign
7264         extended to 16-bits ints when instruction needs only 8-bits.
7265
7266 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7267
7268         * device/lib/logf.c: added mcs51 assembly version
7269         * device/lib/expf.c: added mcs51 assembly version
7270         * device/lib/_logexpf.c: new shared asm code for expf and logf
7271         * device/include/math.h: add defines for assembly math library
7272         * device/lib/Makefile.in: build new _logexpf.c
7273         * device/lib/libfloat.lib: use new _logexpf.c
7274
7275 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7276
7277         * src/pic/device.c
7278         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7279           device types which have less than 0x7f registers.
7280
7281 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7282
7283         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7284
7285 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7286
7287         * device/lib/printf_fast.c: only build on supported arch.
7288         * device/lib/printf_tiny.c: only build on supported arch.
7289         * device/lib/printf_fast_f.c: only build if asm float lib
7290         * device/lib/_fsget1arg.c: only build if asm float lib
7291         * device/lib/_fsget2args.c: only build if asm float lib
7292         * device/lib/_fsnormalize.c: only build if asm float lib
7293         * device/lib/_fsreturnval.c: only build if asm float lib
7294         * device/lib/_fsrshift.c: only build if asm float lib
7295         * device/lib/_fsswapargs.c: only build if asm float lib
7296         * device/include/stdio.h: don't provide print_fast,
7297           print_fast_f, print_tiny prototypes if --xstack used
7298
7299 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7300
7301         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7302         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7303           to the SOURCES
7304
7305 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7306
7307         * device/lib/printf_fast_f.c: same as printf_fast, but
7308           with floating point enabled
7309         * device/lib/printf_fast.c: minor tweaks
7310         * device/include/stdio.h: add printf_fast_f
7311
7312 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7313
7314         * src/SDCCmain.c: make --float-reent default for mcs51
7315         * device/lib/_fsadd.c: added mcs51 assembly version
7316         * device/lib/_fssub.c: added mcs51 assembly version
7317         * device/lib/_fsmul.c: added mcs51 assembly version
7318         * device/lib/_fsdiv.c: added mcs51 assembly version
7319         * device/lib/_fseq.c: added mcs51 assembly version
7320         * device/lib/_fsneq.c: added mcs51 assembly version
7321         * device/lib/_fsgt.c: added mcs51 assembly version
7322         * device/lib/_fslt.c: added mcs51 assembly version
7323         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7324         * device/lib/Makefile.in: add _fscmp to build
7325         * device/lib/libfloat.lib: add _fscmp to build
7326
7327 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7328
7329         * device/lib/_fs2slong.c: added mcs51 assembly version
7330         * device/lib/_fs2sint.c: added mcs51 assembly version
7331         * device/lib/_fs2schar.c: added mcs51 assembly version
7332         * device/lib/_fs2ulong.c: added mcs51 assembly version
7333         * device/lib/_fs2uint.c: added mcs51 assembly version
7334         * device/lib/_fs2uchar.c: added mcs51 assembly version
7335         * device/lib/_slong2fs.c: added mcs51 assembly version
7336         * device/lib/_sint2fs.c: added mcs51 assembly version
7337         * device/lib/_schar2fs.c: added mcs51 assembly version
7338         * device/lib/_ulong2fs.c: added mcs51 assembly version
7339         * device/lib/_uint2fs.c: added mcs51 assembly version
7340         * device/lib/_uchar2fs.c: added mcs51 assembly version
7341         * device/include/float.h: added #define to select asm vs c
7342
7343 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7344
7345         * device/lib/printf_fast.c: improvements to float output
7346         * device/include/float.h: add defines for assembly float library
7347         * device/lib/_fsget1arg.c: receive 1 float arg
7348         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7349         * device/lib/_fsnormalize.c: normalize a float
7350         * device/lib/_fsreturnval.c: return float, various helper routines
7351         * device/lib/_fsrshift.c: right shift a float's mantissa
7352         * device/lib/_fsswapargs.c: swap 2 floats
7353         * device/lib/Makefile.in: build these 6 new files for mcs51
7354         * device/lib/libfloat.lib: add these 6 files to the library
7355
7356 2004-12-26 Borut Razem <borut.razem AT siol.net>
7357
7358         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7359           built by gcc 3.4.2
7360
7361 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7362
7363         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7364           and fully reentrant and register bank neutral.
7365         * device/lib/printf_fast.c: added float (not enabled by default),
7366           added compact/slower integer (also not enabled by default),
7367           improved size/speed of fast integer code, other minor changes
7368         * device/include/stdio.h, device/lib/Makefile.in,
7369           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7370
7371 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7372
7373         * src/pic16/pcode.c: declaring variables other than at the start of a
7374           block is not supported in C by VC6.
7375
7376 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7377
7378         * applied a previous patch from Raphael Neider that wasn't included
7379         in the previous commits, which fixes infinite loops within jumptable
7380         improvements,
7381         * made some fixes that previous patches introduced
7382
7383 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7384
7385         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7386         that fixes an issue with AOP_PCODE asmop's offset,
7387         * (pic16_popCopyReg): update instance field too,
7388         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7389         function of pic port,
7390         * (genCmp, genAnd, genAssign),
7391         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7392
7393 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7394
7395         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7396         variables initial values to idata section,
7397         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7398         variables in some functions. This utilizes parmBytes field of iCode
7399         structure to hold the offset of the variable in stack. (might be
7400         able to use the stack field too?)
7401         * applied patch from Raphael Neider # ### , # ###
7402         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7403         variable initial values in idata section,
7404         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7405         for static variables with initial value
7406         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7407         applied fix in while loop from Raphael Neider.
7408
7409 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7410
7411         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7412         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7413         * src/ds390/ralloc.c (serialRegAssign): spill bits
7414         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7415         * support/Util/SDCCerr.c,
7416         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7417         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7418         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7419
7420 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7421
7422         * device/include/sdcc-lib.h: inserted LGPL, added includes
7423           asm/ds390/features.h and asm/mcs51/features.h
7424         * device/include/asm/default/features.h,
7425         * device/include/asm/gbz80/features.h,
7426         * device/include/asm/z80/features.h: added empty _AUTOMEM
7427           and _STATMEM
7428         * device/include/asm/ds390/features.h,
7429         * device/include/asm/mcs51/features.h: added files with defines for
7430           _AUTOMEM and _STATMEM indicating automatic and static storage class
7431         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7432         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7433         * src/SDCCicode.c (geniCodeCast),
7434         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7435         * src/SDCCloop.c (loopInduction): removed unused variable lr
7436         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7437           to convertToFcall to include char modulo (RFE 1065037), added check
7438           if left operand is unsigned and use abs of literal value
7439         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7440           as it doesn't work after conversion from peephole.def to peephole.rul
7441         * src/mcs51/gen.c (toBoolean): added check for size,
7442           (genModOneByte): optimized code for signed char modulo a literal
7443           power of 2 (thanks to Hubert Sack),
7444           (genRRC): removed unnecessary "clr c",
7445           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7446         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7447           jump optimization,
7448           swapped rules 256.c and 256.d,
7449           extended 256.d by using new multiple checks (thanks Erik),
7450           added rules 256.e and 256.f,
7451           updated rule 261.a and 261.b to new generated code
7452         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7453
7454 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7455
7456         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7457           induction related bugs, including first part of bug #1074377
7458
7459 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7460
7461         * applied patch from bug-report #1076292,
7462         * applied patches for genAnd and Goto-optimizations for Raphael
7463         Neider,
7464         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7465         dump a less iCode information,
7466         * src/pic16/device.h (pic16_options_t): added field debgen,
7467         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7468         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7469         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7470         puclic,
7471         * (various functions): added macros FENTRY and FENTRY2 to functions,
7472         to emit function prologue,
7473         * (various functions): fixed indentation,
7474         * (genNearPointerGet): fixed loading of FSR0,
7475         * (genPackBits): applied patch from Raphael Neider to fix updating
7476         of FSR0 and touching only the modified bits,
7477         * src/pic16/genarith.c (various functions): added macros FENTRY to
7478         emit function prologue in comments,
7479         * src/pic16/pcode.h: added functions debugf2, debugf3,
7480         * src/pic16/ralloc.c: partial fix for packForPush caused
7481         segmentation fault,
7482
7483 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7484
7485         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7486           <stsp AT users.sourceforge.net> with reversed byte order
7487         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7488
7489 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7490
7491         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7492           bug #1074377
7493         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7494         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7495
7496 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7497
7498         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7499
7500 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7501
7502         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7503           conditions,
7504           (setFromConditionArgs): friendly operand parser for peephole rules,
7505           (operandBaseName, operandsNotRelated): new peephole condition
7506           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7507           architecture specific register naming into account, handles n-way
7508           comparisons, and supports quoted literals
7509         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7510
7511 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7512
7513         * src/mcs51/peeph.def: fixed bug #1076940
7514
7515 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7516
7517         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7518
7519 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7520
7521         Adding support for replacing ljmps with sjmps in jumptables
7522         generated for switch statements. For now you need to set the
7523         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7524         Now 4 algorithms for mcs51 jumptable generation are used:
7525         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7526         addresses loaded pc-relative for up to 112 cases and stack-pushing
7527         target addresses loaded with offset from dptr for up to 256 cases.
7528
7529         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7530         * src/mcs51/main.c: adapted constants for switch table generation
7531         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7532
7533 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7534
7535         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7536         * support/regression/tests/bug1057979.c: added test for bug 1073386
7537
7538 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7539
7540         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7541         compilers
7542
7543 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7544
7545         * src/pic16/device.h,
7546         * src/pic16/genarith.c,
7547         * src/pic16/glue.c,
7548         * src/pic16/main.c,
7549         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7550
7551 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7552
7553         Large cummulative patch for pic16 port.
7554         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7555         to call when a stack overflow occurs,
7556         * (malloc.h): added CVS Id tag,
7557         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7558         variable,
7559         * added libc directory. The current version of LibC contains string
7560         functions, ctype functions and macros and some functions of the
7561         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7562         be extensively tested in the future. Standard disclaimer here.
7563         Library is not automatically build yet. But one can build it by
7564         invoking 'make' inside the libc directory.
7565         * added ADC library under libio. Preliminary version yet.
7566
7567         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7568         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7569         aopForRemat() now and not by pic16_aopOp(),
7570         * (pic16_popGetTempReg): removed warning messgae when allocating
7571         temporary registers, its a buggy feature and will be removed,
7572         * (pic16_popGet): set register instance field in AOP_CRY,
7573         * (pic16_outBitC): fixed for results in size greater than 1,
7574         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7575         * (pic16_storeForReturn): optimized return of 0,
7576         * (genCmp): experimental code for new genCmp which uses PIC18's
7577         special compare&skip instructions. Initial tests fail some times
7578         with variables grater than 1 byte in size, so new code is disabled,
7579         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7580         a single bit,
7581         * (genCast): began a fix to optimize the casting of a bit to another
7582         bit, now assigning a bitfield to another bitfield will fail, sorry,
7583         * src/pic16/main.c: disabled the use of lr-support feature,
7584         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7585         * added some function prototypes, added function _debugf prototype,
7586         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7587         bits with offset (case PO_GPR_BIT),
7588         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7589         command line,
7590         * (isBankInstruction): modified to return 0 for no banking instruction,
7591         and 1 for banking instruction,
7592         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7593         caused stop processing pCodes after a inline assembly block,
7594         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7595         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7596         registers when it shouldn't,
7597         * src/pic16/ralloc.c (allocReg): add preliminary support for
7598         supporting a limited set of temporary registers,
7599
7600 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7601
7602         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7603           genDataPointerSet): ensure assignments always copy in MSB to LSB
7604           order,
7605           (loadRegFromAop): recognize CLRH optimization,
7606           (genFunction): optimize RECEIVE iCodes in reentrant functions
7607
7608 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7609
7610         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7611           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7612           selected.
7613         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7614         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7615           contiguous with data
7616
7617 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7618
7619         * device/lib/_gptrget.c (_gptrget),
7620         * device/lib/_gptrgetc.c (_gptrgetc),
7621         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7622           instead of sjmp to ret
7623         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7624           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7625
7626 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7627
7628         * .version: bumped version to 2.4.7
7629         * device/lib/_gptrget.c (_gptrget): is now _naked
7630         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7631         * device/lib/_gptrput.c (_gptrput): is now _naked
7632         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7633           (createFunction): fixed xstack
7634         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7635         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7636           or bit either,
7637           (geniCodeCritical): store original interrupt state in an iTemp bit
7638           var unless stack-auto
7639         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7640         * src/SDCCmain.c (setIncludePath): added include/target to search path
7641         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7642         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7643           prototype,
7644           (processFuncArgs): put bit vars in bit area
7645         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7646           unsaveRBank): fixed xstack,
7647           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7648           (genFunction, genEndFunction): fixed xstack,
7649           (genAssign): optimization don't walk backwards through mem
7650         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7651         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7652         * support/regression/Makefile: also make library (for stack-auto) when
7653           making "all" and added "test-mcs51-xstack-auto"
7654         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7655         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7656         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7657         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7658         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7659           make-library by MAKE_LIBRARY
7660         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7661           regression tests for xstack
7662         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7663         * support/regression/tests/critical.c: test for critical on mcs51
7664
7665 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7666
7667         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7668           built version of sdcc instead of installed version
7669
7670 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7671
7672         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7673         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7674           vprintf.c now
7675         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7676         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7677           WARNING: remove device/lib/build/z80/printf.o by hand when
7678           updating from previous build!
7679         * device/lib/z80/printf.c: updated comment
7680         * support/regression/tests/bug1057979.c: test all ports now
7681         * support/regression/tests/bug1065458.c: file added
7682
7683 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7684
7685         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7686           *_start and *_end symbols for static functions
7687
7688 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7689
7690         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7691           and search crt0.o in all library paths,
7692           (setIncludePath): proper handling of --nostdinc,
7693           (setLibPath): proper handling of --nostdlib
7694         * support/regression/Makefile,
7695         * support/regression/ports/ds390/spec.mk,
7696         * support/regression/ports/gbz80/spec.mk,
7697         * support/regression/ports/hc08/spec.mk,
7698         * support/regression/ports/mcs51/spec.mk,
7699         * support/regression/ports/mcs51-large/spec.mk,
7700         * support/regression/ports/mcs51-stack-auto/spec.mk,
7701         * support/regression/ports/z80/spec.mk: use include and lib files from
7702           built version of sdcc instead of installed version
7703         * doc/sdccman.lyx: fixed typo in --nostdinc
7704
7705 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7706
7707         * src/pic/pcode.c,
7708         * src/pic/device.c,
7709         * src/pic/ralloc.c,
7710         * src/pic/gen.c : added support to generate code for struct bit fields.
7711
7712 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7713
7714         * as/xa51/xa_version.h,
7715         * device/include/errno.h,
7716         * device/include/regc515c.h,
7717         * device/lib/_itoa.c,
7718         * device/lib/_ltoa.c,
7719         * device/lib/ser_ir_cts_rts.c,
7720         * sim/ucsim/xa.src/glob.cc,
7721         * sim/ucsim/xa.src/inst_gen.cc,
7722         * sim/ucsim/xa.src/xa_bit.cc,
7723         * sim/ucsim/xa.src/xa_sfr.cc,
7724         * sim/ucsim/z80.src/inst_dd.cc,
7725         * sim/ucsim/z80.src/inst_fdcb.cc,
7726         * support/scripts/keil2sdcc.pl,
7727         * src/pic16/pic16.dsp,
7728         * src/pic16/pic16a.dsp: corrected cvs line endings
7729         * device/lib/printf_large.c: fixed bug 1057979
7730         * src/pic16/gen.c: fixed non-C standard code
7731         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7732         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7733         * support/regression/ports/mcs51/support.c: reload T1 asap
7734         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7735           pdata use and clear idata startup behaviour
7736         * support/regression/tests/bug1057979.c: added
7737
7738 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7739
7740         * device/examples/ds390/ow390/ad26.h,
7741         * device/examples/ds390/ow390/cnt1d.h,
7742         * device/examples/ds390/ow390/crcutil.c,
7743         * device/examples/ds390/ow390/ownet.h,
7744         * device/examples/ds390/ow390/owsesu.c,
7745         * device/examples/ds390/ow390/swt12.h,
7746         * device/examples/ds390/ow390/swtoper.c,
7747         * device/examples/ds390/ow390/temp10.h,
7748         * device/examples/ds390/ow390/thermodl.c,
7749         * device/examples/ds390/tinitalk/tinitalk.dsp,
7750         * device/examples/ds390/tinitalk/tinitalk.dsw,
7751         * device/examples/mcs51/clock/hw.h,
7752         * device/examples/mcs51/simple2/go.bat,
7753         * device/examples/serialcomm/windows/serial.h,
7754         * device/examples/xa51/dummy.c,
7755         * device/examples/xa51/hello.c,
7756         * device/include/80c51xa.h,
7757         * device/include/at89x051.h: corrected cvs line endings
7758
7759 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7760
7761         * src/pic16/main.c (options): added command line --gstack, to trace
7762         stack over/under flows,
7763         * added pragma 'wparam' to allow passing first byte of function
7764         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7765         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7766         call to __gstack_test function and sets up the symbol as extern,
7767         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7768         * popaop): added call to pic16_testStackOverflow,
7769         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7770         wparamList list,
7771         * (genCall, genPcall): now all parameters are passed via stack
7772         except in functions that are pass to wparam pragma in which WREG is
7773         used too,
7774         * (genPcall): REENTRANT flag is checked to see if variable prototype
7775         contains reentrant keyword, don't call a non-reentrant function, via
7776         a reentrant function pointer or vice versa, functions are never
7777         passed via WREG,
7778         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7779         D.Winkler,
7780         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7781         SIGSEGV when accessing a NULL register stucture,
7782         * (pic16_printGPointerType): modified to handle UPPER modifier for
7783         function initializers, changed prototype of function to simpler one,
7784         * (pic16_printIvalFuncPtr): check to see if function is already
7785         added in externs list,
7786         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7787         optimized a move from W to SFR with a move to the same register
7788         later after a CALL,
7789         * device/lib/pic16/debug: NEW directory, contains debug features
7790         which are enabled when linking with libdebug.lib, currently command
7791         line option --gstack enables stack pointer tracing for over/under
7792         flow, corresponding sources are in debug/gstack
7793
7794 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7795
7796         * doc/sdccman.lyx: updated SDCC version,
7797         * (PIC16 port): update list of command line options,
7798         * src/pic16/device.h (structure pic16_options_t): added field gstack
7799         to enable stack overflow tracing on push/pops,
7800         * src/pic16/device.c (statistics structure): added statistics
7801         structure,
7802         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7803         pic16_dump_int_registers): increase statistics counters for each
7804         * variable which is encountered
7805         * (pic16_dump_usection): emit each .udata variable to its own udata
7806         section,
7807         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7808         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7809         parameters via stack, otherwise use old scheme,
7810         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7811         assembler output file,
7812         * src/pic16/main.c: added command line options --gstack to enable
7813         push/pop tracing for stack overflow,
7814         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7815         instructions): added size of each instruction,
7816         * (pic16_countInstruction): estimate size of instructions in
7817         the_pFile list, inline assembly blocks are not counted,
7818         * (pic16_FixRegisterBanking): trace previous register usage, when
7819         banksel optimizations is greater than 0, don't emit a redudant
7820         banksel directive,
7821
7822 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7823
7824         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7825         * src/pic16/ralloc.c : applied same fix for pic16.
7826         * src/pic/gen.c : tidied it up a little.
7827
7828 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7829
7830         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7831         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7832
7833 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7834
7835         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7836
7837 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7838
7839         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7840         non-reentrant function __modsint in the interrupt function (thus
7841         corrupting math operations during serial I/O)
7842         * device/lib/ser_ir.c: as above, changed buffersize
7843         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7844         256.c,d for zeroing
7845         * doc/Makefile: added option -t for rsync
7846
7847 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7848
7849         * src/SDCCast.h (struct ast),
7850         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7851
7852 2004-10-20 Borut Razem <borut.razem AT siol.net>
7853
7854         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7855         package
7856
7857 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7858
7859         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7860         makefile targets,
7861         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7862         support functions to replace long sequences of MOVFF's from access
7863         bank registers to stack and vice versa,
7864         * src/pic16/device.h: added new field opt_flags, where optimization
7865         flags can be set to enable certain features,
7866         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7867         * pBlock, (genFunction, genEndFunction): surroung loop for
7868         saving/loading used registers in stack with PC_INFO pCodes,
7869         INF_LREGS. Code in between can then be optimized by pCode optimizer
7870         to support function calls,
7871         * (genDataPointerSet): fixed bug which loaded float fields in
7872         structures with corrupt data,
7873         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7874         in a standard way debug info on stderr. Feature used for developing
7875         and debugging only,
7876         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7877         obsolete chunks of code,
7878         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7879         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7880         * pic16/src/pcode.c (pic16_newpCodeInfo,
7881         * (pic16_newpCodeOpLocalRegs),
7882         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7883         feature,
7884         * (pic16_pCodeConstString): printing of the initial value of a
7885         symbol as a comment is inhibited since parsing was already done by
7886         copyStr and output is corrupt,
7887         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7888
7889 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7890
7891         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7892
7893 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7894
7895         * as/mcs51/lkarea.c: removed old K&R style,
7896           (lnksect): changed check on boundary error,
7897           (lnksect2): changed check on boundary error,
7898           (lnksect2): extend XSTK to end of page if size = 1
7899         * as/mcs51/lkmain.c: removed old K&R style,
7900           (Areas51): create l_IRAM symbol
7901         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7902         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7903           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7904         * device/lib/_mullong.c: added version to be compiled with xstack
7905         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7906         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7907         * device/lib/mcs51/crtxstack.asm: fixed comment
7908         * src/SDCCglue.c: maxInterrupts defaults to 0,
7909           (emitMaps): added pdata,
7910           (createInterruptVect): (re)moved default,
7911           (glue): added pdata,
7912           (glue): moved __start__xstack to XSTK with default size 1
7913         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7914           and options.float_rent when options.stackAuto is set,
7915           (linkEdit): only write XDATA_NAME if provided on command line
7916         * src/SDCCmem.h,
7917         * src/SDCCmem.c: added pdata
7918         * src/port.h: added pdata_name to PORT
7919         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7920           (saveRegisters, unsaveRegisters): removed usage of B,
7921           (genMinus): fixed accumulator clash,
7922           (genJumpTab): added comment, this needs another look
7923         * src/mcs51/gen.c: added check for "B in use" paranoia,
7924           added pushB() and popB()
7925         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7926           chance
7927         * src/avr/main.c,
7928         * src/ds390/main.c,
7929         * src/hc08/main.c,
7930         * src/mcs51/main.c,
7931         * src/pic/main.c,
7932         * src/pic16/main.c,
7933         * src/xa51/main.c,
7934         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7935           added PSEG (PAG,XDATA) or NULL to port specifier
7936         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7937         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7938           (_mcs51_genInitStartup): removed __start__xstack equ,
7939           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7940         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7941         * src/z80/gen.c (_rleAppend): fixed warnings
7942         * support/regression/tests/zeropad.c: added pdata test
7943         * .version: bumped to 2.4.6
7944
7945 2004-10-17 Borut Razem <borut.razem AT siol.net>
7946
7947         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7948         as a part of nightly build
7949
7950 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7951
7952         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7953         WREG holds the first byte function parameters,
7954         * (aopForSym): take special case for symbols which are in FARSPACE
7955         but in CODESPACE too,
7956         * (assignResultValue): modified to take into account _G.useWreg,
7957         * (genCall): don't use wreg for parameter passing when function is
7958         declared as reentrant, too, added optimization INCF to stack
7959         pointer when stack parameter count is 1,
7960         * (genFunction, genEndFunction): refurnished and fixed to not using
7961         wreg for passing parameters when function has varargs or is
7962         reentrant, fixed bug with symbol name compare for generating
7963         functions in absolute address,
7964         * (pic16_storeForReturn): refurnished,
7965         * (genCmp): began writing a new version of the function, not ready
7966         yet, therefore it is disabled,
7967         * (genAssign): do not read code memory when assigning a function to
7968         a pointer function,
7969         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7970         array of characters, not pointer,
7971         * (pic16initialComments): in debug mode emit an .ident directive for
7972         the assembler,
7973         * (_process_pragma): emit a new warning type (internal to pic16)
7974         when setting stack to default length, emit a similar warning when
7975         placing a function at absolute address and address is not word aligned
7976         * (_pic16_parseOptions): added 'return TRUE' statement,
7977         * (_pic16_linkEdit): if compiling a source, then add the source's
7978         file object, first in the list of objects to link,
7979
7980 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7981
7982         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7983         * src/pic/main.c : removed VC warning.
7984         * src/pic/gen.c : changed comment.
7985
7986 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7987
7988         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7989         reference to a deprecated symbol _GPTRREG was causing failure to
7990         link. Thanks G. M. Gallant for the info.
7991
7992 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7993
7994         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7995         comments for Bugs item #954788.
7996
7997 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7998
7999         * src/pic16/device.c (pic16_dump_gsection,
8000         * pic16_groupRegistersInSection): handle symbols declared to be in
8001         access bank differently,
8002         * src/pic16/gen.c (struct _G): added field resDirect,
8003         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8004         send values read from stack directly to result and don't allocate
8005         temporary values,
8006         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8007         same registers,
8008         * (pic16_sameRegsOfs): NEW,
8009         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8010         free because they were not allocated from temporary pool,
8011         * pic16_popRegFromString): workaround to fix a problem with
8012         allocating variables twice or never,
8013         * (genGenPointerGet): using PRODL instead of FSR0H,
8014         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8015         instead of FSR0H,
8016         * (genAssign): take advantage of the _G.resDirect flag,
8017         * (genCast): around line 11844, use mov2f instead of directly
8018         MOVFF'ing between operands to account for literal values,
8019         * src/pic16/genutils.c: some new debug functions for gpsim have been
8020         added,
8021         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8022         float with integer part only,
8023         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8024         place variables in access bank
8025         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8026         updated sources to reflect recent changes in gen.c
8027
8028 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8029
8030         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8031         sources that searched for headers in installation path, now the
8032         device/include/pic16 is used,
8033         * src/pic16/glue.c (pic16glue),
8034         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8035         .line directives if not in debug mode, this suppresses assembler's
8036         warnings for ignored directives
8037
8038 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8039
8040         * src/port.h: made reset_regparms prototype void parameter explicit.
8041         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8042         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8043         * doc/sdccman.lyx: documented warning disabling and how to use
8044           printf_large to make it print floats.
8045         * device/include/stdbool.h: NEW
8046         * device/lib/_atof.c,
8047         * device/lib/_divuint.c,
8048         * device/lib/_divulong.c,
8049         * device/lib/expf.c,
8050         * device/lib/printf_large.c,
8051         * device/lib/sincosf.c,
8052         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8053         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8054           a completely reentrant lib.
8055
8056 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8057
8058         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8059         * device/include/pic16/stdio.h: fixed bug with colon
8060
8061 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8062
8063         * device/include/pic16/stdio.h,
8064         * device/include/pic16/stdlib.h,
8065         * device/include/pic16/math.h: NEW
8066         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8067         declared as _naked to reduce overhead
8068         * device/lib/Makefile.in (target port-specific-objects-pic16):
8069         changed * to *.* so to ignore the CVS directory,
8070         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8071         stacked variables back in stack,
8072         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8073         corruption
8074
8075 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8076
8077         * .version: bumped version number to 2.4.5
8078         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8079         * support/Util/SDCCerr.c (messages structure): added entry for
8080         W_POSSBUG2
8081
8082         Large cumulative patch for pic16 port and libraries.
8083         * device/include/pic16/sdcc-lib.h,
8084         * device/include/pic16/stdarg.h,
8085         * device/include/asm/pic16/features.h,
8086         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8087         * device/include/pic16/float.h: changes reentrant keyword with
8088         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8089         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8090         updated target build-libraries to include objects from gptr,
8091         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8092         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8093         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8094         all function headings,
8095         * src/SDCCmain.c: added global parameter userIncDirsSet,
8096         * (parseCmdLine): when option -I is encountered add directory to
8097         userIncDirsSet too,
8098         * src/version.awk: added space between control and long,
8099         * src/pic16/NOTES: added some notes for the port,
8100         * src/pic16/gen.c: added prototype for mov2fp function,
8101         * (fReturnpic16[]): properly named return value registers,
8102         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8103         * (aopForSym): added code to handle symbols with onStack flag set,
8104         symbols onStack are allocated PTRSIZE bytes,
8105         * (aopFreeAsmop): handles special case where asmops are stack objects,
8106         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8107         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8108         added argument lock to trace flaws in allocating temporary registers
8109         when developing port,
8110         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8111         * (pic16_popRegFromString): reenabled allocating a direct register
8112         from string,
8113         * (assignResultValue): various beautifications,
8114         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8115         referenced function argument,
8116         * (genIpush): reenabled to allow stacked arguments, handles only
8117         ic->parmPush iCodes,
8118         * (genCall, genPcall): major changes to allow for variable argument
8119         functions, fixed a bug with falsely restoring stack pointer after
8120         returning from call,
8121         * (genFunction): pending code for critical function,
8122         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8123         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8124         * (genNearPointerGet): fixed bug with indirect reading, was always
8125         reading from INDF0
8126         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8127         pointers,
8128         * (genAddrOf): rewrote code to take address of a stacked function parameter
8129         * (genCast): fixed casting to generic pointer type,
8130         * src/pic16/gen.h: added AOP_STA,
8131         * (struct asmop): added field stk,
8132         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8133         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8134         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8135         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8136         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8137         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8138         generic pointers,
8139         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8140         and library paths,
8141         * (pic16_port structure): generic pointer size is set to 3,
8142         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8143         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8144         compiler warning,
8145         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8146         operand is an iTemp,
8147
8148 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8149
8150         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8151         * debugger/mcs51/simi.c: addapt new syntax of s51
8152
8153 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8154
8155         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8156         * src/pic16/pcode.c: commented out some calls to free() in order to
8157         fix bug #989576,
8158
8159 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8160
8161         * src/SDCCicode.h,
8162         * src/SDCCicode.c (isiCodeInFunctionCall),
8163         * src/avr/ralloc.c (selectSpil),
8164         * src/pic/ralloc.c (selectSpil),
8165         * src/pic16/ralloc.c (selectSpil),
8166         * src/ds390/ralloc.c (selectSpil),
8167         * src/hc08/ralloc.c (selectSpil),
8168         * src/xa51/ralloc.c (selectSpil),
8169         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8170         stack in the middle of a function call sequence (fixes bug #1020268)
8171         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8172         costs associated with the minimum switch case.
8173
8174 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8175
8176         * src/SDCC.lex: fixed bug #1030549
8177
8178 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8179
8180         * src/SDCCcse.h (struct cseDef),
8181         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8182         over a function call if the CSE is derived from a symbol whose
8183         address has been taken (fixes bug #1029883)
8184         * support/regression/tests/bug-1029883: a new regression test for
8185         this bug
8186
8187 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8188
8189         * src/hc08/gen.c (emitinline): fixed bug #1029778
8190         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8191         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8192         and starts toward RFE #905167)
8193
8194 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8195
8196         * src/pic16/gen.c (mov2f): New function to move an operand to
8197         another without considering if it is a literal or a register,
8198         * (pic16_sameRegs): don't check if they are both AOP_REG,
8199         * (AccRsh): removed andmask=0 lines,
8200         * (genLeftShift): duplicated to be improved in future versions,
8201         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8202         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8203         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8204         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8205         * (insertBankSwitch): fixed inserting banksel directives algorithm
8206         for instructions that follow a skip instruction, this fixes a report
8207         for broken subtraction code generation,
8208         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8209         iCode is a left op, just in case result and right share the same
8210         registers
8211
8212 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8213
8214         * src/hc08/main.c,
8215         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8216         preservation of HX
8217         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8218         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8219         on 2004-09-12; it was buggy
8220
8221 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8222
8223         * src/SDCCsymt.h: removed RESULT_CHECK
8224         * src/SDCCast.c,
8225         * src/SDCCglue.c,
8226         * src/SDCCval.c,
8227         * src/pic/glue.c,
8228         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8229
8230 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8231
8232         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8233         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8234         configuration values no more rejected by compiler, they are assigned
8235         to configuration registers with a warning message instead,
8236         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8237         the for-loop so last conf register is emitted too,
8238         * (_pic16_initPaths): link library libsdcc.lib by default,
8239         * (_hasNativeMulFor): modified test for multiplication according to
8240         Raphael Neider's remarks. Integer multiplication is also done with
8241         support functions,
8242         * device/include/pic16/pic18fregs.h: corrected type error in while
8243         testing and including 18f6720 header file
8244
8245 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8246
8247         * src/pic16/device.h (pic16_options): removed field use_crt,
8248         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8249         until an optimization to handle single bits is added,
8250         * (pic16_loadFSR0): moved before genUnpackBits,
8251         * (genAnd): some white lines removed,
8252         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8253         leave_reset flags in pic16_options when using crt modules,
8254
8255 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8256
8257         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8258           for bugs 898889 & 979599. Also used some safer print instructions.
8259
8260 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8261
8262         * src/pic16/device.h (pic16_options_t): added field use_crt,
8263         crt_name, no_crt,
8264         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8265         catch a probable future bug,
8266         * src/pic16/gen.c: aopIdx function commented out,
8267         * (genAssign): commented out old code which used aopIdx,
8268         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8269         code, added if conditionals to take into account the --use-crt
8270         command line options,
8271         * src/pic16/main.c (pic16_optionsTable): added new command line
8272         options, --use-crt= and --no-crt,
8273         * (_pic16_linkEdit): now the proper crt object is added in the
8274         linker command line except than when --no-crt is specified,
8275         * src/pic16/pcode.c,
8276         * src/pic16/pcode.h: added some structures and functions for a new
8277         optimization scheme to compansate for instruction overhead between
8278         same iCodes, this scheme is currently under development and is not
8279         working in any way,
8280         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8281         to && operator,
8282         * device/lib/pic16/startup/crt0i.c,
8283         * device/lib/pic16/startup/crt0iz.c: added global char variable
8284         __uflags to force the generation of an idata section
8285
8286 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8287
8288         * doc/Makefile,
8289         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8290         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8291
8292 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8295         Frieder) and clarified the default code optimization mode
8296
8297 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8298
8299         * src/SDCC.lex (doPragma, process_pragma),
8300         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8301         "opt_code_size", and "opt_code_balanced"
8302         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8303         regrouped options by category, added support for category headers
8304         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8305         and "--opt-code-size"
8306         * doc/sdccman.lyx: documented these new options and pragmas
8307         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8308         preference into account
8309
8310 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8311
8312         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8313           geniCodePreDec): Fixed bug 904237 by generating a warning
8314         * src/SDCCerr.h,
8315         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8316
8317 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8318
8319         * src/pic/device.c : When no max ram set validate full memory range.
8320         * src/pic/pcode.c,
8321         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8322
8323 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8324
8325         * device/lib/_gptrget.c,
8326         * device/lib/_gptrput.c: updated comment
8327         * device/lib/calloc.c,
8328         * device/lib/free.c,
8329         * device/lib/malloc.c,
8330         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8331         * src/SDCCcse.c (cseBBlock),
8332         * src/SDCCicode.c (printOperand, geniCodeArray),
8333         * src/SDCCicode.h (struct operand): fixed bug 868103
8334         * support/regression/tests/bug-868103.c: added
8335         * src/SDCCast.c (searchLitOp),
8336         * src/SDCCcse.h (struct cseDef),
8337         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8338         * src/SDCCicode.h (struct operand),
8339         * src/SDCCsymt.h (struct sym_link),
8340         * src/avr/gen.c (hasInc),
8341         * src/ds390/gen.c (hasInc),
8342         * src/hc08/gen.c (genPlusIncr, hasInc),
8343         * src/mcs51/gen.c (hasInc),
8344         * src/pic16/glue.c (pic16_printIvalChar),
8345         * src/pic16/ralloc.c (regWithIdx),
8346         * src/xa51/gen.c (hasInc) : removed warnings
8347         * src/SDCCast.c (createBlock): added comment ???
8348         * src/hc08/ralloc.c: updated comments
8349
8350 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8351
8352         * doc/sdccman.lyx: updated section on switch statements, added
8353         section about semaphore locking
8354         * doc/Makefile: added option -info for latex2html
8355         * device/lib/_gptrget.c,
8356         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8357
8358 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8359
8360         * src/pic/device.h,
8361         * src/pic/device.c,
8362         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8363          maxram is less than 0x100.
8364
8365 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8366
8367         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8368
8369 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8370
8371         * src/port.h,
8372         * src/mcs51/main.c,
8373         * src/ds390/main.c,
8374         * src/z80/main.c,
8375         * src/hc08/main.c,
8376         * src/pic/main.c,
8377         * src/pic16/main.c,
8378         * src/avr/main.c,
8379         * src/xa51/main.c
8380         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8381         a jump table is the best form for a switch statement, including
8382         automatic insertion of missing cases to make the case range
8383         continuous. Developed in collaboration with Frieder Ferlemann.
8384
8385 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8386
8387         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8388         accumulator result if it needs sign extension
8389
8390 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8391
8392         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8393
8394 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8395
8396         * device/lib/gbz80/printf.c,
8397         * device/lib/z80/printf.c: removed define for NULL
8398
8399 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8400
8401         * as/xa51/xa_link.c,
8402         * device/examples/ds390/ow390/ad26.c,
8403         * device/examples/ds390/ow390/cnt1d.c,
8404         * device/examples/ds390/ow390/counter.c,
8405         * device/examples/ds390/ow390/ds2480.h,
8406         * device/examples/ds390/ow390/ds2480ut.c,
8407         * device/examples/ds390/ow390/findtype.c,
8408         * device/examples/ds390/ow390/gethumd.c,
8409         * device/examples/ds390/ow390/owllu.c,
8410         * device/examples/ds390/ow390/ownetu.c,
8411         * device/examples/ds390/ow390/swt12.c,
8412         * device/examples/ds390/ow390/swtloop.c,
8413         * device/examples/ds390/ow390/temp.c,
8414         * device/examples/ds390/ow390/temp10.c,
8415         * device/examples/ds390/ow390/thermo21.c,
8416         * device/examples/ds390/ow390/tinilnk.c,
8417         * device/examples/ds390/ow390/tstfind.c,
8418         * device/examples/serialcomm/windows/serial.cpp,
8419         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8420         * device/include/reg51.h: fixed line endings for cvs
8421
8422 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8423
8424         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8425         packRegsForAccUse, packRegisters): new accumulator register
8426         packing algorithm
8427         * support/regression/ports/hc08/support.c (_putchar): suppress
8428         warning of unused variable
8429         * src/SDCCicode.c: added SWAP entry to codeTable
8430
8431 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8432
8433         * device/lib/sprintf.c: forgot to add this file before previous commit
8434
8435 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8436
8437         * src/pic16/gen.c (genPackBits): added operand right in function
8438         parameters, load result directly if p_type is POINTER (that is
8439         called by genNearPointerSet)
8440         * (genUnPackBits): added operand left in function parameters,
8441         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8442         FSR0 if accessing bitfields,
8443
8444 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8445
8446         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8447           _print_format; updated printf, sprintf, vsprintf
8448         * device/include/asm/default/features.h: corrected comment/define
8449         * device/lib/Makefile.in: added sprintf.c
8450         * device/lib/libsdcc.lib: added sprintf module
8451         * device/lib/printf_large.c,
8452         * device/lib/vprintf.c,
8453         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8454           into these 3 files
8455         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8456         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8457         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8458           hc08 test
8459         * support/regression/tests/zeropad.c: define idata as data for hc08
8460
8461 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8462
8463         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8464         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8465         labels are referenced at least once (even if a reference is not found)
8466         * src/hc08/gen.c (emitcode): set isComment flag for comments
8467         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8468         loads), rules 6a..6b (optimize jumps to return)
8469
8470 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8471
8472         * device/lib/acosf.c (acosf),
8473         * device/lib/asinf.c (asinf),
8474         * device/lib/atanf.c (atanf),
8475         * device/lib/ceilf.c (ceilf),
8476         * device/lib/cosf.c (cosf),
8477         * device/lib/coshf.c (coshf),
8478         * device/lib/cotf.c (cotf),
8479         * device/lib/fabsf.c (fabsf),
8480         * device/lib/floorf.c (floorf),
8481         * device/lib/log10f.c (log10f),
8482         * device/lib/logf.c (logf),
8483         * device/lib/sinf.c (sinf),
8484         * device/lib/sinhf.c (sinhf),
8485         * device/lib/sqrtf.c (sqrtf),
8486         * device/lib/tanf.c (tanf),
8487         * device/lib/tanhf.c (tanhf),
8488         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8489         replaced all instances of "reentrant" in the library functions
8490         defined in math.h with this macro.
8491         * support/regression/tests/float_trans.c: reenabled test for hc08
8492
8493 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8494
8495         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8496         erroneously deleted
8497
8498 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8499
8500         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8501         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8502         multi-byte volatile operands are used
8503         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8504         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8505         initialization to area GSINIT0 so that it would always precede
8506         any static initializers in GSINIT
8507         * support/regression/tests/zeropad.c: fixed idata define for hc08
8508         * support/regression/tests/bug-927659.c,
8509         * support/regression/tests/float_trans.c: disabled tests for hc08
8510         pending missing library routines
8511         * .version: increased version number to 2.4.4 - hc08 port now passes
8512         regression tests
8513
8514
8515 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8516
8517         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8518         * Makefile.common.in,
8519         * as/Makefile,
8520         * as/hc08/Makefile.in,
8521         * as/mcs51/Makefile.in,
8522         * as/z80/Makefile.in,
8523         * debugger/mcs51/Makefile.in,
8524         * device/include/Makefile.in,
8525         * device/lib/Makefile.in,
8526         * doc/Makefile,
8527         * link/Makefile,
8528         * link/z80/Makefile.in,
8529         * packihx/Makefile.in,
8530         * sim/ucsim/main_in.mk,
8531         * sim/ucsim/avr.src/Makefile.in,
8532         * sim/ucsim/doc/Makefile.in,
8533         * sim/ucsim/gui.src/serio.src/Makefile.in,
8534         * sim/ucsim/hc08.src/Makefile.in,
8535         * sim/ucsim/s51.src/Makefile.in,
8536         * sim/ucsim/xa.src/Makefile.in,
8537         * sim/ucsim/z80.src/Makefile.in,
8538         * src/Makefile.in,
8539         * support/cpp2/Makefile.in,
8540         * support/librarian/Makefile,
8541         * support/makebin/Makefile: added DESTDIR to the install path proposed
8542         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8543         * doc/sdccman.lyx: added DESTDIR documentation
8544
8545 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8546
8547         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8548         instruction for interrupt handlers, use fast returns when returning
8549         from high priority interrupts
8550
8551 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8552
8553         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8554         code generation
8555         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8556         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8557         bugs, ported much of Bernhard's code from mcs51
8558         * src/mcs51/gen.c (genSend),
8559         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8560         than one when calling a reentrant function
8561         * device/lib/_mullong.c: defined an alternate struct layout for big
8562         endian ports (hc08)
8563
8564 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8565
8566         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8567         test
8568
8569 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8570
8571         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8572         are sane and complete before asking the port its prefered parameter
8573         passing method (fixes bug #1017633)
8574         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8575         and _ret3
8576
8577 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8578
8579         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8580         problem in bitfields >= 8 bits.
8581
8582 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8583
8584         * src/SDCCsymt.c: undid changes that were not meant to be committed
8585
8586 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8587
8588         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8589
8590 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8591
8592         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8593           copied and wrong bit got inverted
8594
8595 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8596
8597         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8598         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8599         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8600         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8601         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8602         assignments to bitfields at known addresses
8603         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8604         reads from bitfields at known addresses
8605         * src/hc08/ralloc.c (packRegisters),
8606         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8607         genhc08Code): optimize pointer get values used as conditionals
8608         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8609         and branch
8610
8611 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8612
8613         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8614         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8615         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8616         as conditionals
8617
8618 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8619
8620         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8621
8622 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8623
8624         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8625         related problems
8626
8627 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8628
8629         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8630
8631 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8632
8633         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8634         mcs51 port
8635
8636 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8637
8638         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8639
8640 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8641
8642         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8643         cases use more compact code.
8644
8645 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8646
8647         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8648
8649 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8650
8651         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8652
8653 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8654
8655         * src/SDCCsymt.h,
8656         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8657         parameter of changePointer() from symbol* to sym_link*
8658         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8659         * src/SDCCsymt.c (compareType): void* type is castable to other
8660         pointers, but not necesarily an exact match.
8661         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8662         is no longer blindly treated as an exact match.
8663         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8664
8665 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8666
8667         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8668
8669 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8670
8671         * src/pic/gen.c,
8672         * src/pic/pcode.c,
8673         * src/pic/ralloc.h,
8674         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8675
8676 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8677
8678         * src/pic/device.c,
8679         * src/pic/device.h,
8680         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8681
8682 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8683
8684         * src/mcs51/gen.c (emitcode): fixed bug #992819
8685
8686 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8687
8688         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8689           there's no need to make it worse
8690
8691 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8692
8693         * src/mcs51/ralloc.c (deassignLR),
8694         * src/ds390/ralloc.c (deassignLR),
8695         * src/hc08/ralloc.c (deassignLR),
8696         * src/z80/ralloc.c (deassignLR),
8697         * src/pic/ralloc.c (deassignLR),
8698         * src/pic16/ralloc.c (deassignLR),
8699         * src/avr/ralloc.c (deassignLR),
8700         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8701         rlivePoint): fixed another part of bug #971834
8702
8703 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8704
8705         * src/z80/main.c: enabled "critical" keyword
8706         * src/z80/mappings.i,
8707         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8708         functions (fixes bug #979646)
8709         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8710
8711 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8712
8713         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8714           such as c:\mydir.
8715
8716 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8717
8718         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8719           doesn't disable too much optimizations
8720
8721 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8722
8723         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8724
8725 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8726
8727         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8728
8729 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8730
8731         * src/pic/gen.c tidied up tabs
8732         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8733         * src/pic/main.c tidied up tabs
8734         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8735         * src/pic/pcoderegs.c tidied up tabs
8736         * src/pic/ralloc.c tidied up tabs
8737
8738 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8739
8740         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8741         to S_FIXED for pic16 port and when symbol is not in level 0,
8742         allocate for S_REGISTER storage class and pic16 port, too,
8743         * src/pic16/device.h: prototype for checkSym,
8744         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8745         * (pic16_assignConfigWordValue): test the value and the mask to
8746         validate that the value is suitable for the configuration word,
8747         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8748         collect extern declared symbols, don't emit symbol twice, check
8749         first if symbol is in publics set first,
8750         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8751         * added command line '--fstack' which enables an experimental
8752         feature for stack access, too buggy to be used yet...
8753         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8754         * (pic16_allocDirReg): when register has storage class S_REGISTER
8755         allocate in pic16_dynAccessRegs,
8756         * device/include/pic16/pic18f????.h: modified configuration word
8757         naming convention, words started as CONFIG0H but should be CONFIG1H
8758
8759 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8760
8761         * device/include/mcs51reg.h: fixed bug 970993
8762
8763 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8764
8765         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8766         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8767         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8768         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8769         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8770         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8771           error/warning numbers,
8772           added function setWarningDisabled()
8773         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8774         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8775           _memcmp.c _memmove.c calloc.c realloc.c free.c
8776         * support/regression/tests/malloc.c: added tests for new functionality
8777         * support/regression/tests/zeropad.c: added tests for truncated initializers
8778           and initialized char arrays starting with '\x0'
8779         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8780
8781 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8782
8783         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8784
8785 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8786
8787         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8788         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8789         peephole 177.e. Thanks to anonymous
8790
8791 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8792
8793         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8794         function isn't used in the source but referenced as a
8795         variable initializer then declare it as extern in .asm file
8796
8797 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8798
8799         * .version: increased version number to 2.4.3
8800
8801         Adding version extension according to ChangeLog CVS revision
8802         * src/Makefile.in (target all): added dependency 'version.h'
8803         * (rule version.h): added rule to create version.h from ChangeLog,
8804         * (rule dep): added dependency version.h,
8805         * src/version.awk: AWK script to create version.h
8806         * src/SDCCdwarf2.c (dwWriteModule),
8807         * src/SDCCglue.c (initialComments),
8808         * src/SDCCmain.c (printVersionInfo): modified to write after
8809         version string the version extension number,
8810         * src/SDCCutil.c: included "version.h"
8811         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8812         number,
8813         * src/SDCCutil.h: added prototype for getBuildNumber
8814
8815         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8816         includeDirsSet, too,
8817         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8818         const char [] is found in function prototype...
8819
8820         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8821         moving to WREG with source is already in WREG,
8822         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8823         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8824         * (aopForSym): stack'ed symbols are partially supported, added
8825         if-clause to support symbols in FARSPACE,
8826         * (sameRegs): added test for AOP_ACC to see if registers are same,
8827         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8828         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8829         * (pic16_popRegFromString): will not allocate a new register if it
8830         doesn't find one by name, bug may have introduced...
8831         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8832         * (genIpush): revived to use pic16 port's stack,
8833         * (genAddrOf): added incomplete case for stack'ed operand,
8834         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8835         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8836         can handle multibyte operands,
8837         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8838         * (pic16initialComments): added message for MPLAB compatibility
8839         mode enabled,
8840         * src/pic16/main.h: prototype for pic16_mplab_comp,
8841         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8842         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8843         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8844         because of increased complexity of procedure,
8845         * (_process_pragma): stack pragma changed to format 'stack pos len',
8846         emit symbol '_stack_end' to conform with gplink,
8847         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8848         to search for register,
8849         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8850         PO_GPR_REGISTER,
8851         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8852         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8853         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8854         case for PO_GPR_REGISTER,
8855         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8856         dies, the new era is ahead !...
8857         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8858         pic16_dynInternalRegs,
8859         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8860         * (pic16_allocDirReg): minor optimizations and bug fixes,
8861         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8862
8863         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8864         load stack and frame pointer with address of 'stack_end' symbol
8865
8866 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8867
8868         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8869         without source code but only variable initializers
8870
8871 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8872
8873         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8874         external are not declared as extern to reduce overhead while linking
8875
8876 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8877
8878         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8879
8880 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8881
8882         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8883           Yee Keat for the patch
8884         * src/SDCCast.c (decorateType): fixed bug #979599
8885         * src/ds390/gen.h: removed local fReturnSizeDS390
8886         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8887         * src/ds390/gen.c (genAnd, genOr, genXor),
8888         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8889
8890 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8891
8892         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8893         add relFilesSet to $3, manipulate $2 to handle linking of object
8894         files without source files in command line,
8895         * device/include/pic16 (all headers): added ID location macros,
8896         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8897         entries for ID location bytes,
8898         * (pic16_assignIdByteValue): NEW,
8899         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8900         added field dumpcalltree to pic16_options_t,
8901         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8902         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8903         emitting rFalseIfx label after check_carry label,
8904         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8905         pic16_emitDIRegs), NEW
8906         * (pic16glue): dump .calltree file when option --calltree found,
8907         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8908         * (_pic16_genAssemblerPreamble): emit ID locations after
8909         configuration registers,
8910         * (pic16_linkCmd): modifications of the link command,
8911         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8912         * (pic16_pCodeInitRegisters): don't init stack registers,
8913         * (pic16_findPrevInstruction): fixed bug,
8914         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8915         bug with immediate registers,
8916         * (buildCallTree): traces stack push and pop,
8917         * (pct2): dump also stack usage for each function,
8918         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8919         * (pic16_allocDirReg): various modifications,
8920         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8921         fixed to 1,
8922
8923 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8924
8925         * src/pic16/pcode.c: removed buggy double colon
8926
8927 2004-07-01 Borut Razem <borut.razem AT siol.net>
8928
8929         * support/scripts/sdcc.nsi: added include/pic16 to setup
8930
8931 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8932
8933         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8934         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8935         target 'clean',
8936         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8937         specific command line arguments. Also added sample lkr script
8938         for placing a variable at a specific memory bank.
8939         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8940         at a specific memory bank,
8941         * (pic16_dump_isection): fixed bug which caused string literals to
8942         be omitted when dumping idata section,
8943         * (pic16_groupRegistersInSection): added code to handle registers
8944         in specific memory banks,
8945         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8946         public, all references are renamed too,
8947         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8948         AOP_DPTR2,
8949         * (pic16_storeForReturn): added case to handle when dest is WREG,
8950         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8951         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8952         pic16_rel_udata, check to see if that register is marked as being
8953         a member of a specific memory bank,
8954         * (pic16_printIvalCharPtr): added code to add string literals either
8955         to code or the idata sections,
8956         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8957         also accept the 'udata' pragma,
8958         * src/pic16/main.h: new structure types sectName and sectSym
8959         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8960         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8961         * (pic16_findPrevInstruction): fixed, it returned nothing,
8962         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8963         instruction combinations,
8964         * (pic16_FixRegisterBanking): heavily reorganised,
8965         * (pic16_AnalyzeBanking): if generating banksel directives is
8966         disabled, then don't call FixRegisterBanking at all,
8967         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8968         completely removed,
8969         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8970
8971 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8972
8973         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8974         Phuah Yee Keat <yk.phuah AT nestac.com>
8975
8976 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8977
8978         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8979         correctly the IVT even if it is relocated to some other location
8980
8981 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8982
8983         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8984         * device/include/pic16/pic18f2220.h: NEW,
8985         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8986         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8987         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8988         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8989         nodefaultlibs, ivt_loc is the location of the interrupt vector
8990         table, and nodefaultlibs signs that default libraries should not be
8991         linked in link stage,
8992         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8993         according to --ivt-loc argument,
8994         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8995         when pragma stack is found,
8996
8997 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8998
8999         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9000         256 (range check), 257 (do while), 258.a-f (bit banging
9001         f.e. on 3-wire SPI bus)
9002
9003 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9004
9005         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9006         variables used exclusively within a loop
9007
9008 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9009
9010         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9011
9012 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9013
9014         * src/SDCClrange.c (computeClash): fixed bug #971834
9015
9016 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9017
9018         * src/mcs51/gen.c (genCmp): fixed bug #975903
9019         * src/hc08/gen.c (operandsEqu),
9020         * src/ds390/gen.c (operandsEqu),
9021         * src/z80/gen.c (operandsEqu),
9022         * src/pic/gen.c (operandsEqu),
9023         * src/pic16/gen.c (operandsEqu),
9024         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9025         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9026
9027 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9028
9029         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9030
9031 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9032
9033         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9034         default case in switch statement,
9035         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9036         to eliminate problem with initialisation of pointers, but problem
9037         still exists,
9038         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9039         * (emitStaticSegment): removed various lines emitting debug info,
9040         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9041         added processor registers for utilizing EEPROM,
9042         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9043         configurable and set 8
9044
9045 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9046
9047         * .version: increased version number to 2.4.2,
9048
9049         Cumulative patch for pic16 port
9050         * src/pic16/device.c: changed scheme to dump initial values for
9051         variables in idata segment, all print_idata* functions were removed,
9052         now the pic16_printIval* will be called,
9053         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9054         * _pic16_printPointerType, pic16_printPointerType,
9055         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9056         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9057         NEW, similar to the respective functions in SDCCglue.c,
9058         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9059         way, emitting hex bytes,
9060         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9061
9062 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9063
9064         * src/avr/ralloc.c (serialRegAssign),
9065         * src/xa51/ralloc.c (serialRegAssign),
9066         * src/pic/ralloc.c (serialRegAssign),
9067         * src/pic16/ralloc.c (serialRegAssign),
9068         * src/hc08/ralloc.c (serialRegAssign),
9069         * src/z80/ralloc.c (serialRegAssign),
9070         * src/ds390/ralloc.c (serialRegAssign),
9071         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9072
9073 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9074
9075         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9076         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9077
9078 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9079
9080         Cumulative patch for pic16 port:
9081         * src/pic16/device.h (typedef PIC16_device) modified fields for
9082         defining microcontrollers,
9083         * src/pic16/device.c: added new info for all devices in Pics16 array,
9084         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9085         to be optimised out by the pCode optimiser,
9086         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9087         specially, bug reported by G.M. Gallant,
9088         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9089         as force'd so that cannot be optimised out by pCode optimiser,
9090         * src/pic16/pcode.c,
9091         * src/pic16/pcodepeeph.c,
9092         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9093         they are disabled by default, but can be enabled explicit with
9094         command argument --denable-peeps, for testing,
9095         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9096         --pomit-ivt in COMPILE_FLAGS
9097
9098 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9099
9100         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9101           compilation on MSVC
9102
9103 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9104
9105         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9106
9107 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9108
9109         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9110         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9111
9112 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9113
9114         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9115         would only assign 0x300001 register.
9116
9117 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9118
9119         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9120         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9121
9122 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9123
9124         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9125         for ds80c400
9126         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9127         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9128         added peephole 254 (left shift), 255 (jump table)
9129
9130 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9131
9132         * device/lib/Makefile.in: removed comment line with model-pic16,
9133         * (target port-specific-objects-pic16): the libraries and objects
9134         are copied to the build directory form the device/lib/pic16/bin
9135         directory
9136
9137         Cumulative patch concerning pic16 port:
9138         * library directory has been re-organized,
9139         * added support for PIC18F1220,
9140         * added headers and library sources for chips 18f1220,18f6520,
9141         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9142
9143         * configuration registers setting has changed, now each supported
9144         device has a complete description of the registers it uses,
9145         * all initialisations are moved to idata sections, these section
9146         can be absolute or relocatable,
9147         * fixed initialisation of codespace variables,
9148         * fixed warning about PCLATU and gpsim,
9149         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9150         * (genAssign): use table reads when assigning from variables in codespace,
9151         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9152         char/int variables placed in codespace,
9153         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9154         registers set in .asm file, no need for --pomit-config-words anymore,
9155         * (pic16glue): some 8051 legacy segments are commented out
9156         (to be removed completely),
9157         * added support for alternative assembler and linker with --asm=
9158         and --link= command line arguments,
9159         * peepholes are disabled automatically in the port, no need to
9160         specify on command line,
9161         * port supports natively char/int/long multiplication, but converts
9162         all divisions to support functions,
9163         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9164         to the file set in variable $2,
9165         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9166         strings in ASCII format and not in hex,
9167         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9168         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9169         allocate proper register if iCodes aren't temporary,
9170
9171 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9172
9173         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9174
9175 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9176
9177         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9178         is commented out
9179
9180 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9181
9182         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9183         computed address is reused
9184         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9185         multi-byte bitfields
9186
9187 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9188
9189         * src/z80/gen.c: (genArrayInit): must check for pointers too
9190
9191 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9192
9193         * support/regression/tests/zeropad.c: never meant to commit the
9194           nestedstruct test: removed, added check for GCC version
9195
9196 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9197
9198         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9199         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9200         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9201           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9202           bugs 928906 and 954082 half-empty initializers
9203         * src/SDCCsymt.h,
9204         * src/SDCCsymt.c (getAllocSize): added for above fix
9205         * src/z80/gen.c (genArrayInit): fixed bug 741044
9206         * support/regression/tests/zeropad.c: added tests
9207
9208 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9209
9210         * src/pic16/device.c (pic16_dump_section): corrected bug which
9211         caused some symbols of the libraries to be misplaced
9212
9213 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9214
9215         * src/pic16/glue.c,
9216         * src/pic16/ralloc.h,
9217         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9218         to fix conflict with pic port
9219
9220 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9221
9222         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9223         externs configuration variables,
9224         * src/pic16/ralloc.h,
9225         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9226         prototype in header, commented out some debug messages
9227
9228 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9229
9230         * src/pic16/glue.c,
9231         * src/pic16/main.c,
9232         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9233         for gpasm COFF object generation. Thanks to D. Hawkins for
9234         his patch info
9235
9236 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9237
9238         * src/ds390/main.c,
9239         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9240         Brock for spotting this)
9241         * src/ds390/gen.c (genEndFunction),
9242         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9243         interrupt handler and critical. Disable push/pop optimizations when
9244         peephole optimizations disabled.
9245
9246 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9247
9248         Updated pic16 library sources and headers.
9249         * device/lib/pic16/pic18f*/ ,
9250         * device/include/pic16/*.h: modified to handle structured SFR
9251         definitions
9252
9253 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9254
9255         * src/port.h (PORT structure): added hook initPaths, now each
9256         port can declare its own default search paths,
9257         which can been seen with the --print-search-dirs option,
9258         see pic16 port for example,
9259         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9260         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9261         * (doPrintSearchDirs): NEW, replaces in a central manner the
9262         printing of search dirs which was split in set*Paths functions,
9263         * (main): added call to port->initPaths and doPrintSearchDirs,
9264         * src/avr/main.c,
9265         * src/ds390/main.c,
9266         * src/hc08/main.c,
9267         * src/izt/i186.c,
9268         * src/izt/tlcs900h.c,
9269         * src/mcs51/main.c,
9270         * src/pic/main.c,
9271         * src/pic16/main.c: modified port structures to reflect addition of
9272         initPaths hook,
9273
9274         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9275         * (pic16_dump_section): for registers in same address reserve memory once,
9276         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9277         to no_banksel,
9278         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9279         result is greater in size than right or left,
9280         * (pic16_genUMult8X8_8): there are some cases where the result can
9281         be 16 bits size, so handle these,
9282         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9283         * (pic16_outBitC): modified to emit pcodes,
9284         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9285         or not,
9286         * (genDivOneByte): implemented algorithm to divide 8-bits,
9287         * (genCmp): uncommented goto, but issues still exist,
9288         * (genAnd): fixed a bug with variables >8bits,
9289         * (genPackBits): optimization added that uses BCF/BSF to change a
9290         single bit,
9291         * (genAssign): fixed bug when assigning floating point literals,
9292         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9293         __sdcc_gsinit_startup label,
9294         * src/pic16/main.c (_pic16_init): removed search directory
9295         initialisations,
9296         * (_pic16_initPaths): NEW, used to initialise search directories,
9297         * (_hasNativeMulFor): support functions for all except char/int
9298         multiplication, and char division,
9299         * (PIC16_port struct): modified entry for native mul support,
9300         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9301         no_banksel option,
9302         * (buildCallTree): call to register_usage is ifdef'ed out,
9303
9304 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9305
9306         * device/include/string.h: applied Stas Sergeev's patch to make this
9307         header file compatible with the preprocessor -Wundef option
9308         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9309         failure (fixes bug #941458)
9310
9311 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9312
9313         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9314         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9315         that the variable, not the function, should be static
9316         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9317         to be consistent with non-literal case
9318
9319 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9320
9321         * src/SDCCast.c (isConformingBody): fixed bug #949967
9322         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9323         convilong): fixed bug #952086
9324
9325 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9326
9327         * src/SDCCmem.c (allocVariables): fixed bug #955321
9328
9329 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9330
9331         * src/hc08/main.c (_hc08_genAssemblerEnd),
9332         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9333         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9334         completely eliminated the use of a temporary file
9335         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9336         when more than one file linked
9337         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9338
9339 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9340
9341         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9342         which fixes bug #543481
9343         * support/regression/tests/bug-751703.c: fixed comments left from a
9344         cut and paste error
9345         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9346         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9347         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9348         scopes
9349         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9350         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9351         are now changed to underscores in moduleName
9352
9353 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9354
9355         * as/mcs51/lkmem.c: better fix for bug #954173
9356
9357 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9358         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9359
9360         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9361         * device/include/c8051f000.h,
9362         * device/include/c8051f120.h,
9363         * device/include/c8051f300.h,
9364         * device/include/c8051f310.h,
9365         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9366         PWM16) and detab'ed
9367
9368 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9369
9370         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9371         and mailing lists, doc'ed --no-peep-comments, removed reference
9372         to knoppix (newest version has no LyX/LaTeX), other minor changes
9373         * src/SDCCglue.c (glue): save 2 bytes stack space with
9374         option --main-return. The ljmp could probably be avoided too
9375
9376 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9377
9378         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9379
9380 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9381
9382         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9383         * src/SDCCopt.c (isLocalWithoutDef),
9384         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9385         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9386         (credit to Maarten Brock for patch #949363, on which this is based)
9387         * support/regression/tests/bug-751703.c: some test cases of extern used
9388         within inner scopes.
9389
9390 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9391
9392         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9393         SPEC_STRUCT
9394         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9395         struct definitions
9396         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9397         dwWriteLabel): fix to create valid debugger symbols even when
9398         the module name has non-alphanumeric symbols in it
9399         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9400         when a variable's allocation has been optimized away
9401
9402
9403 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9404
9405         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9406         * src/hc08/main.c,
9407         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9408         * src/mcs51/main.c,
9409         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9410         * src/ds390/main.c,
9411         * src/z80/gen.c (z80_emitDebuggerSymbol),
9412         * src/z80/main.c,
9413         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9414         * src/pic/main.c,
9415         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9416         * src/pic16/main.c,
9417         * src/avr/gen.c (avr_emitDebuggerSymbol),
9418         * src/avr/main.c,
9419         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9420         * src/xa51/main.c,
9421         * src/SDCCdebug.c (emitDebuggerSymbol),
9422         * src/SDCCdebug.h,
9423         * src/port.h: added a debugger struct to the port struct. Added a
9424         callback for defining debugger symbols
9425
9426         * src/SDCCast.c (createLabel),
9427         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9428         with isitmp = 1
9429         * src/SDCCicode.h,
9430         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9431         iCode back to the ast for the function
9432
9433         * src/hc08/ralloc.c (hc08_assignRegisters),
9434         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9435         unneeded fields from the regs struct.
9436         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9437         pushReg() & pullReg() functions instead of emitcode()
9438
9439         * src/hc08/gen.c (genLabel, genhc08Code),
9440         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9441
9442         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9443         debugger hooks
9444
9445         * src/hc08/gen.c (genEndFunction, genhc08Code),
9446         * src/hc08/gen.h,
9447         * src/mcs51/gen.c (genEndFunction, gen51Code),
9448         * src/mcs51/gen.h,
9449         * src/ds390/gen.c (genEndFunction, gen390Code),
9450         * src/ds390/gen.h,
9451         * src/z80/gen.c (genEndFunction, genZ80Code),
9452         * src/z80/gen.h,
9453         * src/z80/z80.h,
9454         * src/pic/gen.c (genEndFunction, genpic14Code),
9455         * src/pic/gen.h,
9456         * src/pic16/gen.c (genEndFunction, genpic16Code),
9457         * src/pic16/gen.h,
9458         * src/avr/gen.c (genEndFunction, genAVRCode),
9459         * src/avr/gen.h,
9460         * src/xa51/gen.c (genEndFunction, genXA51Code),
9461         * src/xa51/gen.h,
9462         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9463         specific code to cdbFile.c and out of the backend code generators
9464
9465         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9466         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9467         starting address is now 0
9468
9469         * as/hc08/asm.h,
9470         * as/hc08/m08pst.c,
9471         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9472         assembler directive for DWARF support
9473         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9474
9475         * src/src.dsp,
9476         * src/Makefile.in,
9477         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9478
9479 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9480
9481         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9482         and inappropriate peephole optimization in jump tables
9483
9484 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9485
9486         * as/hc08/m08pst.c,
9487         * src/SDCCglue.c: sdccopt works for the hc08 port now
9488
9489 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9490
9491         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9492
9493 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9494
9495         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9496
9497 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9498
9499         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9500         rules
9501         * src/SDCCmain.c,
9502         * src/SDCCglobl.h,
9503         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9504         comments from the peephole optimizer replacement rules
9505         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9506         symbols
9507         * src/SDCCcse.c (updateSpillLocation),
9508         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9509         equivalents
9510         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9511         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9512         objects far pointers
9513
9514 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9515
9516         * src/SDCCsymt.h: a missing part of my last change
9517         * src/pic/ralloc.c (regTypeNum),
9518         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9519
9520 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9521
9522         * src/SDCCicode.h,
9523         * src/SDCCicode.c (aggrToPtrDclType),
9524         * src/SDCCptropt.h,
9525         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9526         ptrPseudoSymConvert),
9527         * src/pic/ralloc.c (regTypeNum),
9528         * src/pic16/ralloc.c (regTypeNum),
9529         * src/hc08/ralloc.c (regTypeNum),
9530         * src/ds390/ralloc.c (regTypeNum),
9531         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9532         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9533
9534 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9535
9536         * link/z80/lkmain.c (afile),
9537         * as/hc08/lkmain.c (afile),
9538         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9539         prevent a pointer problem when a filename has no directory and
9540         no extension specified.
9541
9542 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9543
9544         * link/z80/lkmain.c (afile): allow periods in directory names
9545         * link/z80/lkmain.c (afile),
9546         * as/mcs51/lkmain.c (afile),
9547         * as/hc08/lkmain.c (afile): allow linker script file to have an
9548         extension other than ".lnk"
9549         * link/z80/lklex.c (getfid),
9550         * link/z80/lkmain.c (parse),
9551         * as/mcs51/lklex.c (getfid),
9552         * as/mcs51/lkmain.c (parse),
9553         * as/hc08/lklex.c (getfid),
9554         * as/hc08/lkmain.c (parse): Support comments in the linker script
9555         file on lines by themselves and after filenames
9556
9557 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9558
9559         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9560
9561 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9562
9563         * src/z80/peeph-z80.def: removed some peephole rules that don't
9564         work with multibyte arithmetic (fixed bug #937126)
9565         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9566         to registers and not global variables
9567         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9568         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9569         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9570         checking for assignments not internally generated (fixed bug #931895)
9571         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9572         structure member (fixed bug #930072)
9573
9574 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9575
9576         * src/SDCCmain.c (linkEdit),
9577         * src/hc08/main.c (_hc08_parseOptions),
9578         * as/hc08/Makefile.in,
9579         * as/hc08/aslink.h,
9580         * as/hc08/asm.h,
9581         * as/hc08/m08pst.c,
9582         * as/hc08/lkrloc.c (relr, rele),
9583         * as/hc08/lkarea.c (lnkarea)
9584         * as/hc08/lkmain.c (afile, parse),
9585         * as/hc08/lkelf.c: support for ELF output
9586         * as/hc08/lks19.c (s19),
9587         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9588
9589 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9590
9591         * as/mcs51/lkihx.c: Fixed bug #899105.
9592
9593 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9594
9595         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9596         .dsp files from Unix to DOS.
9597
9598 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9599
9600         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9601         function pointers; we have been compliant for several months now.
9602         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9603         change that was accidently commented out
9604         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9605         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9606         bug #922319
9607
9608 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9609
9610         * src/hc08/gen.c: output of all of the internal debugging information
9611         is now controlled by the D() macro; it is disabled by default
9612
9613 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9614
9615         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9616         harder to keep the same registers during a CAST iCode
9617         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9618         long via int can be done in a single cast, if the signedness is
9619         correct.
9620         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9621         putchar() in tinibios.c in ds390's library
9622
9623 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9624
9625         * src/SDCCast.c (decorateType): fixed bug #898889,
9626         cast result of a literal complement too
9627         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9628         fixed check for bitfields
9629
9630 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9631
9632         * src/SDCCicode.c (geniCodeLogic): made it static,
9633         (geniCodeLogicAndOr): added in order to fix bug #905492,
9634         (ast2iCode): fixed bug #905492
9635         * support/regression/tests/bug-905492.c: added
9636         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9637         (processParms): fixed bug #927659: don't copy parms, this will clear
9638         decorated flag
9639         * support/regression/tests/bug-927659.c: added
9640
9641 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9642
9643         * src/SDCCast.c (addCast): don't cast float to char
9644         * device/lib/libsdcc.lib: added _memmove
9645
9646 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9647
9648         * device/lib/large/Makefile: fixed parallel execution by
9649         replacing `make` by `$(MAKE)`
9650
9651 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9652
9653         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9654         offsets (fixes bug #923936)
9655
9656 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9657
9658         * device/lib/small/Makefile: fixed parallel execution by
9659         replacing `make` by `$(MAKE)`
9660
9661 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9662
9663         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9664
9665 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9666
9667         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9668         * src/regression/Makefile: Regression test was not running.
9669
9670 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9671
9672         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9673         complement if possible
9674         * src/SDCCval.c (valComplement),
9675         * src/SDCCicode.c (operandOperation): fixed complement of literal
9676         * support/regression/tests/onebyte.c (testComplement): added
9677
9678 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9679
9680         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9681         return an optimized tree; actually replace actParm with the new tree
9682         * src/SDCCast.h: added some parantheses to remove side effects
9683         * support/regression/tests/bug-920866.c
9684
9685 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9686         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9687         Bit operands were not being handled properly in the pic14 port.
9688         (now src/regression/add.c passes again).
9689
9690 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9691
9692         * src/SDCC.y (labeled_statement): case and default no longer require
9693         a following statement (RFE #893037)
9694
9695 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9696
9697         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9698         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9699         disabled (fixes bug #916294)
9700         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9701         "mov a,acc"; patch provided by Lenny Story
9702         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9703
9704 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9705
9706         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9707         functions
9708         * src/ds390/gen.c (genFunction, genEndFunction),
9709         * src/ds390/ralloc.c (ds390_assignRegisters),
9710         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9711         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9712         pushed if there are parameters passed on the stack. Also, a cleaner
9713         way to decide if r0/r1 should be pushed/popped. (Together they fix
9714         bug #918693)
9715
9716 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9717
9718         * doc/sdccman.lyx,
9719         * device/lib/mcs51/crtpagesfr.asm,
9720         * device/lib/mcs51/crtxinit.asm,
9721         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9722         to avoid confusion with Si Lab's SFRPAGE register.
9723
9724 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9725
9726         * src/SDCCglue.c (emitMaps): allow public sfr variables
9727         * src/SDCCglue.c (initialComments): include compiler build date
9728         with compiler version and put the timestamp of the generated
9729         assembly file on a serperate line to be less confusing.
9730         * src/port.h: added genInitStartup hook
9731         * src/avr/main.c,
9732         * src/ds390/main.c,
9733         * src/hc08/main.c,
9734         * src/pic/main.c,
9735         * src/pic16/main.c,
9736         * src/xa51/main.c,
9737         * src/z80/main.c: genInitStartup initialize as NULL (default to
9738         historical behaviour)
9739         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9740         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9741         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9742         library instead of hard coding it into the compiler.
9743         * support/regression/ports/mcs51-stack-auto/spec.mk,
9744         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9745         * device/lib/mcs51/Makefile,
9746         * device/lib/small/Makefile,
9747         * device/lib/large/Makefile,
9748         * device/lib/mcs51/crtpagesfr.asm,
9749         * device/lib/mcs51/crtstart.asm,
9750         * device/lib/mcs51/crtxclear.asm,
9751         * device/lib/mcs51/crtxinit.asm,
9752         * device/lib/mcs51/crtclear.asm,
9753         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9754         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9755         and into user configurable files.
9756         * device/lib/clean.mk: clean mcs51 directory too
9757         * support/regression/tests/longlit.c: added static to T1 declaration
9758         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9759         accesses in the initialization code
9760
9761 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9762
9763         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9764         OSCTRIMVAL as noted in bug #916008
9765
9766 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9767
9768         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9769         in loops with multiple exits (reported as incorrect registers
9770         used by Martin Helmling in Sdcc-user list)
9771
9772 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9773
9774         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9775         made ds390 register extensions look less like error messages
9776
9777 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9778
9779         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9780         reported by Adam Wozniak in Sdcc-user list
9781
9782 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9783
9784         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9785         arithmetic optimizations, added debug output
9786
9787 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9788
9789         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9790         * sdcc.spec: updated and split sdcc into 3 rpms
9791         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9792         needed for literals of LEFT_OP and '+'
9793         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9794         introduced RESULT_TYPE_NOPROM
9795         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9796         left shift
9797         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9798         limited promotion to int only for '*'
9799         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9800
9801 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9802
9803         * src/pic16/gen.c (genSkip),
9804         (genc16bit2lit), (gencjneshort): commented out
9805         (is_LitOp): new helper function, checks operand type
9806         (genCmpEq): rewritten
9807
9808 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9809
9810         * support/regression/tests/bug-908454.c: added
9811
9812 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9813
9814         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9815         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9816         (geniCodeCast): cosmetic, don't preserve bit storage class
9817         (geniCodeLeftShift): added promotion
9818         (geniCodeLogic): fixed regression
9819         * src/SDCCsymt.c (computeTypeOr): accept bits too
9820         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9821
9822 2004-03-07  Borut Razem <borut.razem AT siol.net>
9823
9824         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9825
9826 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9827
9828         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9829         version of pic16_genPackRegisters which does not check if ic is a
9830         CAST operator,
9831         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9832         function cause string1.c regression test fails
9833
9834 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9835
9836         * sim/ucsim/configure.in,
9837         * sim/ucsim/configure,
9838         * sim/ucsim/doc/Makefile.in: use docdir
9839         * src/SDCC.y: fixed sbit atrributes
9840         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9841         * src/SDCCast.c (decorateType): |^& need special promotion handling
9842         * src/SDCCast.h,
9843         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9844         * src/SDCCsymt.h (computeType),
9845         * src/SDCCicode.c: computeType() needs op
9846         * src/SDCCsymt.c (checkTypeSanity),
9847         * doc/sddman.lyx: "plain" bitfields are unsigned
9848         * src/SDCCsymt.c (computeTypeOr): added
9849         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9850         |^& ops
9851         * src/SDCCval.c (val*): computeType() needs op
9852         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9853         * support/regression/tests/onebyte.c: added tests for |^&
9854
9855 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9856
9857         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9858         for writing icode into asm output.
9859
9860 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9861
9862         * src/pic16/device.c: added some debug lines enabled
9863         with macro DEBUG_CHECK,
9864         * src/pic16/genarith.c: more debug in genPlus,
9865         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9866         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9867         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9868         * (aopForSym): onStack symbols are re-placed in data memspace,
9869         and onStack flag is cleared,
9870         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9871         copy temporary pcodeop,
9872         * (genPcall): added warning for not updating PCLATU,
9873         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9874         always true for pic16 port,
9875         * (genMultOneWord): NEW, supports integer multiplication,
9876         * (genMult): modified to call genMultOneWord,
9877         * (ifxForOp): added warning when return NULL,
9878         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9879         flag is set before call to operandFromSymbol for implicit
9880         added structures,
9881         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9882         options.intlong_rent are set by default,
9883         * (_hasNativeMulFor): modified to allow port generation of integer
9884         multiplication,
9885         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9886         set regtype to REG_SFR for all registers, restricting seting the
9887         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9888
9889 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9890
9891         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9892         more than 500 times in the regression tests
9893
9894 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9895
9896         * support/Util/SDCCerr.h,
9897         * support/Util/SDCCerr.c,
9898         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9899         enumerator_list),
9900         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9901         for symbol conflicts.
9902         * support/valdiags/tests/enum.c,
9903         * support/valdiags/tests/tentdecl.c,
9904         * support/valdiags/tests/struct.c: expect possible error messages
9905         referring to original symbol definitions.
9906         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9907         * src/SDCCsymt.h,
9908         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9909
9910 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9911
9912         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9913
9914 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9915
9916         * src/pic16/ralloc.c (newReg): fixed bug #908929
9917
9918 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9919
9920         * src/ds390/gen.c: added missing #include "main.h"
9921
9922 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9923
9924         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9925         checking if symbol is already in set,
9926         * src/pic16/device.h: prototype for checkAddSym,
9927         * src/pic16/gen.c: (_G): added entry interruptvector,
9928         * (assignResultValue): removed some commented out lines,
9929         * (genFunction): check for ISR via sym->type, absolute section for
9930         interrupt code is created via a new pBlock, the goto instruction is
9931         placed now correctly at the interrupt vector position, changed all
9932         references from ivec to _G.interruptvector,
9933         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9934         is the interrupt is a high priority one, same for return from ISR,
9935         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9936         externs to calls of checkAddSym,
9937         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9938         pic16_pcode_verbose flag is set,
9939         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9940         * src/pic16/pcoderegs.c: message about how many registers are saved
9941         will only be emitted if pic16_pcode_verbose flag is set,
9942
9943 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9944
9945         * src/ds390/ralloc.h,
9946         * src/ds390/ralloc.c (ds390_regWithIdx),
9947         * src/ds390/gen.c (emitcode),
9948         * src/ds390/main.h,
9949         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9950         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9951         ds390operandCompare, getRegsRead, getRegsWritten,
9952         initializeAsmLineNode): customized instruction size calculation for
9953         ds390, started basis for some register optimizations
9954         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9955         corresponding assembly output
9956         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9957         missing push/pop of r0/r1. Optimized push/pops
9958
9959 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9960
9961         * src/mcs51/main.c (instructionSize): fixed ACALL size
9962         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9963
9964 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9965
9966         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9967         the sorting of rlist with NULL elements
9968         * (print_idataType, print_idata): NEW to create idata sections
9969         * src/pic16/device.h: idataSymSet new variable
9970         * src/pic16/gen.c (genFunction): fixed some bugs in string
9971         comparing, improved the absolute section creation for ISRs,
9972         added FSR0L/FSR0H in registers that are saved in an ISR,
9973         * (genInline): fixed the processing of inline snippets,
9974         now they undergo no process by the peephole optimizer
9975         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9976         are placed in idataSymSet,
9977         * (pic16emitStaticSeg): extern symbols are added in externs,
9978         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9979         switching when aboslute variables are placed in access bank memory
9980         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9981         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9982         commented out with #if,
9983         * (pic16_packRegisters): reintroduce the check for CAST because some
9984         symbols are not correctly handled,
9985         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9986         pCodeInstruction instead of pCode,
9987         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9988         pCodeAsmDir definition,
9989         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9990         directive, then the argument directive is emitted without the leading
9991         tab, hack for inline labels which must be in the first column,
9992         * (compareLabel,pic16_findNextInstruction),
9993         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9994         * (insertBankSwitch): modified for the new pCodeAsmDir,
9995
9996 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9997         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9998
9999         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10000         instance,
10001         * (pushSide): commented out with #if,
10002         * (assignResultValue): fixed some typos in saving
10003         registers,
10004         * (genPcall): FIXED and sync'ed with genCall,
10005         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10006         * (genNearPointerGet): fixed to handle some more cases,
10007         implementation scheme via table reads,
10008         * (genConstPointerGet): modified to access code memory correct,
10009         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10010         and improved to handle some cases
10011         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10012         instead of "RETLW" for init data
10013         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10014         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10015         variables are placed in access bank memory (<0x80 and >=0xf80),
10016         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10017         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10018         TBLWT_POSTDEC,TBLWT_PREINC
10019         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10020         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10021         directives
10022         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10023         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10024         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10025         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10026
10027 2004-02-29  Borut Razem <borut.razem AT siol.net>
10028
10029         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10030         support/Util/findme.h, support/Util/system.h: enhance binary relative
10031         search for lib and include by using findProgramPath()
10032
10033 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10034
10035         * src/SDCCpeeph.h,
10036         * src/SDCCpeeph.c (pcDistance),
10037         * src/port.h,
10038         * src/mcs51/ralloc.h,
10039         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10040         * src/mcs51/main.h,
10041         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10042         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10043         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10044         size calculation port specific, started basis for some register
10045         optimizations
10046         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10047         missing push/pop of r0/r1. Optimized push/pops
10048         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10049         * device/lib/_modsint.c (_modsint),
10050         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10051         and stack version so regression tests pass
10052
10053 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10054
10055         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10056         * src/SDCCast.c (decorateType): catch another small optimization
10057         with '?' operator
10058         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10059         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10060         modified to finally use computeType() all over SDCC,
10061         see Feature Request #877103
10062         * src/SDCCval.h: cosmetic
10063         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10064         valCompare(); regression tested in muldiv.c
10065         * support/regression/tests/muldiv.c (testMod): mod sign follows
10066         dividend only
10067
10068 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10069
10070         * src/SDCCast.c (decorateType): fixed bug #902362
10071         * doc/INSTALL.txt: fixed install instructions for win32
10072
10073 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10074
10075         * device/include/Makefile.in (install): fixed by replacing spaces
10076         by tabs
10077         * doc/README.txt,
10078         * doc/INSTALL.txt: updated for release
10079         * doc/sdccman.lyx: added warning for --xstack being buggy
10080
10081 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10082
10083         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10084         to eliminate build warnings.
10085         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10086
10087 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10088            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10089
10090         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10091         removed -penable-stack, added comment for stack pragma, added
10092         warning for not initializing the stack/frame registers, removed
10093         comment at interrupts section
10094
10095         Stack is made permanent, there is no ability to disable stack usage.
10096         * src/pic16/device.h,
10097         * src/pic16/device.c: removed all references to USE_STACK macro,
10098         * src/pic16/device.c (pic16_dump_section): when no elements in
10099         rlist, free rlist before return,
10100         * (pic16_dump_int_registers): NEW, internal registers are a new set
10101         of general purpose registers reused by each function,
10102         * (checkAddReg): returns 1 if registers is added to set,
10103         * (pic16_groupRegistersInSection): when a registers is of type
10104         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10105         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10106         SRCASECMP macro is moved here from device.c
10107         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10108         PO_PCLATU, PO_PRODL, PO_PRODH,
10109         * (pic16_pCodeOpType, genMinus,
10110         changed compares to "a" register, with AOP_ACC,
10111         * (pic16_genPlus): fixed some bugs and indented properly,
10112         * (pic16_addSign): changed size to size+offset in the MOVWF
10113         instruction,
10114         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10115         multiply 8-bit operand by literal, result is 8-bit,
10116         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10117         multiply 2 8-bit operand, result is 8-bit,
10118         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10119         genUMult8X*_16,
10120         * src/pic16/gen.c: changed accUse to contain WREG only,
10121         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10122         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10123         true, do not use immediate addressing any more unless sym is a
10124         pointer in codespace,
10125         * (aopForRemat): do not use immediate addressing when symbol not in
10126         codespace and when symbol's address is requested,
10127         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10128         accUse size (= 1),
10129         * (aopGet): added case for AOP_ACC and don't return "accumulator
10130         bug" but WREG instead,
10131         * (popGetTempReg): pushes contents of temporary register in stack,
10132         * (popReleaseTempReg): pops contents of temporary register from
10133         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10134         * (pic16_popGet): separated case AOP_ACC to return register WREG
10135         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10136         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10137         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10138         the use of immediate pointers to certain cases only.
10139
10140         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10141         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10142         * (assignResultValue, genCall, genRet): modified to use the new
10143         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10144         genPcall is still broken,
10145         * (genFunction): added code to create 'A' type pBlocks when
10146         interrupt functions are generated, code not extensively tested yet,
10147         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10148         * (genEndFunction): modified so ISRs pop stored registers from stack,
10149         * (genMultOneByte): cleanup,
10150         * (AccRsh): added flag andmask, to and result with appropriate mask,
10151         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10152         * (genDataPointerGet): fixed and reenabled its use,
10153         * (genNearDataPointerGet): bugs fixed,
10154         * (genDataPointerSet): bugs fixed,
10155         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10156         pic16_DumpSymbol, pic16_DumpOp,
10157         * src/pic16/genutils.h: function prototypes for the above functions,
10158         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10159         pointers,
10160         * (pic16emitRegularMap): many many many improvements, but needs a
10161         major cleanup,
10162         * src/pic16/main.c: enable_stack in pic16_options is removed,
10163         * (_pic16_parseOptions): removed command line options -penable-stack,
10164         * (_process_pragma): emit stack symbol only when stack pragma is
10165         processed,
10166         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10167         redirected to FSR0L/FSR0H pair,
10168         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10169         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10170         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10171         for immediates,
10172         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10173         * (dumpPicOptype): NEW,
10174         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10175         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10176         with movff instruction,
10177         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10178         added pic16_int_regs, some packRegsFor* functions are commented out,
10179         because produce errors,
10180         * src/pic16/NOTES: minor modifications
10181
10182 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10183
10184         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10185         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10186         --pack-iram.
10187         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10188         * as/mcs51/lkaomf51.c: fixed bug #895763
10189
10190 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10191
10192         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10193
10194 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10195
10196         * doc/sdccman.lyx: added details about the HC08 storage classes and
10197         interrupts, fixed the register usage info for z80 & gbz80
10198
10199 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10200
10201         * doc/sdccman.lyx: added more pic16 port documentation
10202         * device/include/pic16/: added header pic18fregs.h
10203
10204 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10205
10206         * doc/sdccman.lyx: added Vangelis' contribution
10207
10208 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10209
10210         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10211         extend to the next CALL or PCALL, not just to the next CALL.
10212
10213 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10214
10215         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10216
10217 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10218
10219         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10220         bug #895752 and a better fix for bug #716790
10221
10222 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10223
10224         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10225
10226 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10227
10228         * doc/sdccman.lyx: minor changes, minor changed
10229
10230 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10231
10232         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10233         which can't handle SDCC_NEWONEBYTEOPS,
10234         (geniCodeMultiply): removed conversion from mult to shift for pic14
10235         and pic16
10236
10237 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10238
10239         * src/hc08/gen.h,
10240         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10241         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10242         thus fixing bug #895406
10243
10244 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10245
10246         * device/lib/_modsint.c,
10247         * device/lib/_modslong.c: sign follows divisor only
10248         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10249         signs or signedness can be ignored
10250         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10251         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10252         added optimization for IFX,
10253         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10254         arguments;
10255         reenabled optimization for IFX, which was removed on 2004-01-11
10256         * src/SDCCast.h: added return type IFX
10257         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10258         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10259         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10260         SDCC_OLDONEBYTEOPS selects the old behaviour
10261         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10262         changed again and commented promotion rule
10263         * src/SDCCval.c (valDiv): promotion no longer necessary
10264         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10265         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10266         rewritten
10267         * support/regression/tests/onebyte.c: added
10268
10269 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10270
10271         * gen.c (genInline): reverted to old code for assemnling inline
10272         code because of bug reported James Chadd
10273
10274 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10275
10276         * ralloc.h: missing declarations from previous patch,
10277         seems that patch for ralloc.h was never applied, fixed
10278
10279 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10280            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10281
10282         * pcode.c,
10283         * pcode.h,
10284         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10285         indirect addressing. Marked FSR0 as deprecated
10286         * gen.c (pointerCode): commented out, not needed now
10287         (pic16_popGet2p): new MOVFF helper function
10288         (genGenPointerGet),
10289         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10290         (shiftRLong): removed duplicate debugging info
10291
10292 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10293
10294         * src/ds390/gen.c (genNearPointerGet),
10295         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10296         optimization with bits, but not bitfields.
10297         * src/ds390/ralloc.c (packRegisters),
10298         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10299
10300 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10301
10302         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10303
10304 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10305
10306         * src/SDCCsymt.h,
10307         * src/SDCCicode.c (operandFromSymbol),
10308         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10309         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10310         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10311         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10312         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10313         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10314         bug #892038
10315         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10316         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10317         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10318         * src/SDCCsymt.c (newSymbol),
10319         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10320         enumerator_list),
10321         * src/SDCCval.h,
10322         * src/SDCCval.c (newiList): fixed bug #885705
10323
10324 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10325
10326         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10327         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10328
10329 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10330
10331         * device/include/c8051f120.h,
10332         * device/include/c8051f300.h,
10333         * device/include/c8051f310.h: added/updated header files for Silicon
10334         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10335         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10336         in new section Submitting patches
10337
10338 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10339
10340         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10341         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10342         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10343         genGenPointerSet),
10344         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10345         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10346         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10347         genGenPointerSet),
10348         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10349         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10350         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10351         genGenPointerSet),
10352         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10353         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10354         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10355         genGenPointerSet): fixed bug #892400
10356         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10357         to eliminate build warnings.
10358         * src/SDCCast.c (processParms),
10359         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10360         fixed bug 751859
10361         * support/valdiag/valdiag.py: added GCC to the list of defines active
10362         when compiling with gcc
10363
10364 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10365
10366         * support/Util/SDCCerr.h,
10367         * support/Util/SDCCerr.c,
10368         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10369         with an incomplete type (fixed bug #883734)
10370         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10371
10372 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10373
10374         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10375
10376 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10377
10378         * src/SDCCast.c (decorateType),
10379         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10380         function pointer implementation
10381         * support/regression/tests/funptrs.c: added tests to verify both forms
10382         of function pointers work correctly. Added tests to verify parameters
10383         are passed in the correct order.
10384
10385 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10386
10387         * device.c (regCompare): registers are sorted by ascending
10388         address and increasing size,
10389         * main.c (_pic16_finaliseOptions): removed the declaration
10390         of compiler macro MCU. Now a macro of the format pic18fxxxx
10391         will be defined from the command line
10392
10393 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10394             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10395
10396         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10397         PCOP_RLCF was overwritten!
10398         * gen.c (genSkip): commented out calls to pic16_emitcode,
10399         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10400         * (genlshTwo),
10401         * (genRRC): added debugging info,
10402         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10403         overwritten while shifting,
10404         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10405         overwritten while shifting,
10406         * (AccLsh),
10407         * (AccRsh),
10408         * (shiftLLeftOrResult),
10409         * (shiftRLeftOrResult),
10410         * (shiftRLong),
10411         * (shiftLLong): Implemented with pic16_emitpcode
10412         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10413         * (genLeftShift): Fixed bug, operand for shift by variable always
10414         was "and"ed with 0x0f,
10415         * (genLeftShiftLiteral),
10416         * (genrshTwo),
10417         * (genRightShiftLiteral): added debugging info,
10418         * (genrshFour): added comment,
10419         * (genRightShift): determined signedness from operand "left"
10420         instead of "result"
10421
10422 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10423
10424         * src/SDCCicode.c (geniCodeParms),
10425         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10426         function pointers, fixed function pointer bugs #861242 and #861896
10427
10428 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10429
10430         * device/include/c8051f000.h,
10431         * device/include/c8051f120.h,
10432         * device/include/c8051f300.h: added header files for Silicon
10433         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10434
10435 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10436
10437         * src/SDCCast.c (processParams): added new type flow and restructured
10438         (gatherAutoInit): added new type flow
10439         (addCast): cosmetic changes
10440         (getLeftResultType): added new type flow for array indices, patch
10441         provided by Stas, see FR #877103
10442         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10443         array index patch by Stas
10444         * src/SDCCast.h: added prototype getResultTypeFromType()
10445         * src/SDCCval.h,
10446         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10447         * src/pic/glue.c (pic14emitStaticSeg),
10448         * src/pic16/glue.c (pic16emitStaticSeg),
10449         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10450         for initialization of symbols
10451         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10452         * support/Util/SDCCerr.h:
10453         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10454         * .version: bumped version number to 2.3.8
10455         * device/include/Makefile.in (install),
10456         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10457         avoid warnings
10458
10459 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10460
10461         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10462         Slade Rich fixed an optimization bug
10463         * src/pic/pcodepeep.c,
10464         * src/pic/pcoderegs.c
10465         * doc/Makefile (install): added test for directory
10466
10467 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10468
10469         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10470         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10471         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10472         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10473         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10474         * as/mcs51/asexpr.c (term),
10475         * as/hc08/asexpr.c (term): fixed bug #887146
10476
10477 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10478
10479         * src/z80/gen.c (genMult): handle single byte result product
10480         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10481         DUMMY_READ_VOLATILE (fixed bug #886367)
10482
10483 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10484
10485         * support/regression/tests/libmullong.c: fixed logic, on little endian
10486         hosts we ended without a mullong_wrapper()
10487
10488 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10489
10490         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10491         virus/worm forged address usage.
10492
10493 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10494
10495         Fixed promotion, it should be done on AST level:
10496         * src/SDCCast.c (addCast): added promotion to int
10497         (decorateType): updated call to upCast()
10498         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10499         usualUnaryConversions()
10500
10501 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10502
10503         * support/regression/tests/literalop.c (mulWrapper): Added a
10504         wrapper to remove integer overflow warnings.
10505
10506         * support/regression/tests/float_trans.c: Made work on host.
10507
10508         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10509         location of sz80.
10510
10511         * support/regression/generate-cases.py (main): Changed from inline
10512         to a main method.
10513
10514         * doc/Makefile (install): Changed to depth first to get rid of
10515         missing directory install warning.
10516
10517         * as/Makefile (install-doc): Made work on Mac.
10518
10519 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10520
10521         * src/SDCCast.c: added an additional type flow in decorateType() of
10522         opposite direction, see feature request #860006; it's enabled at runtime
10523         by setting the environment variable SDCC_NEWTYPEFLOW
10524         * src/SDCCast.h: changed prototype of decorateType()
10525         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10526         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10527         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10528         see feature request #877103
10529         * src/SDCCval.c: updated call of decorateType()
10530         (valBitwise): fixed bug #882876
10531         (valMinus): added promotion
10532         (valLogicAndOr): result is unsigned
10533         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10534         * src/SDCCsymt.c (computeType),
10535         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10536         must not cause an unsigned operation
10537         * src/pic/glue (pic14emitRegularMap),
10538         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10539
10540 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10541
10542         * src/pic/pcode.c (PCodeID): commented out left over debug code
10543
10544 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10545
10546         * support/valdiag/tests/overflow.c: added shift tests
10547         * src/pic/device.c,
10548         * src/pic/gen.c,
10549         * src/pic/gen.h,
10550         * src/pic/glue.c,
10551         * src/pic/main.c,
10552         * src/pic/pcode.c,
10553         * src/pic/pcode.h,
10554         * src/pic/pcodepeep.c,
10555         * src/pic/pcoderegs.c,
10556         * src/pic/ralloc.c,
10557         * src/pic/ralloc.h: applied patch from Slade Rich;
10558         added support for multiple code pages and multiple RAM banks on the
10559         PIC 14 port. The ASM files now no longer simply assume all the
10560         code / RAM are in the same page / bank. This means the linker can
10561         safely allocate code/RAM of separate ASM files to different pages/banks.
10562         * doc/sdccman.lyx: added Slade's tips
10563         * src/mcs51/peeph.def: fixed bug #880768
10564
10565 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10566
10567         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10568         * src/SDCCast.c (decorateType): fixed bug #880197
10569
10570 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10571
10572         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10573         getopt.h.
10574
10575         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10576         strtof is not part of C89 and isn't included with Mac OS X.
10577
10578 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10579
10580         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10581         shiftL2Left2Result): fixed bug #879326
10582         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10583         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10584         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10585         address fetch for clr instruction
10586         * device/lib/hc08/_mulint.c: created optimized assembly version
10587         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10588
10589 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10590
10591         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10592         proposed in FR #877103
10593
10594 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10595
10596         * src/SDCCval.c (cheapestVal): added missing checks
10597         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10598         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10599
10600 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10601
10602         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10603         equal operands
10604
10605 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10606
10607         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10608         loaded with the linker search paths (-L arguments) and the libraries
10609         to be linked with the current source (-l arguments). Changes
10610         currently will affect only the pic16 port.
10611         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10612         include path the port specific paths and port specific libraries,
10613         * gplink command now contains the $3 argument,
10614         * src/pic16/device.h,
10615         * src/pic16/device.c,: structure PIC_device is made public and
10616         renamed to PIC16_device, the same for variable Pics which is renamed
10617         to Pics16. Updated all references to them.
10618         * src/pic16/glue.c (pic16glue): corrected bug with code
10619         initialization which bypassed the variable initializations block.
10620
10621         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10622         COMPILE_FLAGS and added the --nostdinc option
10623
10624 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10625
10626         * device/include/mc68hc908jb8.h: Register defs for another member
10627         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10628
10629 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10630
10631         Documenting changes from previous commits.
10632         * configure.in (version 1.56),
10633         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10634         when generating output files to configure the pic16 library,
10635         but now I've commented it out, since gputils aren't installed in the
10636         SF compile farm, so library won't compile
10637
10638         * device/lib/Makefile.in (version 1.56): initially I've added in
10639         target 'all' the prerequestive 'model-pic16' so it compiled the
10640         pic16 library, but now I've commented it out for the same reasons
10641         above,
10642         * added targets 'model-pic16' and 'objects-pic16' to compile the
10643         library
10644         * added target 'port-specific-objects-pic16' to handle the
10645         generated libraries and copy them into the build/ directory
10646         * added target 'clean-intermediate-pic16' to clean intermediate
10647         files into pic16 directory
10648         * in target 'installdirs' added line to create directory pic16 in
10649         the installation path
10650
10651         * device/include/Makefile.in (version 1.11): in target 'install'
10652         added lines to copy all header files to installation path,
10653         * in target 'installdirs' added line create directory for pic16
10654         headers in the installation path
10655
10656 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10657
10658         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10659          a function call
10660
10661 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10662
10663         * configure,
10664         * device/lib/configure.in,
10665         * device/lib/configure: fixed for autoconf 2.57
10666
10667 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10668
10669         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10670         option so that it actually works. Made it specific to the z80, since
10671         the gbz80 doesn't have these kinds of I/O ports.
10672
10673 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10674
10675         * device/include/z180.h,
10676         * device/lib/_memcpy.c,
10677         * device/lib/_memmove.c,
10678         * device/lib/_mulint.c,
10679         * device/lib/ser_ir.c,
10680         * device/lib/ser_ir_cts_rts.c,
10681         * device/lib/_strcmp.c,
10682         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10683         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10684         portmode; added deprecation warning for bank= and protmode= forms.
10685         Also, guard against buffer overflow.
10686         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10687
10688 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10689
10690         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10691         changed interrupt vector table generation to only emit declared vectors.
10692         * device/include/Makefile.in: added missing backslash
10693         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10694
10695 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10696
10697         Mainly changes to support compilation of the device libraries
10698         * src/pic16/device.c: stack is allocated via symbol and not
10699         via literal number. The symbol is placed in the corresponding
10700         position of the data ram
10701         * (pic16_dump_section): relocatable and absolute uninitialized
10702         data are now emitted in sorted order to reduce section naming,
10703         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10704         weren't marked as being in the access bank,
10705
10706 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10707
10708         Added portion of GNU PIC Library under the directory
10709         device/include/pic16 and device/lib/pic16. These files
10710         contain the declarations of SFRs for the PIC18Fxx2 devices.
10711         The directory is initialized via configure from toplevel.
10712
10713 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10714
10715         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10716         the spilllocations to be compared correctly
10717
10718 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10719
10720         * src/SDCCast.c (decorateType): fixed bug introduced today
10721
10722 2004-01-12  Borut Razem <borut.razem AT siol.net>
10723
10724         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10725         doc/sdccman.lyx: upper case pragmas are deprecated
10726
10727 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10728
10729         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10730         in simpler and even better code
10731
10732 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10733
10734         * src/SDCCicode.c (operandOperation): fixed bug #874819
10735         * src/SDCCast.c (decorateType): fixed
10736         char foo (unsigned long ul) { return ul > 0; }
10737
10738 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10739
10740         * doc/sdccman.lyx: Moved and added some sections, small changes
10741         all over. Telling LaTeX to be less strict with word spacing
10742         to better keep the right margin. Changed some notes about
10743         maintainance of the ports in section 3.2.1 - is it OK like this?
10744
10745 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10746
10747         SDCC source changes:
10748         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10749         convilong): modified to inform the pic16 port that builtin functions
10750         are external
10751
10752         PIC16 PORT specific changes:
10753         * src/pic16/device.c pic16_dump_equates() added,
10754         processor registers declared internally by the port are emitted in
10755         the translation as equates,
10756         * src/pic16/gen.c: inline code is passed unprocessed to the
10757         translation,
10758         * (pic16_popGetLit2): fnuction modified to take second operand as
10759         pCodeOp pointer and not as literal,
10760         * (popRegFromIdx): prefixed with pic16_,
10761         * (pic16_popCombine2): modified to receive already allocated pCode
10762         operands,
10763         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10764         * (genFunction): initializes local stack frame and pushes on stack
10765         all the registers used by this function,
10766         * (genEndFunction): restores all registers from stack and restores
10767         stack frame,
10768         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10769         improvements,
10770         * (pic16glue): changed the program startup sequence,
10771         * added new dbName code 'A' for functions placed in absolute section
10772         * src/pic16/main.c: added function attribute _naked,
10773         * added pragma 'code' to place a fnuction at an absolute address,
10774         * added command line arguments --debug-ralloc and --pcode-verbose,
10775         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10776         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10777         * (pic16_newpCodeOpLit2): modified to take the second operand as
10778         pCodeOp pointer,
10779         * (pic16_printpBlock): modified to emit each function in a separate
10780         section,
10781         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10782         UPPER for immediate operands,
10783         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10784         instruction,
10785         * src/pic16/peeph.def: all peepholes with movff are commented out,
10786         because there is a problem in the pcode peep optimizer,
10787         * src/pic16/ralloc.c: the register allocator can now reuse local
10788         function symbols for another function. This saves register usage.
10789         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10790
10791         Added file src/pic16/NOTES with information about program writing on
10792         the current port version.
10793
10794 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10795
10796         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10797         and peephole 252 (array access)
10798
10799 2004-01-09  Borut Razem <borut.razem AT siol.net>
10800
10801         * src/SDCCmain.c : fixed #872250: -l command line defined library
10802           files are scanned before standard library files
10803
10804 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10805
10806         * src/SDCCast.c (decorateType): fixed bug #874046
10807
10808 2004-01-09  Borut Razem <borut.razem AT siol.net>
10809
10810         * support/scripts/sdcc.nsi: remove previous installation
10811
10812 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10813
10814         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10815         bytes for last interrupt vector (mcs51)
10816         * sdcc.spec: fixed typo
10817
10818 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10819
10820         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10821         gen51Code): more efficient parameter receive for --model-large
10822         ("bug" #845294)
10823
10824 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10825
10826         * src/ds390/main.c,
10827         * src/z80/main.c: added missed needLinkerScript flags (more than
10828         one port structure defined in these file)
10829         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10830         bug #795325
10831
10832 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10833
10834         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10835         * src/port.h: added flag needLinkerScript in port->linker
10836         structure to inform whether to create a .lnk file or not,
10837         * src/avr/main.c,
10838         * src/ds390/main.c,
10839         * src/hc08/main.c,
10840         * src/mcs51/main.c,
10841         * src/pic/main.c,
10842         * src/pic16/main.c,
10843         * src/xa51/main.c,
10844         * src/z80/main.c: changed appropriately to configure
10845         needLinkerScript flag
10846         * src/pic/gen.c,
10847         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10848         * src/pic/glue.c: added variable udata_section_name to
10849         override default uninitialized data segment definition for
10850         devices only with SHAREBANK memory (reported from Erik Epetrich)
10851         * (pic14emitOverlay): modified to emit a commented overlay segment
10852         directive when no overlay data exist
10853         * (picglue): modified to emit uninitialized data segment
10854         according to udata_section_name
10855         * src/pic/main.c (_pic14_parseOptions): added command line
10856         options --udata-section-name=[name] to override default
10857         udata definition name
10858         * modified _linkCmd and _asmCmd to include compiler passed
10859         arguments via -W option
10860         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10861         object file from '.rel' to '.o' in port->linker structure,
10862         changed size of fptr from 2 to 3 in port structure
10863
10864 2004-01-07  Borut Razem <borut.razem AT siol.net>
10865
10866         * support/scripts/sdcc.nsi: update PATH
10867         * support/scripts/sdcc.ico: craeted
10868
10869 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10870
10871         * device/include/Makefile.in: fix install
10872         * doc/Makefile: fix install
10873
10874 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10875
10876         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10877         in bug #860505
10878         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10879         how the function variable allocation summary is displayed; also
10880         include information about variables allocated to the overlay
10881         segment
10882
10883 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10884
10885         * as/mcs51/lkmain.c: Help about -Y option
10886         * as/mcs51/lkarea.c: Fixed gcc warnings
10887
10888 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10889
10890         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10891         fixed warning
10892         * support/valdiag/tests/overflow.c: added
10893         * src/SDCCast.c (decorateType),
10894         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10895         LEFT_OP (left shift)
10896
10897 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10898
10899         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10900         (default behaviour).
10901
10902 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10903
10904         A python script to validate compiler diagnostic messages. It can be
10905         used to verify that sdcc complains about bad c source code and
10906         gives a good location of the error.
10907         * support/valdiag/Makefile,
10908         * support/valdiag/valdiag.py,
10909         * support/valdiag/tests/*
10910
10911 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10912
10913         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10914         * src/SDCCsymt.c (newEnumType),
10915         * src/SDCCsymt.h
10916         * support/Util/SDCCerr.c,
10917         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10918         enum related bugs.
10919         * support/regression/tests/enum.c: added test for enum values that
10920         require at least 2 bytes of storage.
10921
10922 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10923
10924         * src/common.h: added ifndef/define/endif macros
10925         around the header file.
10926         Bug reported from Jesus Calvino-Fraga
10927
10928 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10929
10930         * sdcc.spec: updated
10931         * device/include/Makefile.in: don't install CVS directories
10932         * device/lib/Makefile.in: added removal of CVS directories after install
10933         * doc/Makefile: fixed install, added local_icons
10934         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10935         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10936         * src/ds390/gen.c (genRightShift): fixed bug #870788
10937         * src/SDCCast.c (decorateType): fixed bug #870781
10938
10939 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10940
10941         PIC16 port related changes:
10942         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10943         added variable stackPos,
10944
10945         * gen.c: genCall, assignResultValue: added support for
10946         pushing/retrieving function parameters to/from stack,
10947         genFunction,genEndFunction: setup stack frame for the
10948         generated function,
10949         genAddrOf: will be changed according to bug 863624
10950
10951         * added files genutils.c and genutils.h which contain gen*
10952         debugged and optimised functions extracted from gen.c
10953
10954         * glue.c: added variable 'externs' which holds extern symbols,
10955         pic16emitRegularMap: is modified to properly handle relocatable
10956          symbols under the new scheme,
10957         pic16createInterruptVect: is modified
10958         pic16printPublics: is modified to emit 'global' assembler directives,
10959         added pic16_printExterns to print extern symbols,
10960         pic16glue: initializes stack/frame pointer in the beginning of
10961         the assembly output. Temporary hack, will be corrected later,
10962         because gplink yet does not support stack and SDCC does not
10963         yet support a type of crt0.o object to create the final binary.
10964
10965         * Removed many lines that contain 8051 legacy code.
10966         * The code is finally placed under a 'code' directive.
10967         * Added port specific options.
10968
10969         * _process_pragma: simplified since now we do not need *special*
10970         include file to define SFR registers. But a separate header
10971         will be needed. This will be developed later.
10972         * _pic16_parseOptions: added, parses port specific options:
10973         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10974         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10975         --preplace-udata-with=
10976
10977         * _pic16_setDefaultOptions: modified to initialize section names,
10978         but hack is temporarly out of order since it needs improvement.
10979         * _pic16_genAssemblerPreamble: configuration words are emitted by
10980         their address instead of their name. This part is incomplete and
10981         supports only the 18Fxx2 devices. Other devices will emit an error
10982         during assembly since they do not contain the same set of config
10983         registers
10984         * _pic16_genIVT: is modified,
10985
10986         * pcode.c: added definitions for some hardware registers that are needed
10987         for stack support
10988         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10989         All PCI entries are updated. Now LFSR is supported.
10990         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10991         * added pic16_newpCodeOpLit2 to support instructions with
10992         two literal arguments
10993         * pic16_pCode2str: corrected code that emits assembler instructions
10994         with two literal operands and those that have an access bit modifier
10995         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10996         this fixes a bug which caused some labels to be lost, when an
10997         assembler directive was added, i.e. banksel,
10998         * pic16_FixRegisterBanking: improved logic that causes the insertion
10999         of bank switching,
11000         * InlineFunction: functions that are called once, are not any more
11001         inlined. This can be a port option in the future,
11002
11003         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11004
11005         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11006         hold the corresponding uninitialized symbols,
11007         * pic16_allocProcessorRegister: registers have explicit marked the
11008         accessBank field,
11009         * pic16_allocInternalRegister: registers are explicit marked as
11010         not used,
11011         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11012         processing list, so bit registers were lost,
11013         *
11014
11015         * ralloc.h: added field 'accessBank' and original symbol operand
11016         in register definition,
11017         * removed the field isMapped from register definition,
11018
11019         ** Several functions have been removed from various sources:
11020         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11021         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11022         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11023         pic16_assignRelocatableRegisters
11024
11025         ** others have been introduced:
11026         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11027         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11028
11029 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11030
11031         * support/scripts/inc2h.pl: changed definition of BIT_AT
11032         to emit 'sbit at' instead of 'bit at'. This was a request.
11033
11034         PIC16 port related preliminary changes:
11035         * gen.c: prefixed function popRegFromString with
11036         pic16_ and all references to it corrected
11037         * pcode.c: all pic16_pc_* hardware registers prefixed
11038         with underscore (_),
11039         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11040         * ralloc.c: newReg(): when register is REG_SFR then
11041         set address to rIdx,
11042         pic16_allocProcessorRegister(): marks register wasUsed=0
11043         pic16_writeUsedRegs(): added a call to assign processor
11044         registers via pic16_assignFixedRegisters
11045
11046 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11047
11048         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11049         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11050         variables in unused register banks.  Also the SSEG is placed
11051         wherever there is enough space for it, and IDATA can be anywhere
11052         in internal RAM.  For now compile using -Wl-Y[stack_size].
11053         The mem file is different for this option as well, since it
11054         makes no sense of talking about DSEG lenght.
11055
11056 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11057
11058         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11059         in certain cases, e.g. when ROM assignment, patch provided
11060         from Albert den Haan.
11061
11062 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11063
11064         Many signedness and type propagation fixes:
11065         * src/SDCCicode.c: made geniCodeCast() static
11066         replaced SPEC_ by IS_ (cosmetic)
11067         (operandOperation): fixed div and mod operation
11068         (usualBinaryConversions): added support for promotion of char
11069         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11070         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11071         (geniCodeAdd): an array index will stay unsigned, even if promoted
11072         from char to int
11073         (geniCodeArray): ditto
11074         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11075         * src/SDCCsymt.c (computeType): added more support for char;
11076         promotion of char is selectable by promoteCharToInt, fixed signedness
11077         for all cases
11078         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11079         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11080         * src/SDCCval (val*): replaced signedness calculation by
11081         computeType()
11082         rearranged if-branches (cosmetic)
11083         (valShift): added warning W_SHIFT_CHANGED
11084         (valCompare): fixed problem with different types
11085         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11086         * support/regression/tests/literalop.c: added many cases
11087         * support/regression/tests/ast_constant_folding.c: changed finally to
11088         'unsigned int'
11089         * .version: new year, new version: 2.3.7
11090         * src/SDCCmain.c (main): applied patch #866468
11091         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11092         provided by Scott Bronson
11093         * doc/sdccman.lyx: updated documentation for sdcdb
11094         updated and added chapter tips
11095
11096 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11097
11098         * src/SDCCsymt.h: missing from yesterday's commits
11099
11100 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11101
11102         * src/SDCC.y (struct_or_union_specifier),
11103         * support/Util/SDCCerr.c,
11104         * support/Util/SDCCerr.h: verify that struct & union tags are used
11105         as declared.
11106
11107 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11108
11109         * src/SDCCglobl.h: missing from yesterday's commits
11110
11111 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11112
11113         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11114         sft_attributes, struct_declaration, parameter_declaration,
11115         type_name, start_block, declaration_list),
11116         * src/SDCC.lex (check_type): support redefinition of typedef names
11117
11118 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11119
11120         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11121         aligned xdata arrays. Erik helped me with the if clause.
11122
11123 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11124
11125         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11126         warning
11127
11128 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11129
11130         * src/SDCCast.h,
11131         * src/SDCCast.c (newAst_),
11132         * src/SDCCicode.h,
11133         * src/SDCCicode.c (ast2iCode, newiCode),
11134         * src/SDCCglobl.h,
11135         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11136         expr, statement, expression_statement, selection_statement,
11137         iteration_statement, expr_opt, jump_statement): foundation for tracking
11138         sequence points
11139         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11140         point code too)
11141
11142 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11143
11144         * support/Util/SDCCerr.c,
11145         * src/SDCCast.h,
11146         * src/SDCCast.c (createCase, createDefault, decorateType),
11147         * src/SDCClabel.c (labelUnreach),
11148         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11149         to error messages.
11150         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11151         (with thanks to Stas Sergeev)
11152         * device/include/time.h,
11153         * device/lib/time.c (CheckTime): suppress unreachable code warning
11154
11155 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11156
11157         * src/SDCCast.c (createIvalCharPtr),
11158         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11159         bug #753752)
11160         * support/regression/tests/nullstring.c: tests for these two bugs
11161
11162 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11163
11164         * support/Util/SDCCerr.h,
11165         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11166         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11167         about storage class and 'at' used inside struct or union
11168         * src/SDCCBBlock.c (iCodeFromeBBlock),
11169         * src/SDCCcse.c (ifxOptimize),
11170         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11171         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11172         printIval, emitStaticSeg, emitOverlay),
11173         * src/SDCClabel.c (deleteIfx),
11174         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11175         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11176         gatherAutoInit, processParms),
11177         * support/Util/SDCCerr.h,
11178         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11179         reporting for post-parse errors.
11180
11181 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11182
11183         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11184         implicit casts via union; they don't work on big endian systems
11185         (possible fix for bug #861138)
11186
11187 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11188
11189         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11190         * src/mcs51/main.c: fixed the fix for bug #737001
11191
11192 2003-12-15  Borut Razem <borut.razem AT siol.net>
11193
11194         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11195
11196 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11197
11198         * support/makebin/makebin.c: put output in binary mode
11199
11200 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11201
11202         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11203         xdata and data memory on startup. Set the environment variable
11204         SDCC_NOGENRAMCLEAR to disable this.
11205         * src/mcs51/peephole.def,
11206         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11207         (allows non-interrupt and interrupt code to safely compete for a resource
11208         without the non-interrupt code having to disable interrupts)
11209
11210 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11211
11212         * src/SDCCicode.c (geniCodeAdd),
11213         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11214         with valFromType if type might be a pointer and host is big endian).
11215         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11216         types, not just integer types.
11217         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11218         multiply defined with mismatching "at" address.
11219
11220 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11221
11222         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11223         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11224         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11225         with embedded nulls (fixed bug #753752)
11226
11227 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11228
11229         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11230         Apparently this did not see much testing (endless loop)
11231
11232 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11233
11234         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11235
11236 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11237
11238         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11239         gracefully handle NULL memmap pointers
11240
11241 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11242
11243         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11244         instead of deleting the iCode when an operand is volatile
11245         * src/z80/gen.c (genDummyRead),
11246         * src/mcs51/gen.c (genDummyRead),
11247         * src/ds390/gen.c (genDummyRead),
11248         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11249         not just IC_RIGHT
11250         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11251         * src/SDCC.y: fixed bug #850420
11252
11253 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11254
11255         Applied z80 i/o port patch from Peter Townson and fixed some operators
11256         to better handle operands in A register.
11257         * device/include/z180.h
11258         * src/SDCC.y
11259         * src/SDCCglue.c
11260         * src/z80/gen.c
11261         * src/z80/gen.h
11262         * src/z80/main.c
11263         * src/z80/peeph-z80.def
11264         * src/z80/peeph.def
11265         * src/z80/z80.h
11266
11267 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11268
11269         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11270
11271 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11272
11273         * device/lib/hc08/_mullong.c: Removed extra #endif
11274
11275 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11276
11277         * sim/ucsim/hc08.src/inst.cc,
11278         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11279         carries from x to h
11280         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11281         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11282         * device/include/stdarg.h: fixed varargs for hc08
11283         * device/lib/Makefile.in,
11284         * device/lib/hc08/Makefile,
11285         * device/lib/hc08/_mulint.c,
11286         * device/lib/hc08/_mullong.c: fixed some endian problems
11287
11288 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11289
11290         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11291         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11292         * device/lib/_gptrget.c,
11293         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11294
11295 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11296
11297         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11298         * src/SDCCast.c (astErrors): fixed bug #846007
11299         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11300
11301 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11302
11303         * src/SDCCast.c (decorateType): disabled a transformation I added in
11304         revision 1.188 (access to fields of a structure at an absolute address);
11305         it breaks with bitfields, extern declarations, and gcse analysis.
11306         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11307         could be assigned through a pointer, so don't complain.
11308         * src/SDCCast.c (astErrors),
11309         * src/SDCCast.h,
11310         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11311
11312 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11313
11314         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11315         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11316         output of __config directives, since gpasm now supports them
11317         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11318         pre-processor macro, i.e. -DMCU=p18f452
11319         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11320         and modified to handle 'cast' icode similarly to '=' icode
11321         * src/pic16/device.h (typedef struct PIC_device): added field
11322         'extMIface' to indicate that chip has external memory interface
11323         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11324         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11325         18F8720
11326
11327 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11328
11329         * src/SDCC.y (pointer): fixed bug #846006
11330         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11331         * src/SDCCast.c (decorateType): fixed bug #846009
11332         * src/ds390/peeph.def,
11333         * src/ds390/gen.c (genAnd, genOr),
11334         * src/mcs51/peeph.def,
11335         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11336
11337 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11338
11339         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11340         * src/SDCCdflow.c
11341         * src/SDCCcse.c
11342         * src/SDCCcse.h
11343         * src/SDCCBBlock.h
11344         * src/SDCCBBlock.c
11345
11346 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11347
11348         fixed bug #845089
11349         * src/SDCCbitv.h,
11350         * src/SDCCbitv.c: added function to free a bitvector
11351         * src/SDCClrange.h,
11352         * src/SDCClrange.c: added function to recompute the liveranges
11353         * src/avr/ralloc.c,
11354         * src/ds390/ralloc.c,
11355         * src/hc08/ralloc.c,
11356         * src/mcs51/ralloc.c,
11357         * src/pic/ralloc.c,
11358         * src/pic16/ralloc.c,
11359         * src/xa51/ralloc.c,
11360         * src/z80/ralloc.c: recompute the liveranges after register packing
11361
11362 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11363
11364         * src/SDCCloop.c (newInduction): fixed bug #845630
11365
11366 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11367
11368         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11369         inadvertantly left behind from my 2003-11-12 change
11370
11371 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11372
11373         Updated headers I neglected to commit yesterday.
11374         * src/SDCClrange.h,
11375         * src/SDCCicode.h
11376
11377 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11378
11379         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11380         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11381         * src/SDCCopt.c (eBBlockFromiCode),
11382         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11383         the creation of the key hash table from the sequencing so it can be used
11384         earlier (for some GCSE bug fixes still pending)
11385
11386 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11387
11388         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11389         * support/regression/tests/addsub.c: testing genPlus shortcut
11390
11391 2003-11-15  Borut Razem <borut.razem AT siol.net>
11392
11393         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11394
11395 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11396
11397         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11398         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11399         ordering is immaterial.
11400         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11401
11402 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11403
11404         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11405         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11406         (SIGSEV) of bug #840381
11407         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11408         unlink new file before rename if new and old filenames are the same)
11409
11410 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11411
11412         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11413         uninitialized variables) for the mcs51. Set environment variable
11414         SDCC_GENRAMCLEAR to test.
11415         xdata initialization slightly shorter
11416
11417 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11418
11419         * src/SDCCsymt.h,
11420         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11421         #838241 & 780691 (basicly the same bug)
11422         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11423         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11424
11425 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11426
11427         * src/SDCCmain.c (linkEdit): "fix" #834252
11428
11429 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11430
11431         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11432         * src/SDCCast.h,
11433         * src/SDCC.y: fixed bug #819403
11434
11435 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11436
11437         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11438         the reentrant attribute.
11439         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11440         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11441         simulation
11442         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11443         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11444         erroneously reduced to a literal.
11445         * src/hc08/ralloc.c (packRegisters, rematStr),
11446         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11447         some cases
11448
11449 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11450
11451         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11452         * doc/sdccman.lyx: changed from 'article' to 'book'
11453         * doc/Makefile: readded test_suite_spec and cdbfileformat
11454
11455 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11456
11457         * device/include/stdlib.h: include malloc.h to comply with ANSI
11458         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11459
11460 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11461
11462         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11463         * doc/clean.mk: also remove *.out files
11464         * doc/sdccman.lyx: some additions, larger top/bottom margins
11465
11466 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11467
11468         * src/SDCC.y: fixed bug #837365
11469         * support/regression/tests/bitopcse.c
11470         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11471         a symbol (might be valop instead)
11472         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11473         * device/lib/clean.mk: added hc08 to the cleaning list
11474
11475 2003-11-04  Borut Razem <borut.razem AT siol.net>
11476
11477         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11478           made 2003-11-04
11479         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11480           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11481           malloc is declared in standard stdlib.h
11482
11483 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11484
11485         * device/lib/hc08/Makefile: need to clean .rel not .o files
11486         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11487
11488 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11489
11490         * src/port.h,
11491         * src/hc08/main.c,
11492         * src/mcs51/main.c,
11493         * src/ds390/main.c,
11494         * src/z80/main.c,
11495         * src/avr/main.c,
11496         * src/pic/main.c,
11497         * src/pic16/main.c,
11498         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11499         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11500         tests (which uses the port's oclsExpense function)
11501         * src/SDCC.y,
11502         * src/SDCCast.c,
11503         * src/SDCCicode.c,
11504         * src/hc08/gen.c,
11505         * src/ds390/gen.c,
11506         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11507
11508 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11509
11510         * src/SDCCcse.c (ifxOptimize),
11511         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11512         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11513         deleting the IFX iCode.
11514         * src/hc08/ralloc.c: reduced unneeded slocs
11515         * src/hc08/gen.c: fixed bug in asmopToBoolean
11516
11517 2003-11-04  Borut Razem <borut.razem AT siol.net>
11518
11519         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11520           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11521           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11522           transferred to configure
11523
11524 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11525
11526         Use headers defined in the C[++] standards:
11527         * sim/ucsim/gui.src/serio.src/fileio.cc
11528         * sim/ucsim/gui.src/serio.src/frontend.cc
11529         * sim/ucsim/gui.src/serio.src/main.cc
11530         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11531         * support/Util/NewAlloc.c
11532         * as/hc08/lklibr.c
11533         * as/mcs51/lklibr.c
11534         * as/z80/aslist.c
11535         * as/z80/assym.c
11536
11537 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11538
11539         * Added MSVC projects for hc08 assembler and linker:
11540         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11541         /as/hc08/link_hc08.dsp
11542
11543 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11544
11545         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11546
11547 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11548
11549         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11550
11551 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11552
11553         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11554
11555 2003-10-31  Borut Razem <borut.razem AT siol.net>
11556
11557         * support/cpp2/cpplib.h,
11558           support/cpp2/cpplib.c,
11559           support/cpp2/cpplex.c,
11560           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11561           to switch _asm block preprocessing on / off. Default is
11562           #pragma preproc_asm +
11563
11564 2003-10-31  Borut Razem <borut.razem AT siol.net>
11565
11566         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11567           when outputting comment blocks (when executed with -C option) and
11568           _asm (SDCPP specific) blocks
11569
11570 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11571
11572         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11573
11574 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11575
11576         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11577
11578 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11579
11580         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11581         * src/SDCCast.c (decorateType): fixed bug #832664
11582
11583 2003-10-31  Borut Razem <borut.razem AT siol.net>
11584
11585         * support/cpp2/cpplex.c: fixed for SDCPP:
11586           comments(when executed with -C option) and _asm blocks
11587           were included even if they where in skipped #if block.
11588           Applied solution from GCC cpp 3.3.2
11589
11590 2003-10-31  Borut Razem <borut.razem AT siol.net>
11591
11592         * src/SDCC.lex: sdcc now understands both formats:
11593           '# <line_number> <file_name>' and
11594           '#line <line_number> <file_name>'
11595         * support/cpp2/cppmain.c: sdcpp now generates the standard
11596           '# <line_number> <file_name>' instead of former
11597           '#line <line_number> <file_name>'
11598
11599 2003-10-30  Borut Razem <borut.razem AT siol.net>
11600
11601         * support/cpp2/cpphash.h,
11602         * support/cpp2/cpplib.h
11603         * support/cpp2/cpplex.c,
11604         * support/cpp2/cppmain.c,
11605         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11606
11607 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11608
11609         Fixed a number of problems revealed by bug #827883.
11610         * src/SDCCloop.c (loopInvariants): Spill location of the
11611         result operand should be recomputed if extracted from
11612         a loop. Also, don't extract assignments of an iTemp
11613         from a literal.
11614         * src/SDCCast.c (isConformingBody): loop reversal should
11615         not occur if the control variable is involved with a
11616         relational operator.
11617
11618 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11619
11620         * .version: bumped to 2.3.6 to reflect the big improvements
11621         made by Erik and Klaus. Thanks!
11622
11623 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11624
11625         Replaced the livrange code.
11626         * src/SDCClrange.c: added new LR code
11627         * src/SDCCloop.c,
11628         * src/SDCCBBlock.h: removed remainig parts from old LR code
11629         * src/ds390/ralloc.c,
11630         * src/ds390/gen.c: minor fixes to make it work with new code
11631
11632 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11633
11634         * as/hc08/asm.h,
11635         * as/hc08/lkrloc.c,
11636         * src/hc08/gen.c,
11637         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11638         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11639         (tweaked fix for bug #818696)
11640
11641 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11642
11643         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11644
11645 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11646
11647         * src/SDCCmain.c,
11648         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11649         * src/mcs51/gen.c (gencjneshort),
11650         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11651         more efficient (per Scott Bronson's suggestion)
11652
11653 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11654
11655         Extended the semantics of the critical keyword to include
11656         individual statements. See RFE #827755 and #799831
11657         * src/SDCC.y
11658         * src/SDCCicode.c
11659         * src/SDCCopt.c
11660         * src/SDCCast.c
11661         * support/Util/SDCCerr.c
11662         * support/Util/SDCCerr.h
11663         * src/mcs51/gen.c
11664         * src/ds390/gen.c
11665         * src/hc08/gen.c
11666
11667 2003-10-19  Borut Razem <borut.razem AT siol.net>
11668
11669         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11670
11671 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11672
11673         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11674         Fixed bug #818696
11675         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11676         and predecrement operand is displayed
11677
11678 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11679
11680         * src/SDCCval.c (valMinus): fixed bug #826041
11681
11682 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11683
11684         Some hc08 related updates that I missed earlier
11685         * sim/ucsim/stypes.h
11686         * support/regression/ports/hc08/spec.mk
11687
11688 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11689
11690         New target "hc08" for the Motorola 68hc08 family of micros
11691
11692         * configure
11693         * configure.in
11694         * Makefile
11695         * src/hc08/*
11696         * src/SDCCmain.c
11697         * src/port.h
11698         * sim/ucsim/hc08.src/*
11699         * sim/ucsim/configure.in
11700         * src/ucsim/configure
11701         * sim/ucsim/packages_in.mk
11702         * as/hc08/*
11703         * as/Makefile
11704         * device/include/mc68hc908qy.h
11705         * device/lib/hc08/*
11706         * device/lib/Makefile.in
11707         * support/regression/ports/hc08/*
11708         * support/regression/Makefile
11709
11710 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11711
11712         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11713         regression test
11714         * src/ds390/gen.c (genCast): fixed bug #821957
11715
11716 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11717
11718         * device/lib/logf.c: "fixed" overlay bug
11719         * support/regression/ports/host/spec.mk: added m library
11720         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11721         * support/regression/tests/float_trans: added (for Eric)
11722
11723 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11724
11725         * src/mcs51/gen.c (genCpl): fixed bug
11726         http://sf.net/mailarchive/message.php?msg_id=6263915
11727
11728 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11729
11730         * src/SDCCast.c (decorateType): added extended constant folding
11731         * src/SDCCsymt.c (computeType): cleanup
11732         * src/SDCCval.c (valShift): minor optimization
11733         * support/regression/tests/ast_constant_folding.c: added
11734
11735 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11736
11737         * src/SDCCmain.c: removed some unintended changes
11738
11739 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11740
11741         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11742         * src/z80/gen.c: fixed part of bug #817589
11743         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11744
11745 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11746
11747         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11748         * src/SDCCcflow.c
11749         * src/SDCCcse.c
11750         * src/SDCCdflow.c
11751         * src/SDCClabel.c
11752         * src/SDCClrange.c
11753         * src/SDCCmem.c
11754         * src/SDCCopt.c
11755         * src/SDCCpeeph.c
11756         * src/SDCCset.c
11757         * src/avr/ralloc.c
11758         * src/ds390/ralloc.c
11759         * src/izt/ralloc.c
11760         * src/mcs51/ralloc.c
11761         * src/pic/ralloc.c
11762         * src/pic16/ralloc.c
11763         * src/xa51/ralloc.c
11764         * src/z80/ralloc.c
11765         * src/z80/gen.c: removed unused label "release:"
11766
11767 2003-10-06  Borut Razem <borut.razem AT siol.net>
11768
11769         * src/SDCC.lex: removed definition of unused variables
11770           save_optimize and save_options
11771
11772 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11773
11774         * clean.mk: removed '=' in "-maxdepth=1"
11775         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11776         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11777
11778 2003-10-06  Borut Razem <borut.razem AT siol.net>
11779
11780         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11781           my_unput() replaced by unput()
11782
11783 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11784
11785         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11786         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11787         type-punned pointer will break strict-aliasing rules"
11788         Old LR behaviour is again default; Klaus' LR can be choosen by
11789         defining the environment variable LRKLAUS
11790         * src/SDCCBBlock.h
11791         * src/SDCCloop.c
11792         * src/SDCClrange.c
11793         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11794         * clean.mk: fixed removal of files in bin/CVS/
11795         * device/lib/clean.mk: fixed removal of directories small and large
11796         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11797         * src/SDCCicode.c,
11798         * src/SDCCval.c: removed superflous test for pedantic
11799
11800 2003-10-05  Borut Razem <borut.razem AT siol.net>
11801
11802         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11803           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11804           message "unmatched #pragma SAVE and #pragma RESTORE"
11805
11806 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11807
11808         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11809           assembly, critical functions, atomic, nojtbound)
11810
11811 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11812
11813         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11814         * src/SDCCBBlock.h
11815         * src/SDCCloop.c
11816         * src/SDCCloop.h
11817         * src/SDCClrange.c
11818
11819 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11820
11821         * src/z80/gen.h,
11822         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11823         * src/mcs51/gen.h
11824         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11825         * src/ds390/gen.h
11826         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11827         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11828         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11829
11830 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11831
11832         * src/z80/gen.c (genRet): fixed bug #524753
11833         * src/z80/gen.c (genCast): fixed internal error on cast from
11834         pointer to long
11835         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11836         fix for bug #477835 to the z80
11837         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11838         for tracking iCodes in the peephole optimizer for z80
11839
11840 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11841
11842         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11843         the other part of bug #814548
11844         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11845
11846 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11847
11848         * src/SDCCcse.c: fixed part of bug #814548
11849
11850 2003-09-28  Borut Razem <borut.razem AT siol.net>
11851
11852         * src/asm.c: rewrite of printILine() to use temporary file instead
11853           a pipe
11854         * src/xa51/main.c: commented out declaration of int rewinds
11855
11856 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11857
11858         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11859
11860 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11861
11862         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11863         * src/asm.c (printILine): Fixed bug #811015
11864
11865 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11866
11867         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11868         freeing.
11869
11870 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11871
11872         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11873         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11874         to correctly handle general case of AOP_PAIRPTR
11875         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11876
11877 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11878
11879         * src/mcs51/ralloc.c (fillGaps),
11880         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11881         register positioning bug)
11882
11883 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11884
11885         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11886
11887 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11888
11889         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11890         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11891         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11892         (ralloc doesn't intentionally do this now, but perhaps later)
11893         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11894         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11895         register positioning bugs (Fixed bug #762602 and #795325)
11896         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11897         (Fixed bug #808779)
11898         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11899         lines that --i-code-in-asm generates
11900
11901 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11902
11903         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11904         trying to fclose a FILE* that was already closed.
11905
11906 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11907
11908         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11909         of const struct should be treated as if const themselves)
11910
11911 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11912
11913         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11914
11915 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11916
11917         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11918         Unix (/n) and DOS (/r/n) line terminations.
11919
11920 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11921
11922         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11923         bug #613775
11924
11925 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11926
11927         * src/mcs51/gen.c (genFunction, genEndFunction),
11928         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11929         and restore of EA so that stack offsets to parameters are
11930         correct when using both critical and reentrant/stack-auto.
11931         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11932         size (can be triggered in error if sloc is shared between
11933         different sized objects)
11934         * device/include/float.h: fixed macros to explicitly use
11935         unsigned long where needed
11936
11937 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11938
11939         Feature req. 799831: added code to allow nesting of critical functions
11940         * src/mcs51/gen.c (genFunction, genEndFunction)
11941         * src/ds390/gen.c (genFunction, genEndFunction)
11942
11943 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11944
11945         * src/SDCCsymt.c (sclsFromPtr),
11946         * src/SDCCsymt.h,
11947         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11948         support for standard C idiom of memory mapped variables; for
11949         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11950         to xdata int at 0x1234 tempvar = 1.
11951         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11952         provided by Akiya ISHIDA
11953
11954 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11955
11956         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11957         * src/SDCCval.c (constVal): added reduction from int to char
11958         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11959         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11960         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11961         to ignore the sign
11962         * support/regression/tests/shifts.c: fixed
11963
11964 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11965
11966         * src/z80/gen.c (genXor): Fixed bug #805445
11967
11968 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11969
11970         Fixed bug #621531 (const & volatile confusion in the type chain).
11971         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11972         refer to the const or volatile state of the pointer itself.
11973
11974         * src/SDCCast.c
11975         * src/SDCCglue.c
11976         * src/SDCCicode.c
11977         * src/SDCCsymt.c
11978         * src/SDCCval.c
11979         * src/SDCC.y
11980         * src/SDCCsymt.h
11981         * src/pic/gen.c
11982         * src/pic/ralloc.c
11983         * src/pic16/gen.c
11984         * src/pic16/ralloc.c
11985         * support/regression/tests/const.c
11986
11987 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11988
11989         When checking for duplicated modules, use absolute paths
11990         instead of relative paths.  Files changed:
11991
11992         * as/mcs51/lklib.c
11993         * link/z80/lklib.c
11994
11995 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11996
11997         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11998
11999 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12000
12001         * device/include/string.h: added size_t typedef, changed
12002         prototypes to use size_t, eliminated separate reentrant and
12003         non-reentrant declarations, added _memmove declaration
12004         * device/lib/_memcpy.c: changed to use size_t instead of int,
12005         changed /4 to >>2 to avoid division library call
12006         * device/lib/_memcmp.c,
12007         * device/lib/_memset.c,
12008         * device/lib/_strncat.c,
12009         * device/lib/_strncpy.c,
12010         * device/lib/_strncmp.c: changed to use size_t instead of int
12011         * device/lib/_memmove.c: new file (fixed bug #772294)
12012         * device/lib/Makefile.in: added _memmove.c
12013         * device/lib/z80/asm_strings.s: fixed bug #772290
12014         * support/regression/tests/bitfields.c: attempt to fix host assertion
12015         failure on amd64-unknown-linux2.2
12016
12017 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12018
12019         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12020         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12021         * as/z80/asmain.c (main): fixed bug #801766
12022
12023 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12024
12025         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12026         compilers
12027
12028 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12029
12030         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12031         reported in bug #800609
12032
12033 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12034
12035         * Top header beautifications in src/pic16 directory:
12036           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12037           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12038           pcoderegs.h, ralloc.c, ralloc.h
12039         * main.c: added top header and GPL license notice
12040         * pcode.c: fixed the if-conditional warning
12041
12042 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12043
12044         * device/lib/_mullong.c: replaced int by short for gcc
12045
12046 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12047
12048         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12049         and JUMPTABLE iCodes properly now (worked by accident before)
12050         * src/mcs51/gen.c (leftRightUseAcc),
12051         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12052         iCode properly now. Use getSize instead of nRegs since a & b
12053         aren't part of the nRegs tally.
12054
12055 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12056
12057         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12058         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12059           before instructions that use the _STATUS register
12060
12061 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12062
12063         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12064         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12065         fetching of the pointer
12066         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12067         copied from genNearPointerSet()
12068         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12069         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12070         If they pop r0/r1 they must be called in the opposite order than aopOp().
12071         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12072         (resp. --stack-auto), prepared for --xstack
12073
12074 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12075
12076         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12077
12078 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12079
12080         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12081         these ports have their own __sdcc_external_start()
12082
12083 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12084
12085         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12086         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12087         type for bits was changed. It resulted in bit variables becoming
12088         global, which is not permitted in PIC 14 assembly output.
12089
12090 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12091
12092         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12093
12094 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12095
12096         Z80 and MCS51 linkers complaint if a public symbol is defined
12097         in more than one library module:
12098
12099         * as/mcs51/lklib.c
12100         * link/z80/lklib.c
12101         * as/mcs51/Makefile.in
12102
12103 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12104
12105         A few small changes that speed up the peephole optimizer.
12106
12107         * src/SDCCpeeph.c
12108
12109 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12110
12111         Try to make the peephole optimizer smarter by maintaining
12112         an association between the assembly source code and the
12113         iCodes that originated them. Put this information to use
12114         with a new peephole rule condition "notVolatile" so that
12115         the rules can be aggressive yet still safe.
12116
12117         * src/SDCCpeeph.c
12118         * src/SDCCpeeph.h
12119         * src/mcs51/gen.c
12120         * src/mcs51/peeph.def
12121
12122 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12123
12124         Fixed bug #741761
12125
12126         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12127         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12128         if the left or right operand symbols have the accuse flag set.
12129
12130 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12131
12132         Changed the type of the result of the ! (NOT) operator to char;
12133         previously it returned the same type as the source. This allows
12134         us to eliminate all the genFloatNot functions (all of its target
12135         implementations were very buggy) since !float can use the same
12136         code as !long now.
12137
12138         * src/SDCCicode.c (ast2iCode): ! returns char
12139         * src/mcs51/gen.c (genNot, genNotFloat),
12140         * src/ds390/gen.c (genNot, genNotFloat),
12141         * src/z80/gen.c (genNot, genNotFloat),
12142         * src/pic/gen.c (genNot, genNotFloat),
12143         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12144
12145 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12146
12147         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12148         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12149            during interrupts. Ensure WSAVE is located at a shared bank address.
12150         2. Fixed page selection in some places
12151         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12152            the registers name strings.
12153         4. Fixed "signed / unsigned compare" compiler warnings.
12154         5. The PIC port manages its own allocation of the general purpose
12155            registers, but makes no attempt to reuse them. As a result when
12156            compiling it soon runs out of general purpose registers. Some
12157            additional code was added to the files pcode.c and device.c to walk
12158            through the function call tree and rename the registers so that they
12159            get reused.
12160
12161         * src/pic/device.c
12162         * src/pic/gen.c
12163         * src/pic/glue.c
12164         * src/pic/pcode.c
12165         * src/pic/pcode.h
12166         * src/pic/ralloc.c
12167         * src/pic/ralloc.h
12168         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12169         genPlus() & genMinus() when the result is the same as left or right
12170
12171 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12172
12173         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12174
12175 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12176
12177         Made bitfield a distinct type from bit so that bitfields
12178         convert as per ANSI C and bits retain their traditional
12179         boolean style behaviour. Implemented bitfield support in
12180         the z80 port.
12181
12182         * src/SDCCsymt.h,
12183         * src/SDCCsymt.c,
12184         * src/SDCCast.c,
12185         * src/cdbFile.c,
12186         * src/mcs51/gen.c,
12187         * src/ds390/gen.c: bit v bitfield split
12188         * src/z80/gen.c: New support for bitfields
12189         * support/regression/tests/bitfields.c: reenabled z80,
12190         added more tests
12191
12192 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12193
12194         Rules 246.x, 247.x relate to bitfields, the others speed up
12195         access to xdata mapped I/O devices.
12196
12197         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12198
12199 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12200
12201         Cleaned up genPackBits and genUnpackBits and added two helper
12202         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12203         for literal assignments in genPackBits (thanks to Frieder for
12204         reminding me).
12205
12206         * src/mcs51/gen.c
12207         * src/ds390/gen.c
12208
12209 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12210
12211         Fixed bug #748310 (pointer to function type mishandled when the
12212         function name is omitted). Also fixed a SIGSEGV when a function
12213         attribute (reentrant, etc) is used on a non-function or on a
12214         function but misplaced before the parameter list.
12215
12216         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12217         bug #748310
12218         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12219         * support/Util/SDCCerr.h,
12220         * support/Util/SDCCerr.c: Added func attr misuse error msg
12221
12222 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12223
12224         Fixed bug #787649 by anonymous
12225         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12226         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12227
12228 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12229
12230         Fixed numerous bitfield problems.
12231
12232         * src/SDCC.y: More bitfield related error checking
12233         * src/SDCCsymt.h,
12234         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12235         * support/Util/SDCCerr.h,
12236         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12237         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12238         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12239         * support/regression/tests/bitfields.c: tests added
12240
12241 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12242
12243         Made the constant following the "interrupt" keyword optional. If
12244         omitted, the function will not automatically be given an entry
12245         in the interrupt vector table (similar to #pragma NOIV, but
12246         less syntacticly kludgy). The interrupt number is also now
12247         range checked. Also fixed a bug in the high order bit example
12248         in the manual.
12249
12250         * src/SDCC.y
12251         * src/SDCCmem.c
12252         * src/SDCCglue.c
12253         * src/SDCCsymt.h
12254         * support/Util/SDCCerr.c
12255         * support/Util/SDCCerr.h
12256         * doc/sdccman.lyx
12257
12258 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12259
12260         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12261         * src/SDCCicode.c (operandOperation): rewritten some ops
12262         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12263         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12264         other type
12265         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12266         be re-activated by defining REDUCE_LITERALS)
12267         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12268         unsigned, but are signed by default
12269         * src/SDCCval.c (constVal): rearranged
12270         * src/SDCCval.c (valMod): preliminary fix
12271         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12272         * support/regression/literalop.c: added, work in progress
12273
12274 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12275
12276         Generate warnings for useless declarations like "char data;"
12277         that don't do what new users expect.
12278
12279         * src/SDCC.y
12280         * support/Util/SDCCerr.h
12281         * support/Util/SDCCerr.c
12282
12283 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12284
12285         * src/SDCCval.c (valMult): fix overflow detection of negative int
12286
12287 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12288
12289         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12290
12291         Changes to support big endian targets:
12292
12293         * src/ports.h
12294         * src/SDCCglue.c
12295         * src/avr/main.c
12296         * src/ds390/main.c
12297         * src/izt/i186.c
12298         * src/mcs51/main.c
12299         * src/pic/main.c
12300         * src/pic16/main.c
12301         * src/xa51/main.c
12302         * src/z80/main.c
12303
12304 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12305
12306         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12307         * device/lib/time.c: fixed warning "integer overflow in expression"
12308
12309 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12310
12311         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12312         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12313         constants are unsigned; added recognition of "u" flag for unsigned
12314         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12315         * src/SDCCval.c (valDiv, valMod): fixed signdness
12316         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12317         signedness of modulo, left and right shift
12318         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12319         * support/Util/SDCCerr.h: added warning W_INT_OVL
12320         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12321         * src/SDCCast.c (ast_print): improved output of constants
12322
12323 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12324
12325         Fixed some warnings when building with MSVC:
12326
12327         * as/mcs51/asdata.c
12328         * as/z80/asdata.c
12329         * as/mcs51/asm.h
12330         * as/z80/asm.h
12331         * link/z80/aslink.h
12332         * link/z80/lkdata.c
12333         * link/z80/lkeval.c
12334         * link/z80/lkgb.c
12335         * link/z80/lkihx.c
12336         * link/z80/lks19.c
12337         * link/z80/lksym.c
12338         * support/cpp2/cpplib.c
12339         * src/ds390/gen.c
12340         * src/mcs51/gen.c
12341
12342 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12343
12344         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12345
12346 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12347
12348         * support/librarian/clean.mk: Do not remove Makefile.
12349         * support/librarian/Makefile: added.
12350
12351 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12352
12353         Added librarian to MSVC build:
12354         * all.dsp
12355         * sdcc.dsw
12356         * support/librarian/librarian.dsp
12357
12358         'configure' not needed for librarian, removed:
12359         * support/librarian/configure
12360         * support/librarian/configure.in
12361         * support/librarian/config_in.h
12362         * support/librarian/Makefile.in
12363
12364         Hopefully these ones built the librarian and the rest of sdcc properly:
12365         * Makefile
12366         * Makefile.common.in
12367
12368         Messed up 'configure', so revert to previous version:
12369         * configure
12370         * configure.in
12371
12372 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12373
12374         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12375         there, while the mantissa of a double is "only" 53 bits wide.
12376
12377 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12378
12379         Adding sdcclib to the build.  MSVC project coming soon.
12380         Files added/changed:
12381
12382         * support/librarian/clean.mk
12383         * support/librarian/configure
12384         * support/librarian/configure.in
12385         * support/librarian/config_in.h
12386         * support/librarian/Makefile.bcc
12387         * support/librarian/Makefile.in
12388         * support/librarian/sdcclib.c
12389         * Makefile.bcc
12390         * Makefile
12391         * Makefile.common.in
12392         * configure
12393         * configure.in
12394
12395 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12396
12397         Linker now complaints if linked modules have conflicting options, for
12398         example, one compiled using --model-large and another one compiled with
12399         --model-small.  The following files were modified:
12400
12401         * as/mcs51/asdata.c
12402         * as/mcs51/aslink.h
12403         * as/mcs51/asm.h
12404         * as/mcs51/asmain.c
12405         * as/mcs51/asout.c
12406         * as/mcs51/i51pst.c
12407         * as/mcs51/lkdata.c
12408         * as/mcs51/lklibr.c
12409         * as/mcs51/lkmain.c
12410         * as/z80/asdata.c
12411         * as/z80/asm.h
12412         * as/z80/asmain.c
12413         * as/z80/asout.c
12414         * as/z80/z80pst.c
12415         * link/z80/aslink.h
12416         * link/z80/lkdata.c
12417         * link/z80/lklibr.c
12418         * link/z80/lkmain.c
12419         * src/SDCCglue.c
12420
12421 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12422
12423         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12424         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12425
12426 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12427
12428         * src/z80/mappings.i: fix _mul[us][int,long] entries
12429
12430 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12431
12432         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12433
12434 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12435
12436         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12437         * support/regression/tests/bitopcse.c: added
12438         fixed warning:
12439         * src/avr/gen.c:
12440         * src/pic/gen.c:
12441         * src/pic16/gen.c:
12442         * src/z80/gen.c:
12443         * src/xa51/gen.c:
12444
12445 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12446
12447         added support for new library format to z80, gbz80 linkers:
12448         *link/z80/aslink.h
12449         *link/z80/lklex.c
12450         *link/z80/lklib.c
12451         *link/z80/lklist.c
12452
12453 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12454
12455         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12456         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12457
12458 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12459
12460         added DUMMY_READ_VOLATILE:
12461         * src/SDCC.y:
12462         * src/avr/gen.c:
12463         * src/xa51/gen.c:
12464         * src/z80/gen.c:
12465         * src/pic/gen.c:
12466         * src/pic16/gen.c:
12467         * src/mcs51/gen.c:
12468         * src/ds390/gen.c:
12469         * src/SDCCcse.c (algebraicOpts): many improvements
12470         * src/SDCCcse.h: removed algebraicOpts()
12471         * src/SDCCicode.c (picDummyRead): added
12472
12473 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12474
12475         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12476         "Insufficient space in data memory".
12477
12478 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12479
12480         * src/mcs51/gen.c: fixed bug #771358
12481         * src/z80/gen.c: fixed bug #759087
12482
12483 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12484
12485         * src/pic16/glue.c: minor cleanup by Vangelis
12486
12487 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12488
12489         * device/include/regc515c.h: fixed #758477
12490         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12491         * device/lib/_gptrput.c: saved a few bytes
12492         * my tab spacing is 8, yours too?)
12493         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12494         * device/lib/serial.c: process RX bytes earlier than TX bytes
12495         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12496
12497 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12498
12499         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12500
12501 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12502
12503     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12504
12505 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12506
12507         * device/lib/Makefile.in: bad fix, reverted to 1.43
12508
12509 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12510
12511         * device/lib/Makefile.in: added missing z80 object files
12512
12513 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12514
12515         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12516         pic16 progress by Vangelis:
12517         * src/SDCCglobl.h:
12518         * src/SDCCmain.c:
12519         * src/pic/Makefile:
12520         * src/pic:
12521         * pic/Makefile:
12522         * pic16/device.c:
12523         * pic16/device.h:
12524         * pic16/gen.c:
12525         * pic16/gen.h:
12526         * pic16/genarith.c:
12527         * pic16/glue.c:
12528         * pic16/main.c:
12529         * pic16/pcode.c:
12530         * pic16/pcode.h:
12531         * pic16/pcodepeep.c:
12532         * pic16/peeph.def:
12533
12534 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12535
12536     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12537
12538 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12539
12540     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12541     added gbz80 build to MSVC project.
12542     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12543     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12544     from 8051 stuff and setup so it links using a .lnk file.
12545
12546 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12547
12548     * support/librarian/sdcclib.c: sdcc librarian.
12549     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12550     with sdcclib.
12551
12552 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12553
12554     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12555
12556 2003-07-02  Borut Razem <borut.razem AT siol.net>
12557
12558         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12559         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12560         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12561         src/xa51/main.c, src/z80/main.c:
12562         virtualization of glue() function: each port has it's own glue function,
12563         which is accessed by do_glue function pointer in PORT.general structure
12564
12565 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12566
12567         * DS800C400 fun, improved ROM interface and tinibios.
12568
12569 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12570
12571         * More support for DS80C400. Now includes beginning of interface to ROM.
12572
12573 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12574
12575         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12576
12577 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12578
12579         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12580
12581 2003-06-19  Borut Razem <borut.razem AT siol.net>
12582
12583         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12584
12585 2003-06-19  Borut Razem <borut.razem AT siol.net>
12586
12587         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12588         fixed Z80 port - crt0.o: cannot open.
12589
12590 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12591
12592         * support/Util/MySystem.c (merge_command): revert bad fix
12593
12594 2003-06-18  Borut Razem <borut.razem AT siol.net>
12595
12596         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12597
12598 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12599
12600         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12601         option --use-stdout sends errors to stdout instead of stderr.
12602
12603 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12604
12605         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12606
12607 2003-06-15  Borut Razem <borut.razem AT siol.net>
12608
12609         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12610         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12611         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12612         fixed width array of pointers replaced with sets;
12613         multiple include and lib paths ared transferred to preprocessor and linker
12614         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12615         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12616         fixed width array of pointers
12617         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12618         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12619         fixupPath(), getPathDifference()
12620         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12621         fixed width array of pointers
12622
12623 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12624
12625         * src/pic16/ralloc.c: fix warnings
12626         * src/pic16/pcode.c: fix warning
12627
12628 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12629
12630          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12631         know all the details, but essentially this set of changes enable
12632         the pic16 port to generate movff instructions and generate assembler
12633         directives,
12634         * src/SDCCmain.c:
12635         * src/pic16/gen.c:
12636         * src/pic16/glue.c:
12637         * src/pic16/pcode.c:
12638         * src/pic16/device.c:
12639         * src/pic16/main.c:
12640         * src/pic16/pcode.h:
12641         * src/pic16/pcoderegs.c:
12642         * src/pic16/ralloc.c:
12643         * src/pic16/ralloc.h:
12644
12645 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12646
12647         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12648         added option --vc, so sdcc errors and warnings are compatible with
12649         Microsoft Visual Studio.
12650
12651 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12652
12653         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12654           device/lib/libfloat.lib: added atof function.
12655
12656 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12657
12658         * doc/sdccman.lyx: updated to Lyx 1.3
12659         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12660         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12661         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12662
12663 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12664
12665         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12666
12667 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12668
12669         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12670           additions to the "related tools/documentation" section
12671
12672 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12673
12674         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12675
12676 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12677
12678         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12679         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12680
12681 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12682
12683         * doc/sdccman.lyx: fix double dash and other minor things
12684         * doc/Makefile: fix double dash
12685
12686 2003-05-28  Karl Bongers(patches from Martin Helmling)
12687         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12688           condition and ignore commands.
12689
12690 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12691
12692         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12693           is in parts still quite out of date, I did changes as far as I felt makes sense
12694           for a non-native english speaker.
12695           Please feel free to add to the manual or to correct my changes.
12696         * doc/Makefile: undid touching the date of intermediate tex files.
12697
12698 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12699
12700         * doc/sdccman.lyx: Manual has an index now
12701
12702 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12703
12704         Finalize muluint/mulsint and mululong/mulslong merging:
12705         * device/lib/_mulint.c
12706         * device/lib/_mullong.c
12707         * device/lib/gbz80/mul.s
12708         * device/lib/gbz80/stubs.s
12709         * device/lib/z80/mul.s
12710         * device/lib/z80/stubs.s
12711         * src/SDCCsymt.c (initCSupport)
12712
12713 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12714
12715         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12716         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12717           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12718           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12719           instead of /Zm500.
12720
12721 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12722
12723         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12724           the regression tests I'm not brave enough to enable 245.b, 245.c
12725         * doc/sdccman.lyx: added latex preamble for hyperref package.
12726           Using pdflatex this will give you a hyperlinked pdf file with
12727           bookmarks. (prepend '%' before /usepackage if this breaks something)
12728
12729 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12730
12731          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12732
12733 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12734
12735         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12736
12737 2003-05-21    <johan AT balder>
12738
12739         * src/SDCCglue.c (printIval): fixed bug #739934
12740
12741 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12742
12743         Applied patch from bug 737905 (renamed yylineo to mylineno):
12744         * src/altlex.c
12745         * src/SDCCast.c
12746         * src/SDCglobl.h
12747         * src/SDCC.lex
12748         * src/SDCCsymt.c
12749         * src/SDCCval.c
12750         * src/pic16/pcode.c: Cleaned warnings
12751         * src/pic16/pcodeflow.c: Cleaned warnings
12752         * src/pic16/pcoderegs.c: Cleaned warnings
12753
12754 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12755
12756         * src/pic16/pcode.c: Cleaned warnings
12757         * src/pic16/pcodepeep.c: Cleaned warnings
12758         * src/pic16/ralloc.c: Cleaned warnings
12759
12760 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12761
12762         * doc/sdccman.lyx: fixed bug 739745
12763         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12764
12765 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12766
12767         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12768         it can be defined with CFLAGS when running configure
12769         * src/SDCCmain.c: fixed compiling + linking with object files
12770
12771 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12772
12773         * configure.in: configure for pic16 port,
12774             added --disable-pic16-port
12775         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12776         * src/SDCCmain.c: linkOptions is changed to set *,
12777             added if/endif conditional macros to remove options help
12778             messages from optionsTable when a port is not configured, added
12779             support for the PIc16 port in the ports table, when executing
12780             the compiler with no port specified on command line, a default
12781             port is selected with the new macro DEFAULT_PORT which is
12782             defined in port.h, in setDefaultOptions() linkOptions is removed
12783             from initialization assignment, since now it is a set,
12784             parseCmdLine uses setParseWithComma for linkOptions, in
12785             linkEdit() linkOptions are accessed with new function indexSet()
12786             which returns the i'th item of a set variable. See SDCCset.c, in
12787             linkEdit() when calling buildCmdLine(), added linkOptions as
12788             last argument. Now users can pass arguments to gplink via the
12789             -Wl option, main() uses pic16glue() to glue up pic16 programs
12790         * src/SDCCpeeph.c: various changes to support pic16
12791         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12792             return the i'th item of the set
12793         * src/SDCCset.h: added function prototype for indexSet()
12794         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12795         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12796         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12797             added macro DEFAULT_PORT
12798         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12799         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12800             generated
12801         * src/pic16/glue.c: commented out some error producing lines
12802         * src/pic16/main.c: __config directives are commented out to stop
12803             gpasm complaining and test the linkage with gplink, _linkCmd and
12804             _asmCmd changed to be more gplink and gpasm friendly
12805         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12806             produced an error when parsed, peep rule 12 is added to utilize
12807             movff, but it is commented out since the pCode does not support
12808             yet a command with 2 address arguments
12809
12810 2003-05-18    <johan AT balder>
12811
12812         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12813         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12814 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12815
12816         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12817   Added feature to script commands from file.
12818
12819 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12820
12821         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12822         * src/SDCCutil.c: include ctype.h for win32
12823
12824 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12825
12826         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12827
12828 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12829
12830         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12831   Fixed so you can set breakpoints prior to run, run does not stop
12832   on entry now.  Add tbreak.  Other enhancements and fixes for use
12833   with ddd.
12834
12835 2003-05-12  Borut Razem <borut.razem AT siol.net>
12836
12837         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12838
12839 2003-05-11  Borut Razem <borut.razem AT siol.net>
12840
12841         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12842         the path of bin directory, so that PATH is the only env. variable, which has to be set
12843         in case of standard installation.
12844         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12845         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12846         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12847
12848 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12849
12850         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12851         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12852         temp files are in the port dir; clean the gen/test directory when
12853         generating new test.c
12854         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12855         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12856         * support/regression/tests/zeropad.c: added
12857
12858 2003-05-09    <johan AT balder>
12859
12860         * src/SDCCglue.c: fixed bug #597940
12861
12862 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12863
12864         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12865   cache sfr, optimize next,step, fix off by one sourceline,
12866   support ddd list function.
12867         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12868
12869 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12870
12871         * support/regression/HTMLgen.py: added compare_s2f()
12872         * support/regression/Makefile: redo 1.27
12873         * support/regression/generate-cases.py: redo 1.5
12874
12875 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12876
12877         * support/regression/tests/float.c: workaround 33 bit hex constant
12878         * support/regression/tests/simplefloat.c: fix division for host
12879
12880 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12881
12882         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12883         that tame's the PIC's over-aggressive optimizer.
12884
12885 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12886
12887          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12888          support for MSVC.
12889
12890 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12891
12892         Initial support for DS80C400. "Hello world" runs on TINIm400
12893         (with polled I/O).
12894
12895 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12896
12897          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12898          * Some notes on ddd usage added in debugger/README
12899          Martin Helmling adding more features and fixes for ddd GUI debugger.
12900          Code added for nexti, stepi, up, down, and other adjustments.
12901
12902 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12903
12904         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12905         * src/pic/peeph.def Added two rules to optimize carry manipulation
12906         * src/pic/* removed debug printfs
12907
12908 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12909
12910         * debugger/mcs51/cmd.c: added header newalloc.h
12911
12912 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12913
12914         * as/Makefile: new EXEEXT
12915         * as/z80/Makefile: remove trailing slash of BUILDIR
12916         * as/z80/clean.mk: new EXEEXT
12917         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12918         * support/cpp2/Makefile.in: new EXEEXT
12919         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12920
12921 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12922
12923         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12924         EXEEXT was introduced to fix all related problems with targets
12925         "clean", "install" and "uninstall"; a couple of further flaws
12926         especially with "clean" have been fixed too
12927         * as/mcs51/Makefile.in
12928         * as/mcs51/clean.mk
12929         * as/z80/Makefile
12930         * Makefile
12931         * clean.mk
12932         * debugger/mcs51/Makefile.in
12933         * debugger/mcs51/clean.mk
12934         * link/z80/Makefile
12935         * link/z80/Makefile.in
12936         * link/z80/clean.mk
12937         * link/Makefile
12938         * packihx/Makefile.in
12939         * packihx/clean.mk
12940         * sim/ucsim/Makefile
12941         * sim/ucsim/clean.mk
12942         * sim/ucsim/avr.src/Makefile.in
12943         * sim/ucsim/avr.src/clean.mk
12944         * sim/ucsim/s51.src/Makefile.in
12945         * sim/ucsim/s51.src/clean.mk
12946         * sim/ucsim/xa.src/Makefile.in
12947         * sim/ucsim/xa.src/clean.mk
12948         * sim/ucsim/z80.src/Makefile.in
12949         * sim/ucsim/z80.src/clean.mk
12950         * sim/ucsim/main_in.mk
12951         * sim/ucsim/packages_in.mk
12952         * sim/ucsim/gui.src/Makefile.in
12953         * sim/ucsim/gui.src/serio.src/Makefile.in
12954         * sim/ucsim/gui.src/serio.src/clean.mk
12955         * src/Makefile.in
12956         * src/clean.mk
12957         * support/cpp2/Makefile.in
12958         * support/cpp2/clean.mk
12959         * support/makebin/Makefile
12960         * support/makebin/clean.mk
12961         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12962         * doc/sdccman.lyx: --program-suffix no longer needed
12963
12964 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12965
12966          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12967          Martin Helmling added support for ddd GUI debugger.
12968          Code added to display assembly, set variables, and other commands
12969          to interface to ddd.
12970
12971 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12972
12973         * as/Makefile: fix target clean
12974         * as/clean.mk: fix target clean
12975         * as/z80/clean.mk: fix target clean
12976
12977 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12978
12979         * Makefile.common.in: added  AT EXEEXT AT
12980         * configure.in: removed all mingw32 stuff
12981         * configure: rebuilt from configure.in
12982         * doc/sdccman.lyx: updated section "installation"
12983         * support/scripts/sdcc_mingw32: adapted to configure
12984         * support/scripts/sdcc_cygwin_mingw32: added
12985
12986 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12987
12988         * src/pic Added object file support for the PIC port
12989         * src/pic Applied patch from Craig Franklin (this started the object file support)
12990         * src/regression Updated the PIC regression tests for object files
12991
12992 2003-04-20  Borut Razem <borut.razem AT siol.net>
12993
12994         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12995           lklex.c: In function `getfid':
12996           lklex.c:203: warning: array subscript has type `char'
12997         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12998           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12999         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13000           stack handling macros
13001
13002 2003-04-19  Borut Razem <borut.razem AT siol.net>
13003
13004         * "handling space characters in file path" task:
13005         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13006         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13007         * support/Util/MySystem.h: make it self-sufficient
13008         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13009           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13010           handling space characters in file path
13011         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13012           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13013         * support/Util/MySystem.c: handling space characters in executable's path
13014
13015 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13016
13017         * as/z80/Makefile: fix permanent rebuild of z80
13018         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13019         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13020
13021 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13022
13023         * src/SDCCopt.c: add special case optimization to replace modulo by
13024           a power of two with a bitwise AND.
13025
13026 2003-04-18    <johan AT balder>
13027
13028         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13029
13030 2003-04-17    <johan AT balder>
13031
13032         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13033         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13034
13035 2003-04-13  Borut Razem <borut.razem AT siol.net>
13036
13037         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13038         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13039           fixed mingw problem in adl_NORMALIZE_PATH
13040
13041 2003-04-12  Borut Razem <borut.razem AT siol.net>
13042
13043         * fixed "#pragma SAVE/RESTORE can not be nested":
13044         * src/SDCC.lex: reworked pragma handling functions
13045         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13046         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13047
13048 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13049
13050         * src/SDCCutil.c (pathEquivalent): defined but not used
13051         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13052         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13053         * configure: rebuilt from configure.in
13054         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13055         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13056         * device/include/Makefile.in: replace sdcc_datadir
13057         * device/lib/Makefile.in: replace sdcc_datadir
13058         * Makefile.common.in: add LDFLAGS from configure
13059         * packihx/Makefile.in: use LDFLAGS
13060         * src/Makefile.in: use LDFLAGS
13061         * support/cpp2/Makefile.in: add LDFLAGS from configure
13062         * support/makebin/Makefile: use LDFLAGS
13063         * .version: bumped version number to 2.3.5
13064
13065 2003-04-12  Borut Razem <borut.razem AT siol.net>
13066
13067         * completed "different paths" task:
13068         * src/SDCCmacro.c: fixed bug in handling quotes
13069         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13070         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13071
13072 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13073
13074         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13075
13076 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13077
13078         * ds390/gen.c ds390/peeph.def: fix bug 706781
13079
13080 2003-04-11  Borut Razem <borut.razem AT siol.net>
13081
13082         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13083
13084 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13085
13086         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13087         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13088          set - this bit used to not be set...).
13089         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13090           bad code in PIC Port
13091         * src/regression/and2.c added to test bug 609268
13092         * src/regression/Makefile added and2.c to regression test
13093
13094
13095 2003-04-08    <johan AT CP255758-A>
13096
13097         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13098         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13099         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13100
13101 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13102
13103         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13104         fix bug #487815
13105         * support/cpp2/Makefile.in: fix bug #487815
13106         * configure: rebuilt from configure.in
13107         * Makefile.common.in: docdir changed, new path suffixes
13108         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13109         * sdcc_vc_in.h: reflect changes from sdccconf.h
13110         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13111         * src/SDCCutil.h: remove BINDIR hack
13112         * doc/sdccman.lyx: update new path hierarchy
13113
13114 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13115
13116         * src/SDCCpeeph.c: added okToRemoveSLOC test
13117
13118 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13119
13120         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13121
13122 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13123
13124         * src/SDCCpeeph.c: added labelIsReturnOnly test
13125         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13126
13127 2003-04-05    <johan AT balder>
13128
13129         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13130         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13131         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13132         * src/SDCCast.c: fixed a warning
13133         * src/SDCCast.h: fixed a warning
13134         * src/SDCCicode.c (operandFromAst): fixed a warning
13135
13136 2003-04-04    <johan AT balder>
13137
13138         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13139         * src/SDCCast.c (decorateType): fixed bug #715076
13140         * src/SDCC.y: fixed bug #702907
13141
13142 2003-04-03    <johan AT balder>
13143
13144         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13145         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13146         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13147         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13148         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13149
13150 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13151
13152         * _decdptr.c: fix return values
13153         * _gptrget.c: fix return values
13154         * _gptrgetc.c: fix return values
13155         * _gptrput.c: fix return values
13156         * _mulint.c: fix return values
13157         * as/z80/Makefile: fix 'make -j' problem
13158
13159 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13160
13161         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13162         * configure.in: big cleanup, updated to autoconf 2.5x
13163         * configure: rebuilt from configure.in
13164         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13165         * sdcc_vc_in.h: reflect changes from sdccconf.h
13166         * doc/Makefile: fixed a flaw in "make install"
13167
13168 2003-04-02    <johan AT balder>
13169
13170         * src/ds390/gen.c (genCmp): no comments
13171         * src/mcs51/gen.c (genCmp): no comments
13172         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13173         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13174
13175 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13176
13177         * support/regression/generate-cases.py: place generated file in given sub directory
13178         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13179         * support/regression/Makefile: improvements for 'make -j';
13180         side effect: it's simpler and faster now
13181
13182 2003-03-31  Borut Razem <borut.razem AT siol.net>
13183
13184         * src/z80/main.c: link-{port} and as-{port} defined without path
13185         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13186
13187 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13188
13189         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13190
13191 2003-03-30  Borut Razem <borut.razem AT siol.net>
13192
13193         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13194           changed type of list parameter to set
13195         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13196         * src/port.h: changed type of do_assemble() parameter to set
13197         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13198           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13199           definition of "cppoutfilename" macro with NULL value in preProcess()
13200         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13201         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13202         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13203           replaced with set *binPathSet
13204         * shash_add() deallocates the item, if allready exsists, before adding the new one
13205         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13206
13207 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13208
13209         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13210           a nested for loop bug in the PIC port
13211         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13212           for loops
13213
13214 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13215
13216         * support/Util/dbuf.h: remove C++ stuff to make it portable
13217
13218 2003-03-28  Borut Razem <borut.razem AT siol.net>
13219
13220         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13221           literal strings in stringLiteral()
13222         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13223         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13224           to the project
13225
13226 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13227
13228         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13229
13230 2003-03-26    <johan AT balder>
13231
13232         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13233         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13234         * src/SDCCast.c (decorateType): fixed " -v < 3"
13235
13236 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13237
13238         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13239         Added Lenny Story's debug infrastructure changes:
13240         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13241         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13242         * src/cdbFile.c: added
13243         * src/SDCCdebug.c: added
13244         * src/SDCCdebug.h: added
13245         * src/SDCCast.c (createFunction)
13246         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13247         * src/SDCCmain.c (parseCmdLine, main)
13248         * src/SDCCmem.c (redoStackOffsets)
13249         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13250         * src/SDCCsymt.h
13251         * src/common.h
13252         * src/avr/gen.c (genAVRCode)
13253         * src/ds390/gen.c (gen390Code)
13254         * src/mcs51/gen.c (gen51Code)
13255         * src/pic/gen.c (genpic14Code)
13256         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13257         * src/xa51/gen.c (genXA51Code)
13258         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13259
13260 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13261
13262         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13263         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13264
13265 2003-03-22    <johan AT balder>
13266
13267         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13268
13269 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13270
13271         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13272         * doc/cdbfileformat.lyx: added, written by Lenny Story
13273         * doc/Makefile: added cdbfileformat.lyx
13274         * doc/clean.mk: added cdbfileformat.lyx
13275
13276 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13277
13278         * src/mcs51/peeph.def: fix bug #705773
13279
13280 2003-03-20    <johan AT balder>
13281
13282         An sfr/sbit can have an "at #" AND an initializer
13283         * src/SDCCsymt.c (checkSClass):
13284         * src/SDCCmem.c (allocGlobal):
13285         * src/SDCCmem.c (allocLocal):
13286         * src/SDCCast.c (createBlock):
13287
13288 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13289
13290         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13291
13292 2003-03-16    <johan AT balder>
13293
13294         Undid the hackup of const and volatile, the problem is much bigger
13295         * src/SDCC.y:1.65
13296         * src/SDCCast.c:1.171
13297         * src/SDCCglue.c:1.138
13298         * src/SDCCicode.c:1.146
13299         * src/SDCCsymt.c:1.150
13300         * src/SDCCval.c:1.65
13301
13302 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13303
13304         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13305         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13306
13307 2003-03-13    <johan AT balder>
13308
13309         Hackup const and volatile modifiers in type chains a bit:
13310         * src/SDCC.y:1.63
13311         * src/SDCCast.c:1.169
13312         * src/SDCCglue.c:1.136
13313         * src/SDCCicode.c:1.143
13314         * src/SDCCsymt.c1.146
13315         * src/SDCCsymt.h1.59
13316         * src/SDCCval.c:1.63
13317
13318 2003-03-12    <johan AT balder>
13319
13320         * src/SDCCBBlock.h: more LRH debugging junk
13321         * src/SDCCcflow.h: more LRH debugging junk
13322         * src/SDCCloop.c: more LRH debugging junk
13323         * src/SDCC.y (struct_declaration): fixed bug #697590
13324         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13325         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13326         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13327
13328 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13329         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13330         test function names must now match exactly).
13331         * src/SDCCcse.c: added special case in findCheaperOp to allow
13332         extending a short integer. Makes less awful code for bug 700121 test case.
13333
13334 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13335
13336         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13337         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13338
13339 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13340
13341         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13342         actually called (operandsNotEqual() was called for all
13343         operandsNotEqualX tests).
13344
13345 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13346
13347         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13348         with shorter literals. Fixes bug 700121.
13349
13350 2003-03-11    <johan AT balder>
13351
13352         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13353
13354 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13355
13356         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13357         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13358
13359 2003-03-10  Borut Razem <borut.razem AT siol.net>
13360
13361         * src/SDCCmain.c: pipe preprocessor's output
13362         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13363         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13364         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13365         which closes all pipes in pipeSet set
13366         * src/SDCCset.c: free deleted item in function deleteSetItem()
13367         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13368         moved from z80 to src subproject
13369         * .version: increased version number to 2.3.4
13370
13371 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13372
13373         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13374         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13375         * support/regression/ports/xa51/spec.mk: fix typo
13376
13377 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13378
13379         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13380
13381 2003-03-09  Borut Razem <borut.razem AT siol.net>
13382
13383         * src/SDCCmain.c: pipe preprocessor's output
13384         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13385         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13386         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13387         which closes all pipes in pipeSet set
13388         * src/SDCCset.c: free deleted item in function deleteSetItem()
13389         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13390         moved from z80 to src subproject
13391
13392 2003-03-09  Borut Razem <borut.razem AT siol.net>
13393
13394         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13395         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13396         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13397         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13398         * src/SDCCglobl.h: unification of WIN32 native definitions
13399
13400 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13401
13402         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13403
13404 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13405
13406         * src/configure.in:   check for endianess (even while cross-compiling)
13407         * src/configure:      check for endianess (even while cross-compiling)
13408         * src/configure_in.h: check for endianess (even while cross-compiling)
13409         * src/avr/gen.c:        remove old endianess stuff
13410         * src/mcs51/gen.c:      remove old endianess stuff
13411         * src/ds390/gen.c:      remove old endianess stuff
13412         * src/pic/gen.c:        remove old endianess stuff
13413         * src/pic/genarith.c:   remove old endianess stuff
13414         * src/pic/glue.c:       fix endianess check
13415         * src/pic16/gen.c:      remove old endianess stuff
13416         * src/pic16/genarith.c: remove old endianess stuff
13417         * src/pic16/glue.c:     fix endianess check
13418         * src/xa51/gen.c:       remove old endianess stuff
13419         * src/z80/gen.c:        fix endianess check
13420         * src/SDCCglue.c:       fix endianess check
13421         * src/ds390/peeph.def: fix bug 700036
13422
13423 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13424
13425         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13426         * src/configure: find appropriate data-types on host for SDCC's int and long
13427         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13428         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13429         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13430
13431 2003-03-07    <johan AT balder>
13432
13433         Just a big NOOP:
13434                 some minor cleanups before the big shot
13435                 OP_DEFS and OP_USES now use Kevin's protection
13436                 new option --nolabelopt
13437
13438         * src/SDCCBBlock.c:
13439         * src/SDCCast.c,:
13440         * src/SDCCcflow.c:
13441         * src/SDCCcse.c:
13442         * src/SDCCicode.c:
13443         * src/SDCCicode.h:
13444         * src/SDCClabel.c:
13445         * src/SDCCloop.c:
13446         * src/SDCCmain.c:
13447         * src/ds390/ralloc.c:
13448         * src/mcs51/ralloc.c:
13449         * src/pic/ralloc.c:
13450         * src/xa51/ralloc.c:
13451         * src/z80/ralloc.c:
13452
13453 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13454
13455         * src/pic/pcode.c (get_op): fix 64 bit warnings
13456         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13457         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13458         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13459         * support/regression/tests/malloc.c: fix 64 bit warnings
13460
13461 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13462
13463         * src/mcs51/gen.c (genMinus): fixed bug 696436
13464
13465 2003-03-02  Borut Razem <borut.razem AT siol.net>
13466
13467         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13468
13469 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13470
13471         * configure.in: test for mkstemp
13472         * sdccconf_in.h: add HAVE_MKSTEMP
13473
13474 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13475
13476         * device/include/ctype.h: removed warning while using --stack-auto
13477         * device/include/malloc.h: removed warning while using --stack-auto
13478         * device/include/string.h: removed warning while using --stack-auto
13479
13480 2003-02-23  Borut Razem <borut.razem AT siol.net>
13481
13482         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13483         because NDEBUG is defined (see man assert)
13484         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13485
13486 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13487
13488         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13489         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13490
13491 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13492
13493         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13494         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13495
13496 2003-02-18    <johan AT balder>
13497
13498         * as/mcs51/asmain.c (asmbl): module can start with a digit
13499         * as/z80/asmain.c (asmbl): module can start with a digit
13500
13501 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13502
13503         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13504         * src/asm.c: fix pipe() for Mingw32
13505
13506 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13507
13508         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13509         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13510         make -V work again; --c1mode reads now from stdin
13511         * doc/sdccman.lyx: added --c1mode
13512         * support/Util/SDCCerr.c: new messages for c1 mode
13513         * support/Util/SDCCerr.h: new messages for c1 mode
13514         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13515
13516 2003-02-15    <johan AT balder>
13517
13518         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13519
13520 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13521
13522         * doc/sdccman.lyx: Environment variables, -o and other minor things
13523
13524 2003-02-14    <johan AT balder>
13525
13526         * src/xa51/main.c: before anyone really tries to use it :)
13527
13528         * Install doc's in share/sdcc/doc
13529         * removed some obsolete files
13530         * Do a proper make distclean and uninstall
13531         M Makefile.common.in
13532         R sdccbuild.sh
13533         M as/Makefile
13534         M device/include/Makefile.in
13535         M device/lib/Makefile.in
13536         M doc/sdccman.lyx
13537         M link/Makefile
13538         M sim/ucsim/doc/Makefile.in
13539         M src/clean.mk
13540         R src/avr/peeph.rul
13541         R src/xa51/peeph.rul
13542         M support/cpp2/Makefile.in
13543         M support/makebin/Makefile
13544
13545
13546 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13547
13548         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13549
13550 2003-02-10  Borut Razem <borut.razem AT siol.net>
13551
13552         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13553         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13554         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13555         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13556         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13557         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13558         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13559         src/z80/Makefile.bcc: Borland Makefile cleanup
13560         * as/z80/Makefile.bcc: Added Borland Makefile
13561         * support/cpp2/borland.h: Removed
13562
13563 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13564
13565         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13566         * src/SDCC.lex: new pragma NOIV
13567         * src/SDCCglobl.h: new pragma NOIV
13568         * src/SDCCmem.c: new pragma NOIV
13569
13570 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13571
13572         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13573
13574 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13575
13576         * src/SDCCmain.c: signal handling is switched off by --debug
13577         * doc/Makefile: small fix for install; use clean.mk again
13578         * doc/clean.mk: clean *.pdf and *.html too
13579
13580 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13581
13582         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13583         * device/lib/printfl.c: fix a ds390 bug by making it portable
13584         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13585         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13586         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13587         * debugger/mcs51/cmd.c: converted multi-line string literals
13588         * sim/ucsim/globals.cc: converted multi-line string literals
13589         * src/SDCCmain.c: introduced signal handler to remove temp files
13590         * doc/Makefile: small tweaks, implement clean
13591         * doc: removed generated files
13592
13593 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13594
13595         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13596         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13597         Address Record is not correctly generated for DS390."
13598
13599 2003-02-02  Borut Razem <borut.razem AT siol.net>
13600
13601         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13602         * as/mcs51/asm.h: fixed compilation with Borland C
13603         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13604         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13605         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13606         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13607         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13608         src/z80/Makefile.bcc: delete $(LIB) only if exist
13609         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13610
13611 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13612
13613         * device/include/malloc.h: introduced NULL
13614         * device/include/string.h: introduced NULL
13615         * device/include/stdlib.h: introduced NULL
13616         * device/lib/_memcpy.c: removed NULL
13617         * device/lib/_strcat.c: removed NULL
13618         * device/lib/_strchr.c: removed NULL
13619         * device/lib/_strcmp.c: removed NULL
13620         * device/lib/_strcpy.c: removed NULL
13621         * device/lib/_strcspn.c: removed NULL
13622         * device/lib/_strlen.c: removed NULL
13623         * device/lib/_strncat.c: removed NULL
13624         * device/lib/_strncmp.c: removed NULL
13625         * device/lib/_strncpy.c: removed NULL
13626         * device/lib/_strpbrk.c: removed NULL
13627         * device/lib/_strrchr.c: removed NULL
13628         * device/lib/_strspn.c: removed NULL
13629         * device/lib/_strstr.c: removed NULL
13630         * device/lib/_strtok.c: removed NULL
13631         * device/lib/malloc.c: removed NULL, include own header
13632
13633 2003-02-02    <johan AT balder>
13634
13635         * 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
13636         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13637         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13638         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13639         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13640         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13641
13642 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13643
13644         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13645         area 'DATA'"
13646
13647 2003-02-01    <johan AT balder>
13648
13649         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13650
13651 2003-01-31    <johan AT CP255758-A>
13652
13653         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13654
13655 2003-01-30    <johan AT balder>
13656
13657         * src/SDCCBBlock.c: automatic bug detection
13658         * src/SDCCicode.c: automatic bug detection
13659
13660 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13661
13662         * src/SDCCglobl.h:   now --xram-size 0 works
13663         * src/SDCCmain.c:    now --xram-size 0 works
13664
13665 2003-01-29    <johan AT balder>
13666
13667         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13668
13669 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13670
13671         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13672         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13673         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13674         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13675         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13676         * src/SDCCmain.c:    Added options --xram-size and --code-size
13677
13678 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13679
13680         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13681         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13682
13683 2003-01-27    <johan AT balder>
13684
13685         * src/SDCC.y: fixed bug #613764
13686
13687 2003-01-26    <johan AT balder>
13688
13689         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13690         * src/SDCCsymt.h: fixed bug #673374
13691         * src/SDCCglue.c: fixed bug #661910
13692         * src/SDCCast.c: fixed bug #458099 and 673374
13693
13694 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13695
13696         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13697         * as/mcs51/strcmpi.h: added
13698         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13699         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13700         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13701         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13702         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13703         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13704         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13705         * as/mcs51/Makefile.aslink: new module strcmpi
13706         * as/mcs51/Makefile.asx8051: new module strcmpi
13707         * as/mcs51/Makefil.bcc: new module strcmpi
13708         * as/mcs51/Makefile.in: new module strcmpi
13709         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13710
13711 2003-01-26    <johan AT balder>
13712
13713         * src/SDCCglue.c: reverted back to 1.124
13714         * src/SDCCast.c: reverted back to 1.156
13715         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13716
13717 2003-01-25    <johan AT balder>
13718
13719         * src/SDCCglue.c: A better fix for bug #661910
13720         * src/SDCCast.c: A better fix for bug #661910
13721         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13722
13723 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13724
13725         * src/Makefile.in: remove spawn.o
13726         * src/SDCCmain.c: remove spawn.h
13727         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13728         * src/spawn.c: removed
13729         * src/spawn.h: removed
13730         * support/regression/ports/ds390/spec.mk: link with -r
13731
13732 2003-01-24    <johan AT CP255758-A>
13733
13734         * src/ds390/gen.c (aopOp): fixed bug #667458
13735         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13736         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13737         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13738
13739 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13740
13741         * src/mcs51/peeph.def: better assembler identation by Frieder
13742         * src/mcs51/gen.c: better assembler identation by Frieder
13743
13744 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13745
13746         * as/z80/string.h: removed for gcc 3.2
13747         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13748         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13749
13750 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13751
13752         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13753         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13754         * support/regression/Makefile: separate temp files for ports
13755         * support/regression/generate-cases.py: separate temp files for ports
13756         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13757         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13758
13759 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13760
13761         * moved tinitalk to device/examples/ds390
13762
13763 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13764
13765         * as/mcs51/lkmem.c: rflag is for DS390
13766         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13767         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13768                          (linkEdit): move mem- and map-files the same way as ihx-files
13769         * src/z80/main.c (_setDefaultOptions): removed --generic
13770         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13771         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13772         * src/pic/glue.c (picglue): --c1mode works again
13773         * src/pic16/glue.c (pic16glue): --c1mode works again
13774         * src/asm.c (printCLine): fix #660034
13775
13776 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13777
13778         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13779         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13780         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13781         * as/mcs51/lkmem (summary): better fix for sp problem
13782         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13783         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13784         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13785                                               remove --stack-after-data
13786
13787 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13788
13789         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13790         * src/SDCCutil.c (join): ugly bug: missing '\0'
13791         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13792
13793 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13794
13795         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13796         * src/port.h: typo
13797         * src/pic/main.c (_asmCmd): gpasm supports -o
13798         * src/z80/main.c: more general macros
13799         * device/lib/Makefile.in: remove intermediate files
13800
13801 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13802
13803         * .version: Bumped version number to 2.3.3
13804         * src/SDCCBBlock.c: new option -o
13805         * src/SDCCglobl.h: new option -o
13806         * src/SDCCglue.c: new option -o
13807         * src/SDCCmain.c: new option -o
13808         * src/asm.c: new option -o
13809         * src/ds390/main.c: new option -o
13810         * src/pic/glue.c: new option -o
13811         * src/pic/pcode.c: new option -o
13812         * src/pic/ralloc.c: new option -o
13813         * src/pic16/glue.c: new option -o
13814         * src/pic16/pcode.c: new option -o
13815         * src/pic16/ralloc.c: new option -o
13816         * src/z80/main.c: new option -o
13817         * device/lib/Makefile.in: use -o
13818         * support/regression/ports/ds390/spec.mk: use -o
13819         * support/regression/ports/gbz80/spec.mk: use -o
13820         * support/regression/ports/mcs51/spec.mk: use -o
13821         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13822         * support/regression/ports/z80/spec.mk: use -o
13823         * support/regression/ports/ucz80/spec.mk: use -o
13824         * support/regression/ports/xa51/spec.mk: use -o
13825         * support/regression/fwk/lib/timeout.c: fix usage string
13826
13827 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13828         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13829
13830 2003-01-07    <johan AT balder>
13831
13832         * src/SDCCast.c (decorateType): fixed bug #600035
13833
13834 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13835         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13836         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13837         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13838         * src/pic/pcode.c: outcommented unused variable to remove warnings
13839         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13840
13841 2003-01-06    <karl AT turbobit.com>
13842         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13843    regression tests.
13844
13845 2003-01-06    <johan AT balder>
13846
13847         * src/SDCCicode.c: fixed array add
13848
13849 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13850         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13851         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13852
13853 2003-01-04    <johan AT balder>
13854
13855         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13856
13857 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13858         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13859
13860 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13861         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13862         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13863
13864 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13865         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13866
13867 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13868         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13869
13870 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13871         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13872
13873 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13874
13875     * in /sdcc/as/mcs51/ changed these files in order to create an
13876     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13877     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13878     following files to include the previous two files: aslink.dsp,
13879     Makefile.aslink, Makefile.bcc, and Makefile.in.
13880
13881     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13882     .adb instead of .cdb
13883
13884 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13885
13886         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13887         value from option --iram-size.
13888
13889 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13890
13891         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13892         dram[] array.
13893
13894 2002-09-18    <wiml AT hhhh.org>
13895
13896         * SDCClrange.h: exposed setFromRange() and setToRange()
13897         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13898           packRegsForAccUse() (bug 542397)
13899         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13900           multiple times and emitting the fetch operations more than once
13901           added aopGetUsesAcc() function to allow binary operators to
13902           fetch their operands in the correct order; made genMinus() emit
13903           compact code for X = LITERAL - Y
13904
13905 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13906         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13907         sprintf() in line 1267.
13908
13909 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13910         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13911         like ports.
13912
13913 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13914         Changes to aslink (All the changes are marked with 'JCF'):
13915
13916         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13917         summary().
13918
13919         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13920         area BSEG.  Also moves, if possible, the DATA area down into the internal
13921         ram so more space is available.
13922
13923         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13924         sflag.
13925
13926         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13927         not bytes.  Function summary() which creates a memory usage summary
13928         file with extension .mem.  Reports of overlaping stack and small stack
13929         size.  If the space for the stack is less than 16 bytes aslink trows a
13930         warning.
13931
13932         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13933         the 8051.  Option 'y' for memory summary output file.
13934
13935         Changes to sdcc (All the changes are marked with 'JCF'):
13936
13937         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13938
13939         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13940         overlaying area for it (uses RegBankUsed[4]).
13941
13942         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13943         bank zero as used by default.  By default aslink locates the stack
13944         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13945         the creation of the .mem file.  Delegates the allocation of data area
13946         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13947         the begining of the stack area to aslink.
13948
13949         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13950         glue() in SDCCglue.c creates an area for it.
13951
13952 2002-09-03  Borut Razem <borut.razem AT siol.net>
13953         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13954         sdcc/src/pic/glue.c:
13955         introduced atexit() handler for teporay files removal in case of
13956         errors, assertions, ...
13957
13958 2002-08-29  Borut Razem <borut.razem AT siol.net>
13959         * sdcc/support/cpp2/auto-host_vc_in.h:
13960         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13961         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13962         Maybe there is a similar problem with BORLANDC? It should be checked!
13963
13964         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13965         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13966         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13967         was not executed, and the compiler (cl) launched a warning:
13968         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13969
13970 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13971         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13972
13973 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13974         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13975
13976         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13977           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13978           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13979           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13980           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13981           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13982           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13983         - added Release configuration in VS projects
13984         - review of compiler an linker options
13985         - VC .exe files are generated in bin_vc directory, not to interfere
13986           with binaries generated from other projects (cygwin, mingw, bcc ...)
13987
13988         * sdcc/src/yacc.dsp: added
13989
13990         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13991         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13992         and insert the version number definitions from .version
13993
13994         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13995
13996         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13997         added - genarate auto-host.h using auto-host_vc_in.h as template
13998
13999         * sdcc/sdcc_vc.h,
14000         removed from CVS, generated automatically
14001
14002 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14003         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14004
14005 2002-08-11  Borut Razem <borut.razem AT siol.net>
14006         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14007
14008 2002-08-10  Borut Razem <borut.razem AT siol.net>
14009         * src/SDCCmain.c (main):
14010         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14011         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14012         The consequence was that some temporary files were not removed.
14013
14014         * src/SDCCglue.c:
14015         unification of code in functions tempfilename() and tempfile():
14016         function tempnam() is defined in Visual Studio 6.0 and .NET
14017
14018         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14019
14020         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14021           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14022         - removed compiler command line option /WX: Treats all warnings as errors
14023         - update a list of source files, included into the project
14024
14025         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14026           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14027         changed project type to Generic Project so that can be correcly converted to VS.NET project
14028
14029         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14030
14031         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14032
14033         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14034
14035         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14036         added return 0 statements after assert() to make compiler happy
14037
14038         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14039         added newline in the def file to keep MSC compiler satisfied
14040
14041         * sdcc/src/z80/gen.c:
14042         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14043           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14044         - solved MSC error in function aopDump()
14045
14046         * sdcc_vc.h: define PREFIX as "\\sdcc"
14047
14048 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14049         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14050
14051 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14052         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14053         - Rewrote the register banking algorithm.
14054         - Added pCode live-range analysis to registers (for now, only non-used and
14055         singly-used registers optimized away)
14056
14057         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14058
14059         * 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.
14060
14061 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14062         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14063
14064 2002-04-22  Michael Hope  <michaelh AT vroom>
14065
14066         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14067
14068         * configure.in (DD_COPT): Added include support required for gbdk.
14069
14070         * .version: Bumped version number just to increase it.
14071
14072         * src/SDCCmain.c: Added -nostdinc to the default options.
14073
14074 2002-04-15  Michael Hope  <michaelh AT vroom>
14075
14076         * device/lib/z80/printf.c (sprintf): Added.
14077
14078         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14079
14080         * src/z80/peeph.def: Added transpose redundent load rule.
14081
14082         * src/z80/main.c: Added force callee saves for jaune.
14083
14084         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14085
14086         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14087
14088 2002-03-28  Johan Knol  <johan AT balder>
14089
14090         * src/SDCCval.c: fixed bug #532436
14091
14092 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14093         * /src/port.h:
14094         Added "char *Processor" field to the port structure.
14095
14096         * /src/SDCCmain.c:
14097         Added -p option. Allows port dependent processor to be specified.
14098
14099         * all ports:
14100         Initialized the new field char *Processor field to NULL in all ports
14101
14102         * /src/pic/*:
14103         Compiler generated registers for interrupt context saving
14104         were not getting allocated.
14105
14106 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14107
14108         * /src/SDCCast.c:
14109         Fixed left shift. Will promote the left side of a left shift
14110         if a) left shifting more than size of operand or b) when assigned
14111         to something size > size of left side
14112
14113 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14114         * src/pic/*
14115         tons of changes. Register allocation has been
14116         rewritten. Added customization for the various PICs. Flow
14117         analysis is restructured. ...
14118
14119         * src/pic/device.h:
14120         Added
14121
14122         * src/pic/device.c:
14123         Added. device.c is a PIC port hack to accomodate variations
14124         in PIC devices.
14125
14126 2002-03-13  Michael Hope  <michaelh AT vroom>
14127
14128         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14129
14130 2002-03-04  johanknol  <johanknol AT manik>
14131
14132         * /src/SDCCval.c: fixed
14133
14134         const unsigned char arr[][2] = { { 0, 1 } };
14135         t18.c:1: error: Initializer element is not constant
14136
14137 2002-03-04  bela  <bela AT manik>
14138
14139         * /device/include/mcs51reg.h:
14140         ds89c420 register definition update
14141
14142 2002-03-03    <johan AT FRIJA>
14143
14144         * support/Util/SDCCerr.c: did something, but don't no why anymore
14145
14146         * support/regression/tests/bug-524691.c: made it a little less shy
14147
14148         * src/SDCCast.c (decorateType): fixed bug #524697
14149
14150         * src/SDCCast.c: made some lineno improvements
14151
14152         * src/SDCCval.c (getNelements): changed warning to error
14153
14154         * src/SDCCglue.c (printIvalArray): changed warning to error
14155
14156         * src/SDCCicode.c: fixed a warning for mingw
14157
14158         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14159
14160         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14161
14162 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14163
14164         * src/ds390/peeph.def:
14165         Added some more peephole rules
14166
14167         * src/ds390/gen.c: Various fixes & enhancements
14168
14169         * src/SDCClrange.c, src/SDCClrange.h:
14170         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14171
14172         * src/ds390/ralloc.c:
14173         various fixes & enhancements (ds390) specific
14174
14175         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14176         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14177         from rallocs.
14178
14179         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14180
14181 2002-03-02    <johan AT FRIJA>
14182
14183         * src/SDCCast.c (decorateType): fixed bug #524708
14184
14185         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14186
14187         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14188
14189 2002-03-01  Michael Hope  <michaelh AT vroom>
14190
14191         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14192
14193         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14194
14195 2002-03-01    <johan AT FRIJA>
14196
14197         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14198
14199         * src/SDCCast.c (decorateType): fixed bug #524209
14200
14201         * src/SDCCval.c (valNot): fixed bug #524195
14202
14203 2002-02-26    <johan AT balder>
14204
14205         * src/xa51/gen.c: fixed a warning
14206
14207         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14208
14209         * src/SDCCast.c (decorateType): fixed bug #522534
14210
14211 2002-02-23    <johan AT balder>
14212
14213         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14214
14215 2002-02-22    <johan AT balder>
14216
14217         * src/SDCCast.c: fixed bug #514865
14218
14219         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14220
14221 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14222
14223         * sdcc/src/SDCCloop.c:
14224         Previous fix was not good. basic blocks that have "break" or "return" are
14225         not really partof a loop , but live ranges used in these blocks should
14226         be live thru the entire loop, so set partOfLoop but don't add them to
14227         loop region
14228
14229 2002-02-21    <johan AT FRIJA>
14230
14231         * src/SDCCcse.c: fixed bug #514308
14232
14233 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14234
14235         * src/SDCCloop.c:
14236         Fixed BUG #519583. If a conditional block ended in a return/break
14237         statement inside a loop, it was not being considered part of the loop.
14238
14239         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14240
14241 2002-02-10  Karl Bongers <karl AT turbobit.com>
14242
14243         * debugger/*:
14244         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14245         with lots of comments and notes.
14246
14247         * device/examples/test2.c:
14248         Fix bug, "red" variable not being initialized(compiler complained).
14249
14250         * device/examples/Makefile, examples/test3.c:
14251         Add Makefile in device/examples folder, compiles test3.c
14252         for use as a multiple module SDCDB test case.
14253
14254         * sim/ucsim/cmd.src/cmdset.cc:
14255         Took out debug printfs in ucsim "next" command.
14256
14257         * sim/ucsim/xa.src:
14258         Karl and Johan start ucsim XA support.  Most dissassembly working,
14259         about 75% emulation done(plenty of work remaining).
14260
14261         * sim/ucsim/z80.src:
14262         Add Z80 support to ucsim, add test-ucz80 regression test,
14263         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14264         Notice z80 compiler fails on examples/test3.c/crc code.
14265
14266 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14267
14268         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14269         Added support for --parms-in-bank1
14270
14271         * src/ds390/peeph.def:
14272         added a few more peephole optimzations
14273
14274         * src/ds390/main.c:
14275         1) added __builtin_inp & __builtin_outp used to read in data of given length
14276            from a memory mapped port
14277         2) added __builtin_memcmp
14278         3) added __builtin_swapw swap bytes of a short
14279
14280         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14281         1) handle multiple send & receives from register bank1
14282         2) ralloc can now allocate DPTR1 to some liveRanges
14283
14284         * src/SDCCsymt.c, src/SDCCsymt.h:
14285         changes to handle multiple sends & receives
14286
14287         * src/SDCCptropt.h:
14288         added some pointer arithmetic optimization
14289
14290         * src/SDCCptropt.c:
14291         added some pointer arithmetic optimizations but not stable yet so not
14292         called from anywhere (will get this working shortly)
14293
14294         * src/SDCCopt.c: fixed for multiple sends & receives
14295
14296         * src/SDCCmain.c:
14297         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14298         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14299            set preprocessor defines (depending on options)
14300
14301         * src/SDCCicode.c, src/SDCCicode.h:
14302         changes made to handle multiple sends & receives
14303
14304         * src/SDCCglobl.h:
14305         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14306
14307         * src/SDCCcse.c, src/SDCCcse.h:
14308         added function findbackward def (to be used in upcoming optimization)
14309
14310         * src/SDCCcflow.c, src/SDCCcflow.h:
14311         added function returnAtEnd - to determine if a basic block terminates with
14312         a RETURN iCode
14313
14314         * src/SDCCast.c, src/SDCCast.h:
14315         added option parms-in-bank1
14316
14317         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14318         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14319         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14320         adjusted for --parms-in-bank1 option
14321
14322         * device/include/string.h:
14323         donot redefine "reentrant" keyword
14324
14325         * device/include/ds80c390.h: Added some more SFRs
14326
14327 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14328
14329         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14330
14331 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14332
14333         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14334
14335 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14336
14337         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14338
14339 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14340
14341         * Added --xram-movc option
14342
14343 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14344
14345         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14346
14347 2002-01-11  Johan Knol
14348
14349         * Added math lib of Jesus Calvino-Fraga
14350
14351 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14352
14353         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14354         * support/regression/Makefile: new target test-mcs51-stack-auto
14355         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14356
14357 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14358
14359         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14360
14361 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14362
14363         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14364
14365 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14366
14367         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14368
14369         * src/SDCCglue.h: add definition for printIvalChar()
14370
14371 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14372
14373         * src/SDCCast.c: fix #498138 by Johan
14374
14375         * src/SDCCglue.c: fix #498138 by Johan
14376
14377 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14378
14379         * support/regression/Makefile: fix clean
14380
14381         * support/regression/ports/ds390/support.c: fix transmission of last character
14382
14383 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14384
14385         * /sdcc/src/ds390/gen.c:
14386         a) improved computing address of stack variable
14387         b) took out some #if 0 code
14388         c) improved parmBytes adjustment
14389         d) improved genPlusIncr & genMinusIncr
14390         e) genCmp could generate bad code (when left assigned to DPTR)
14391         f) Fixed bug in hasInc
14392
14393         * /sdcc/src/ds390/ralloc.c:
14394         a) packRegsForSupport could mess up live information (Fixed)
14395         b) packRegsDPTRuse could be incorrect for left & right shift
14396
14397         * /sdcc/src/mcs51/ralloc.c:
14398         packRegsForSupport could mess up the live information (Fixed)
14399
14400         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14401
14402         * /sdcc/src/SDCCast.c:
14403         can reverse a loop even if function call is present as long
14404         as the loop control variable is local & is not passed as parameter
14405
14406 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14407
14408         * /sdcc/ChangeLog: *** empty log message ***
14409
14410         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14411         More builtin function additions for TININative
14412
14413         * /sdcc/src/ds390/ralloc.c:
14414         Had broken the regression testsuite
14415
14416         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14417
14418         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14419         Added funcattr hasStackParms will be set for reentrant functions when there
14420         are paramteres on the stack, this helps in minimizing frame pointer generation
14421         typeFromStr can handle function pointers now
14422
14423         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14424         *** empty log message ***
14425
14426 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14427
14428         * /src/ds390/gen.c, /src/ds390/main.c:
14429         More builtin function additions for TININative
14430
14431         * /src/ds390/ralloc.c:
14432         Had broken the regression testsuite
14433
14434         * /src/SDCCast.c: Fixed a bug in dumptree
14435
14436         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14437         Added funcattr hasStackParms will be set for reentrant functions when there
14438         are paramteres on the stack, this helps in minimizing frame pointer generation
14439         typeFromStr can handle function pointers now
14440
14441         * /doc/builtins.txt, /doc/TININative.txt:
14442         *** empty log message ***
14443
14444
14445 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14446
14447         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14448         ALPHA version for -mTININative
14449
14450         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14451         updated to reflect changes in the port structure
14452
14453         * /src/port.h:
14454         added function do_assemble (similar to do_link) if non-null this function
14455         will be called to do assembly (-mTININative) requires a multi command
14456         assembly
14457         added function genAssemblerEnd will be called to generate assembler Epilogue
14458
14459         * /src/SDCCsymt.c:
14460         added _JavaNative to debug info printing
14461
14462         * /src/SDCCmain.c: added option --tini-libid
14463         added port->do_assemble function (-mTININative) has a multi command assemble
14464
14465         * /src/SDCCglue.c: Disabled "constExpr" check
14466         added port->genAssemblerEnd function
14467
14468         * /src/SDCCglobl.h: Added option --tini-libid value
14469
14470         * /src/SDCCast.h:
14471         tookout optimizeCompare from the header (has no external references)
14472
14473         * /src/SDCCast.c: made one more function "static"
14474
14475 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14476
14477         * src/z80/mappings.i: Added z80asm support.
14478
14479         * src/z80/main.c: Added z80asm support on --asm=z80asm
14480
14481         * src/z80/gen.c: Fixed asm portability issues.
14482
14483         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14484
14485         * src/SDCCglue.c (printExterns): Added global/extern split.
14486
14487 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14488
14489         * support/regression/Makefile: added test for mcs51 model large
14490
14491         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14492
14493         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14494
14495 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14496
14497         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14498
14499 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14500
14501         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14502
14503         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14504
14505 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14506
14507         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14508
14509         * support/regression/tests/simplefloat.c: Port to mcs51.
14510
14511 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14512         * support/regression/tests/bug-485362.c: Added.
14513
14514         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14515
14516         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14517
14518         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14519
14520         * src/z80/gen.c (aopDump): Added a dump function.
14521
14522 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14523         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14524
14525         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14526
14527         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14528
14529         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14530
14531         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14532
14533         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14534
14535         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14536
14537         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14538
14539         * support/regression/ports/ds390/support.c: Use tinibios.
14540
14541         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14542
14543 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14544
14545         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14546         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14547
14548         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14549
14550         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14551
14552 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14553
14554         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14555
14556         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14557         (packRegsForIYUse): Created and optimised.
14558
14559 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14560
14561         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14562 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14563
14564         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14565
14566         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14567
14568         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14569
14570 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14571
14572         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14573
14574         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14575
14576 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14577
14578         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14579
14580         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14581
14582         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14583
14584 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14585
14586         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14587         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14588         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14589
14590         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14591
14592         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14593         (genNotFloat): Added.
14594         (genUminusFloat): Added.
14595
14596         * device/lib/z80/Makefile: Added floating pt stubs.
14597
14598         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14599
14600         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14601
14602         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14603
14604 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14605
14606         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14607
14608         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14609
14610         * sdcc/support/regression/Makefile: Add port ds390.
14611
14612         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14613
14614         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14615
14616         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14617
14618         * sdcc/support/regression/ports/ds390/support.c: Added.
14619
14620         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14621
14622         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14623
14624         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14625
14626 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14627
14628         * device/include/malloc.h: Added z80 and gbz80 support.
14629
14630         * device/lib/gbz80/heap.s: Added.
14631
14632         * device/lib/z80/heap.s: Added.
14633
14634         * device/lib/malloc.c: Added z80 and gbz80 support.
14635
14636         * support/regression/tests/malloc.c (testMalloc): Added.
14637
14638         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14639
14640         * support/regression/tests/bug-478094.c: Added.
14641
14642         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14643
14644 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14645
14646         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14647
14648         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14649
14650         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14651
14652         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14653
14654         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14655
14656 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14657
14658         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14659
14660 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14661
14662         * support/regression/tests/bug-477927.c: Added.
14663
14664         * src/z80/peeph.def: Added minor rules.
14665
14666         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14667
14668         * src/z80/peeph.def: Added jump optimisation modification.
14669
14670 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14671
14672         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14673
14674 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14675
14676         * support/regression/tests/funptrs.c: Added.
14677
14678 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14679
14680         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14681
14682 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14683
14684         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14685
14686         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14687
14688         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14689         (movLeft2ResultLong): Created.
14690
14691         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14692         (joinPushes): Added.  Joins two char pushes into a word push.
14693
14694 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14695
14696         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14697
14698         * support/makebin/Makefile (install): Added creation of dest dir.
14699
14700 2001-10-24 Karl Bongers <karl AT turbobit.com>
14701
14702         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14703
14704 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14705
14706         * src/z80/ralloc.c: Turned off faulty pack for one use.
14707
14708         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14709
14710         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14711
14712 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14713
14714         * support/regression/Makefile: Improved clean
14715
14716         * support/regression/ports/gbz80/spec.mk: Added clean
14717
14718         * support/regression/ports/host/spec.mk: Added clean
14719
14720         * support/regression/ports/z80/spec.mk: Added clean
14721
14722         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14723
14724         * support/regression/ports/mcs51/timeout.c: little improvements
14725
14726 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14727
14728         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14729
14730         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14731
14732         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14733
14734 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14735
14736         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14737
14738         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14739
14740 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14741         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14742
14743         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14744
14745         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14746
14747         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14748
14749         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14750
14751         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14752
14753         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14754
14755         * support/regression/tests/longor.c: Added.
14756
14757 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14758
14759         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14760
14761         * as/mcs51/aslink.h: define PATH_MAX
14762
14763         * as/mcs51/asm.h: define PATH_MAX
14764
14765         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14766
14767         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14768
14769         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14770
14771         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14772
14773         * src/SDCCglobl.h: define PATH_MAX
14774
14775         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14776
14777         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14778
14779 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14780
14781         * src/z80/gen.c (gencjneshort): Fixed
14782
14783         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14784
14785 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14786
14787         * support/regression/tests/bug-469671.c: Added.
14788
14789         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14790
14791 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14792
14793         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14794
14795         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14796
14797 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14798
14799         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14800
14801         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14802
14803         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14804
14805         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14806
14807         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14808
14809         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14810
14811         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14812
14813 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14814
14815         * 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.
14816
14817         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14818
14819         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14820
14821 2001-10-07    <johan AT FRIJA>
14822
14823         * device/lib/gets.c (gets): fixed the return value.
14824
14825 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14826         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14827
14828         * 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.
14829
14830         * 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.
14831
14832         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14833
14834         * src/pic/gen.c: Removed Safe_strdup.
14835
14836         * configure.in: Added option to enable libgc support.
14837
14838         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14839         (bitVectUnion): Optimised.
14840         (bitVectIntersect): Optimised.
14841         (bitVectBitsInCommon): Optimised.
14842         (bitVectCplAnd): Optimised.
14843
14844         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14845
14846 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14847
14848         * src/SDCCmain.c: distinguish between assembler debug and plain options
14849
14850         * src/avr/main.c:   remove standard assembler options
14851
14852         * src/ds390/main.c: remove standard assembler options
14853
14854         * src/mcs51/main.c: remove standard assembler options
14855
14856         * src/port.h: removed "PENDING" comment
14857
14858 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14859
14860         * src/device/lib/_mulint.c  : new, with assember functions
14861
14862         * src/device/lib/_mullong.c : new, with assember functions
14863
14864         * src/device/lib/_divuint.c : with assember functions
14865
14866         * src/device/lib/_divsint.c : with assember functions
14867
14868         * src/device/lib/_divulong.c: with assember functions
14869
14870         * src/device/lib/_divslong.c: with assember functions
14871
14872         * src/device/lib/_moduint.c : with assember functions
14873
14874         * src/device/lib/_modsint.c : with assember functions
14875
14876         * src/device/lib/_modulong.c: with assember functions
14877
14878         * src/device/lib/_modslong.c: with assember functions
14879
14880         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14881
14882         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14883
14884         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14885                                       replaced _mululong.c and _mulslong.c by _mullong.c
14886
14887 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14888
14889         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14890
14891 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14892
14893         * src/SDCCglue.c: test, if win32api is available for MINGW
14894
14895 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14896
14897         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14898         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14899         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14900         * support/regression/ports/host/spec.mk: removed GENERIC
14901         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14902         * support/regression/ports/z80/spec.mk: removed GENERIC
14903
14904 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14905
14906         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14907
14908         * support/regression/tests/bug-467035.c: Created.
14909
14910 2001-10-01    <johan AT FRIJA>
14911
14912         * src/SDCC.y: fixed bug #466586 part 1
14913
14914 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14915
14916         * SDCCicode.c: z80 has no generic pointers
14917         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14918
14919 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14920
14921         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14922
14923 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14924
14925         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14926
14927         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14928
14929 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14930
14931         * configure.in: Fixed up so that ucsim is only configured once.
14932
14933         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14934
14935         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14936         (getPathDifference): As above.
14937
14938         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14939
14940         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14941
14942 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14943         * .version: Updated to 2.3.1
14944
14945         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14946         Added copyright header.
14947
14948         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14949         (assemble): Added support for macro based assembler commands.
14950         (linkEdit): Added support for macro based linker commands.
14951         (preProcess): Changed the pre-processor to use macros.
14952         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14953         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14954
14955         * device/lib/z80/crt0.s: Added module name for debugging.
14956
14957 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14958
14959         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14960
14961         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14962
14963         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14964
14965         * src/Makefile.in: Added SDCCmacro and SDCCutil
14966
14967 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14968
14969         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14970
14971 2001-09-16    <johan AT FRIJA>
14972
14973         * 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.
14974
14975 2001-09-15    <johan AT FRIJA>
14976
14977         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14978         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14979
14980 2001-09-11    <johan AT FRIJA>
14981
14982         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14983
14984 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14985
14986         * support/regression/tests/bug-460444.c: Added test case.
14987
14988         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14989         (genCast): Added justification for all of the asserts.
14990
14991 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14992
14993         * support/regression/support.c: _xdata replaced by xdata
14994
14995         * support/regression/spec.mk: removed _generic
14996
14997 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14998
14999         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15000
15001         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15002         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15003
15004         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15005
15006         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15007
15008         * support/regression/tests/bug-460010.c: Added test case.
15009
15010         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15011
15012 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15013
15014         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15015
15016         * support/regression/testfwk.c: removed workaround for bug #436344
15017
15018         * support/regression/tests/bp.c: use less memory with mcs51
15019
15020         * support/regression/tests/bug-441448.c: use less memory
15021
15022         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15023
15024         * support/regression/collate-results.py: typo
15025
15026 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15027
15028         * support/regression/tests/fetchoverlap.c: Added new test case.
15029
15030         * support/regression/tests/bp.c: Added new test case.
15031
15032         * support/regression/tests/bug-448984.c: Added new test case.
15033
15034         * support/regression/tests/pow2shifts.c: Added new test case.
15035
15036         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15037         (genlshTwo): Fixed right shift for count > 8.
15038
15039         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15040
15041 2001-09-08    <johan AT FRIJA>
15042
15043         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15044
15045 2001-09-07    <johan AT FRIJA>
15046
15047         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15048
15049         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15050
15051 2001-09-06    <johan AT FRIJA>
15052
15053         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15054         * bernhard noted me at this: "() equals to (void)" (1.38)
15055
15056 2001-09-05    <johan AT FRIJA>
15057
15058         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15059
15060 2001-09-04    <johan AT FRIJA>
15061
15062         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15063
15064
15065 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15066
15067         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15068
15069 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15070
15071         * link/z80/aslink.h: Fixed path for PATH_MAX
15072
15073 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15074
15075         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15076
15077         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15078
15079         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15080
15081         * 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.
15082
15083 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15084
15085         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15086         (genCmp): Fixed up genCmp for the GB with longs.
15087
15088         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15089
15090         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15091
15092         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15093
15094         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15095
15096 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15097
15098         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15099
15100 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15101
15102         * 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.
15103
15104         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15105
15106 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15107
15108         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15109
15110         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15111
15112 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15113
15114   * sim/ucsim/configure:    little improvement of Cygwin-detection
15115   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15116   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15117   * support/regression/tests/bug-221100.c: small changes for mcs51
15118   * support/regression/tests/bug-221168.c: small changes for mcs51
15119   * support/regression/tests/bug-227710.c: small changes for mcs51
15120   * support/regression/tests/staticinit.c: small changes for mcs51
15121   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15122   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15123   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15124
15125 $Revision$