* debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
[fw/sdcc] / ChangeLog
1 2007-08-12 Borut Razem <borut.razem AT siol.net>
2
3         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
4
5 2007-08-11 Borut Razem <borut.razem AT siol.net>
6
7         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
8           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
9           support/Util/SDCCerr.[ch] moved to src
10         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
11           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
12           device/examples/ds390/tinitalk/tinitalk.dsp,
13           device/examples/serialcomm/windows/serialcomm.dsp,
14           support/librarian/librarian.dsp:
15           removed linking of unused odbc32.lib and odbccp32.lib
16         * support/scripts/winres.h:
17           added for compilation with Visual C++ 2005 Express Edition
18
19 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
20
21         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
22           and CKCON1.
23
24 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
25
26         * sdccconf_in.h: update the endian test so that SPARC Solaris
27           does not throw syntax errors
28
29 2007-08-06 Borut Razem <borut.razem AT siol.net>
30
31         * doc/sdccman.lyx: removed two index entries which prevented the
32           generation of sdcc doc archive
33
34 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
35
36         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
37           instead of lyx 1.5.0.
38
39 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
40
41         * device/include/hc08/mc68hc908apxx.h: new header contributed by
42           Lucas Loizaga, with minor modifications. Thanks!
43
44 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
45
46         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
47           in sdcclib.
48
49 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
50
51         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
52           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
53           with acall/ajmp.
54
55 2007-07-22 Borut Razem <borut.razem AT siol.net>
56
57         * configure.in, configure: re-introduced .version
58         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
59           the version reverted to 2.7.0
60
61 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
62
63         * configure.in,
64         * doc/sdccman.lyx: bumped version to 2.7.3
65         * device/include/mcs51/compiler.h: fixed elif->else
66         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
67         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
68           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
69            enable accuse for bit operands
70         * src/SDCCmain.c (printVersionInfo),
71         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
72           environment descriptor
73         * src/SDCCutil.h: added getBuildEnvironment
74         * src/SDCCglue.c (initialComments): use getBuildEnvironment
75         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
76         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
77         * support/regression/tests/bug1348008.c,
78         * support/regression/tests/bug1496419.c,
79         * support/regression/tests/bug1503067.c,
80         * support/regression/tests/preproc.c: added empty tests
81
82 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * support/regression/tests/bug1678803.c: new, added
85
86 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
87
88         * as/link/aslink.h,
89         * as/link/hc08/lkihx.c,
90         * as/link/hc08/lkrloc.c,
91         * as/link/mcs51/lkihx.c,
92         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
93           ihxExtendedLinearAddress
94         * as/link/mcs51/lkrloc.c (relr),
95         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
96           acall/ajmp, see bug 830513
97
98 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
99
100         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
101           (cseBBlock): remember aggr2ptr has been used
102         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
103           (geniCodeAssign): fixed bug 868103
104         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
105           added operandSize prototype
106         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
107           (genDataPointerSet): use max of size of right and result,
108           (gencjne): added parameter useCarry for optimization,
109           (genCmpEq): use carry if appropriate,
110           (genXor): check if operand already in carry
111         * support/regression/tests/bug-868103.c: enabled test
112
113 2007-07-12 Raphael Neider <rneider AT web.de>
114
115         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
116
117 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
120           from Robert Larice, thanks
121         * support/regression/tests/bitopcse.c,
122         * support/regression/tests/bitvars.c,
123         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
124         * support/regression/tests/bug-927659.c: enabled test for z80
125         * support/regression/tests/bug1738367.c: added extra tests by Frieder
126         * support/regression/tests/bug1745717.c: new, added
127         * support/regression/tests/literalop.c,
128         * support/regression/tests/nullstring.c: removed storage definitions that
129           are now in testfwk.h
130
131 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
132
133         * device/include/stdbool.h: do not define __bool_true_false_are_defined
134           and bool for targets that do not fully support it.
135         * support/regression/tests/bug1546986.c,
136         * support/regression/tests/bug1723128.c,
137         * support/regression/tests/bug1734654.c,
138         * support/regression/tests/bug1738367.c,
139         * support/regression/tests/constantRange.c: only use bool if allowed
140
141 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
142
143         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
144           Larice, also handle function pointers
145         * support/regression/tests/bug1749275.c: new, added
146
147 2007-07-03 Borut Razem <borut.razem AT siol.net>
148
149         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
150           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
151           #1746528: SDCC should ignore ':' in inline assembler comments
152         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
153
154 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
155
156         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
157         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
158
159 2007-06-29 Borut Razem <borut.razem AT siol.net>
160
161         * src/SDCCmain.c: fixed bug
162           #1744746: SDCC #4867: broken option --xram-size
163
164 2007-06-28 Borut Razem <borut.razem AT siol.net>
165
166         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
167           find out the endianess of host machine for ucsim
168
169 2007-06-27 Borut Razem <borut.razem AT siol.net>
170
171         * support/regression/generate-cases.py: corrected the file name
172           in warning
173         * configure.in, configure, sdccconf_in.h: find out the endianess of
174           host machine
175         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
176           negative size
177
178 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
179
180         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
181
182 2007-06-26 Borut Razem <borut.razem AT siol.net>
183
184         * support/regression/generate-cases.py: display warning if function
185           list is empty; implemented more flexible rule for detection of
186           testing functions, allowing return type 'void' in the same line as
187           the function name in the function definition
188         * support/regression/tests/bug-1654060.c: corrected test
189         * support/librarian/sdcclib.c: fixed warning:
190           format '%s' expects type 'char *', but argument 2 has type 'int'
191
192 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
193
194         * support/librarian/sdcclib.c: Added feature Requests [1510635]
195           Multiple infiles for sdcclib.
196
197 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
198
199         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
200           bug 1731741
201
202 2007-06-18 Borut Razem <borut.razem AT siol.net>
203
204         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
205           how to handle comments, so they have to be removed by the
206           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
207         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
208           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
209           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
210           table driven option hadling
211
212 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
213
214         * src/SDCCast.c (decorateType),
215         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
216           iCode to ast level to fix bug 1738367
217         * support/regression/tests/bug1738367.c: new, added
218
219 2007-06-15 Raphael Neider <rneider AT web.de>
220
221         * src/pic16/devices.inc,
222         * device/lib/pic16/pics.all,
223         * device/include/pic16/pic18fregs.h,
224         * device/include/pic16/pic18f[24][45]20.h,
225         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
226           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
227         * device/lib/pic16/Makefile.in: faster cleanup
228
229 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
230
231         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
232
233 2007-06-13 Raphael Neider <rneider AT web.de>
234
235         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
236
237 2007-06-12 Raphael Neider <rneider AT web.de>
238
239         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
240           suppress bit defines if NO_BIT_DEFINES is #define'd
241         * device/include/pic/pic*.h: recreated all headers to include
242           conditional bit defines
243         * device/include/pic/pic16f886.h,
244         * device/include/pic/pic16f887.h: fixed based on newer .inc file
245         * device/include/pic/recreate.sh: script to recreate the complete
246           device library files based on the currently supported devices
247
248 2007-06-12 Borut Razem <borut.razem AT siol.net>
249
250         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
251           support/regression/Makefile.in, support/scripts/build.mak,
252           support/scripts/Makefile.snapshot:
253           use new svn URL scheme
254         * doc/sdccman.lyx: SDCC Wiki moved to
255           http://sdcc.wiki.sourceforge.net/
256
257 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
258
259         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
260         * support/regression/tests/bug1734654.c: added
261
262 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
263
264         * src/SDCCast.c (decorateType): optimized '?' for equal operands
265         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
266           with literal operands
267
268 2007-06-10 Borut Razem <borut.razem AT siol.net>
269
270         * as/link/z80/lklibr.c: fixed mingw build warning
271           lklibr.c:575: warning: implicit declaration of function 'tolower'
272         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
273           src/z80/main.c: move target specific options from src/SDCCmain.c
274           to src/<target>/main.c
275
276 2007-06-09 Borut Razem <borut.razem AT siol.net>
277
278         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
279           removed unused swap_sense; removed outBitCLong, replaced with outBitC
280         * support/regression/tests/bug-1294691.c: added
281
282 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
283
284         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
285           can also be static, fixes bug 1733438
286         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
287           have absolute address too
288           (computeType): added optimization for 'cond ? true : false'
289         * support/regression/tests/absolute.c: added test for static absolute var
290
291 2007-06-08 Raphael Neider <rneider AT web.de>
292
293         * src/regression/Makefile: suppress parallel builds, allow easy
294           switching between pic14/pic16 ports
295         * src/regression/picregs.h: added pic14/16 header file switch
296         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
297           inline.c,nestfor.c,string1.c}: include "picregs.h"
298
299 2007-06-07 Borut Razem <borut.razem AT siol.net>
300
301         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
302           permanent solution to suppress GCC 4.2.0 c++ warning:
303           deprecated conversion from string constant to `char *'
304           use 'const char *' where ever required
305         * support/regression/generate-cases.py: implemented more flexible rule
306           for detection of testing functions, allowing white-spaces surrounding
307           the function name and the 'void' parameter.
308         * support/regression/tests/constantRange.c,
309           support/regression/tests/scott-compare3.c: fixed failing regression
310           tests, uncovered by implementation of more flexible rule for detection
311           of testing functions
312
313 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
314
315         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
316
317 2007-06-04 Borut Razem <borut.razem AT siol.net>
318
319         * configure.in, configure, config_vc.awk: sdcc version number is now
320           stored in configure.in; removed .version
321         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
322           doc/INSTALL.txt: version bumped to 2.7.2
323         * sim/ucsim/configure.in, sim/ucsim/configure:
324           use "read" to read from .version
325
326 2007-06-03 Borut Razem <borut.razem AT siol.net>
327
328         * */Makefile.in: removed annoying warning:
329           Makefile:xx: Makefile.dep: No such file or directory
330
331 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
332
333         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
334           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
335         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
336         * src/SDCCast.c (resultTypePropagate): propagate for '!',
337           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
338           bugfix: only use newBoolLink for bit result type
339         * src/SDCCicode.c (geniCodeLogic): added param tree,
340           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
341           (geniCodeLogicAndOr): use IS_BIT,
342           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
343           (ast2iCode): added tree param to geniCodeLogic for comparisons
344         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
345         * support/regression/tests/bug1723128.c: added test NotZero
346
347 2007-06-01 Borut Razem <borut.razem AT siol.net>
348
349         * SDCPP synchronized with GCC CPP release version 4.2.0,
350           currently the latest release:
351         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
352           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
353           support/cpp2/cppdefault.h, support/cpp2/except.h,
354           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
355           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
356           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
357           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
358           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
359           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
360           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
361           support/cpp2/opts.h, support/cpp2/output.h,
362           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
363           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
364           support/cpp2/system.h, support/cpp2/version.c,
365           support/cpp2/Makefile.in: modified
366         * support/cpp2/opts-common.c: added
367         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
368         * device/lib/pic16/libdev/pic18f[24]5j10.c:
369           search for included source file in local directory
370         * sim/ucsim/configure, sim/ucsim/configure.in:
371           temporary solution to suppress GCC 4.2.0 c++ warning:
372           deprecated conversion from string constant to `char *'
373
374 2007-06-01 Raphael Neider <rneider AT web.de>
375
376         * device/lib/pic/libdev/pic12f683.c,
377         * device/include/pic/pic12f683.h: added GPIO bits
378
379 2007-06-01 Raphael Neider <rneider AT web.de>
380
381         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
382           quotation marks, clarified role of PIC14 vs. PIC16 ports
383         * src/pic16/devices.inc,
384         * device/include/pic16/pic18fregs.h,
385         * device/include/pic16/pic18f[24][45]j10.h,
386         * device/lib/pic16/pics.all,
387         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
388           18f24j10, 18f25j10, 18f44j10, and 18f45j10
389         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
390           for new devices as they are not yet supported by gputils
391
392 2007-05-31 Borut Razem <borut.razem AT siol.net>
393
394         * Small Device C Compiler 2.7.0 released
395         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
396           changed sdcc version to 2.7.1
397         * support/scripts/sdcc.nsi: added How to create WIN32 release
398           setup.exe package
399
400 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
401
402         * doc/sdccman.lyx: documented initialization and allocation of absolute
403           variables, bit parameter passing, the need for function pointers to be
404           reentrant and alpha quality support of inline and retrict
405
406 2007-05-26 Borut Razem <borut.razem AT siol.net>
407
408         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
409           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
410         * docs/knownbugs.html: updated
411
412 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
413
414         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
415           thanks Jan Waclawek
416         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
417           AOP_CRY and ruonly
418           (gencjneshort): optimized when left is AOP_DIR
419         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
420           initializing unions in a struct/array
421         * support/regression/fwk/include/testfwk.h: added defines for data, near
422           and far for host and z80
423         * support/regression/tests/bug1723128.c: new, added
424
425 2007-05-22 Borut Razem <borut.razem AT siol.net>
426
427         * doc/knownbugs.html: updated
428
429 2007-05-21 Raphael Neider <rneider AT web.de>
430
431         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
432           error message instead
433         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
434
435 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
436
437         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
438
439 2007-05-21 Raphael Neider <rneider AT web.de>
440
441         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
442           closes #1722392
443         * src/regression/gpsim_assert.h,
444         * src/regression/Makefile,
445         * src/regression/pcodeopt.c: regression test for the above fix
446
447 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
448
449         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
450           jumps to self, fixed bug 1717281
451
452 2007-05-10 Borut Razem <borut.razem AT siol.net>
453
454         * support/scripts/gen_known_bugs.pl: cosmetic fix
455         * doc/knownbugs.html: generated by gen_known_bugs.pl
456
457 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
458
459         * src/SDCCast.c (createFunction): also generate non-inlined version of
460           function for functions declared as "static inline"
461         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
462           function can be inlined after non-inlined version generated.
463
464 2007-05-10 Borut Razem <borut.razem AT siol.net>
465
466         * support/scripts/gen_known_bugs.pl: added script
467           which generates knownbugs.html
468
469 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
470
471         * doc/knownbugs.html: updated for release 2.7.0
472
473 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
474
475         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
476
477 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
478
479         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
480           (throughout): updated generating comments
481         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
482           (throughout): updated generating comments
483         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
484           rule instead of at the second, or it might skip lines when removing the
485           complete match
486         * support/regression/tests/bug1714204.c: changed test to foo
487
488 2007-05-08 Borut Razem <borut.razem AT siol.net>
489
490         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
491           thanks to SDCC Distributed Compile Farm members,
492           added Z80 and GBZ80 command line options
493         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
494
495 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
496
497         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
498         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
499         * support/regression/tests/longlit.c: modified to be tested at all and
500           to pass the actual test
501
502 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
503
504         * device/include/mcs51/uPSD33xx.h: Added.
505
506 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
507
508         * device/lib/_gptrput.c,
509         * device/lib/_gptrget.c: removed old code,
510          (_gptrgetWord),
511         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
512         * support/regression/tests/bug1714204.c: new, added
513
514 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
515
516         * support/regression/tests/regtrack.c: test was never executed
517           because of the regression test being picky about white spaces.
518         * device/lib/mcs51/crtclear.asm: added comment
519
520 2007-05-06 Raphael Neider <rneider AT web.de>
521
522         * device/lib/pic/Makefile.rules,
523         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
524           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
525
526 2007-05-06 Raphael Neider <rneider AT web.de>
527
528         * src/pic16/device.h,
529         * src/pic16/main.h,
530         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
531           _pic16_setDefaultOptions): removed/reordered command-line args
532         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
533           devices, regrouped command line args, environment variables),
534           clarified sone points, added sections on how to add devices to the
535           PIC14/PIC16 ports
536
537 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
538
539         * src/z80/peeph.def: fixed bug in rule 2
540
541 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
542
543         * src/port.h: added TARGET_MCS51_LIKE
544         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
545           take advantage of it too
546         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
547           (shiftR2Left2Result): Optimized: don't check shifting by 0
548         * src/z80/peeph-z80.def,
549         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
550           modifications, see patch 1700823
551         * src/mcs51/peep.c (): fixed bug 1712928
552         * support/regression/tests/bug1712928.c: new, added
553
554 2007-05-05 Borut Razem <borut.razem AT siol.net>
555
556         * device/lib/pic16/Makefile.common.in,
557           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
558           removed bash dependencies
559
560 2007-05-01 Borut Razem <borut.razem AT siol.net>
561
562         * src/SDCCicode.c:
563           fixed bug #1710507: --i-code-in-asm makes compile fail
564           all iCode comments are now one liners
565         * src/mcs51/gen.c: fixed memory leak
566
567 2007-05-01 Raphael Neider <rneider AT web.de>
568
569         * device/lib/pic/libdev/*.c
570         * device/include/pic/*.h: regenerated all device libs from updated
571           .inc files
572         * support/scripts/inc2h.pl: documented usage, now uses strict to
573           catch more bugs
574
575 2007-04-30 Borut Razem <borut.razem AT siol.net>
576
577         * doc/sdccman.lyx:
578           fixed bug #1669175: Problem with space in output paths
579           documented how to use paths with spaces for Windows users
580
581 2007-04-29 Borut Razem <borut.razem AT siol.net>
582
583         * Fixed svn:eol-style and svn:keywords properties
584         * src/SDCCval.c: fixed bug
585           #1592871: Segfault with "large" const arrays of characters
586           replaced recursion with iteration
587         * Removed svn:executable property from non-executable files
588
589 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
590
591         * src/mcs51/gen.c (genRet): fixed bug 1707003
592
593 2007-04-27 Raphael Neider <rneider AT web.de>
594
595         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
596           createReachingDefinitions,assignValnums,pic16_destructDF,
597           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
598           prevent NULL pointer dereferences
599         * device/lib/pic/libdev/pic16f886.c,
600         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
601           prevent building them, gputils do not really support them yet
602
603 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
604
605         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
606           helps printf_small. 32 bytes more __idata mem.
607
608 2007-04-27 Raphael Neider <rneider AT web.de>
609
610         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
611           return early when pb or pb->pcHead is NULL (patch #1708427)
612         * src/regression/empty.c,
613         * src/regression/Makefile: added test with empty functions
614         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
615
616 2007-04-27 Borut Razem <borut.razem AT siol.net>
617
618         * src/SDCCast.c: fixed feature request
619           #1547512: Redundant strings linked when using sizeof("abc")
620
621 2007-04-23 Borut Razem <borut.razem AT siol.net>
622
623         * doc/sdccman.lyx, src/SDCCmain.c:
624           peep-hole comments are generated only if --fverbose-asm option is
625           specified and --no-peep-comments is not, as proposed by Frieder.
626         * support/regression/Makefile.in: compile regression tests with
627           --fverbose-asm option so one can "grep" whether a new (or an old)
628           peephole is (still) applied; requested by Frieder.
629
630 2007-04-23 Kevin Buettner <kevin AT buettner.to>
631
632         * device/include/pic/pic16f886.h,
633         * device/include/pic/pic16f887.h,
634         * device/lib/pic/libdev/pic16f886.c,
635         * device/lib/pic/libdev/pic16f887.c,
636         * device/include/pic/pic14devices.txt,
637         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
638
639 2007-04-23 Kevin Buettner <kevin AT buettner.to>
640
641         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
642           fixes #1704666
643
644 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
645
646         * device/lib/_memset.c: assembler version for mcs51
647
648 2007-04-22 Borut Razem <borut.razem AT siol.net>
649
650         * support/scripts/listerr.c: program to create the list of errors and
651           warnings list from - added
652         * doc/sdccman.lyx: removed the note
653           "For list of warnings and corresponding codes, see err_warn.txt"
654         * src/SDCCsymt.c: fixed bug #1699804:
655           Bug with some uses of sizeof(static local array) (MCS51)
656         * support/regression/tests/bug-1699804.c: added
657
658 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
659
660         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
661           (main): added option -i,
662           (asmbl, case S_INCL): use search_path_fopen,
663           mostly from patch 1579668 by Peter Miller, thanks
664         * src/z80/main.c: fixed typo --callee-saves-bc
665         * device/include/mcs51/compiler.h: added sfrword for Tasking
666
667 2007-04-20 Borut Razem <borut.razem AT siol.net>
668
669         * src/z80/main.c: replaced reserved keyword asm with asmblr
670
671 2007-04-19 Borut Razem <borut.razem AT siol.net>
672
673         * src/port.h: use const pointers to strings
674         * src/SDCCargs.h: declared getStringArg() and getIntArg()
675         * src/pic16/main.c: include SDCCargs.h
676         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
677           const char, since the strings are dynamically allocated
678         * src/SDCCmain.c: options.code_seg and options.const_seg are
679           dynamically allocated; check port specific command line options
680           before the general ones
681         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
682
683 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
684
685         * device/include/ds400rom.h,
686         * device/lib/ds390/lcd390.c,
687         * device/lib/ds390/memcpyx.c,
688         * device/lib/ds390/rtc390.c,
689         * device/lib/ds400/ds400rom.c,
690         * device/lib/ds400/memcpyx.c,
691         * device/lib/hc08/_ret.c: more replacements of keywords with their
692           double underscore equivalents
693         * device/lib/ds390/Makefile.in,
694         * device/lib/ds400/Makefile.in,
695         * device/lib/gbz80/Makefile.in,
696         * device/lib/hc08/Makefile.in,
697         * device/lib/mcs51/Makefile.in,
698         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
699
700 2007-04-17 Borut Razem <borut.razem AT siol.net>
701
702         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
703           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
704           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
705           to --fverbose-asm, to be gcc'ish
706
707 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
708
709         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
710
711 2007-04-17 Borut Razem <borut.razem AT siol.net>
712
713         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
714         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
715           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
716           with their double underscore equivalent
717
718 2007-04-14 Borut Razem <borut.razem AT siol.net>
719
720         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
721           source"
722
723 2007-04-13 Borut Razem <borut.razem AT siol.net>
724
725         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
726           C99 standard
727         * device/examples/serialcomm/windows/serial.[ch],
728           device/examples/serialcomm/windows/test_serialcomm.cpp:
729           updated by Bela Torok
730         * device/examples/serialcomm/windows/serialcomm.dsw,
731           device/examples/serialcomm/windows/serialcomm.dsp: added
732
733 2007-04-13 Jan Waclawek <wek AT efton.sk>
734
735         * doc/sdccman.lyx: additions and changes at various places
736           (submitted as #1697136).
737           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
738
739 2007-04-10 Borut Razem <borut.razem AT siol.net>
740
741         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
742           LyX file format changed to 245
743         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
744           "FreeWare" replaced with "free open source"
745
746 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
747
748         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
749
750 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
751
752         * device/include/pic16/pic18fregs.h,
753         * device/lib/_bp.c,
754         * device/lib/_decdptr.c,
755         * device/lib/_divsint.c,
756         * device/lib/_divslong.c,
757         * device/lib/_divuint.c,
758         * device/lib/_divulong.c,
759         * device/lib/_fs2schar.c,
760         * device/lib/_fs2sint.c,
761         * device/lib/_fs2slong.c,
762         * device/lib/_fs2uchar.c,
763         * device/lib/_fs2uint.c,
764         * device/lib/_fs2ulong.c,
765         * device/lib/_fsadd.c,
766         * device/lib/_fscmp.c,
767         * device/lib/_fsdiv.c,
768         * device/lib/_fseq.c,
769         * device/lib/_fsget1arg.c,
770         * device/lib/_fsget2args.c,
771         * device/lib/_fsgt.c,
772         * device/lib/_fslt.c,
773         * device/lib/_fsmul.c,
774         * device/lib/_fsneq.c,
775         * device/lib/_fsnormalize.c,
776         * device/lib/_fsreturnval.c,
777         * device/lib/_fsrshift.c,
778         * device/lib/_fssub.c,
779         * device/lib/_fsswapargs.c,
780         * device/lib/_gptrget.c,
781         * device/lib/_gptrgetc.c,
782         * device/lib/_gptrput.c,
783         * device/lib/_logexpf.c,
784         * device/lib/_modsint.c,
785         * device/lib/_modslong.c,
786         * device/lib/_moduint.c,
787         * device/lib/_modulong.c,
788         * device/lib/_mulint.c,
789         * device/lib/_mullong.c,
790         * device/lib/_schar2fs.c,
791         * device/lib/_ser.c,
792         * device/lib/_setjmp.c,
793         * device/lib/_sint2fs.c,
794         * device/lib/_slong2fs.c,
795         * device/lib/_spx.c,
796         * device/lib/_uchar2fs.c,
797         * device/lib/_uint2fs.c,
798         * device/lib/_ulong2fs.c,
799         * device/lib/asincosf.c,
800         * device/lib/atanf.c,
801         * device/lib/calloc.c,
802         * device/lib/ds390/tinibios.c,
803         * device/lib/ds400/tinibios.c,
804         * device/lib/expf.c,
805         * device/lib/free.c,
806         * device/lib/hc08/_mulint.c,
807         * device/lib/logf.c,
808         * device/lib/malloc.c,
809         * device/lib/printf_fast.c,
810         * device/lib/printf_tiny.c,
811         * device/lib/printfl.c,
812         * device/lib/realloc.c,
813         * device/lib/ser_ir.c,
814         * device/lib/serial.c,
815         * support/regression/tests/libmullong.c: replaced all special keywords
816           with their double underscore equivalent
817         * support/regression/ports/mcs51-xstack-auto/spec.mk,
818         * device/lib/Makefile.in: compile libs with --std-c99 instead of
819           --std-sdcc99
820         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
821           (genRet): if the bit-symbol is ruonly it already is in the carry
822         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
823         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
824         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
825           type UCHAR if dest is not bit
826
827 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
828
829         * device/include/math.h,
830         * device/lib/cotf.c,
831         * device/lib/expf.c,
832         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
833
834 2007-04-01 Borut Razem <borut.razem AT siol.net>
835
836         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
837           fixed bug #1692042: input buffer overflow...scanner uses REJECT
838         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
839           gcc_unreachable() called internal_error()...
840
841 2007-03-30 Raphael Neider <rneider AT web.de>
842
843         * src/pic/ralloc.c (isData): suppress garbage debug output
844
845 2007-03-28 Borut Razem <borut.razem AT siol.net>
846
847         * doc/sdccman.lyx:
848           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
849           is developed, built and used worldwide, and the word "night" doesn't
850           make any sense.
851
852 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
853
854         * device/include/mcs51/C8051F360.h: new, added
855         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
856
857 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
858
859         * src/SDCC.y (declaration_specifiers, function_specifier),
860         * support/Util/SDCCerr.c,
861         * support/Util/SDCCerr.h,
862         * src/SDCCsymt.h,
863         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
864           inline keyword
865         * src/SDCCmem.c (deallocParms),
866         * src/SDCCast.c: support for function inlining, not quite complete
867         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
868           'restrict' qualifier
869
870 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
871
872         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
873           (saveRBank, unsaveRBank): don't save bits,
874           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
875         * support/regression/tests/bug1535242.c: new, added
876         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
877           thanks Alexey Shamrin <shamrin AT gmail.com>,
878           made assert.h header ANSI compliant (added a check for NDEBUG macro,
879           removed header guard)
880         * .version,
881         * sdcc.spec: bumped version to 2.6.5
882         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
883
884 2007-03-22 Borut Razem <borut.razem AT siol.net>
885
886         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
887           fixed bug #1653671: sdcdb integration into ddd is broken
888
889 2007-03-22 Raphael Neider <rneider AT web.de>
890
891         * src/pic/gen.c (popGetExternal): augmented to also create references
892           to external variables (not only labels),
893           (genCall): comment on plan to reduce PAGESEL overhead,
894           (genFunction, genEndFunction): also save/restore FSR around interrupt
895           handling code, removed lots of unused code
896           (genDivOneByte): release acquired temp register
897         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
898           of popGetExternal
899         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
900           for registers that need to be saved during interrupts (FSR, STATUS,
901           PCLATH; W needs special handling), currently only FSR is used
902
903 2007-03-22 Raphael Neider <rneider AT web.de>
904
905         * device/include/pic/pic14devices.txt: 16f688 has only one config word
906
907 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
908
909         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
910
911 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
912
913         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
914
915 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * as/link/aslink.h: added LKOBJEXT
918         * as/link/hc08/link_hc08.dsp,
919         * as/link/hc08/Makefile.bcc,
920         * as/link/hc08/Makefile.in,
921         * as/link/mcs51/aslink.dsp,
922         * as/link/mcs51/Makefile.bcc,
923         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
924         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
925         * as/link/lkaomf51.c: merged and moved
926         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
927         * as/link/z80/lkdata.c,
928         * as/link/lkdata.c: merged and moved
929         * as/link/hc08/lkmain.c,
930         * as/link/mcs51/lkmain.c: cosmetic changes
931         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
932         * as/link/lklex.c: use LKOBJEXT
933         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
934           ANSI-fied functions, removed bubble-sorts
935         * as/link/z80/lksym.c           as/link/lksym.c: merged,
936           ANSI-fied functions
937         * as/link/z80/linkgbz80.dsp,
938         * as/link/z80/linkz80.dsp,
939         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
940           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
941         * as/link/z80/lkhead.c,
942         * as/link/z80/lklex.c: deleted
943         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
944         * as/link/z80/lkmain.c: added copyfile()
945
946 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
947
948         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
949
950 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
951
952         * device/lib/_strlen.c: assembler version for mcs51
953
954 2007-03-13 Raphael Neider <rneider AT web.de>
955
956         * device/include/pic16/pic18f2221.h,
957         * device/include/pic16/pic18f2321.h,
958         * device/include/pic16/pic18f2331.h,
959         * device/include/pic16/pic18f4221.h,
960         * device/include/pic16/pic18f4321.h,
961         * device/include/pic16/pic18f4331.h: fixed config byte location names
962         * support/scripts/inc2h-pic16.pl: removed debug output, emit
963           consistently named config byte locations
964
965 2007-03-13 Borut Razem <borut.razem AT siol.net>
966
967         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
968           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
969           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
970           as/link/z80/Makefile.in, as/z80/Makefile.in:
971           introduced LDFLAGS
972
973 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
974
975         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
976         * device/lib/printf_large.c: pointer was converted to generic
977         pointer for mcs51 models other than model-small (Maarten noticed)
978
979 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
980
981         * device/include/mcs51/ADuC84x.h: Added.
982
983 2007-03-10 Borut Razem <borut.razem AT siol.net>
984
985         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
986           fixed RFE #1624219: double backslashes in filenames;
987           functions hexEscape(), octalEscape() and copyStr() moved from
988           SDCCval.c to SDCCutil.c and made them glovbally available
989
990 2007-03-09 Borut Razem <borut.razem AT siol.net>
991
992         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
993           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
994           1673361: Missaligned comments in output files
995
996 2007-03-09 Raphael Neider <rneider AT web.de>
997
998         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
999
1000 2007-03-09 Raphael Neider <rneider AT web.de>
1001
1002         * src/pic/gen.c,
1003         * src/pic/glue.c,
1004         * src/pic/ralloc.c: suppress undesired debug output
1005         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1006
1007 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1008
1009         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1010
1011 2007-03-07 Borut Razem <borut.razem AT siol.net>
1012
1013         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1014           search include files in the current directory
1015
1016 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * src/SDCCglue.c (emitMaps, glue),
1019         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1020           absolute xdata
1021         * support/regression/tests/absolute.c: added xdata test
1022
1023 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1024
1025         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1026           added condition to macro, fixes bug 1666080
1027
1028 2007-03-02 Raphael Neider <rneider AT web.de>
1029
1030         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1031
1032 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1033
1034         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1035         be cleared. Unconditionally set __XPAGE
1036         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1037
1038 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1039
1040         * src/SDCCglobl.h,
1041         * src/SDCCmain.c,
1042         * src/mcs51/gen.c,
1043         * src/mcs51/rtrack.c,
1044         * src/ds390/gen.c,
1045         * doc/sdccman.lyx: added --no-gen-comments
1046         * src/mcs51/peeph.def: added 192.b, disabled 185
1047
1048 2007-02-25 Raphael Neider <rneider AT web.de>
1049
1050         * src/pic16/gen.c (genCast): fixed typo
1051         * device/lib/pic16/Makefile.subdir: only install existing files
1052         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1053
1054 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1055
1056         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1057         * device/lib/mcs51/crtclear.asm,
1058         * device/lib/mcs51/crtxclear.asm: renumbered labels
1059         * device/lib/mcs51/Makefile.in: added crtcall.asm
1060         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1061         * src/mcs51/gen.c (movc): removed,
1062           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1063             acc.x or psw.x),
1064           (toCarry, genSend, genRet): added function toCarry,
1065           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1066           (assignBit, genAssign, genCast): added function assignBit
1067         * src/mcs51/Makefile.bcc: added rtrack.c
1068         * src/mcs51/ralloc.h: made valueKnown a bitfield
1069         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1070           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1071           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1072         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1073         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1074           (_pop): only pop valid pairs, see gencjneshort,
1075           (gencjneshort): return pair that still needs to be popped, restructured,
1076           (gencjne, genCmpEq): call _pop
1077
1078 2007-02-23 Raphael Neider <rneider AT web.de>
1079
1080         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1081
1082 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1083
1084         * device/include/mcs51/P89LPC925.h: Added.
1085
1086 2007-02-18 Raphael Neider <rneider AT web.de>
1087
1088         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1089
1090 2007-02-17 Borut Razem <borut.razem AT siol.net>
1091
1092         * support/cpp2/directives.c, support/cpp2/version.c:
1093           synchronized with GCC CPP 4.1.2
1094
1095 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1096
1097         * src/mcs51/rtrack.h,
1098         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1099           by checking the strings passed by emitcode() to the assembler.
1100           Feel free to change. This in part addresses RFE #482179.
1101           Set environment variable SDCC_RTRACK to enable.
1102         * src/mcs51/gen.c: inserted hooks
1103         * src/mcs51/ralloc.h: added two members to struct regs
1104         * support/regression/tests/regtrack.c: added
1105
1106 2007-02-14 Borut Razem <borut.razem AT siol.net>
1107
1108         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1109         * Makefile.in: applied patch from Makefile related part of
1110           #1469393: Compiler does not initialize static data
1111
1112 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1113
1114         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1115           for better fix of bug 1273984, compiles pic16 rand.c
1116
1117 2007-02-12 Borut Razem <borut.razem AT siol.net>
1118
1119         * src/pic16/main.c: fixed pic16 standard library directory bug
1120
1121 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1122
1123         * src/hc08/gen.c (genSwap): fix swap regression test
1124
1125 2007-02-10 Borut Razem <borut.razem AT siol.net>
1126
1127         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1128           with same scope
1129         * support/regression/tests/bug-1654060.c: added regression test for
1130           #1654060
1131
1132 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1133
1134         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1135         bit moves in return statement
1136
1137 2007-02-09 Borut Razem <borut.razem AT siol.net>
1138
1139         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1140           syntax error
1141
1142 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1143
1144         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1145         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1146
1147 2007-02-07 Raphael Neider <rneider AT web.de>
1148
1149         * src/pic16/devices.inc,
1150         * device/include/pic16/pic18fregs.h,
1151         * device/include/pic16/pic18f[24][34]31.h,
1152         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1153         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1154         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1155
1156 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1157
1158         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1159           can this have lived here for so many years?
1160         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1161           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1162         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1163
1164 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1165
1166         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1167         appended by loop induction must be at the very end of the eBBlock
1168
1169 2007-02-05 Kevin Vigor
1170
1171         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1172
1173 2007-02-05 Borut Razem <borut.razem AT siol.net>
1174
1175         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1176           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1177
1178 2007-02-03 Borut Razem <borut.razem AT siol.net>
1179
1180         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1181           applied patch #1646602 option to set default signedness of char to
1182           unsigned, added -funsigned-char command line option,
1183           thanks to Gunther Jehle
1184         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1185           prompt for file deletion a few hundred times (especially the
1186           subversion files, which have ro permissions so it asks for
1187           confirmation), thanks to Simon McAuliffe;
1188           added {} + option to find in order to remove multiple files from a
1189           single rm commad
1190
1191 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1192
1193         * device/include/mcs51/SST89x5xRDx.h: Added.
1194
1195 2007-02-02 Raphael Neider <rneider AT web.de>
1196
1197         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1198         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1199
1200 2007-02-01 Raphael Neider <rneider AT web.de>
1201
1202         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1203           config words again
1204
1205 2007-01-31 Borut Razem <borut.razem AT siol.net>
1206
1207         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1208           if compiled with GCC. Thanks to Raphael Neider
1209
1210 2007-01-31 Raphael Neider <rneider AT web.de>
1211
1212         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1213             operand names, handles name and (name + n) for all n,
1214           (sameBank): restructured, also check bank allocation policy,
1215         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1216           (pic14_operandsAllocatedInSameBank): check whether to operands
1217             will be allocated into the same bank (i.e., section) to reduce
1218             BANKSEL overhead, queried from pcode.c:sameBank,
1219           (pic14printLocals): reintroduced clustering registers into a single
1220             section: all compiler generated symbols will now reside in one
1221             bank (per file), reducing BANKSEL overhead and code size,
1222           (showAllMemmaps): use local dbuf where possible
1223
1224 2007-01-29 Raphael Neider <rneider AT web.de>
1225
1226         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1227           (call_libraryfunc): retrieve/create symbol and mark as used,
1228           (genFunction): mark defined functions as non-extern and add again
1229            to code memmap for later output
1230         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1231           (pic14printLocals): reworked for new symbol emission,
1232           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1233           showAllMemmaps): reworked symbol output using dbufs, added handling
1234             of string literals (still incomplete),
1235           (picglue): removed symbol emission, moved into showAllMemmaps,
1236           (emitSymbolSet): new workhorse for symbol output,
1237           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1238
1239 2007-01-29 Borut Razem <borut.razem AT siol.net>
1240
1241         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1242           component contains the extension separator.
1243
1244 2007-01-28 Borut Razem <borut.razem AT siol.net>
1245
1246         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1247           on WIN32
1248         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1249           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1250           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1251           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1252           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1253           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1254           src/z80/gen.c, support/Util/MySystem.c:
1255           accept slash and backslash as directory separator on WIN32 and
1256           Cygwin ports
1257
1258 2007-01-28 Raphael Neider <rneider AT web.de>
1259
1260         * src/pic16/devices.inc,
1261         * device/include/pic16/pic18f[24][23]21.h,
1262         * device/include/pic16/pic18fregs.h,
1263         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1264         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1265         * device/lib/pic16/libio/adc.ignore,
1266         * device/lib/pic16/libio/i2c.ignore,
1267         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1268           family, as gputils do not yet support the devices
1269         * device/lib/pic16/Makefile.subdir: ignore errors on install
1270         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1271           headers and libraries from gputils .inc files
1272
1273 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1274
1275         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1276
1277 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1278
1279         * doc/sdccman.lyx: add printf benchmarks
1280
1281 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1282
1283         * device/lib/printf_fast.c: fix %c, char promoted to int
1284         * device/lib/printf_tiny.c: fix %c, char promoted to int
1285
1286 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1287
1288         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1289
1290 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1291
1292         * support/regression/tests/swap.c: 64 bit hosts failed
1293         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1294
1295 2007-01-25 Raphael Neider <rneider AT web.de>
1296
1297         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1298           based on absolute register address, patch by Alex Blond
1299
1300 2007-01-22 Raphael Neider <rneider AT web.de>
1301
1302         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1303           emitted, do not emit them again...
1304
1305 2007-01-22 Raphael Neider <rneider AT web.de>
1306
1307         * src/regression/bank1.c, src/regression/compare6.c,
1308           src/regression/add.c: cosmetic changes
1309         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1310         * src/pic/gen.c: fixed global zero and one,
1311           (aopForSym): removed unued code,
1312           (aopGet): assert aop is defined, check and use `index' of
1313             pCodeImmd operands (fixes #1630908),
1314         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1315           (register_reassign): prevent accidental register unification,
1316           (ReuseReg): cosmetic changes (also above)
1317         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1318           pic14emitStaticSeg): do not emit initialized data,
1319           (printIval*): replaced with working versions,
1320           (pic14createInterruptVect,picglue): use idata for initialized data,
1321             now init data should work in all modules (not only main()),
1322         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1323
1324 2007-01-21 Borut Razem <borut.razem AT siol.net>
1325
1326         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1327           use -fPIC or -fpic if they are supported and not ignored
1328         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1329         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1330
1331 2007-01-20 Borut Razem <borut.razem AT siol.net>
1332
1333         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1334           implemented RFE #1470316: allow "$" in variable names
1335
1336 2007-01-20 Raphael Neider <rneider AT web.de>
1337
1338         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1339
1340 2007-01-20 Raphael Neider <rneider AT web.de>
1341
1342         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1343         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1344         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1345         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1346           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1347         * device/lib/pic/libdev/pic*.c,
1348         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1349         * device/lib/pic/libdev/Makefile.in: show progress
1350
1351 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1352
1353         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1354         * support/scripts/sdcc_cygwin_mingw32,
1355         * support/scripts/sdcc_mingw32,
1356         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1357         conformance with autoconf 2.6
1358
1359 2007-01-19 Raphael Neider <rneider AT web.de>
1360
1361         * src/pic/device.c (register_map): fixed list construction
1362         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1363           (genMod): removed case for genModbits,
1364           (genModbits): removed as now unused/unimplemented
1365         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1366
1367 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1368
1369         * support/regression/tests/swap.c: added in response to #1638622
1370         * doc/sdccman.lyx: synced version, minor changes
1371
1372 2007-01-18 Borut Razem <borut.razem AT siol.net>
1373
1374         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1375           thanks to Gunther Jehle
1376         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1377         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1378           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1379           use filename in lineno instead.
1380         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1381           print the file name in ast_print()
1382
1383 2007-01-18 Borut Razem <borut.razem AT siol.net>
1384
1385         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1386           defined in MSVC
1387         * src/SDCC.lex: stringLiteral() returns const char pointer,
1388           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1389           fixed column counting
1390         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1391           accept const char pointer as parameter
1392         * src/SDCCdwarf2.c: corrected buffer size
1393
1394 2007-01-17 Borut Razem <borut.razem AT siol.net>
1395
1396         * support/Util/dbuf_string.c: fixed for amd64
1397
1398 2007-01-15 Borut Razem <borut.razem AT siol.net>
1399
1400         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1401           removed terminal symbol ELIPSIS, since it was never generated by the
1402           lexer and it was wrongly used in parameter_identifier_list rule
1403
1404 2007-01-15 Raphael Neider <rneider AT web.de>
1405
1406         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1407             code page and data banking description
1408         * src/pic/genarith.c,
1409         * src/pic/gen.h: removed bit arithmetic functions,
1410             updated exit(1) to exit(EXIT_FAILURE)
1411         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1412         * device/include/pic16/pic18f2455.h,
1413         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1414             TRISD and TRISE, fixed/added some bit names
1415         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1416         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1417             updated pic18f2455.{c,h} instead of duplicating them
1418
1419 2007-01-14 Borut Razem <borut.razem AT siol.net>
1420
1421         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1422           Cannot debug files that contain spaces in the path name
1423           by converting spaces in asm file name to underscores
1424
1425 2007-01-13 Borut Razem <borut.razem AT siol.net>
1426
1427         * doc/sdccman.lyx: fixed format errors
1428
1429 2007-01-10 Borut Razem <borut.razem AT siol.net>
1430
1431         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1432           codeseg/constseg #pragma fail
1433         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1434         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1435           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1436           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1437
1438 2007-01-09 Borut Razem <borut.razem AT siol.net>
1439
1440         * get rid of diagnistic.[ch], pretty-print.[ch],
1441           c-pretty-print.[ch], ... used just for error, warning, ...
1442           message formatting
1443         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1444           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1445           suppoprt/cpp2/pretty-print.[ch]:
1446           removed
1447         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1448           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1449           suppoprt/cpp2/sdcpp.dsp:
1450           changed
1451
1452 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1453
1454         * device/lib/printf_large.c (output_float): removed recursion,
1455           use smaller buffer on stack for mcs51,
1456           fixed bug printing 1.96
1457         * support/regression/tests/snprintf.c: added test
1458
1459 2007-01-07 Borut Razem <borut.razem AT siol.net>
1460
1461         * use dynamic memory buffers instead temporary files
1462         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1463           added
1464         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1465           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1466           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1467           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1468           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1469           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1470           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1471           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1472           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1473           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1474           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1475           support/Util/dbuf.c, support/Util/dbuf.h:
1476           modified
1477         * .version, sdcc.spec: bumped version to 2.6.4
1478
1479 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1480
1481         * src/port.h: added TARGET_Z80_LIKE macro
1482         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1483           output PSEG location if --xram-loc or --xstack-loc was used
1484         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1485
1486 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1487
1488         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1489         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1490         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1491         * sdcc.dsw: moved project files into subdir
1492         * as/hc08/as_hc08.dsp,
1493         * as/hc08/Makefile.bcc,
1494         * as/hc08/Makefile.in,
1495         * as/mcs51/Makefile.bcc,
1496         * as/mcs51/Makefile.in,
1497         * as/z80/Makefile.bcc,
1498         * as/z80/Makefile.in,
1499         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1500         * as/hc08/asm.h,
1501         * as/mcs51/asm.h,
1502         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1503         * as/hc08/asmain.c,
1504         * as/hc08/assym.c,
1505         * as/mcs51/asmain.c,
1506         * as/mcs51/assym.c,
1507         * as/z80/assym.c: removed include "strcmpi.h"
1508         * as/hc08/strcmpi.c,
1509         * as/hc08/strcmpi.h,
1510         * as/mcs51/strcmpi.c,
1511         * as/mcs51/strcmpi.h,
1512         * support/Util/strcmpi.c,
1513         * support/Util/strcmpi.h: removed files
1514         * as/strcmpi.c: added as_strncmpi()
1515
1516 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1517
1518         * sdcc.dsw: Added some dependencies on project config.dsp
1519
1520 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1521
1522         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1523           with [di]ram_start to fix a regresion
1524
1525 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1526
1527         * configure.in: added missing mcs51 in status output
1528         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1529         directory
1530         * debugger/mcs51/clean.mk (distclean): remove config.h
1531         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1532         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1533         options.h, s-options-h and options.c
1534         * support/cpp2/clean.mk: unused, removed
1535         * Makefile.common.in,
1536         * main_in.mk,
1537         * as/Makefile.in,
1538         * as/hc08/Makefile.in,
1539         * as/hc08/clean.mk,
1540         * as/mcs51/Makefile.in,
1541         * as/mcs51/clean.mk,
1542         * as/z80/clean.mk,
1543         * as/z80/conf.mk,
1544         * as/z80/Makefile.in,
1545         * as/z80/clean.mk,
1546         * as/link/Makefile.in,
1547         * as/link/hc08/Makefile.in,
1548         * as/link/hc08/clean.mk,
1549         * as/link/mcs51/Makefile.in,
1550         * as/link/mcs51/clean.mk,
1551         * as/link/z80/Makefile.in,
1552         * as/link/z80/clean.mk,
1553         * as/link/z80/conf.mk,
1554         * debugger/mcs51/Makefile.in,
1555         * debugger/mcs51/clean.mk,
1556         * device/include/Makefile.in,
1557         * device/lib/Makefile.in,
1558         * device/lib/mcs51/Makefile.in,
1559         * device/lib/pic/Makefile.in,
1560         * device/lib/pic/Makefile.common.in,
1561         * device/lib/pic/Makefile.subdir,
1562         * device/lib/pic/Makefile.rules,
1563         * device/lib/pic16/libio/Makefile.in,
1564         * device/lib/pic16/Makefile.subdir,
1565         * device/lib/pic16/libdev/Makefile.in,
1566         * device/lib/pic16/Makefile.rules,
1567         * device/lib/pic16/Makefile.common.in,
1568         * sim/ucsim/avr.src/Makefile.in,
1569         * sim/ucsim/main_in.mk,
1570         * sim/ucsim/cmd.src/Makefile.in,
1571         * sim/ucsim/doc/Makefile.in,
1572         * sim/ucsim/gui.src/Makefile.in,
1573         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1574         * sim/ucsim/gui.src/serio.src/Makefile.in,
1575         * sim/ucsim/hc08.src/Makefile.in,
1576         * sim/ucsim/libltdl/Makefile.in,
1577         * sim/ucsim/s51.src/Makefile.in,
1578         * sim/ucsim/sim.src/Makefile.in,
1579         * sim/ucsim/sim.src/conf.mk,
1580         * sim/ucsim/xa.src/Makefile.in,
1581         * sim/ucsim/z80.src/Makefile.in,
1582         * src/Makefile.in,
1583         * src/clean.mk,
1584         * src/port.mk,
1585         * support/cpp2/Makefile.in,
1586         * support/librarian/Makefile.in,
1587         * support/librarian/clean.mk,
1588         * support/makebin/Makefile.in,
1589         * support/makebin/clean.mk,
1590         * support/packihx/Makefile.in,
1591         * support/regression/Makefile.in,
1592         * support/regression/ports/ds390/spec.mk,
1593         * support/regression/ports/gbz80/spec.mk,
1594         * support/regression/ports/hc08/spec.mk,
1595         * support/regression/ports/mcs51/spec.mk,
1596         * support/regression/ports/mcs51-large/spec.mk,
1597         * support/regression/ports/mcs51-medium/spec.mk,
1598         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1599         * support/regression/ports/pic14/spec.mk,
1600         * support/regression/ports/pic16/spec.mk,
1601         * support/regression/ports/mcs51-stack-auto/spec.mk,
1602         * support/regression/ports/ucz80/spec.mk,
1603         * support/regression/ports/xa51/spec.mk,
1604         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1605         adding a slash after $(top_builddir) and/or adding @datarootdir@
1606         * configure.in,
1607         * debugger/mcs51/configure.in,
1608         * device/lib/pic/configure.in,
1609         * device/lib/pic16/configure.in,
1610         * sim/ucsim/configure.in,
1611         * support/cpp2/configure.in,
1612         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1613         * configure,
1614         * debugger/mcs51/configure,
1615         * device/lib/pic/configure,
1616         * device/lib/pic16/configure,
1617         * sim/ucsim/configure,
1618         * support/cpp2/configure,
1619         * support/packihx/configure: generated with autoconf 2.60
1620
1621 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1622
1623         * as/link/hc08/lkihx.c (newArea),
1624         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1625
1626 2007-01-02 Borut Razem <borut.razem AT siol.net>
1627
1628         * doc/sdccman.lyx: documented #pragma sdcc_hash
1629         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1630           initialized to 0
1631         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1632
1633 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1634
1635         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1636         empty 'while'-loop to work correctly, see regression test 'while.c'
1637         * support/regression/tests/while.c: added
1638
1639 2007-01-01 Borut Razem <borut.razem AT siol.net>
1640
1641         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1642           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1643           support/cpp2/libcpp/sdcpp.c:
1644           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1645         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1646         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1647
1648 2006-12-31 Borut Razem <borut.razem AT siol.net>
1649
1650         * SDCPP synchronized with GCC CPP release version 4.1.1,
1651           currently the latest release:
1652         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1653           support/cpp2/libcpp/include/cpp-id-data.h
1654           support/cpp2/libiberty/fopen_unlocked.c
1655           support/cpp2/libiberty/md5.c
1656           support/cpp2/md5.h
1657           support/cpp2/opt-functions.awk
1658           support/cpp2/opt-gather.awk
1659           support/cpp2/optc-gen.awk
1660           support/cpp2/opth-gen.awk:
1661           added
1662         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1663           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1664           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1665           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1666           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1667           support/cpp2/diagnostic.h, support/cpp2/except.h,
1668           support/cpp2/hwint.h, support/cpp2/input.h,
1669           support/cpp2/intl.h, support/cpp2/move-if-change,
1670           support/cpp2/opts.c, support/cpp2/opts.h,
1671           support/cpp2/output.h, support/cpp2/prefix.c,
1672           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1673           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1674           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1675           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1676           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1677           support/cpp2/version.c:
1678           modified
1679         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1680           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1681           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1682           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1683           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1684           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1685           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1686           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1687           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1688           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1689           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1690           moved
1691         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1692           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1693           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1694           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1695           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1696           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1697           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1698           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1699           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1700           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1701           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1702           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1703           support/cpp2/system.h:
1704           deleted / moved
1705
1706 2006-12-31 Borut Razem <borut.razem AT siol.net>
1707
1708         * configure.in, configure: fixed bug #1538756: configure dies if bison
1709           and flex are not installed, 2nd try
1710
1711 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1712
1713         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1714         400.x for better code in RFE 899102
1715
1716 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1717
1718         * src/SDCCpeeph.c (deadMove),
1719         * src/port.h,
1720         * src/mcs51/peep.h: renamed 'op' by 'reg'
1721         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1722         (scan4op): small change for removeDeadMove(), added support for
1723         'callee saves' and/or PACLL function calls,
1724         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1725         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1726         left in new dispatcher mcs51DeadMove()
1727         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1728         removeDeadMove()
1729         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1730
1731 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1732
1733         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1734           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1735
1736 2006-12-30 Borut Razem <borut.razem AT siol.net>
1737
1738         * support/cpp2/spacs.h: deleted from svn
1739         * configure.in, configure: fixed bug #1538756: configure dies if bison
1740           and flex are not installed
1741
1742 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1743
1744         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1745           with this z80 passes printf float test when enabled
1746         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1747
1748 2006-12-28 Borut Razem <borut.razem AT siol.net>
1749
1750         * support/cpp2/config.in, support/cpp2/configure.in,
1751           support/cpp2/configure, support/cpp2/Makefile.in:
1752           fix for the solaris build
1753
1754 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1755
1756         * src/SDCC.y (type_specifier2, pointer),
1757         * src/SDCCsymt.h,
1758         * src/SDCCsymt.c (mergeSpec, checkSClass),
1759         * support/Util/SDCCerr.c,
1760         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1761         * support/valdiag/valdiag.py: Allow test cases to specify
1762           required language standard
1763         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1764         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1765
1766 2006-12-27 Borut Razem <borut.razem AT siol.net>
1767
1768         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1769         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1770           mbchar removed
1771         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1772           fixed for borland C
1773         * support/cpp2/libiberty/Makefile.bcc: updated
1774         * src/pic16/main.c: fixed #pragma udata handling
1775         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1776
1777 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1778
1779         * src/SDCCpeeph.c: made labelHashEntry global,
1780         made pcDistance, FBYNAME static,
1781         (pcDistance): made static, use isComment and isLabel,
1782         (deadMove): added,
1783         (getLabelRef): added, extracted from labelRefCount(),
1784         (labelRefCount): use new getLabelRef(),
1785         (callFuncByName): made static, added deadMove,
1786         use isComment and isLabel,
1787         (newPeepRule): made static, set isLabel,
1788         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1789         labels from peephole rules,
1790         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1791         when isComment or isLabel is set
1792         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1793         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1794         to make them global
1795         * src/mcs51/peep.h: added
1796         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1797         * src/port.h: added peep->deadMove to port structure
1798         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1799         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1800         deadMove, finally removed no. 1 and 2
1801         * src/mcs51/gen.c,
1802         * src/pic/gen.c,
1803         * src/z80/gen.c,
1804         * src/z80/ralloc.c,
1805         * src/pic16/gen.c,
1806         * src/ds390/gen.c,
1807         * src/hc08/gen.c: mark lines with isComment or isLabel
1808         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1809         * .version,
1810         * sdcc.spec: bumped version to 2.6.3
1811
1812 2006-12-26 Borut Razem <borut.razem AT siol.net>
1813
1814         * support/cpp2/Makefile.in: added dependency on options.h
1815         * configure: regenerated
1816         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1817         * support/cpp2/Makefile.in: added vasprintf.c
1818
1819 2006-12-25 Borut Razem <borut.razem AT siol.net>
1820
1821         * SDCPP synchronized with GCC CPP release version 3.4.6,
1822           the latest release before 4.x:
1823         * support/cpp2/Makefile.in, support/cpp2/config.h,
1824           support/cpp2/configure, support/cpp2/configure.in,
1825           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1826           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1827           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1828           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1829           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1830           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1831           support/cpp2/cpptrad.c, support/cpp2/except.h,
1832           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1833           support/cpp2/hwint.h, support/cpp2/intl.h,
1834           support/cpp2/line-map.c, support/cpp2/line-map.h,
1835           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1836           support/cpp2/output.h, support/cpp2/prefix.c,
1837           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1838           support/cpp2/system.h, support/cpp2/version.c:
1839           modified
1840         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1841           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1842           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1843           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1844           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1845           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1846           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1847           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1848           support/cpp2/move-if-change, support/cpp2/opts.c,
1849           support/cpp2/opts.h, support/cpp2/opts.sh,
1850           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1851           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1852           support/cpp2/win32, support/cpp2/win32/dirent.c,
1853           support/cpp2/win32/dirent.h:
1854           added
1855         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1856         * support/cpp2/sdcpp.h: renamed from sdcc.h
1857         * sdcppinit.c: deleted
1858
1859 2006-12-23 Borut Razem <borut.razem AT siol.net>
1860
1861         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1862           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1863           preproc.c: an other try to fix bug #982435: introduced
1864           -pedantic-parse-number command line option and pedantic_parse_number
1865           pragma
1866
1867 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1868
1869         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1870            BSEG handling,
1871           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1872            corrected overlayed areax addresses, warn about memory overlaps
1873         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1874         * src/avr/main.c,
1875         * src/ds390/main.c,
1876         * src/hc08/main.c,
1877         * src/mcs51/main.c,
1878         * src/pic16/main.c,
1879         * src/pic/main.c,
1880         * src/xa51/main.c,
1881         * src/z80/main.c,
1882         * src/port.h: added xabs_name and iabs_name
1883         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1884           (glue, emitMaps): create and emit maps d_abs and i_abs
1885         * src/SDCCglue.h: cosmetic changes
1886         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1887         * src/SDCCmem.h,
1888         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1889           (allocDefault): put absolute, initialized globals in them
1890         * support/regression/tests/absolute.c: added absolute bdata test
1891         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1892
1893 2006-12-20 Borut Razem <borut.razem AT siol.net>
1894
1895         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1896         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1897           added regression test for bug #982435
1898
1899 2006-12-18 Borut Razem <borut.razem AT siol.net>
1900
1901         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1902         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1903           small cosmetic changes
1904         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1905         * support/regression/tests/bug-1351710.c: added regression test
1906
1907 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1908
1909         * doc/sdccman.lyx: added the long missed iCode table
1910           "<where is figure II?>", added links to wiki
1911
1912 2006-12-17 Borut Razem <borut.razem AT siol.net>
1913
1914         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1915           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1916           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1917           unified table driven pragma handling, pragma argument type checking
1918         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1919           current one - version 1.1.3
1920         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1921
1922 2006-12-13 Raphael Neider <rneider AT web.de>
1923
1924         * src/pic/device.h: removed AssignedMemory structure and macros
1925         * src/pic/device.c: removed global finalMapping (linker assigns
1926             memory locations),
1927           (register_map): add SFRs to remembered memRanges
1928           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1929           assignFixedRegisters,assignRelocatableRegisters): removed,
1930           (setMaxRAM,validAddress): adapted accordingly,
1931           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1932             reasonably sized sharebanks,
1933         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1934           (allDefsOutOfRange): removed unused code,
1935         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1936             handling
1937         * src/pic/pcode.c (register_reassign): removed recursion warning,
1938             fired far too often,
1939         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1940             to use existing pic14_stringInSet() to avoid duplicate symbols,
1941             tidied up the code a bit,
1942           (pic14printLocals): added in symmetry to printExterns, replaces
1943             writeUsedRegs more or less,
1944           (picglue): call new pic14_printLocals(),
1945         * device/include/pic/pic*.h: removed #pragma memmap directives,
1946             information gathered from include/pic/pic14devices.txt
1947         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1948
1949 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1950
1951         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1952
1953 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1954
1955         * device/include/mcs51/cc2430.h: fixed missing ';'
1956
1957 2006-12-10 Raphael Neider <rneider AT web.de>
1958
1959         * device/lib/pic16/libc/stdio/vfprintf.c,
1960         * device/lib/pic16/libc/stdio/printf_small.c,
1961         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1962           char arguments, as char varargs are cast to int by the caller,
1963           hopefully fixes #1604915 (other device libraries are still affected)
1964
1965 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1966
1967         * src/mcs51/ralloc.c (packRegsForAssign),
1968         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1969
1970 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1971
1972         * device/include/malloc.h: removed init_dynamic_memory
1973         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1974           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1975         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1976         * device/lib/libsdcc.lib,
1977         * device/lib/Makefile.in,
1978         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1979         * doc/sdccman.lyx: documented use of new _heap.c
1980         * support/regression/tests/malloc.c: removed init_dynamic_memory
1981         * src/cdbFile.c(spacesToUnderscores): new function,
1982           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1983           1068030
1984         * device/include/tinibios.h: removed defines for putchar and getchar
1985         * device/lib/ds390/Makefile.in: added putchar.c
1986         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1987
1988 2006-12-09 Borut Razem <borut.razem AT siol.net>
1989
1990         * support/cpp2/sdcc.h: prevent multiple inclusion
1991         * support/cpp2/options.h: deleted
1992
1993 2006-12-08 Borut Razem <borut.razem AT siol.net>
1994
1995         * support/cpp2/sdcc.h: removed x*alloc() macros
1996         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1997         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1998           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1999         * support/cpp2/system.h: moved #include "sdcc.h"
2000         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2001           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2002           added
2003         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2004           -funsigned-char options
2005         * support/cpp2/sdcppmain.c: fixed bug 1611411
2006
2007 2006-12-07 Borut Razem <borut.razem AT siol.net>
2008
2009         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2010           directive
2011
2012 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2013
2014         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2015         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2016         * doc/sdccman.lyx,
2017         * .version: bumped to 2.6.2 because a) it's been a while
2018           b) the linker sources have moved c) the preprocessor is upgraded
2019
2020 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2021
2022         * support/regression/tests/snprintf.c: some checks
2023         * lib/src/printf_large.c: %bc: read char instead of int from stack
2024
2025 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2026
2027         * device/include/mcs51/cc2430.h: inserted _XPAGE
2028
2029 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2030
2031         * device/include/mcs51/cc2430.h: added
2032
2033 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2034
2035         * device/include/asm/default/features.h,
2036         * device/include/asm/ds390/features.h,
2037         * device/include/mcs51/at89s53.h,
2038         * device/include/ser.h,
2039         * device/include/ser_ir.h,
2040         * device/include/serial.h: changed keywords to double underscore variants,
2041           fixes bug 1590261 some more, thanks Steven Borley
2042
2043 2006-12-01 Raphael Neider <rneider AT web.de>
2044
2045         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2046           but emit warning (recursion is not supported for pic14)
2047
2048 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2049
2050         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2051         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2052
2053 2006-11-30 Raphael Neider <rneider AT web.de>
2054
2055         * src/pic/device.c (dump_sfr): always emit symbols
2056         * src/pic/glue.c (pic14printPublics): fixed typo
2057
2058 2006-11-30 Raphael Neider <rneider AT web.de>
2059
2060         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2061           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2062           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2063            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2064            a sharebank, use a non-shared bank for the stack if none available
2065         * src/pic/device.h (struct memRange): added linked list next field,
2066           added prototypes for above functions
2067         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2068           (typeRegWithIdx): accept fixed and unfixed stack registers
2069         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2070           the stack, handle shared and banked stack (except for WSAVE),
2071           (insertBankSel): removed useless optimization (will never fire),
2072           (FixRegisterBanking): added optimization for devices with only one
2073           possibly aliased bank of memory, like 16f84
2074         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2075           devices have no SHAREBANK in the linker script
2076         * device/include/pic/pic14devices.txt: documented memmap
2077         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2078
2079 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2080
2081         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2082           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2083           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2084           genhc08Code): switched most of the D (debug) macros to DD (detailed
2085           debug) macros to better control clutter in the generated .asm file.
2086         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2087           genRightShift): fixed bug with non-constant bit shift stored to
2088           a volatile result (SF Open Discussion forum thread #1616749).
2089           Single byte case is not yet optimized.
2090
2091 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2092
2093         * device/include/asm/mcs51/features.h,
2094         * device/include/malloc.h,
2095         * device/include/stdio.h: changed keywords to double underscore variants,
2096           fixes bug 1590261
2097
2098 2006-11-27 Borut Razem <borut.razem AT siol.net>
2099
2100         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2101           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2102           support/cpp2/output.h, support/cpp2/cppinit.c,
2103           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2104           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2105           support/cpp2/cppdefault.c, support/cpp2/system.h,
2106           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2107           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2108           support/cpp2/prefix.c, support/cpp2/except.h,
2109           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2110           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2111           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2112           support/cpp2/version.c, support/cpp2/cppmain.c,
2113           support/cpp2/version.h, support/cpp2/hashtable.c,
2114           support/cpp2/cpperror.c:
2115           synchronized with GCC CPP release version 3.3.6,
2116           the latest where cppmain.c still exists.
2117         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2118           support/cpp2/sdcppinit.c: added
2119
2120 2006-11-27 Borut Razem <borut.razem AT siol.net>
2121
2122         * support/cpp2/cpplex.c:
2123           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2124           synchronization
2125         * support/cpp2/cpplib.c: removed definitions of unused variables
2126
2127 2006-11-26 Borut Razem <borut.razem AT siol.net>
2128
2129         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2130           since they are redefined by macros in support/cpp2/sdcc.h
2131         * support/cpp2/sdcc.h: x*alloc macro redefinition
2132
2133 2006-11-25 Borut Razem <borut.razem AT siol.net>
2134
2135         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2136           support/cpp2/configure, support/cpp2/Makefile.in,
2137           support/cpp2/cppfiles.c, support/cpp2/output.h,
2138           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2139           support/cpp2/config.h, support/cpp2/cpplib.h,
2140           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2141           support/cpp2/cppdefault.c, support/cpp2/config.in,
2142           support/cpp2/system.h, support/cpp2/cpplex.c,
2143           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2144           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2145           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2146           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2147           support/cpp2/configure.in, support/cpp2/intl.h,
2148           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2149           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2150           support/cpp2/version.c, support/cpp2/cppmain.c,
2151           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2152           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2153           support/cpp2/cpperror.c,
2154           support/cpp2/libiberty/safe-ctype.c,
2155           support/cpp2/libiberty/safe-ctype.h,
2156           support/cpp2/libiberty/splay-tree.c,
2157           support/cpp2/libiberty/obstack.c,
2158           support/cpp2/libiberty/lbasename.c,
2159           support/cpp2/libiberty/splay-tree.h,
2160           support/cpp2/libiberty/obstack.h:
2161           synchronized with GCC CPP release version 3.2.3,
2162           the latest before integration of cpp into gcc
2163         * support/cpp2/except.h, support/cpp2/line-map.c,
2164           support/cpp2/line-map.h,
2165           support/cpp2/libiberty/hex.c,
2166           support/cpp2/libiberty/concat.c,
2167           support/cpp2/libiberty/filenames.h: added
2168         * support/cpp2/intl.c: deleted
2169
2170 2006-11-24 Borut Razem <borut.razem AT siol.net>
2171
2172         * src/SDCC.y: enabled compilation of empty source file
2173         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2174           "ISO C forbids an empty source file"
2175         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2176           if all the code is ifdefed out.
2177
2178 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2179
2180         * src/hc08/gen.c (genPcall): fix for bug #1601032
2181
2182 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2183
2184         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2185         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2186         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2187         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2188         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2189         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2190         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2191         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2192         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2193         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2194         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2195         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2196         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2197         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2198         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2199           Renamed to all upper case as per the standard set by SiLabs
2200
2201 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2202
2203         * device/include/mcs51/C8051F520.h: new, added
2204         * device/include/mcs51/compiler.h: added link about predefined macros
2205
2206 2006-11-23 Raphael Neider <rneider AT web.de>
2207
2208         * src/regression/Makefile: add -L path to fresh library
2209         * src/regression/simulate: emphasize FAILED output
2210         * src/regression/create_stc: output _failures from gpsim
2211         * src/regression/compare4.c,
2212         * src/regression/rotate6.c: fixed char literals,
2213           all compile, all run =8-D
2214
2215         * src/pic/pcode.h: added isPCASMDIR macro
2216         * src/pic/gen.c (genAnd): fixed bit offset
2217         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2218           packBits): unified register numbering schemes,
2219           (newReg): do not insert stack registers into hash table,
2220           (initStack): unpinned pseudo stack, simplified,
2221           (typeRegWithIdx): fixed retrieval of stack registers,
2222         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2223           (pCodeReplace): removed invalid assertion,
2224           (insertPCodeInstruction): fixed newly added labels,
2225           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2226           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2227           DumpFlow): removed unsed (broken?) code,
2228           (insertBankSel): prevent STATUS from being BANKSELed,
2229           (FixRegisterBanking): rewritten from scratch, implemented generic
2230             optimizations (suppress BANKSELs to same register and to registers
2231             present in all banks),
2232           (AnalyzeBanking): update flow after BANKSELection
2233
2234         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2235             sharebank, let linker place it, mark STKxx symbols as emitted
2236
2237 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2238
2239         * src/regression/arrays.c,
2240         * src/regression/bank1.c,
2241         * src/regression/bool2.c,
2242         * src/regression/compare7.c,
2243         * src/regression/compare8.c,
2244         * src/regression/compare9.c,
2245         * src/regression/compare10.c,
2246         * src/regression/configword.c,
2247         * src/regression/for.c,
2248         * src/regression/mult1.c,
2249         * src/regression/pointer1.c,
2250         * src/regression/rotate6.c,
2251         * src/regression/string1.c,
2252         * src/regression/struct1.c,
2253         * src/regression/Makefile: make PIC14 regression tests run again
2254           (3 fail, 6 won't compile)
2255
2256 2006-11-21 Raphael Neider <rneider AT web.de>
2257
2258         * device/include/pic16/pic18f4550.h,
2259         * device/include/pic16/pic18f4455.h,
2260         * device/lib/pic16/libdev/pic18f4550.c,
2261         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2262         * configure.in: removed superfluous closing bracket
2263
2264 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2265
2266         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2267           always positive.
2268
2269 2006-11-21 Raphael Neider <rneider AT web.de>
2270
2271         * src/pic/device.{c,h}: added pic14_getPIC()
2272         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2273           (genAnd): added PIC code for one case, fixes #1597044
2274         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2275           SFRs that are present in all banks (e.g., STATUS)
2276
2277 2006-11-20 Raphael Neider <rneider AT web.de>
2278
2279         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2280           INCFSZ/INCFSZW and declared them as changing Z bit,
2281           (insertPCodeInstruction): correctly invert the above instructions,
2282           fixes #1599333,
2283           (DoBankSelect): don't panic on po_immediates
2284
2285 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2286
2287         * as/link/aslink.h,
2288         * as/link/mcs51/lkihx.c (newArea),
2289         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2290         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2291
2292 2006-11-11 Raphael Neider <rneider AT web.de>
2293
2294         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2295           bitfield symbols, fixes #1579535 (once more...).
2296
2297 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2298
2299         * support/regression/generate-cases.py,
2300         * support/regression/fwk/include/testfwk.h,
2301         * support/regression/fwk/lib/testfwk.c: used code pointers,
2302           (about 50kByte less code generated for mcs51)
2303
2304 2006-11-06 Borut Razem <borut.razem AT siol.net>
2305
2306         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2307           debugger/mcs51/configure: fixed failed check because the function
2308           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2309           who submitted the patch for gpsim.
2310         * debugger/mcs51/configure.in: removed the result message
2311         * debugger/mcs51/Makefile.in: fixed the config.status warning
2312           "... seems to ignore the --datarootdir setting"
2313
2314 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2315
2316         * device/include/mcs51/c8051f020.h,
2317         * device/include/mcs51/c8051f040.h,
2318         * device/include/mcs51/c8051f060.h,
2319         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2320         * src/z80/gen.c (gencjneshort),
2321         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2322
2323 2006-10-31 Borut Razem <borut.razem AT siol.net>
2324
2325         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2326           debugger/mcs51/configure: get readline version
2327
2328 2006-10-30 Borut Razem <borut.razem AT siol.net>
2329
2330         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2331         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2332           debugger/mcs51/configure: locate readline even when cross compiling
2333         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2334
2335 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2336
2337         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2338           serial port.
2339
2340 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2341
2342         * device/include/malloc.h,
2343         * device/lib/calloc.c,
2344         * device/lib/free.c,
2345         * device/lib/malloc.c,
2346         * device/lib/realloc.c: moved definition of struct into sources
2347         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2348
2349 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2350
2351         * as/asx8051.dsp: corrected output directories
2352         * as/link/hc08: new directory for hc08 linker
2353         * as/hc08/aslink.h,             as/link/aslink.h,
2354         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2355         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2356         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2357         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2358         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2359         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2360         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2361         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2362         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2363         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2364         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2365         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2366         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2367         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2368         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2369         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2370         * as/link/hc08/conf.mk,
2371         * configure,
2372         * configure.in,
2373         * Makefile.in,
2374         * sdcc.dsw: moved hc08 linker to as/link/hc08
2375         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2376         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2377         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2378         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2379         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2380         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2381         * as/link/mcs51/aslink.dsp,
2382         * as/link/mcs51/Makefile.in: factored out the common files
2383         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2384         * as/clean.mk: extra cleaning common files
2385         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2386         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2387         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2388
2389 2006-10-29 Raphael Neider <rneider AT web.de>
2390
2391         * src/pic/ralloc.c (newReg): create aliases for registers with
2392           multiple names to fix #1579535 and #1584001,
2393           (regWithIdx,dirregWithName): resolve aliases on lookup
2394         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2395           bankselect
2396         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2397           to prevent build errors on small devices
2398
2399 2006-10-28 Raphael Neider <rneider AT web.de>
2400
2401         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2402           assumption within interrupt handlers, fixes #1584940
2403         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2404           "emitted" to avoid emitting them again in udata
2405
2406 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2407
2408         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2409         Removed.
2410
2411 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2412
2413         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2414         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2415         on/off CR to CRLF conversion.
2416
2417 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2418
2419         * doc/sdccman.lyx: updated IRQ section
2420
2421 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2422
2423         * device/lib/serial_io.c: removed
2424         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2425         replacements for serial_io.c
2426
2427 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2428
2429         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2430
2431 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2432
2433         * device/lib/serial_io.c: Default putchar() and getchar() for
2434           mcs51 uses serial port.
2435
2436 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2437
2438         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2439
2440 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2441
2442         * support/regression/ports/mcs51/support.c: smaller
2443         _sdcc_external_startup()
2444         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2445
2446 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2447
2448         * device/lib/gbz80/crt0.s,
2449         * device/lib/gbz80/crt0_rle.s,
2450         * device/lib/gbz80/div.s,
2451         * device/lib/gbz80/fstubs.s,
2452         * device/lib/gbz80/heap.s,
2453         * device/lib/gbz80/mul.s,
2454         * device/lib/gbz80/putchar.s,
2455         * device/lib/gbz80/stubs.s,
2456         * device/lib/z80/crt0.s,
2457         * device/lib/z80/crt0_rle.s,
2458         * device/lib/z80/div.s,
2459         * device/lib/z80/fstubs.s,
2460         * device/lib/z80/heap.s,
2461         * device/lib/z80/mul.s,
2462         * device/lib/z80/putchar.s,
2463         * device/lib/z80/stubs.s: reverted, I was mistaken
2464
2465 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2466
2467         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2468         * support/regression/ports/mcs51/support.c: removed race
2469         condition on TI in _putchar allowing to use serial port mode 0
2470
2471 2006-10-20 Borut Razem <borut.razem AT siol.net>
2472
2473         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2474
2475 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2476
2477         * device/lib/gbz80/crt0.s,
2478         * device/lib/gbz80/crt0_rle.s,
2479         * device/lib/gbz80/div.s,
2480         * device/lib/gbz80/fstubs.s,
2481         * device/lib/gbz80/heap.s,
2482         * device/lib/gbz80/mul.s,
2483         * device/lib/gbz80/putchar.s,
2484         * device/lib/gbz80/stubs.s,
2485         * device/lib/z80/crt0.s,
2486         * device/lib/z80/crt0_rle.s,
2487         * device/lib/z80/div.s,
2488         * device/lib/z80/fstubs.s,
2489         * device/lib/z80/heap.s,
2490         * device/lib/z80/mul.s,
2491         * device/lib/z80/putchar.s,
2492         * device/lib/z80/stubs.s: removed all leading underscores from area names
2493
2494 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2495
2496         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2497           regression tests are not waiting in the simulator for simulated
2498           transmission of debug output
2499
2500 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2501
2502         * device/lib/printf_large.c: slightly smaller
2503         * doc/sdccman.lyx: do not use spaces within html links
2504
2505 2006-10-16 Borut Razem <borut.razem AT siol.net>
2506
2507         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2508           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2509           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2510           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2511           debugger/mcs51/configure:
2512           [ 1185668 ] add gnu readline support to sdcdb - enabled
2513
2514 2006-10-16 Raphael Neider <rneider AT web.de>
2515
2516         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2517           fixes #1577882, removes close to all banking optimizations
2518
2519 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2520
2521         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2522           variables in code memory
2523         * support/regression/tests/absolute.c: added test for this
2524
2525 2006-10-15 Raphael Neider <rneider AT web.de>
2526
2527         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2528           devices,
2529           (BankSelect): emit BANKSEL before touching linker-placed regs,
2530           fixes #1570934
2531
2532 2006-10-10 Raphael Neider <rneider AT web.de>
2533
2534         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2535         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2536         * src/pic/main.c (_pic14_parseOptions),
2537         * src/pic/main.h: mostly reverted to previous state, now use results
2538             from SDCCmain.c's argument parsing
2539
2540 2006-10-10 Borut Razem <borut.razem AT siol.net>
2541
2542         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2543           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2544           [ 1185668 ] add gnu readline support to sdcdb -
2545           prepared for READLINE, not enabled yet,
2546           thanks to <tal.bav AT gmail.com>
2547
2548 2006-10-10 Raphael Neider <rneider AT web.de>
2549
2550         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2551         * src/pic16/devices.inc,
2552         * device/include/pic16 (pic18f[24]620.h),
2553         * device/include/pic18fregs.h,
2554         * device/lib/pic16/pics.all,
2555         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2556             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2557             Gary Plumbridge and Anton Strobl
2558
2559 2006-10-10 Raphael Neider <rneider AT web.de>
2560
2561         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2562           --stack-siz=NUM options to configure the argument passing stack
2563         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2564         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2565           (pic14_getSharebankSize): obey --stack-siz=NUM,
2566           (pic14_getSharebankAddress): obey --stack-loc=NUM
2567
2568 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2569
2570         * doc/sdccman.lyx: added to the manual
2571         * doc/figures/ddd_example.png: added (neither pdflatex nor
2572         most browsers seem to like the .eps file)
2573
2574 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2575
2576         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2577         to /tmp and /var/tmp acc. LSB
2578         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2579         RESULT_TYPE_IFX
2580         * support/regression/tests/onebyte.c: added test
2581
2582 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2583
2584         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2585
2586 2006-10-05 Borut Razem <borut.razem AT siol.net>
2587
2588         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2589           thanks to dfulab:
2590           - sdcc.dsw: changed property eol-style to CRLF
2591           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2592
2593 2006-10-04 Raphael Neider <rneider AT web.de>
2594
2595         * device/include/pic/{pic16f84.h,pic16f84a.h},
2596         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2597           from patch #1522504, thanks to Robas Teodor
2598
2599 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2600
2601         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2602           fixes bug 1566015
2603
2604 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2605
2606         * src/pic16/glue.c (pic16emitMaps),
2607         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2608         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2609         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2610         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2611           Philipp Krause
2612         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2613         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2614
2615 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2616
2617         * support/librarian/sdcclib.c: Added option -l.
2618         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2619           usage totals.
2620         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2621           using Windows command prompt.
2622
2623 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2624
2625         * device/lib/libsdcc.lib: added module rand
2626         * src/ds390/ralloc.c (rematStr),
2627         * src/hc08/ralloc.c (rematStr),
2628         * src/mcs51/ralloc.c (rematStr),
2629         * src/z80/ralloc.c (rematStr): made output more consistent
2630         * src/mcs51/gen.c: cosmetic changes
2631
2632 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2633
2634         * src/port.h: added mem.cabs_name to PORT
2635         * src/ds390/main.c,
2636         * src/hc08/main.c,
2637         * src/mcs51/main.c,
2638         * src/pic16/main.c,
2639         * src/pic/main.c,
2640         * src/xa51/main.c,
2641         * src/z80/main.c: added cabs_name initializers
2642         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2643           constants
2644           (emitMaps): emit absolutes in code memory into cabs_name
2645         * src/SDCCmem.c,
2646         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2647         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2648         * support/regression/fwk/include/testfwk.h: added define for at
2649         * support/regression/tests/absolute.c: added, new
2650
2651 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2652
2653         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2654           optimizations, see also patch 887161 by Stas Sergeev
2655         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2656           to be necessary anymore,
2657           (102, 103, 104, 127): renamed all occurances of bp to _bp
2658
2659 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2660
2661         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2662           thanks Weston T. Schmidt for patch 1555221
2663         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2664         * src/SDCCicode.c(geniCodeMultiply): small optimization
2665
2666 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2667
2668         * device/include/stdlib.h: added rand prototypes
2669         * device/lib/rand.c: new, added
2670         * device/lib/Makefile.in: added rand.c
2671         * src/z80/peeph.def,
2672         * src/z80/peeph-gbz80.def,
2673         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2674
2675 2006-09-20 Raphael Neider <rneider AT web.de>
2676
2677         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2678
2679 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2680
2681         * as/link/aslink.h: cosmetic changes
2682         * as/link/mcs51/Makefile.in,
2683         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2684
2685 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2686
2687         * as/link/aslink.h,
2688         * as/link/mcs51/aslink.h,
2689         * as/link/z80/aslink.h: merged and moved to as/link/
2690         * as/link/lkstore.c,
2691         * as/link/mcs51/lkstore.c: moved to as/link/
2692         * as/link/clean.mk: remove *.o
2693         * as/link/mcs51/alloc.h: deleted
2694         * as/link/mcs51/lkarea.c: added lnksect prototype
2695         * as/link/mcs51/lkdata.c,
2696         * as/link/mcs51/lklex.c,
2697         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2698         * as/link/mcs51/lkmem.c,
2699         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2700         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2701         * as/link/mcs51/aslink.dsp,
2702         * as/link/mcs51/Makefile.aslink,
2703         * as/link/mcs51/Makefile.bcc,
2704         * as/link/mcs51/Makefile.in: updated for moved files
2705         * as/link/z80/lkarea.c,
2706         * as/link/z80/lkhead.c,
2707         * as/link/z80/lklex.c,
2708         * as/link/z80/lklibr.c,
2709         * as/link/z80/lklist.c,
2710         * as/link/z80/lkmain.c,
2711         * as/link/z80/lkrloc.c,
2712         * as/link/z80/lksym.c: synced with mcs51
2713         * as/link/z80/lkdata.c,
2714         * as/link/z80/lkeval.c,
2715         * as/link/z80/lkihx.c,
2716         * as/link/z80/lks19.c: cosmetic changes
2717         * as/link/z80/Makefile.in,
2718         * as/link/z80/linkgbz80.dsp,
2719         * as/link/z80/linkz80.dsp: updated for moved files
2720
2721 2006-09-16 Borut Razem <borut.razem AT siol.net>
2722
2723         * debugger/mcs51/sdcdb.c: partially fixed
2724           [ 1203664 ] sdcdb fails to open files w. two "." periods
2725         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2726           debugger/mcs51/symtab.h: fixed indenting
2727         * configure.in, configure: up to date with latest Maarten's changes
2728
2729 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2730
2731         as/link/mcs51
2732         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2733         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2734         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2735         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2736         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2737         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2738         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2739         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2740         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2741         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2742         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2743         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2744         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2745         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2746         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2747         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2748         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2749         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2750         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2751         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2752         as/link/mcs51/alloc.h,
2753         as/link/mcs51/clean.mk,
2754         as/link/mcs51/conf.mk,
2755         as/link/mcs51/Makefile.bcc,
2756         as/link/mcs51/Makefile.in,
2757         as/link/mcs51/readme.390,
2758         as/link/mcs51/strcmpi.c,
2759         as/link/mcs51/strcmpi.h,
2760         as/mcs51/clean.mk,
2761         as/mcs51/Makefile.bcc,
2762         as/mcs51/Makefile.in,
2763         configure,
2764         Makefile.in,
2765         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2766
2767 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2768
2769         * as/link,
2770         * as/link/Makefile.in,
2771         * as/link/z80/linkgbz80.dsp,
2772         * as/link/z80/linkz80.dsp,
2773         * configure,
2774         * link,
2775         * link/clean.mk,
2776         * link/Makefile.in,
2777         * link/README,
2778         * link/z80,
2779         * link/z80/aslink.h,
2780         * link/z80/clean.mk,
2781         * link/z80/conf.mk,
2782         * link/z80/linkgbz80.dsp,
2783         * link/z80/linkz80.dsp,
2784         * link/z80/lkarea.c,
2785         * link/z80/lkdata.c,
2786         * link/z80/lkeval.c,
2787         * link/z80/lkgb.c,
2788         * link/z80/lkgg.c,
2789         * link/z80/lkhead.c,
2790         * link/z80/lkihx.c,
2791         * link/z80/lklex.c,
2792         * link/z80/lklibr.c,
2793         * link/z80/lklist.c,
2794         * link/z80/lkmain.c,
2795         * link/z80/lkrloc.c,
2796         * link/z80/lks19.c,
2797         * link/z80/lksym.c,
2798         * link/z80/Makefile.in,
2799         * Makefile.in,
2800         * sdcc.dsw: moved link/ to as/link/
2801
2802 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2803
2804         * as/mcs51/i51mch.c (machine): fixed warning
2805
2806 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2807
2808         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2809
2810 2006-09-09 Borut Razem <borut.razem AT siol.net>
2811
2812         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2813           sdcdb WIN32 native port
2814         * src/clean.mk: fixed
2815
2816 2006-09-08 Borut Razem <borut.razem AT siol.net>
2817
2818         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2819
2820 2006-09-08 Raphael Neider <rneider AT web.de>
2821
2822         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2823         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2824             to gplink to disable processor mismatch warning and to allow
2825             the use of devices with only aliased (shared) memory banks,
2826           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2827
2828 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2829
2830         * doc/sdccman.lyx: Some re-formating plus example on using
2831           #pragma preproc_asm +/-
2832
2833 2006-09-07 Borut Razem <borut.razem AT siol.net>
2834
2835         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2836           section
2837
2838 2006-09-06 Borut Razem <borut.razem AT siol.net>
2839
2840         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2841           line at sdcc.nsi:153
2842         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2843
2844 2006-09-05 Borut Razem <borut.razem AT siol.net>
2845
2846         * configure.in, configure: support for winsock2
2847         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2848           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2849           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2850           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2851           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2852
2853 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2854
2855         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2856           and OP_DEFS
2857         * support/regression/tests/bug1551947.c: new, added
2858         * src/SDCCsymt.h: strings are char* not byte*
2859
2860 2006-09-05 Raphael Neider <rneider AT web.de>
2861
2862         * device/lib/pic16/libdev/pic18f4550.c,
2863           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2864             declarations/definitions from patch #1520949
2865
2866 2006-09-05 Raphael Neider <rneider AT web.de>
2867
2868         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2869           byte-aligned bitfields, fixes #1539278
2870
2871 2006-09-05 Raphael Neider <rneider AT web.de>
2872
2873         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2874           fixes #1544120
2875
2876 2006-09-04 Borut Razem <borut.razem AT siol.net>
2877
2878         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2879         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2880           -mno-cygwin is a part of the compiler name
2881         * support/scripts/sdcc_mingw32: don't disable ucsim
2882
2883 2006-09-03 Borut Razem <borut.razem AT siol.net>
2884
2885         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2886         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2887
2888 2006-09-03 Raphael Neider <rneider AT web.de>
2889
2890         * src/pic/ralloc.c,
2891         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2892           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2893           fixes #1550049
2894
2895 2006-09-01 Borut Razem <borut.razem AT siol.net>
2896
2897         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2898           to make ppc-osx happy
2899
2900 2006-08-31 Borut Razem <borut.razem AT siol.net>
2901
2902         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2903         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2904         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2905         * support/regression/ports/ds390/spec.mk,
2906           support/regression/ports/mcs51/spec.mk,
2907           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2908           To run regression tests in mingw environment:
2909           make DEV_NULL=NUL CC=gcc
2910
2911 2006-08-30 Borut Razem <borut.razem AT siol.net>
2912
2913         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2914           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2915           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2916           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2917           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2918           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2919           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2920           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2921           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2922           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2923           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2924           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2925           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2926           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2927           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2928           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2929           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2930           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2931           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2932           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2933           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2934           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2935           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2936           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2937           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2938           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2939           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2940           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2941           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2942           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2943           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2944           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2945           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2946           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2947           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2948           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2949           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2950           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2951           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2952           ucsim WIN32 native port
2953
2954 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2955
2956         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2957
2958 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2959
2960         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2961         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2962
2963 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2964
2965         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2966         * support/regression/tests/bug1546986.c: new, added
2967         * as/mcs51/.cvsignore,
2968         * debugger/mcs51/.cvsignore,
2969         * src/.cvsignore: deleted
2970
2971 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2972
2973         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2974           definitions)
2975
2976 2006-08-20 Borut Razem <borut.razem AT siol.net>
2977
2978         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2979           removed cl_listen_console::match(), cl_console::match(),
2980           restructured cl_commander::proc_input()
2981
2982 2006-08-16 Borut Razem <borut.razem AT siol.net>
2983
2984         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2985           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2986           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2987
2988 2006-08-14 Borut Razem <borut.razem AT siol.net>
2989
2990         * support/regression/Makefile.in,
2991           support/regression/ports/pic14/gpsim.cmd,
2992           support/regression/ports/pic14/spec.mk,
2993           support/regression/ports/pic14/support.c:
2994           added pic14 regression test
2995
2996 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2997
2998         * as/doc/asxhtm.html: documented changed ABS behaviour
2999         * as/doc/README: fixed some typos
3000
3001 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3002
3003         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3004           not defined on host
3005
3006 2006-08-12 Borut Razem <borut.razem AT siol.net>
3007
3008         * support/regression/fwk/include/testfwk.h,
3009           support/regression/fwk/lib/testfwk.c,
3010           support/regression/generate-cases.py,
3011           support/regression/Makefile.in:
3012           regression test framework does not depend on function pointers and
3013           variable arguments
3014
3015 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3016
3017         * device/include/stddef.h: c temporary hack to fix bug 1518273
3018
3019 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3020
3021         * device/include/mcs51/cc2510fx.h: added
3022         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3023           to projects.
3024
3025 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3026
3027         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3028         * as/z80/Makefile.in: added strcmpi.c
3029         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3030         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3031
3032 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3033
3034         * device/lib/gbz80/asm_strings.s,
3035         * device/lib/gbz80/crt0_rle.s,
3036         * device/lib/gbz80/div.s,
3037         * device/lib/gbz80/mul.s,
3038         * device/lib/gbz80/shift.s,
3039         * device/lib/z80/asm_strings.s,
3040         * device/lib/z80/crt0_rle.s,
3041         * device/lib/z80/div.s,
3042         * device/lib/z80/mul.s,
3043         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3044           flags which are all upper case
3045
3046 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3047
3048         * as/z80/asm.h: made CASE_SENSITIVE 1
3049         * link/z80/aslink.h: made CASE_SENSITIVE 1
3050         * src/z80/gen.c (throughout): made all conditionals upper case
3051         * support/regression/tests/bug1503067.c: new
3052
3053 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3054
3055         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3056           (shiftIntoPair): added case 2 for PAIR_IY,
3057           (setupToPreserveCarry): replaced parameters with iCode and check if
3058            PAIR_DE is in use to fix bug 1399290,
3059           (genPlus, genMinus): updated call to setupToPreserveCarry
3060         * support/regression/tests/bug1399290.c: new
3061
3062 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3063
3064         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3065         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3066         * src/ds390/gen.c (shiftRLong),
3067         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3068         * src/mcs51/gen.c (sameReg): changed to sameByte,
3069           (xch_a_aopGet): new,
3070           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3071            shiftRLong): fixed bug 1533966
3072         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3073           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3074         * support/regression/Makefile.in: disabled z80, enabled ucz80
3075         * support/regression/tests/float_trans.c: enabled test for z80 and host
3076         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3077
3078 2006-08-01 Borut Razem <borut.razem AT siol.net>
3079
3080         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3081           comparison is always false due to limited range of data type
3082           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3083
3084 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3085
3086         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3087         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3088         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3089         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3090
3091 2006-07-31 Borut Razem <borut.razem AT siol.net>
3092
3093         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3094           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3095           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3096           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3097           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3098           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3099           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3100           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3101           enable ucsim mingw compilation. Serial port is disabled,
3102           since it uses termios.h API, which is not available on native
3103           WIN32
3104
3105 2006-07-31 Borut Razem <borut.razem AT siol.net>
3106
3107         * Small Device C Compiler 2.6.0 released
3108         * support/scripts/sdcc.nsi: added FULL_DOC option
3109         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3110
3111 2006-07-28 Borut Razem <borut.razem AT siol.net>
3112
3113         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3114         * doc/INSTALL.txt: updated
3115
3116 2006-07-27 Borut Razem <borut.razem AT siol.net>
3117
3118         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3119           device/lib/pic/libdev/Makefile.in: fixed bug
3120           [ 1438354 ] pic libsdcc: distclean doesn't work
3121         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3122           device/lib/pic16/libio/Makefile.in: fixed bug
3123           [ 1438344 ] pic16 lib: clean doesn't work properly
3124         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3125
3126 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3127
3128         * device/lib/pic/libsdcc/fsdiv.c,
3129         * device/lib/pic/libsdcc/fsmul.c,
3130         * device/lib/pic16/libsdcc/float/fsdiv.c,
3131         * device/lib/pic16/libsdcc/float/fsmul.c,
3132         * device/lib/_fsdiv.c,
3133         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3134         * support/regression/tests/bug1520966.c: added
3135         * doc/knownbugs.html: removed [ 1520966 ] from the list
3136
3137 2006-07-25 Borut Razem <borut.razem AT siol.net>
3138
3139         * configure.in, configure, sdccconf_in.h: fixed bug
3140           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3141         * doc/knownbugs.html: removed [ 1519095 ] from the list
3142
3143 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3144
3145         * doc/knownbugs.html: added, contains list of known bugs at release
3146         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3147
3148 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3149
3150         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3151           function registers and corrected defaults with additional warning
3152         * device/lib/malloc.c: cosmetic changes
3153         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3154         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3155           (fillGaps): and used it
3156
3157 2006-07-20 Raphael Neider <rneider AT web.de>
3158
3159         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3160           output unless SDCCPICDEBUG is set
3161         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3162           output if SILENT is set
3163
3164 2006-07-11 Borut Razem <borut.razem AT siol.net>
3165
3166         * doc/README.txt: updated
3167
3168 2006-07-10 Borut Razem <borut.razem AT siol.net>
3169
3170         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3171           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3172           in WIN32 installation
3173         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3174           release candidate 1
3175
3176 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3177
3178         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3179         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3180
3181 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3182
3183         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3184
3185 2006-07-06 Borut Razem <borut.razem AT siol.net>
3186
3187         * support/regression/tests/bitfields.c:
3188           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3189         * support/regression/tests/constantRange.c:
3190           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3191
3192 2006-07-04 Borut Razem <borut.razem AT siol.net>
3193
3194         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3195           src/port.mk,
3196           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3197           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3198           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3199           reverted changes from 2006-07-03
3200         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3201         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3202           added CPPFLAGS, used by the host port
3203
3204 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3205
3206         * support/regression/valdiag/tests/switch.c,
3207         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3208         * support/regression/tests/libmullong.c: fixed for host
3209         * support/regression/ports/host/spec.mk: disable all warnings for host,
3210         SDCC runs with --less-pedantic too
3211
3212 2006-07-03 Borut Razem <borut.razem AT siol.net>
3213
3214         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3215           defined CPPFLAGS
3216         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3217         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3218           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3219           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3220           include ../port.mk
3221         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3222           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3223           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3224           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3225
3226 2006-07-02 Raphael Neider <rneider AT web.de>
3227
3228         * src/pic16/devices.inc,
3229         * device/include/pic16/pic18fregs.h,
3230         * device/include/pic16/pic18f4550.h,
3231         * device/lib/pic16/pics.all,
3232         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3233
3234 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3235
3236         * as/hc08/lkaomf51.c (OutputName),
3237         * as/mcs51/lkaomf51.c (OutputName),
3238         * as/z80/asmain.c (asmbl),
3239         * src/ds390/main.c (asmLineNodeFromLineNode),
3240         * src/hc08/ralloc.c (hc08_assignRegisters),
3241         * src/mcs51/main.c (asmLineNodeFromLineNode),
3242         * src/xa51/ralloc.c (checkRegMask),
3243         * src/xa51/gen.c (emitcode),
3244         * src/z80/gen.c (_emit2),
3245         * src/SDCCast.c (searchLitOp),
3246         * src/SDCCglobl.h,
3247         * support/packihx/packihx.c,
3248         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3249         * src/ds390/gen.c (aopPutUsesAcc),
3250         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3251         * support/regression/tests/libmullong.c (mullong_wrapper),
3252         * src/SDCCsymt.c (powof2),
3253         * src/SDCCast.c,
3254         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3255         * src/SDCCsymt.h: added TYPE_TARGET_*
3256         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3257         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3258         SDCCast because 1) header problems 2) this is the right place
3259         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3260         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3261         prototype
3262
3263 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3264
3265         * src/SDCCicode.h: removed buggy semicolon in unused macro
3266         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3267         search for previous definiton of auto symbols too,
3268         (findPrevUse): fixed logic of emitWarnings
3269
3270 2006-06-26 Raphael Neider <rneider AT web.de>
3271
3272         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3273           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3274
3275 2006-06-25 Raphael Neider <rneider AT web.de>
3276
3277         * device/lib/pic/libm: NEW, added math library functions
3278         * device/lib/pic/libsdcc: NEW; added float support functions
3279         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3280         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3281           NEW, added math related headers
3282         * device/include/asm/pic/features.h: NEW
3283         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3284           (popGet): allow larger offsets for AOP_PCODE,
3285           (genDataPointerSet): handle literals explicitly, more debug output,
3286           (genAssign): fixed for float using aopLiteral ;-)
3287         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3288           GOTO initialisation routine
3289         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3290           flag on registers, fixes #1469043 (local variables do not work)
3291         * src/pic/main.c (_pic14_do_link),
3292         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3293           available
3294
3295 2006-06-25 Borut Razem <borut.razem AT siol.net>
3296
3297         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3298           characters printed (not including the trailing '\0' used to end
3299           output to strings). Problem detected in regression test bug-927659.c.
3300           NOTE: printf() family functions should return int instead
3301           unsigned int!
3302         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3303           specifier are printed as themselves
3304         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3305           support flags, width and precision specifiers
3306
3307 2006-06-24 Borut Razem <borut.razem AT siol.net>
3308
3309         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3310           to the list of sdcc tagrets not supporting bit type
3311         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3312           testfor pic16 due to bug:
3313           [ 1511794 ] pic16: regression test bug-895992.c fails
3314
3315 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3316
3317         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3318         * src/SDCCglue.c (initPointer), fixed bug 1496419
3319         * support/regression/tests/bug1496419.c: new, added
3320
3321 2006-06-22 Borut Razem <borut.razem AT siol.net>
3322
3323         * support/regression/ports/pic16/support.c: use gpsim usart module from
3324           libgpsim_modules library
3325
3326 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3327
3328         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3329         IP0H to IPH0.
3330
3331 2006-06-19 Raphael Neider <rneider AT web.de>
3332
3333         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3334         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3335           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3336           (pic14printExterns,pic14printPublics,pic16printPublics,
3337           pic16_printExterns): use new functions to emit symbols
3338           (picglue,pic16glue): emit publics before emitting externs
3339         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3340           locally defined functions to avoid bug #1443651
3341         * support/regression/tests/bug-716242.c: removed pic16 workaround
3342         * support/regression/ports/pic16/spec.mk: ignore errors during build
3343
3344 2006-06-19 Raphael Neider <rneider AT web.de>
3345
3346         * src/pic/glue.h: added pic14aopLiteral prototype
3347         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3348         * src/pic/gen.c: removed stdint.h dependency
3349           (aopGet): use Safe_strdup()
3350           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3351           (genDataPointerSet): use pic14aopLiteral()
3352         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3353           for pic16; thanks to Bernhard and Maarten
3354
3355 2006-06-18 Borut Razem <borut.razem AT siol.net>
3356
3357         * support/regression/tests/structflexarray.c: flexible array members
3358           not supported by gcc < 3
3359         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3360           GUI tool by default
3361         * src/pic/gen.c: don't include [p]strdin.h on solaris
3362         * support/Util/pstdint.h: addad svn attributes
3363         * support/regression/tests/constantRange.c,
3364           support/regression/tests/rotate.c: include inttypes.h instead
3365           stdint.h on solaris, addad svn attributes
3366
3367 2006-06-18 Raphael Neider <rneider AT web.de>
3368
3369         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3370           int for PIC16
3371         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3372           (pic16_genMinusBits): simplified sign-extension
3373           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3374             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3375             adjusted to correctly handle mixed-signed operands, disabled
3376             now unused multiplciation routines
3377         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3378           (assignResultValue): added argument denoting the size of the result
3379             as returned by the function (fixes upcasts in assigning from
3380             function calls: char foo(); int i = foo();)
3381           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3382             function result to assignResultValue
3383           (genMult): disabled inlined multiplication code
3384           (genDiv): augmented to also handle the modulus operator, fixed to
3385             handle mixed-signed operands correctly
3386           (genMod): simply call genDiv, disabled unused code
3387           (genAssign): fixed missing (sign-)extension on result
3388         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3389             valid char operands, allow signed operands for native code, added
3390             division and modulo operator handling
3391         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3392
3393         As a consequence, onebyte.c (if split into two files) and muldiv.c
3394         pass regression tests.
3395
3396 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3397
3398         * doc/Makefile.in: two runs of makeindex seem needed to get
3399         correct page references in the index of sdccman.pdf
3400         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3401
3402 2006-06-17 Borut Razem <borut.razem AT siol.net>
3403
3404         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3405
3406 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3407
3408         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3409         mentioned ec2drv and paulmon
3410
3411 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3412
3413         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3414           consecutive abs areas
3415           (find_empty_space, allocate_space): added map to handle codemap or
3416            xdatamap,
3417           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3418            absolute idata and xdata
3419         * as/mcs51/lkmem.c (summary2): updated legend
3420
3421 2006-06-16 Raphael Neider <rneider AT web.de>
3422
3423         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3424
3425 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3426
3427         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3428           1208515
3429         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3430
3431 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3432
3433         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3434         value of generic pointers,
3435         * src/avr/main.c,
3436           src/ds390/main.c,
3437           src/hc08/main.c,
3438           src/izt/i186.c,
3439           src/izt/tlcs900h.c,
3440           src/mcs51/main.c,
3441           src/pic/main.c,
3442           src/pic16/main.c,
3443           src/xa51/main.c,
3444           src/z80/main.c: PORT structure, added elements for gp_tags field,
3445         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3446         fields in the PORT structure of each port,
3447         * src/SDCCast.c (decorateType): allow processing of generic pointers
3448         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3449         S_FIXED symbols
3450
3451 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3452
3453         * link/z80/lkgb.c,
3454         * link/z80/lkgg.c,
3455         * src/pic16/gen.c,
3456         * src/pic16/main.c,
3457         * src/pic16/pcode.c,
3458         * src/pic/main.c,
3459         * src/pic/pcoderegs.c,
3460         * src/SDCCicode.c,
3461         * src/SDCCmain.c,
3462         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3463           bug 1504689 on minGW
3464
3465 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3466
3467         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3468
3469 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3470
3471         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3472
3473 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3474
3475         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3476           for optimization
3477
3478 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3479
3480         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3481         to a char variable. Fixed bug #1504211
3482         * device/include/pic16/adc.h,
3483         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3484         and fixed bug #1364390
3485
3486 2006-06-10 Borut Razem <borut.razem AT siol.net>
3487
3488         * CVSROOT: removed the CVS left-over
3489
3490 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3491
3492         * as/hc08/asmain.c (asexit),
3493         * as/hc08/lkmain.c (lkexit),
3494         * as/mcs51/asmain.c (asexit),
3495         * as/mcs51/lkmain.c (lkexit),
3496         * src/SDCCglue.c (DEFSETFUNC),
3497         * src/SDCCmain.c (linkEdit, assemble),
3498         * support/librarian/sdcclib.c (AddRel),
3499           replaced unlink() by standard C remove()
3500         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3501         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3502           gatherImplicitVariables): new, added to fix bug 608752,
3503           (createFunction): added gatherImplicitVariables()
3504         * src/SDCCast.h: added createRMW prototype
3505         * src/SDCCsymt.h (struct symbol): added infertype
3506         * support/regression/tests/bug608752.c: new, added
3507
3508 2006-06-10 Raphael Neider <rneider AT web.de>
3509
3510         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3511           multibyte dummy reads (fixes #1503234)
3512
3513 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3514
3515         * device/include/mcs51/compiler.h: new, added header file to enable
3516           creating common sfr definition header files for different compilers
3517
3518 2006-06-05 Raphael Neider <rneider AT web.de>
3519
3520         * src/pic16/{pcode.h,genarith.c}:
3521           introduced pCodeOp combining any two pCodeOps (previously only
3522           two register operands could be combined), removed pcop2 from
3523           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3524         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3525         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3526           rewritten to use new PO_TWO_OPS
3527         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3528         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3529           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3530           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3531           (pic16_get_op): embraced return arg to allow #define return(x),
3532             added new case for combined opcodes
3533           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3534           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3535            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3536
3537 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3538
3539         * src/SDCCval.c (checkConstantRange): added
3540         * src/SDCCval.h: added checkConstantRange
3541         * support/Util/SDCCerr.c,
3542         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3543         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3544         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3545         * src/SDCCast.c (decorateType): added checkConstantRange,
3546         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3547         can be emitted with the correct always true/false warning,
3548         added optimization for double '!';
3549         result of decorateType() must be assigned back to the tree, because
3550         decorateType() can change the tree
3551         * src/SDCCicode.c (geniCodeLogic),
3552         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3553         (checkConstantRange): removed, it was only a fragment which never
3554         emitted a warning
3555         * src/SDCCsymt.c (computeType): fixed promotion for
3556         "-1 < (unsigned bit) b"
3557         * src/pic/ralloc.c (packRegsForAssign),
3558         * src/pic16/ralloc.c (packRegsForAssign),
3559         * src/hc08/ralloc.c (packRegsForAssign),
3560         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3561         from mcs51
3562         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3563         * support/regression/tests/constantRange.c: added
3564         * support/valdiag/tests/constantRange.c: added
3565         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3566
3567 2006-06-02 Borut Razem <borut.razem AT siol.net>
3568
3569         * support/regression/ports/pic16/support.c: increase stack size
3570           to 255 bytes
3571         * support/regression/Makefile.in: sort tests by name so that the
3572           resutlts can be compared on different machines / platforms
3573
3574 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3575
3576         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3577         * src/ds390/gen.c (emitLabel): new, added,
3578           (genDjnz): fixed stack overflow bug,
3579           (throughout): cosmetic changes to sync with mcs51/gen.c,
3580           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3581         * src/mcs51/gen.c (genEndFunction): small optimization,
3582           (throughout): cosmetic changes to sync with ds390/gen.c
3583
3584 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3585
3586         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3587           (_print_format): fixed printing pointers
3588         * src/mcs51/gen.c (emitLabel, movb): new, added,
3589           (genAssign): small optimization,
3590           (genDjnz): fixed stack overflow bug,
3591           (throughout): replaced sprintf with SNPRINTF,
3592           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3593           replaced emitcode("mov", "b,...") with MOVB(...),
3594           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3595           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3596         * src/mcs51/peeph.def: added rules 140 and 264
3597         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3598           so they may get optimized into registers
3599
3600 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3601
3602         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3603           immediately when encountered,
3604           (printUsage): always use stderr even on windows
3605
3606 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3607
3608         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3609         (processParms): fixed bug #1247551
3610         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3611         parseCmdLine, main): print '--version' to stdout,
3612         print 'help' to stdout if --help is given,
3613         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3614         arguments are given; fixed --help
3615
3616 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3617
3618         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3619         * support/regression/tests/bug-1493710.c: added
3620
3621 2006-05-27 Borut Razem <borut.razem AT siol.net>
3622
3623         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3624           static instead auto
3625         * support/regression/ports/pic16/support.c: increase stack size
3626           from default 64 bytes to 128 bytes
3627         * support/regression/tests/staticinit.c,
3628           support/regression/tests/float.c: regression tests fully enabled
3629           for pic16 port by putting the initialized data arrays into the code
3630           section
3631         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3632           This was changed by mistake in the previous version.
3633
3634 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3635
3636         * src/pic16/gen.c (genFunction, genEndFunction): some
3637         beautifications, fixed bug with falsely restoring FSR2 in large
3638         stack model, thanks to Beau E. Cox for reporting the bug
3639
3640 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3641
3642         * debugger/mcs51/break.c,
3643         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3644           use %p to print pointers, made address variables unsigned
3645         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3646         * debugger/mcs51/symtab.c (parseSymbol): must return something
3647         * src/mcs51/gen.c (aopForSym): small optimization,
3648            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3649           (freeAsmop): added missing break,
3650           (aopPut): removed parameter bvolatile, determine it inside the function,
3651           (saveRegisters, unsaveRegisters): small optimization,
3652           (genIpush): removed pointless check,
3653           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3654           replaced sprintf with SNPRINTF,
3655           replaced strcpy with strncpyz,
3656           updated aopPut calls,
3657           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3658         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3659
3660 2006-05-24 Borut Razem <borut.razem AT siol.net>
3661
3662         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3663           modification of test for the pic16 port, put the array to the code
3664           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3665
3666 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3667
3668         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3669         * support/Util/pstdint.h: added
3670
3671 2006-05-22 Borut Razem <borut.razem AT siol.net>
3672
3673         * src/regression/Makefile: removed bool2.c test, added -q linker option
3674         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3675           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3676           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3677           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3678           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3679           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3680           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3681           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3682           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3683
3684 2006-05-22 Raphael Neider <rneider AT web.de>
3685
3686         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3687           bug #1492360 (problematic due to generic pointers, see code)
3688
3689 2006-05-22 Borut Razem <borut.razem AT siol.net>
3690
3691         * support/regression/ports/pic16/specs.mk: removed stack size linker
3692           directive
3693         * support/regression/tests/array.c,
3694           support/regression/tests/bitopcse.c,
3695           support/regression/tests/bug-908454.c,
3696           support/regression/tests/malloc.c: modified for pic16 regression test
3697         * support/regression/tests/bitfields.c:
3698           pic16 - excluded bitfileds of size > 8
3699         * support/regression/tests/bp.c: pic16 - reduced data size
3700         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3701         * support/regression/tests/bug-460010.c:
3702           pic16 - used the absolute address the fits in memory
3703         * support/regression/tests/bug-716242.c:
3704           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3705         * support/regression/tests/float.c:
3706           pic16 - excluded - data size too big
3707         * support/regression/tests/onebyte.c:
3708           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3709         * support/regression/tests/shifts.c:
3710           pic16 - function names probably have to differ in first X characters
3711           (gpasm limitation?)
3712         * support/regression/tests/staticinit.c:
3713           pic16 - excluded some tests due error: no target memory available for
3714           section ".idata"
3715
3716 2006-05-22 Borut Razem <borut.razem AT siol.net>
3717
3718         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3719           second try. Thanks Stas Sergeev once more.
3720
3721 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3722
3723         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3724           (genLeftShift, genRightShift): fixed bug 1491627
3725         * src/hc08/peeph.def (rules 7, 8.x): added
3726         * support/regression/tests/shifts.c (ShiftLeftByParam,
3727           ShiftRightByParam, testShiftByParam): added to test variable shifting
3728
3729 2006-05-20 Raphael Neider <rneider AT web.de>
3730
3731         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3732         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3733           (allocReg): add only new registers to dynAllocRegs,
3734           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3735             #1489055, #1445850, and probably #1483693
3736
3737 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3738
3739         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3740         bug in for-loop that didn't emit the last of CONFIG and ID registers
3741
3742 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3743
3744         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3745           with offset
3746         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3747           1489016, 1434401 and 1490124
3748         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3749           1489016, 1434401 and 1490124
3750
3751 2006-05-17 Borut Razem <borut.razem AT siol.net>
3752
3753         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3754           thanks Stas Sergeev
3755
3756 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3757
3758         * device/include/mcs51/P89c51RD2.h,
3759         * device/include/mcs51/P89LPC901.h,
3760         * device/include/mcs51/P89LPC922.h,
3761         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3762
3763 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3764
3765         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3766         to fix missing stack pragma in compiled binary object file,
3767
3768 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3769
3770         * support/packihx/configure.in,
3771         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3772         determine sizeof basic types even while cross compiling
3773
3774 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3775
3776         * src/avr/gen.c (aopop),
3777         * src/ds390/gen.c (aopOp),
3778         * src/hc08/gen.c (aopOp),
3779         * src/mcs51/gen.c (aopop),
3780         * src/pic16/gen.c (pic16_aopOp),
3781         * src/pic/gen.c (aopOp),
3782         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3783         if size of operand is smaller than spill location
3784
3785 2006-05-12 Borut Razem <borut.razem AT siol.net>
3786
3787         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3788           have to have CR/LF line endings even if they are checked out on *nix
3789           or on WIN32 in cygwin binmode
3790
3791 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3792
3793         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3794         * device/include/ds80c390.h: added sfr16 definitions
3795         * src/ds390/gen.c,
3796         * src/ds390/gen.h,
3797         * src/ds390/main.c,
3798         * src/ds390/ralloc.c,
3799         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3800           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3801           bit returning functions
3802         * support/regression/tests/sfr16.c: enabled test on ds390
3803
3804 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3805
3806         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3807         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3808
3809 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3810
3811         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3812         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3813           (cl_address_space constructor): removed expensive initialization,
3814           (cl_address_space::get_cell): extended for late initialization,
3815           (cl_address_space::*): use late initialization,
3816           (cl_address_decoder::activate): removed expensive initialization,
3817           This reduced regression test running time by 25%
3818
3819 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3820
3821         * packihx/,
3822         * configure.in,
3823         * configure,
3824         * sdcc.dsw,
3825         * Makefile.bcc,
3826         * Makefile.in,
3827         * support/packihx/Makefile.in,
3828         * support/packihx/clean.mk,
3829         * support/packihx/Makefile.bcc,
3830         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3831
3832 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3833
3834         * src/SDCCval.c (valNot): fix for regression test failure
3835           of not.c on big endian hosts
3836
3837 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3838
3839         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3840
3841 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3842
3843         * device/lib/mcs51/Makefile.in: changed string comparison operator
3844           to = for POSIX compliance; == is bash extension
3845
3846 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3847
3848         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3849           kosmonaut_pirx
3850
3851 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3852
3853         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3854         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3855         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3856         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3857         bug report #1478657,
3858
3859 2006-05-05 Borut Razem <borut.razem AT siol.net>
3860
3861         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3862           making the html
3863
3864 2006-05-02 Borut Razem <borut.razem AT siol.net>
3865
3866         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3867           create *.ind, which made make to fail if invoked with -j 2
3868
3869 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3870
3871         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3872           Hubert Sack for patch 1479782
3873
3874 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3875
3876         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3877
3878 2006-05-01 Raphael Neider <rneider AT web.de>
3879
3880         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3881           (create_pic): store only prefix-free device name,
3882           (init_pic): check for device names with "16" prefix,
3883           (list_valid_pics),
3884         * src/pic/device.h (struct PIC_device),
3885         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3886             stored device name,
3887         * device/include/pic/pic12f{635,675,629,683}.h,
3888         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3889         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3890         * device/include/pic/pic16f505.h,
3891         * device/lib/pic/libdev/pic16f505.c: removed
3892         * device/include/pic/pic14devices.txt: added support for pic12f
3893             devices, removed unsupported non 16-bit devices
3894             [above changes provided by patch from Zik Saleeba]
3895         * src/pic/*, src/pic16/*, device/include/pic16/*,
3896           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3897
3898 2006-05-01 Borut Razem <borut.razem AT siol.net>
3899
3900         * configure.in, configure, doc/Makefile.in:
3901           sync with nightly build makefile - latex, dvipdf and dvips
3902           not needed any more
3903
3904 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3905
3906         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3907         in the library source
3908
3909 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3910
3911         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3912
3913 2006-04-28 Raphael Neider <rneider AT web.de>
3914
3915         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3916         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3917           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3918         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3919
3920 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3921
3922         * device/lib/pic/libdev/Makefile.in,
3923         * device/lib/hc08/Makefile.in,
3924         * device/lib/gbz80/Makefile.in,
3925         * device/lib/z80/Makefile.in,
3926         * device/lib/ds390/Makefile.in,
3927         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3928         thanks to Borut for the bug report
3929         * configure.in,
3930         * configure: always create doc/Makefile independent from --enable-doc
3931         * Makefile.in: always install from directory doc independent from
3932         --enable-doc
3933         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3934         removed
3935         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3936         * doc/Makefile.in: install *.txt if present
3937         * device/include/Makefile.in (install): added installation of pic/*.inc
3938         and pic/*.txt files again, they were erroneously removed
3939
3940 2006-04-28 Raphael Neider <rneider AT web.de>
3941
3942         * src/pic/{gen.c,main.h,pcode.c},
3943         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3944             concerning signedness with casts
3945
3946 2006-04-28 Raphael Neider <rneider AT web.de>
3947
3948         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3949             definition of an interrupt handler,
3950         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3951             interrupt handler stuff from picglue() to separate routine,
3952           (picglue): enabled definition of intr handlers in files w/o main()
3953
3954 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3955
3956         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3957           compilation with MSVC 2005 Express Edition (VC8)
3958
3959 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3960
3961         * device/lib/Makefile: fixed build of gbz80 lib
3962
3963 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3964
3965         * support/regression/tests/bug-460010.c,
3966         * support/regression/tests/bug-524691.c,
3967         * support/regression/tests/bug-716242.c: removed conditional defines
3968           that are already in testfwk.h
3969
3970 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3971
3972         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3973           (AccAXRsh1): added, shift right by 1,
3974           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3975            AccAXLrl1
3976         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3977
3978 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3979
3980         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3981         remove cast to same type
3982         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3983         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3984         * as/z80/Makefile,
3985         * link/z80/Makefile: removed, they have moved to
3986         Makefile.in files
3987         * configure,
3988         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3989         * install-sh: fix bug #1204398 by setting umask 0022
3990         * device/lib/Makefile: separate build of z80 and gbz80 lib
3991
3992 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3993
3994         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3995         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3996
3997         One basic decision: e.g. src/clean.mk includes further files. In order
3998         to make this work there are two solutions:
3999         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4000           run configure on them. This way they can use
4001           'include $(srcdir)/port-clean.mk'
4002         - always include clean.mk by the Makefile at the same level. To avoid
4003           that `make clean` tries to include and build Makefile.dep the
4004           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4005           implemented, because now even `make uninstall` doesn't create
4006           Makefile.in. clean.mk could be eliminated by pasting it in
4007           Makefile.in.
4008
4009         * debugger/mcs51/Makefile.in: build own objects from library sources
4010         (SLIB, SDCC) in current directory
4011
4012         * configure, configure.in: renamed --disable-device-lib-build in
4013         --disable-device-lib; added --enable-doc, the required tools are
4014         searched by configure; added result message; the toolchain for the
4015         belonging ports are now only built, if the port is enabled.
4016
4017         * support/regression/*: all output is written in directory gen, because
4018         the fwk and ports directories don't livet in the build tree using vpath
4019
4020         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4021         --disable-device-lib, added --enable-doc, added section VPATH
4022
4023         * sim/ucsim/configure.in,
4024         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4025         z80 are enabled by default
4026
4027 2006-04-24 Raphael Neider <rneider AT web.de>
4028
4029         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4030             to config word, "pic14_"-prefixed some extern functions
4031           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4032             config word has been found
4033         * src/pic/device.h: added prototypes
4034         * src/pic/pcode.c: added "pic14_"-prefix where needed
4035         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4036             fixup
4037         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4038             words,
4039           (pic14emitRegularMap): ignore config words,
4040           (pic14createInterruptVect): moved generating __config directives away
4041           (picglue): have __config directives emitted
4042
4043 2006-04-24 Borut Razem <borut.razem AT siol.net>
4044
4045         * doc/Makefile: sync with nightly build makefile
4046
4047 2006-04-24 Raphael Neider <rneider AT web.de>
4048
4049         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4050             registers that have not been assigned proper liveranges,
4051             fixes #1469504 and #1474602,
4052           (pCodeRegOptimizeRegUsage): fixed typo in comment
4053
4054 2006-04-24 Borut Razem <borut.razem AT siol.net>
4055
4056         * device/examples/main8051.c: deleted - it was removed from CVS
4057           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4058           after the transition to Subversion
4059         * src/SDCCalloc.h: deleted - it was removed  from CVS
4060           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4061           after the transition to Subversion
4062         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4063           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4064           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4065           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4066
4067 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4068
4069         * as/asx8051.dsp: added mcs51/strcmpi.h
4070         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4071         * as/hc08/aslink.h: updated lnksect prototype
4072         * as/hc08/asm.h,
4073         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4074         * as/hc08/asmain.c,
4075         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4076           (newdot): handle A_ABS
4077         * as/hc08/asout.c,
4078         * as/mcs51/asout.c (outarea): output address
4079         * as/hc08/lkaomf51.c,
4080         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4081         * as/hc08/m08pst.c,
4082         * as/mcs51/i51pst.c,
4083         * as/z80/z80pst.c: "ABS" is not A_OVR
4084         * as/hc08/lkarea.c (newarea): read a_addr,
4085           (lnkarea): added codemap array, sort absolute areas to the front,
4086            combine all GSINITx/GSFINAL,
4087           (find_empty_space, allocate_space): new functions,
4088           (lnksect): return next address, handle absolute sections
4089         * as/mcs51/lkarea.c (newarea): read a_addr,
4090           lnksect2 prototype changed,
4091           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4092           (find_empty_space, allocate_space): new, factored out of lnksect2,
4093           (lnksect2): return next address, handle absolute sections
4094         * as/hc08/lkhead.c,
4095         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4096         * as/hc08/lklibr.c (addfile, fndsym),
4097         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4098           index out of range and detect both '\' and '/'
4099         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4100         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4101           regression tests (ds390 cannot return bool yet)
4102         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4103           document critical interrupts on z80, document changed SDCC define
4104         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4105           (_a390_mapping): added .org directive
4106         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4107           (genMultOneByte): fixed warnings
4108         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4109           ones
4110         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4111         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4112           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4113         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4114         * src/pic16/main.c: removed newReg prototype
4115         * src/pic16/pcode.c,
4116         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4117           warnings
4118         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4119           ones
4120         * src/pic16/ralloc.c
4121         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4122           to fix warnings
4123         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4124           from short to PIC_OPTYPE
4125         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4126         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4127           optype from short to PIC_OPTYPE
4128         * src/port.h: made int_size unsigned to fix warnings
4129         * src/SDCC.y: fixed warning on MSVC
4130         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4131         * src/SDCCopt.c (convertToFcall): fixed warnings
4132         * src/SDCCsymt.h: removed double prototype for genSymName
4133         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4134           offset int to fix warnings
4135
4136 2006-04-22 Borut Razem <borut.razem AT siol.net>
4137
4138         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4139           references to CVS replaced with Subversion
4140
4141 2006-04-21 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-19 Borut Razem <borut.razem AT siol.net>
4147
4148         * src/version.awk: adapted for svn
4149         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4150           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4151           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4152           /binutils-avr/etc/*.vi, *.jin: removed all properties
4153           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4154
4155 2006-04-19 Borut Razem <borut.razem AT siol.net>
4156
4157         * CVS to Subversion migration completed
4158
4159 2006-04-18 Borut Razem <borut.razem AT siol.net>
4160
4161         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4162           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4163
4164 2006-04-17 Borut Razem <borut.razem AT siol.net>
4165
4166         * device/include/Makefile.in: added pic/*.inc to the installation
4167
4168 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4169
4170         * support/regression/collate-results.py: fixed output in case of
4171         a valdiag error
4172         * support/regression/generate-cases.py: fixed splitting of pathnames
4173         with dots
4174         * as/hc08/lklibr.c (addfile),
4175         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4176
4177 2006-04-11 Raphael Neider <rneider AT web.de>
4178
4179         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4180         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4181         * src/pic16/pcode.c (assignValnums): fixed #1460578
4182
4183 2006-04-11 Raphael Neider <rneider AT web.de>
4184
4185         * device/lib/pic/libdev/*.c,
4186         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4187           fixes #1468739, enables compilation in --std-c99 mode
4188         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4189
4190 2006-04-11 Raphael Neider <rneider AT web.de>
4191
4192         * src/pic/device.c (find_device): removed debug output
4193           (list_valid_pics): enabled verbose listing of supported devices
4194         * device/include/stdbool.h: define bool as char for pic14/16 as well
4195
4196 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4197
4198         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4199
4200 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4201
4202         * .version: bumped version to 2.5.6
4203         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4204
4205 2006-04-06 Raphael Neider <rneider AT web.de>
4206
4207         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4208         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4209         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4210           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4211             pic14_constructAbsMap
4212           (pic14printPublics): declare absolute global symbols as global
4213           (pic14createInterruptVect),
4214         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4215           (newReg): assume new registers unused, use correct name in
4216             hashtable (reg->name instead of name), more debugLog output
4217         * src/pic/device.h (PIC_device): added fields for verbose output
4218         * src/pic/device.c: moved device definition to pic14devices.txt,
4219             added routines for runtime parsing of pic14devices.txt,
4220             added support for second config word
4221         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4222           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4223           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4224           (_pic14_parseOptions): moved pCodeInitRegisters here
4225           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4226         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4227           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4228             handling the pseudo stack
4229         * device/lib/Makefile.in: ignore failures in objects-pic16,
4230         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4231         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4232         * device/lib/pic/Makefile.subdir,
4233         * device/lib/pic16/Makefile.subdir: improved clean rules
4234         * device/lib/pic/libdev/: NEW, pic14 device libraries
4235         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4236         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4237         * device/include/Makefile.in: create subdir and install pic14 headers
4238         * device/include/pic/p16f_common.inc: removed unused declarations
4239         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4240             PICs from inc2h.pl v1.6,
4241             replaced BIT_AT macros with struct declarations
4242         * device/include/pic/pic14devices.txt: definition of supported devices,
4243             all above improvements contributed by Zik Saleeba, thanks
4244         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4245         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4246             headers
4247
4248 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4249
4250         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4251         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4252           thanks to Charles Olds
4253
4254 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4255
4256         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4257
4258 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4259
4260         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4261         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4262         * support/regression/bug1464657.c: added, new test
4263
4264 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4265
4266         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4267           version number
4268
4269 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4270
4271         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4272           --no-peep and --peep-file <file> are used don't use default rules but
4273           do use the <file>
4274
4275 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4276
4277         * src/mcs51/gen.c (genCall): fixed bug 1457608
4278
4279 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4280
4281         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4282         changes seem to cause (trigger?) problems with the build system.
4283
4284 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4285
4286         * src/SDCCpeeph.c (operandsLiteral): new, added,
4287           (callFuncByName): inserted operandsLiteral
4288         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4289
4290 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4291
4292         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4293         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4294
4295 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4296
4297         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4298           implemented patch 1120823 Thanks to Willy De la Court (normal
4299           interrupts need an interrupt number now if they are made critical),
4300           and enabled nesting of critical functions though not for gbz80
4301           (genCritical, genEndCritical): added functions
4302           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4303         * src/z80/mappings.i: added "ei" to all mappings
4304
4305 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4306
4307         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4308         submitted by the Debian SDCC maintainer Aurelien Jarno:
4309         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4310         archive with gcc 4.1 on mips and wrote the patch"
4311
4312 2006-03-16 Raphael Neider <rneider AT web.de>
4313
4314         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4315           the left operand is shorter than the result (c* = lit-c* + int),
4316           fixes bug #1450796
4317         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4318           OP_SYMBOL
4319
4320 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4321
4322         * src/.version: increased version number to 2.5.5
4323         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4324         linking is done manually in pic16 port's _linkEdit,
4325         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4326         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4327         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4328         allocate asmop as AOP_ACC,
4329         (aopForRemat): added parameter 'bool result' in function declaration,
4330         (pic16_aopGet): return AOP_ACC when accessing WREG,
4331         (pic16_popGetTempReg): minor modification,
4332         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4333         'pic16_allocWithIdx',
4334         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4335         calling function in absolute addresses,
4336         (genAssign): take into account AOP_ACC asmop,
4337         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4338         * src/pic16/pcoderegs.c: some debug functions and lines added,
4339         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4340         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4341         register too,
4342         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4343         call to allocReg, not by manually allocating a new one,
4344         (pic16_assignRegisters): now before going through the register
4345         allocating functions mark all registers as free. This eliminates some
4346         side effects resulting from peephole parser done earlier in the backbone
4347
4348 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4349
4350         * src/SDCCicode.c (geniCodeLogic),
4351         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4352
4353 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4354
4355         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4356           (genSend): bugfix, do not allocate and free twice,
4357           (shiftRLong): handle partially overlapping aops
4358         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4359
4360 2006-03-08 Borut Razem <borut.razem AT siol.net>
4361
4362         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4363           for pic16
4364
4365 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4366
4367         * support/regression/tests/bug1409955.c: new, added
4368         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4369         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4370           (aopForSym, aopOp): increment asmop.allocated if reused,
4371           (freeAsmop): decrement asmop.allocated and check for zero instead of
4372           using asmop.freed,
4373           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4374           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4375            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4376            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4377            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4378            genSignedRightShift, genRightShift, genDataPointerGet,
4379            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4380            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4381             in reverse order from allocation,
4382           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4383             added swappedLR to keep track
4384         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4385           pdata & code for GCC, z80, gbz80 & hc08
4386         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4387
4388 2006-03-08 Raphael Neider <rneider AT web.de>
4389
4390         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4391
4392 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4393
4394         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4395         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4396         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4397
4398 2006-03-06 Borut Razem <borut.razem AT siol.net>
4399
4400         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4401           made the linker quiet
4402
4403 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4404
4405         * src/pic16/gen.c (genPcall): fixed bug #1443644
4406         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4407         which dumps before the function entry point a data byte which represents
4408         the number of the local variables used by the specified function, added
4409         'xinst' for initial support for Extended Instruction Support,
4410         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4411         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4412         port->fun_prefix anymore (may change later),
4413         (genFunction, genEndFunction): do not store/restore local registers for
4414         _main (this should take care the --main-return command line option in
4415         the future),
4416         (genOr): removed some legacy pic-port instructions,
4417         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4418         performing operations with SFR's causes data to be written more than
4419         once to each SFR. Perhaps SFRs should be handled in special cases...
4420         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4421         pcode.h
4422         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4423         into account for stack starting position,
4424         (struct OPTIONS pic16_optionsTable): added command line argument
4425         --extended or -y for Extended Instruction Support,
4426         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4427         (deassignLRs): *** perhaps the most important change, old 'for' code
4428         (commented out for reference), didn't account for some registers which
4429         were left marked 'not free' after a pointer operation. The change
4430         reduces register usage a lot in some cases
4431
4432 2006-03-04 Borut Razem <borut.razem AT siol.net>
4433
4434         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4435           _clean
4436         * support/regression/tests/bug-524697.c: decreased array size for
4437           mcs51 to fit into the internal RAM
4438         * support/regression/Makefile.in: a little bit more verbose
4439
4440 2006-03-03 Borut Razem <borut.razem AT siol.net>
4441
4442         * support/regression/fwk/lib/testfwk.c,
4443           support/regression/fwk/include/testfwk.h: introduced function
4444           _prints(), nonrecursive _printn(), call _initEmu() from main()
4445         * support/regression/ports/gbz80/support.asm,
4446           support/regression/ports/ucz80/support.asm,
4447           support/regression/ports/z80/support.asm,
4448           support/regression/ports/ds390/support.c,
4449           support/regression/ports/hc08/support.c,
4450           support/regression/ports/host/support.c,
4451           support/regression/ports/mcs51/support.c,
4452           support/regression/ports/xa51/support.c: added empty _initEmu()
4453           function
4454         * support/regression/ports/pic16/gpsim.cmd,
4455           support/regression/ports/pic16/spec.mk,
4456           support/regression/ports/pic16/support.c,
4457           support/regression/Makefile.in: added pic16 regression test
4458
4459 2006-03-01 Raphael Neider <rneider AT web.de>
4460
4461         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4462           genConstPointerGet): use safe way of generating MOVFF to cover
4463             literals as well as registers, fixes bug #1440527
4464         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4465             dereference
4466           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4467             more correctly, fixes bug #1232186
4468           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4469         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4470             gplink guess the correct processor in more cases, applied patch
4471             from Till Riedel attached to and fixing bug #1436552
4472
4473 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4474
4475         * support/regression/tests/array.c: added, contains check for #1434401
4476         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4477
4478 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4479
4480         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4481         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4482         * device/include/mcs51/c8051f326.h,
4483         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4484         * device/include/mcs51/c8051f000.h,
4485         * device/include/mcs51/c8051f018.h,
4486         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4487           PCON_IDLE,PCON_STOP and added sfr16 definitions
4488
4489 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4490
4491         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4492           genGetWord): fixed bug 1409955
4493
4494 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4495
4496         * device/include/hc08/mc68hc908gp32.h,
4497         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4498
4499 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4500
4501         * src/SDCCast.c (constExprValue): return NULL if not a value
4502         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4503         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4504         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4505
4506 2006-02-13 Borut Razem <borut.razem AT siol.net>
4507
4508         * src/regression/ptrarg.c: added, fails due to bug #1430967
4509         * src/regression/Makefile: ptrarg.c added, ...
4510
4511 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4512
4513         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4514         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4515
4516 2006-02-11 Borut Razem <borut.razem AT siol.net>
4517
4518         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4519           print "Processor: xxx" message to stdout only if --verbose
4520
4521 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4522
4523         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4524         * support/regression/tests/bug1426356.c: added
4525         * support/regression/tests/bitfields.c: removed 2 tests
4526
4527 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4528
4529         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4530         * device/include/mcs51/c8051f330.h,
4531         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4532           PCON_IDLE,PCON_STOP and added sfr16 definitions
4533         * device/lib/_divsint.c,
4534         * device/lib/_divuint.c,
4535         * device/lib/_divulong.c,
4536         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4537           register bank bug for small stackauto
4538
4539 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4540
4541         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4542
4543 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4544
4545         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4546         * all.dsp: corrected several bin paths
4547         * device/include/mcs51/c8051f120.h,
4548         * device/include/mcs51/c8051f300.h,
4549         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4550           to PCON_IDLE,PCON_STOP
4551         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4552         * device/lib/printf_large.c (output_float): fixed bug 1388703
4553         * support/regression/tests/bug1057979.c: added test for bug 1388703
4554
4555 2006-02-08 Raphael Neider <rneider AT web.de>
4556
4557         * src/pic/pcode.c (pciTRIS): fixed typo,
4558           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4559           (LinkFlow): fixed handling of flows that end in a call,
4560           (ReuseReg): perform safety check earlier
4561         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4562             to work with flows at the beginning of a pBlock,
4563             fixes #1426557 (Symbol not previously defined),
4564           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4565             usage information
4566           (RemoveUnusedRegisters): update register usage info
4567         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4568             created, reuse existing ones instead
4569         * src/pic/gen.c (genPcall): fixed #1424719
4570
4571 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4572
4573         * link/z80/lkmain.c,
4574         * link/z80/lklex.c,
4575         * link/z80/lkdata.c,
4576         * link/z80/aslink.h: fixed build on current cygwin:
4577         replaced getline() by lk_getline()
4578
4579 2006-02-01 Borut Razem <borut.razem AT siol.net>
4580
4581         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4582           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4583           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4584           src/regression/bool1.c, src/regression/bool2.c,
4585           src/regression/bool3.c, src/regression/call1.c,
4586           src/regression/compare.c, src/regression/compare10.c,
4587           src/regression/compare2.c, src/regression/compare3.c,
4588           src/regression/compare4.c, src/regression/compare5.c,
4589           src/regression/compare6.c, src/regression/compare7.c,
4590           src/regression/compare8.c, src/regression/compare9.c,
4591           src/regression/configword.c, src/regression/for.c,
4592           src/regression/inline.c, src/regression/mult1.c,
4593           src/regression/nestfor.c, src/regression/or1.c,
4594           src/regression/pointer1.c, src/regression/ptrfunc.c,
4595           src/regression/rotate1.c, src/regression/rotate2.c,
4596           src/regression/rotate3.c, src/regression/rotate4.c,
4597           src/regression/rotate5.c, src/regression/rotate6.c,
4598           src/regression/rotate7.c, src/regression/string1.c,
4599           src/regression/struct1.c, src/regression/sub.c,
4600           src/regression/sub2.c, src/regression/switch1.c,
4601           src/regression/while.c, src/regression/xor.c,
4602           src/regression/create_stc, src/regression/simulate,
4603           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4604           regression tests
4605         * src/regression/gpsim_assert.h: added
4606
4607 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4608
4609         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4610         ((void (code *) (void)) 0) ();
4611         * as/hc08/aslex.c,
4612         * as/hc08/aslink.h,
4613         * as/hc08/asm.h,
4614         * as/hc08/asmain.c,
4615         * as/hc08/lkdata.c,
4616         * as/hc08/lklex.c,
4617         * as/hc08/lkmain.c,
4618         * as/mcs51/aslex.c,
4619         * as/mcs51/aslink.h,
4620         * as/mcs51/asm.h,
4621         * as/mcs51/asmain.c,
4622         * as/mcs51/lkdata.c,
4623         * as/mcs51/lklex.c,
4624         * as/mcs51/lkmain.c,
4625         * as/z80/aslex.c,
4626         * as/z80/asm.h,
4627         * as/z80/asmain.c: fixed build on current cygwin:
4628         replaced getline() by as_getline()
4629
4630 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4631
4632         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4633         declarator in the symbol chain
4634         * src/SDCCsymt.h,
4635         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4636         parameter list for function pointers
4637         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4638         * support/regression/tests/bug-716242.c: added
4639
4640 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4641
4642         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4643         offset if possible
4644         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4645
4646 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4647
4648         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4649         inifinitely recurseable, added static
4650         * support/regression/tests/bug-1408066.c: added
4651
4652 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4653
4654         * src/SDCCicode.h,
4655         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4656         renamed, added possibility to create "postLoopLbl"-labels
4657         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4658         newiTempLoopHeaderLabel
4659         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4660         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4661         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4662         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4663         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4664         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4665         (basicInduction): fixed bug #136564, made static,
4666         (loopInduction): changed parameter of basicInduction, made static,
4667         (addPostLoopBlock): added
4668         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4669         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4670         findLoopEndSeq
4671         * support/regression/tests/bug-136564.c: added
4672         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4673         --std-sdcc99 to LIBSDCCFLAGS
4674
4675 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4676
4677         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4678         while loop
4679         * support/regression/tests/bug-1406131.c: added
4680
4681 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4682
4683         * src/SDCCast.c (decorateType): fix promotion of unary minus
4684         * src/SDCCsymt.c (computeType): beautified
4685         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4686         (valUnaryPM, valComplement): fix sign and promotion,
4687         (valNot): ANSI: result type is int (SDCC: unsigned char)
4688         * support/regression/tests/uminus.c: speedup by removing superflous
4689         test case 'int'
4690         * support/regression/tests/onebyte.c: added promotion and signedness
4691         tests for unary minus
4692         * support/regressions/tests/bug-477927.c: disable warning about
4693         uninitialized variables
4694         * support/regression/tests/not.c: added
4695
4696 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4697
4698         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4699         * src/mcs51/gen.c (gen51Code): show final register usage after
4700         fillGaps in asm with --i-code-in-asm
4701         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4702         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4703         incUsed, rliveClear, adjustIChain): made static,
4704         (setFromRange): excluded because it's unused,
4705         (findPrevUseSym, markWholeLoop): added,
4706         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4707         through all branches of predecessors enables sdcc to emit the warning
4708         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4709         (rlivePoint): made static, added parameter emitWarnings which is only
4710         true during the first run out of two,
4711         (findRecursiveSucc, findRecursivePred): removed,
4712         (computeLiveRanges): made static, added parameter emitWarnings,
4713         (dumpIcRlive): added for debugging only
4714         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4715         removed prototype of setFromRange()
4716         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4717         in call of computeLiveRanges()
4718         * support/regression/tests/bug-895992.c: added
4719         * support/regression/tests/bug-971834.c: added
4720         * support/valdiag/tests/bug-895992.c: added
4721         * support/valdiag/tests/bug-971834.c: added
4722
4723 2005-12-18 Raphael Neider <rneider AT web.de>
4724
4725         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4726           (genUnpackBits): improved code for direct operands,
4727           (genPackBits): improved code for literal assignment to bitfields
4728             and for direct destination operands (no FSR indirection),
4729             prevented redundant AND, fixes #1362800,
4730           (AccLsh): added parameter to disable masking of the result
4731         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4732           skip instructions with side-effects (like incfsz),
4733           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4734         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4735         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4736           fixes #1375263
4737
4738 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4739
4740         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4741         volatile variables as spill location
4742
4743 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4744
4745         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4746         replacing literals
4747         * support/regression/tests/bug-1376320.c: added
4748
4749 2005-12-08 Raphael Neider <rneider AT web.de>
4750
4751         * src/pic/device.c: renamed is_shared to pic14_is_shared
4752         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4753         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4754           (is_valid_identifier): added for above workaround
4755
4756 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4757
4758         * device/lib/Makefile.in: fixed to enable port-specific-objects
4759         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4760           char, thanks Hubert Sack
4761         * doc/sdccman.lyx: documented --xstack-loc,
4762           elaborated a bit more on interrupts and pitfalls,
4763           removed "setjmp/longjmp unsupported",
4764           documented some unsupported C99 features
4765         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4766         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4767           if, thanks Hubert Sack
4768         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4769         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4770           make make_library
4771         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4772           regression tests can report resource usage (rfe 700441)
4773         * support/regression/collate-results.py: report resource usage
4774         * support/regression/ports/ds390/spec.mk,
4775         * support/regression/ports/hc08/spec.mk,
4776         * support/regression/ports/mcs51/spec.mk,
4777         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4778         * support/regression/ports/ds390/uCsim.cmd,
4779         * support/regression/ports/hc08/uCsim.cmd,
4780         * support/regression/ports/mcs51/uCsim.cmd,
4781         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4782         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4783           library, use the default one
4784         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4785           building the library
4786
4787 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4788
4789         * config.dsp: added dependency on .version and configure_vc.awk
4790         * device/include/setjmp.h: updated for --stack-auto and --xstack
4791         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4792         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4793         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4794         * device/lib/libsdcc.lib: added _setjmp
4795         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4796           (decorateType): fixed bug 1372851,
4797           (optimizeGetHbit): fixed warning
4798         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4799           array initialisation
4800         * support/regression/tests/bug1057979.c: added test for bug 1358192
4801         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4802
4803 2005-12-03 Borut Razem <borut.razem AT siol.net>
4804
4805         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4806           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4807
4808 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4809
4810         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4811         createIval): implement symbol independant "flexible array member",
4812         (createIvalCharPtr): implemented flexible array initialisation with a
4813         string
4814         * src/SDCCsymt.c (copyStruct): removed,
4815         (getSize): fixed misleading comment,
4816         (getAllocSize): removed, the additional allocation size is now in
4817         sym->flexArrayLength,
4818         (checkStructFlexArray): new, syntax checks for flexible array members,
4819         (compStructSize): added syntax checks for "flexible array members"
4820         (copyStruct): removed,
4821         (copyLinkChain): removed inefficient fix for bug 770487
4822         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4823         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4824         symbol->flexArrayLength
4825         * src/SDCCerr.c,
4826         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4827         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4828         * support/regression/tests/structflexarray.c: added
4829         * support/valdiag/tests/structflexiblearray.c: added
4830
4831 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4832
4833         * src/SDCCast.c (decorateType): fixed bug 1368489
4834         * support/Util/SDCCerr.c,
4835         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4836
4837 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4838
4839         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4840           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4841
4842 2005-11-27 Borut Razem <borut.razem AT siol.net>
4843
4844         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4845           support/cpp2/mkdeps.h: added command line option
4846           -obj-ext=<extension> to SDCPP to define object file externion, used
4847           for generation of make dependencies (-M)
4848         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4849
4850 2005-11-26 Borut Razem <borut.razem AT siol.net>
4851
4852         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4853           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4854           added pic and pic16 libraries
4855
4856 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4857
4858         * device/include/float.h: Corrected typo in prototype of __fsgt
4859
4860 2005-11-25 Borut Razem <borut.razem AT siol.net>
4861
4862         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4863           added creation of model-mcs51-stack-auto libraries
4864
4865 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4866
4867         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4868         and fields-list too
4869         * src/SDCCast.c (createIvalArray): removed obsolete comment
4870
4871 2005-11-24 Borut Razem <borut.razem AT siol.net>
4872
4873         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4874           added missing device/lib/mcs51/crt*.asm sources
4875
4876 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4877
4878         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4879
4880 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4881
4882         * device/lib/_fs2schar.c,
4883         * device/lib/_fs2sint.c,
4884         * device/lib/_fs2slong.c: optimized inline asm
4885
4886 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4887
4888         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4889           Better handling of floats between -1.0 and 0.0.
4890
4891 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4892
4893         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4894           (the missing "if"s prohibited removal of redundant labels)
4895
4896 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4897
4898         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4899           Properly convert floats between -1.0 and 0.0 to long, int, and char
4900           types (max integer value of negative floats tends to zero).
4901         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4902           Removed changes made so to work properly with floats between
4903           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4904           and _fs2char.c
4905
4906 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4907
4908         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4909         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4910         (genCast) cosmetic change
4911         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4912         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4913         from mcs51
4914         * support/regression/tests/bitfields (testSignedBitfields): added
4915
4916 2005-11-18 Borut Razem <borut.razem AT siol.net>
4917
4918         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4919         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4920           introduced SILENT option to make building of pic16 libraries less
4921
4922 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4923
4924         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4925           Now they work properly with floats between -1.0 and 0.0
4926         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4927
4928 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4929
4930         * src/SDCCicode.c (printOperand): added missing else
4931
4932 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4933
4934         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4935         reformatted for better readability
4936         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4937         signed bitfields
4938
4939 2005-11-17 Borut Razem <borut.razem AT siol.net>
4940
4941         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4942           introduced SILENT option to make building of pic16 libraries less
4943           verbose - used for nightly snapshot build
4944         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4945           available on Win32 platforms.
4946         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4947           medium, large, pic and pic16
4948
4949 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4950
4951         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4952           printf("%f"...) sets fraction to zero.
4953
4954 2005-11-16 Raphael Neider <rneider AT web.de>
4955
4956         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4957           fixes #1357221
4958         * src/pic/gen.c (genIfx): implemented for CARRY bit
4959         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4960           to generic pointers, fixes #1357332,
4961           (pic16_movLit2f): NEW,
4962           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4963
4964 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4965
4966         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4967
4968 2005-11-11 Raphael Neider <rneider AT web.de>
4969
4970         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4971         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4972           compute pointer's type from operand,
4973           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4974           improved single bit reads, fixes bug #1353379
4975
4976 2005-11-09 Borut Razem <borut.razem AT siol.net>
4977
4978         * support/scripts/sdcc.nsi: added lib/pic to the package
4979
4980 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4981
4982         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4983
4984 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4985
4986         * support/regression/tests/bug1348008.c: added
4987         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4988         * support/regression/tests/bug1337835.c: updated comment
4989
4990 2005-11-06 Borut Razem <borut.razem AT siol.net>
4991
4992         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4993           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4994           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4995           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4996           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4997           dynamic construction of cl_error_class and derivates - 2.nd try
4998
4999 2005-11-05 Borut Razem <borut.razem AT siol.net>
5000
5001         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5002           bug, which caused Bus Errors on sparc solaris
5003
5004 2005-11-04 Borut Razem <borut.razem AT siol.net>
5005
5006         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5007           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5008           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5009           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5010           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5011           and derivates to resolve the initialization problem on OSX
5012
5013 2005-11-02 Borut Razem <borut.razem AT siol.net>
5014
5015         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5016           corrected typo - #include <winsock2.h>
5017
5018 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5019
5020         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5021           (_asxxxx_mapping): added org directive for future enhancements
5022
5023 2005-11-01 Borut Razem <borut.razem AT siol.net>
5024
5025         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5026           enabled sockets on WIN32
5027         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5028
5029 2005-10-31 Borut Razem <borut.razem AT siol.net>
5030
5031         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5032           WIN32 backslash path delimiters should be escaped when used in C strings
5033         * support/regression/tests/bitfields.c: exclude failing assertions for
5034           __CYGWIN32__ and __MINGW32__ hosts
5035
5036 2005-10-30 Borut Razem <borut.razem AT siol.net>
5037
5038         * src/SDCCutil.c: corrected double comparison typo
5039
5040 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5041
5042         * device/lib/medium/Makefile: added for new memory model medium
5043         * device/include/asm/mcs51/features.h: updated for medium/pdata
5044         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5045           added Multiply & Accumulate sbit's and MAC0_PAGE define
5046         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5047         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5048         * device/lib/_mullong.c: update for medium model
5049         * device/lib/incl.mk: added medium model
5050         * doc/sdccman.lyx: documented medium model
5051         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5052         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5053         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5054         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5055           (allocParms): set SCLS and OCLS to pdata for medium model
5056         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5057           for pdata,
5058           (powof2): return <0 if not power of 2
5059         * src/avr/gen.c (genBitWise): use updated powof2
5060         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5061           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5062           (shiftLLeftOrResult): use B if necessary
5063         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5064         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5065         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5066         * support/regression/Makefile.in: added test-mcs51-medium
5067         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5068
5069 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5070
5071         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5072         specifier unsigned
5073         * device/lib/time.c (mktime): fixed bug 1334315
5074
5075 2005-10-28 Raphael Neider <rneider AT web.de>
5076
5077         * device/include/pic/p16f_common.inc: added common declarations
5078         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5079
5080 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5081
5082         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5083           (aopPutUsesAcc): added to predict accumulator use,
5084           (assignResultValue): save acc if necessary,
5085           (genMinusDec): store result if indirectly addressed,
5086           (genDivOneByte):  save acc if necessary,
5087           (movLeft2Result): bugfix if left already in acc,
5088           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5089             attention to accumulator use (esp. pdata),
5090           (genReceive): receive pdata correctly
5091         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5092         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5093
5094 2005-10-27 Raphael Neider <rneider AT web.de>
5095
5096         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5097
5098 2005-10-27 Raphael Neider <rneider AT web.de>
5099
5100         * .version: changed version to 2.5.4
5101         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5102         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5103           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5104             arithmetics support routines
5105         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5106         * device/lib/Makefile.in: also create installdir for pic
5107
5108         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5109           pic14 port as well
5110         * src/pic/device.c (dump_sfr): rewritten to delegate register
5111           placement to the linker (use `extern sym' rather than sym EQU addr),
5112           (validAddress): fixed to check last specified address
5113         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5114           (popGetLit): truncate literal value to 8 bit,
5115           (popGet): moved assert to more appropriate place
5116           (popGetExternal): create pCode operand from and mark the according
5117             symbol as being `extern'
5118           (popGetAddr): added sanity check on immediate's offset, provide
5119             GPOINTER tag on demand
5120           (aopPut): fixed for immediates,
5121           (mov2w_op): move operand's address or contents to WREG (depending on
5122             operand type), safer variant of mov2w,
5123           (movwf,call_libraryfunc): NEW, handy abbreviations,
5124           (get_argument_pcop,get_return_val_pcop,pass_argument,
5125           get_returnvalue): interface for accessing function parameters and
5126             return values,
5127           (assignResultValuei,genRet): use new parameter/return value interface
5128           (pic14_getDataSize): back to old version handling generic pointers,
5129           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5130             provided implementation and/or fixed old one,
5131           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5132             calls, removed legacy 8051 reference code
5133           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5134           (loadSignToC): NEW, move the operands sign bit to CARRY,
5135           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5136             genRightShiftSigned, accepts negative shift counts,
5137           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5138           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5139             generic pointers, __data pointers and __code pointers,
5140           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5141             and signed bitfields, limit bitfields to 8 bit,
5142           (genDataPointerGet): fixed number of bytes read,
5143           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5144           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5145             pointers to constant data are no longer assumed to point to __code
5146             space, removed invalid pointer types,
5147           (bitpatternFromVal): retrieve the PICs representation of an integer
5148             or float literal,
5149           (genDataPointerSet): fixed assigning to po_immediate operands,
5150           (genGenPointerSet): implemented as library call,
5151           (genIfx): fixed incorrect condition,
5152           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5153             provide GPOINTER tag according to destination's storage class,
5154           (genCast): added code to handle casting to generic pointers, added
5155             sign-/zero extension of the result
5156           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5157         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5158         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5159           extend the result
5160         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5161           address/register resides in the shared banks
5162           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5163             put all variables into separate sections (have the linker arrange
5164             them)
5165           (picglue): put init code and interrupt handlers in separate sections
5166         * src/pic/main.c: added port specific options table, modified to PORT
5167           structure to make GPOINTERs 3 byte, added pic14_options
5168           (_pic14_do_link): private linking routine (update paths to libraries,
5169             add libsdcc.lib by default)
5170         * src/pic/main.h: declare pic14_options
5171         * src/pic/pcode.c: fixed instructions i/o relations,
5172           (RegCond): reverted to correct version,
5173           (newpCodeOpLit): truncate literals to 8 bit,
5174           (genericPrint): added debug output,
5175           (getRegFromInstruction): fixed for various operand types, simplified
5176           (BuildFlow): fixed broken handling of isntructions with labels
5177           (LinkFlow): start at last instruction in flow (skip trailing comments),
5178             pass the flow on to the next instruction after CALL
5179           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5180           (insertPCodeInstruction): fixed inserting after a skip instruction,
5181           (DoBankSelect): fixed for labeled instructions
5182           (OptimizepBlock): honor --nopeep switch
5183           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5184         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5185         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5186           (pCodeOptime2pCodes): allow disabling this optimization via
5187             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5188             but is still buggy), started implementation of a dataflow based
5189             pCode optimization (CSE + dead code elimination)
5190           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5191         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5192           names are independant of the stack location and therefore portable across
5193           devices
5194
5195 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5196
5197         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5198           (selectSpil): fixed bug 1337835 by not spilling bit variables
5199         * support/regression/tests/bug1337835.c: added test for this bug
5200         * src/mcs51/peeph.def: restart after rule 3.c,
5201           addded rules 263.x to optimize loading constants
5202
5203 2005-10-26 Raphael Neider <rneider AT web.de>
5204
5205         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5206         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5207           (genAssign): emit warning when casting literals to generic pointer
5208             type, also applies when taking the address of a fixed variable,
5209           (genCast): improved casting to generic pointers
5210         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5211           extern variables, added verbose error message
5212         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5213
5214 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5215
5216         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5217         carry must be complemented too
5218         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5219         could be emitted by genMinus
5220         * src/SDCCval.c (constVal): fixed bug 1305065
5221
5222 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5223
5224         * src/SDCCast.c (addCast): added promotion for bit variables
5225         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5226         promotion casts + optimisation
5227         (optimizeGetWord): fix warning 'i' might be used uninitialized
5228         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5229         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5230
5231 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5232
5233         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5234         all chars are promoted to int; promotion should be handled in SDCCast.c
5235
5236 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5237
5238         * device/lib/_strcmp.c: Fixed bug 1326457
5239
5240 2005-10-11 Raphael Neider <rneider AT web.de>
5241
5242         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5243         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5244
5245 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5246
5247         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5248         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5249
5250 2005-10-04 Raphael Neider <rneider AT web.de>
5251
5252         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5253           device/lib/pic16/pics.all: added pic18f1320
5254         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5255
5256 2005-09-30 Raphael Neider <rneider AT web.de>
5257
5258         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5259         * src/pic16/devices.inc: NEW, provides device descriptions
5260         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5261
5262 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5263
5264         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5265           GETHBIT
5266
5267 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5268
5269         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5270           documented Any Order Bit, Higher Order Byte and Higher Order Word
5271         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5272         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5273           (optimizeGetAbit): new, to get any bit, not only the high bit,
5274           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5275           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5276           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5277           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5278             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5279             GETABIT, GETBYTE, GETWORD: decorate them,
5280           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5281           (ast_print): added GETABIT, GETBYTE, GETWORD
5282         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5283         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5284           (geniCodeBinary): new generic binary icode,
5285           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5286         * src/port.h: updated comment for PORT.hasExtBitOp
5287         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5288           (genGetByte): new, to get a single byte,
5289           (genGetWord): new, to get a word from a long,
5290           (gen51Code): added GETABIT, GETBYTE, GETWORD
5291         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5292
5293 2005-09-23 Raphael Neider <rneider AT web.de>
5294
5295         * configure.in, configure: have device/lib/pic configured
5296         * device/lib/Makefile.in: added model-pic14
5297         * device/lib/clean.mk: added pic/ to clean rule
5298         * device/lib/pic: added rudimentary pic14 library providing support
5299           functions for multiplication/division/generic pointer access
5300         * src/SDCCopt.c (convilong): mark support functions as extern
5301           for pic14 port as well
5302         * src/pic/gen.c (genMult): added assertions,
5303           (genpic14Code): emit warning on unhandled iCodes
5304         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5305         * src/pic/pcode.c (pCodeOpCopy),
5306         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5307           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5308           SFR_REGISTER}), made safe for future extensions
5309         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5310           instructions even if preceeded by SKIP instructions (also remove
5311           them); removed unused code
5312         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5313           prevents leaving parts of the structure uninitialized after copying
5314
5315 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5316
5317         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5318           ago by me
5319         * support/regression/tests/addsub.c: added test for the bug
5320
5321 2005-09-21 Raphael Neider <rneider AT web.de>
5322
5323         * device/include/pic16/pic18f1220.h,
5324           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5325         * device/lib/pic16/Makefile.rules: added missing opening paren
5326         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5327           are provided in genutils.c,
5328           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5329           operand/result sizes,
5330           (genCmp): assert on NULL pointers first, then check deref'ed values
5331         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5332           result size
5333
5334 2005-09-18 Raphael Neider <rneider AT web.de>
5335
5336         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5337           as these are now unused,
5338           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5339         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5340           local, avoids uninitialized pointer dereference on r->name
5341         * src/pic16/ralloc.c (newReg): fixed indentation
5342
5343 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5344
5345         * src/SDCCval.c (constVal): fixed bug 730366
5346         * support/Util/SDCCerr.c,
5347         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5348
5349 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5350
5351         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5352
5353 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5354
5355         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5356
5357 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5358
5359         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5360           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5361         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5362           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5363         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5364         * packihx/packihx.c (hexDigit): made c unsigned char
5365         * as/mcs51/lklibr.c (fndsym),
5366         * link/z80/lkgb.c (gb),
5367         * link/z80/lklibr.c (fndsym),
5368         * link/z80/lkrloc.c (relr),
5369         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5370         * src/SDCC.lex (checkCurrFile, process_pragma),
5371         * src/SDCCglue.c (spacesToUnderscores),
5372         * src/SDCCmain.c (setParseWithComma, processFile),
5373         * src/asm.c (tvsprintf, printCLine),
5374         * src/avr/gen.c (emitcode, aopPut),
5375         * src/ds390/gen.c (emitcode),
5376         * src/hc08/gen.c (emitcode, emitinline),
5377         * src/mcs51/gen.c (emitcode, genInline),
5378         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5379           tokenizeLineNode),
5380         * src/pic/ralloc.c (debugLog),
5381         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5382           tokenizeLineNode),
5383         * src/pic16/ralloc.c (debugLog),
5384         * src/z80/main.c (_process_pragma):
5385            made all ctype.h function calls safe
5386         * src/SDCCopt.c: include math.h for fabs
5387         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5388           and used them throughout the code to make ctype.h function calls safe
5389         * src/ds390/main.c (asmLineNodeFromLineNode),
5390         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5391         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5392            unsigned char*
5393         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5394           (newpCodeAsmDir): made ctype.h function calls safe
5395         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5396           pic16_emitcode):  made lbp unsigned char*
5397         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5398           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5399         * src/xa51/gen.c (emitcode),
5400         * src/z80/gen.c (_emit2): made lbp unsigned char*
5401         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5402            char*
5403
5404 2005-09-05 Raphael Neider <rneider AT web.de>
5405
5406         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5407           access bank splitpoint
5408
5409 2005-09-05 Raphael Neider <rneider AT web.de>
5410
5411         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5412
5413 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5414
5415         * .version: changed to version 2.5.3
5416         * doc/sdccman.lyx: changed version to 2.5.3,
5417           documented --codeseg and --constseg and pragma codeseg and constseg,
5418           documented bit parameters (reentrant) and bit returning
5419         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5420            currFunc->recvSize, but is this ok for all ports?
5421           (ast2iCode): result of ~ on unsigned char must be cast to int for
5422            bool to work
5423         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5424           function pointers in bit space
5425         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5426           (processFuncArgs): call port.reg_parm() with reentrancy info
5427         * src/port.h,
5428         * src/avr/main.c,
5429         * src/ds390/main.c,
5430         * src/hc08/main.c,
5431         * src/pic/main.c,
5432         * src/pic16/main.c,
5433         * src/xa51/main.c,
5434         * src/z80/main.c: port.reg_parm prototype extended with
5435           "bool reentrant" parameter
5436         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5437           options.stackAuto for allocating bit register parameters
5438         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5439           (genSend): set BitBankUsed if it is,
5440           (selectRegBank): factored out of genCall for use in genPcall,
5441           (genCall): removed redundant dtype assignmen, use selectRegBank,
5442           (genPcall): handle returning in Carry properly, save in F0 if needed,
5443           (genReceive): handle bit register parameters
5444         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5445           (mcs51_assignRegisters): enable bit registers for all reentrant
5446            functions and don't set BitBankUsed unconditionally
5447         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5448         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5449         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5450
5451 2005-08-27 Borut Razem <borut.razem AT siol.net>
5452
5453         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5454         ppc-osx (Darwin) does not support -u option. It seems that it is
5455         supported only on Linux - GNU cp
5456
5457 2005-08-25 Borut Razem <borut.razem AT siol.net>
5458
5459         * sim/ucsim/gui.src/serio.src/Makefile.in,
5460           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5461           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5462           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5463           install and strip, since the strip at /usr/ccs/bin should be used
5464           on solaris
5465
5466 2005-08-24 Borut Razem <borut.razem AT siol.net>
5467
5468         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5469
5470 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5471
5472         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5473         ffffffffu
5474
5475 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5476
5477         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5478         * as/mcs51/lkmain.c (link_main): fixed warning
5479         * device/include/stdbool.h: ds390 has no advanced bit support yet
5480         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5481         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5482         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5483           and updated their macros
5484         * src/SDCCval.c (constVal): updated comment for renamed b_long
5485
5486 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5487
5488         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5489         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5490           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5491           (oprio): set priority for '['
5492         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5493            and adb_24_bit
5494         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5495         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5496         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5497         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5498           added overlayable BIT_BANK area
5499         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5500           (summary2): explain 'T' in legenda
5501         * as/mcs51/lkrloc.c: replaced old K&R style,
5502           (relr): added R_BIT processing,
5503           (errmsg): added "Bit-addressable relocation error",
5504           (adb_bit): added for converting from byte- to bit-addressable space,
5505           (adb_24_bit): added for converting from byte- to bit-addressable space
5506         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5507            used in reentrant functions now even as return value
5508         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5509         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5510           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5511         * src/SDCCglobl.h: added indicator BitBankUsed
5512         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5513            the bit registers b0-b7
5514         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5515           (geniCodeCast): fixed bug 1263853,
5516           (geniCodeLogicAndOr): put result in bool or char,
5517           (geniCodeReceive): added parameter func for accessing the return type,
5518           (geniCodeFunctionBody): pass func to geniCodeReceive
5519         * src/SDCCmain.c: added indicator BitBankUsed
5520         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5521         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5522           (checkSClass): don't put automatic bool/bit on stack,
5523           (checkFunction): removed check on function cannot return bit
5524         * src/SDCCsymt.h: added newBoolLink prototype
5525         * src/mcs51/gen.c (rb1regs): added bit registers,
5526           (movc): created for assigning to carry,
5527           (pushReg, popReg): created for pushing registers,
5528           (sameRegs): check both AOP_REG and AOP_CRY types,
5529           (aopOp): handle bit registers,
5530           (aopPut): optimization no self-assign,
5531           (saveRegisters): push reg->base (bits) only once for bit registers,
5532            and use pushReg,
5533           (unsaveRegisters): pop reg->base only once and use popReg,
5534           (assignResultValue): added parameter func and return in carry for bits,
5535           (genIpush): optimization no reload in A if not changed,
5536           (genSend): bit parameters in reentrant functions are passed in bit
5537            registers by first assigning to bits in B, then save registers and
5538            copy B to bits,
5539           (genCall): handle returning in Carry properly, save it in F0 if needed,
5540           (genPcall): updated assignResultValue call, this is not safe yet for bit
5541            returning function !!!
5542           (genFunction): don't generate equ's for bit registers and use pushReg,
5543           (genEndFunction): take care of bit returning functions and use popReg,
5544           (genRet): return bit in Carry,
5545           (genIfx): optimize bit registers and other directly addressable bits,
5546           (genReceive): updated assignResultValue call
5547         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5548           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5549            registers when using stack-auto
5550         * src/mcs51/ralloc.c (_G): added allBitregs,
5551           (regs8051): added the bit registers,
5552           (createStackSpil): use macro IS_BIT,
5553           (getRegBit): added to allocate a bit register, else spill,
5554           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5555           (updateRegUsage): factored out to ease stepping while debugging,
5556           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5557            also allocate bit registers,
5558           (fillGaps): handle bit registers,
5559           (findAllBitregs): added to create bit vector with all bit registers,
5560           (mcs51_allBitregs): returns this bit vector,
5561           (mcs51_assignRegisters): when using stack-auto use bit registers for
5562            passing parameters and creating local variables
5563         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5564
5565 2005-08-22 Borut Razem <borut.razem AT siol.net>
5566
5567         * device/lib/Makefile.in: replaced find option -or with -o
5568           to make it run on solaris
5569
5570 2005-08-22 Raphael Neider <rneider AT web.de>
5571
5572         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5573           fixes #1265442 (crash on Solaris)
5574
5575 2005-08-20 Borut Razem <borut.razem AT siol.net>
5576
5577         * configure, configure.in: added tests for libsocket and libnsl libraries,
5578           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5579           from support/regression/Makefile.in
5580         * support/regression/Makefile.in: added
5581         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5582         * sim/ucsim/libtool: regenerated on sparc-solaris
5583         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5584           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5585           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5586           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5587           sparc-solaris, which doesn't use GNU ld linker
5588         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5589         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5590
5591 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5592
5593         * src/mcs51/peeph.def: updated comments
5594
5595 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5596
5597         * device/lib/_gptrget.c,
5598         * device/lib/_gptrput.c: slightly shorter
5599         * doc/sdccman.lyx: incremented version
5600         * src/mcs51/peeph.def: moved peephole comments to the line of first
5601           change to better keep line correlation, reanimated 186.e
5602         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5603
5604 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5605
5606         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5607           David Saxton with quotes around file name.
5608
5609 2005-08-15 Borut Razem <borut.razem AT siol.net>
5610
5611         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5612           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5613           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5614           make tests run on x86_64 platform
5615
5616 2005-08-13 Raphael Neider <rneider AT web.de>
5617
5618         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5619           as it might be executed DURING a build (parallel make is wonderful)
5620
5621 2005-08-13 Raphael Neider <rneider AT web.de>
5622
5623         * device/lib/Makefile.in (port-specific-objects-pic16):
5624           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5625         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5626           dependency
5627         * device/lib/pic16/Makefile.rules: build subdirs before creating
5628           the library, removed builddir rule, create $(builddir) early in
5629           recurse rule, use empty recurse rule for leaf directories
5630         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5631           mkdir errors (race condition), removed duplicate suffix "hex"
5632           from clean rules
5633         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5634         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5635           prevents mkdir -p from aborting on Alpha
5636
5637 2005-08-12 Raphael Neider <rneider AT web.de>
5638
5639         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5640           db-statements in order to allow for arrays of pointers in code
5641           sections to be placed without interspersed 0-padding, fixes
5642           bug #1256215
5643         * (emitStatistics): fixed division by zero for pic18f1220
5644         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5645           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5646         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5647         * (pic16_pCodeConstString): keep track of already emitted string
5648           literals to prevent "duplicate definitions of symbol _str_NR"
5649         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5650           debug message
5651         * device/lib/Makefile.in: ignore failing PIC16 library builds
5652         * device/lib/pic16/Makefile: do not build if gputils are missing
5653         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5654
5655 2005-08-10 Raphael Neider <rneider AT web.de>
5656
5657         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5658           my last commit)
5659
5660 2005-08-10 Raphael Neider <rneider AT web.de>
5661
5662         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5663           Rokas' patch to add the new fixed point type "__fixed16x16"
5664         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5665           functions for __fixed16x16 arithmetics
5666         * device/lib/pic16: reimplemented the build system to support
5667           a separate build directory, better handling of libio (create
5668           the library in a separate subdir for each architecture) and
5669           easier configuration (centralized in Makefile.common)
5670
5671 2005-08-07 Raphael Neider <rneider AT web.de>
5672
5673         * src/pic16/gen.c (genrshTwo): fixed sign extension
5674         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5675         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5676           added T0CONbits
5677         * device/include/pic16/pic18f4220.h: NEW, header for
5678           pic18f4220 and pic18f4320
5679         * device/include/pic16/pic18fregs.h: added new devices,
5680           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5681         * device/include/pic16/signal.h: resolved name clashes
5682           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5683           to also allow testing for interrupt enable bits, added
5684           comments on how to use the macros
5685         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5686         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5687           register definitions for the devices
5688         * device/lib/pic16/pics.all: added new devices
5689         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5690           allocated memory
5691         * device/lib/pic16/libc/stdlib/memfree: do not count
5692           the block header as free memory
5693         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5694           simplified and added missing end-of-blocklist-marker
5695           (reported by Peter Onion, fixes #1252814)
5696         * (_mergeHeapBlock): fixed loop condition
5697         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5698           len==0, restructured code
5699         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5700           up a bit, reduced bitfield accesses, prevent endless loops
5701           in case of heap corruption
5702         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5703           "unreferenced arguments/must return a value" warnings
5704         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5705           replaced BAUDREG with SPBRG
5706         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5707           device/lib/pic16/debug/gstack/gstack.c: replaced
5708           _naked, _asm, _endasm with __naked, __asm, __endasm
5709
5710 2005-08-05 Raphael Neider <rneider AT web.de>
5711
5712         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5713           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5714
5715 2005-08-05 Borut Razem <borut.razem AT siol.net>
5716
5717         * device/lib/Makefile.in: added missing ';'
5718         * configure: removed ^M characters
5719
5720 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5721
5722         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5723           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5724           License
5725
5726 2005-08-04 Borut Razem <borut.razem AT siol.net>
5727
5728         * configure.in: pic16 libraries build 2nd try - enable running
5729           configure in device/lib/pic16
5730         * configure: regenerated from configure.in
5731         * device/lib/Makefile.in: create $(PORT)/bin directory
5732
5733 2005-08-03 Raphael Neider <rneider AT web.de>
5734
5735         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5736           to get/set values via pointers
5737         * (genUnpackBits,genPackBits): changed detection of
5738           ptr->bitfield vs. sym.bitfield, fixed access via generic
5739           pointers, removed dead (wrong) code for multibyte bitfields
5740         * (genNearPointerGet, genGenPointerGet): removed useless code,
5741           fixed bitfield detection, fixes #1250594
5742         * (genNearPointerSet): removed useless code
5743         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5744           and introduced macro pic16_emitpcode that conditionally emits
5745           the origin of the following pCode (useful for debugging SDCC)
5746         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5747         * (createDefmap): fixed handling of LFSR for --optimize-df
5748
5749 2005-08-02 Borut Razem <borut.razem AT siol.net>
5750
5751         * device/lib/Makefile.in: pic16 libraries build enabled since
5752           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5753
5754 2005-08-02 Raphael Neider <rneider AT web.de>
5755
5756         * src/pic16/gen.c (genPackBits): removed deprecated warning
5757         * (genGenPointerSet): fixed bitfield detection
5758
5759 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5760
5761         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5762
5763 2005-07-31 Raphael Neider <rneider AT web.de>
5764
5765         * device/lib/pic16/libdev/pic18f458.c,
5766           device/include/pic16/pic18f458.h: added missing T0CONbits
5767
5768 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5769
5770         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5771
5772 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5773
5774         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5775
5776 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5777
5778         * device/include/mcs51/at89c51ed2.h: added.
5779
5780 2005-07-23 Raphael Neider <rneider AT web.de>
5781
5782         * src/pic/gen.h: added emitpcode macro for debugging
5783         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5784           and replace by macro adding debug information on demand
5785         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5786         * (gencjne): tried to fix; replaced with correct (slower) code
5787         * (gen{Unp,P}ackBits): fixed single bit access
5788         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5789         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5790           previous instruction
5791         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5792           register has to be handled with care (forbidding movement
5793           of assignments/uses, removing assignments completely, ...)
5794         * (pCodeOptime2pCodes): make use of regIsSpecial
5795         * added lots of debugging output (commented out)
5796         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5797           from being reused as result UNLESS it is known to work
5798
5799 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5800
5801         * support/Util/dbuf.h: include <stddef.h> for size_t
5802         * .version: changed to version 2.5.2
5803
5804 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5805
5806         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5807
5808 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5809
5810         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5811           (genModOneByte): removed needless psha/pula
5812
5813 2005-07-22 Raphael Neider <rneider AT web.de>
5814
5815         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5816           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5817         * src/pic/gen.c (resolveIfx): do not "invent" labels
5818         * (genSkipc): changed to positive logic
5819         * (genSkipCond): removed as no longer needed
5820         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5821           backport from PIC16
5822         * (genLeftShift): check operands are in different registers
5823         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5824           INCF does not update CARRY...
5825         * src/pic/main.c: fixed _linkCmd
5826         * src/pic/pcode.c (unlinkpCode): added inactive code
5827         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5828           alive (do not assign result and operand overlapping registers)
5829
5830 2005-07-22 Raphael Neider <rneider AT web.de>
5831
5832         * src/pic/device.c (dump_sfr): replaced register declaration with
5833           call to emitSymbolToFile() to avoid duplicate symbols
5834         * (assignRelocatableRegisters): do not declare external symbols
5835         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5836           right (take size of type, not etype)
5837         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5838         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5839         * (packRegsForAccUse): disabled assignment of WREG as
5840           the result reg to prevent occurence of just fixed #1235003,
5841           fixes #1242954
5842         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5843           symbols (avoids duplicate symbols in .asm file)
5844         * (pic14emitRegularMap): use emitSymbolToFile()
5845         * src/pic/gen.c (aopOp): fixed spillLocation handling
5846         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5847         * (genDataPointerSet): removed unneccessary variables/output
5848
5849 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5850
5851         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5852         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5853
5854 2005-07-21 Raphael Neider <rneider AT web.de>
5855
5856         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5857           architecture cannot handle them efficiently, fixes bug #1235003
5858         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5859           check for empty sets before using them (fixes bug #1232190)
5860
5861 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5862
5863         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5864           (lnksect2): generate warnings for memory overlap
5865         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5866           constseg to set the name of these segments so you can instruct the linker
5867           to place them in banks
5868         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5869         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5870           added code_seg and const_seg to options
5871         * src/SDCCglue.c (emitMaps): use options.const_seg,
5872           (createInterruptVect): put interrupt vectors in segment HOME,
5873           (glue): put HOME before static segment and put the main glue in HOME,
5874           (glue): use options.code_seg
5875         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5876         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5877           these segments so you can instruct the linker to place them in banks
5878           (linkEdit): use code_loc for HOME segment which should be the first
5879           segment in code memory now
5880         * src/SDCCmem.c: fixed more stuff like bug 1238386
5881         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5882           (changePointer): don't change function pointers to code pointers for
5883           banked functions,
5884           (compareType): added exceptional check for banked function pointers
5885         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5886         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5887           after static in code memory
5888         * src/mcs51/gen.c: added aopLiteralLong prototype,
5889           (aopForSym): use getSize for functions,
5890           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5891           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5892           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5893           the segment,
5894           (genPcall): use call for literal function pointers and generate banked
5895           calls over the one trampoline so there's only one place for the user to
5896           modify according to his/hers hardware,
5897           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5898           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5899         * src/mcs51/main.c: added keyword banked,
5900           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5901         * support/Util/SDCCerr.c,
5902         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5903           needed for passing the bank and address to the trampoline
5904         * device/lib/mcs51/crtbank.asm: added for bankswitching
5905         * device/lib/mcs51/Makefile: added crtbank
5906
5907 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5908
5909         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5910           for fields at offset 0 of a struct or union as reported
5911           on 2005-07-07 in the developer mailing list.
5912
5913 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5914
5915         * src/SDCCmem.c: fixed bug 1238386
5916
5917 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5918
5919         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5920           (patch #1144962), added peephole 300, enabled 259.x
5921         * doc/sdccman.lyx: removed screenshot and provided link instead
5922
5923 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5924
5925         * doc/sdccman.lyx: added section about debugging with ddd
5926         * doc/figures/ddd_example.eps: screenshot of debugging session
5927
5928 2005-07-04 Raphael Neider <rneider AT web.de>
5929
5930         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5931           like CODE pointers, fixes #1115683
5932         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5933           call, fixes bugs #1232211, #1228110,
5934           fixed wrong casts to pCodeFlow from pCodeInstructions
5935
5936 2005-07-04 Raphael Neider <rneider AT web.de>
5937
5938         * src/pic/gen.c (popGet): changed assert to allow for
5939           bit operands
5940         * (popGetAddr): changed signature to provide
5941           an additional index, patched all call sites
5942         * (genCmpEq): handle literal-like operands correctly
5943         * (genAddrOf): added sanity checks on __code/__data pointers
5944         * (genAssign): added handling of symbols from __code section
5945         * (gencjne): do not generate code for comparisons whose result
5946           is neither stored nor used, fixes bug #1171114
5947         * (AccLsh, AccRsh): operate on operand instead of WREG
5948         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5949           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5950           by known count
5951         * rewrote complete shift-by-literal logic, commented unused
5952           functions out
5953         * (genConstPointerGet): get multiple bytes (if result size > 1),
5954           fixed handling of non-immediate addresses
5955         * (genPointerGet): handle CODE pointers like CONST pointers
5956         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5957         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5958           operand is to be treated as a literal or not
5959         * (mov2w,genPcall,genCmpEq),
5960           src/pic/genarith.c: use aop_isLitLike() to decide between
5961           literal/register contents
5962         * (addSign): added missing offset
5963         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5964           only emit comment in debug-mode,
5965           use {aop,op}_isLitLike throughout the file
5966         * src/pic/glue.c: fix initializers for pointers (work in progress)
5967         * src/pic/pcode.c (get_op): honor index on _const symbols
5968         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5969         * (dumppBlock): added pCode size estimation
5970         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5971           check for IS_SYMOP before OP_SYMBOL'ing
5972         * fixed indentation, compacted switch-statements
5973         * (allocReg): find free register and allocate it instead of
5974           allocating new registers all the time
5975         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5976           registers as its operands (necessary only for multibyte GETs)
5977
5978 2005-07-01 Raphael Neider <rneider AT web.de>
5979
5980         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5981           debugging .asm-output macros FENTRY + FEXIT
5982         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5983           way... I wonder...
5984         * (emitpComment): NEW, printf to pCode
5985         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5986           offset handling
5987         * (popGetAddr): NEW, variant of popGet to access an immediates
5988           high(er) bytes instead of the n'th byte of memory they reference,
5989           replaced popGet with popGetAddr where neccessary
5990         * (genDataPointerGet): reactivated and fixed implementation
5991         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5992           accesses
5993         * (genDataPointerSet): fixed multibyte assignments
5994         * (genpic14Code): fixed --i-code-in-asm handling
5995         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5996         * (genPlus): fixed index-out-of-bounds error
5997         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5998         * src/pic/ralloc.c: added debugging output macro FENTRY2
5999         * (spillThis): fixed indentation, enbraced for-body for clarity
6000         * (rematStr): commented out as now unused
6001         * (regTypeNum): commented out special spill case (overwrites
6002           arbitrary values)
6003         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6004
6005 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6006
6007         * doc/sdccman.lyx: documented sfr16/sfr32,
6008           added example for using storage class with function pointers
6009         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6010
6011 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6012
6013         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6014         * device/lib/_itoa.c,
6015         * device/lib/_ltoa.c: optimized codesize
6016         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6017           but don't know how to suppress the double warning.
6018         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6019         * support/Util/SDCCerr.c,
6020         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6021
6022 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6023
6024         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6025           fixed old K&R prototypes
6026         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6027         * device/lib/_gptrget.c,
6028         * device/lib/_gptrgetc.c,
6029         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6030           also new versions for small generic pointers and banked generic pointers
6031         * src/port.h: added const_name
6032         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6033         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6034         * src/SDCCcse.c (findPrevIc): check all associative operators
6035         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6036         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6037         * src/SDCCmem.c: updated comments,
6038           set far-space to 0 for pdata, results in optimized code
6039         * src/SDCCmem.h: added macro CONST_NAME
6040         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6041           moving the info into the highest bits, see also gptrget/gptrput
6042         * src/src.dsp: added sdcc.ico to project files
6043         * src/avr/gen.c (genCast): fixed bug 0x%d
6044         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6045         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6046           relation between ptr_type and DCL_TYPE,
6047           (genCast): fixed bug 0x%d
6048         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6049           (CODE)" for const_name
6050         * src/hc08/gen.c (genCast): fixed bug 0x%d
6051         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6052           (hc08_port): added "CONST (CODE)" for const_name
6053         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6054           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6055           between ptr_type and DCL_TYPE,
6056           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6057           operand* and took AOP() inside function so sfr-ness can be checked,
6058           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6059           new prototype,
6060           (genFunction, genEndFunction): optimized stack setup,
6061           (genMinus): optimized for literals with ending zeroes (in bytes),
6062           (genCast): fixed bug 0x%d
6063         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6064           (mcs51_port): added "CONST (CODE)" for const_name
6065         * src/mcs51/peeph.def: made rule 226 more generic
6066         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6067         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6068         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6069         * src/z80/main.c (z80_port): added NULL for const_name,
6070           (gbz80_port): added NULL for const_name
6071         * support/regression/tests/bug663539.c,
6072         * support/regression/tests/sfr16.c: new tests
6073
6074 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6075
6076         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6077
6078 2005-06-24 Raphael Neider <rneider AT web.de>
6079
6080         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6081           corrected typos...
6082         * device/include/pic16/signal.h: added USBIF
6083           and SIG_USB
6084
6085 2005-06-24 Raphael Neider <rneider AT web.de>
6086
6087         * device/lib/pic16/libdev/pic18f2455.c,
6088           device/include/pic16/pic18f2455.h: NEW
6089         * device/include/pic16/pic18fregs.h,
6090           device/lib/pic16/pics.all,
6091           src/pic16/device.c: added 18f2455
6092         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6093           device/include/pic16/{pic18f[68][567].h,usart.h}:
6094           replaced MULTIPLE_USARTS define with more relaible
6095           compatibility sfrs (for USART access)
6096
6097 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6098
6099         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6100           and the output asm file line is printed on two lines.
6101
6102 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6103
6104         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6105           BGT, BLE, BHI, and BLS instructions
6106         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6107           genCmpEq): removed
6108         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6109           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6110           fixes bug #1216342
6111         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6112
6113 2005-06-15 Raphael Neider <rneider AT web.de>
6114
6115         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6116         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6117         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6118           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6119           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6120
6121 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6122
6123         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6124           Marcel Telka in bug #1215704
6125
6126 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6127
6128         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6129           located in shared memory bank.
6130
6131 2005-05-31 Raphael Neider <rneider AT web.de>
6132
6133         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6134           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6135           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6136
6137 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6138
6139         * device/lib/_strncpy.c: fixed the fix
6140
6141 2005-05-26 Raphael Neider <rneider AT web.de>
6142
6143         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6144           initializers with \0, bug #1208187
6145         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6146           intializers with \0, bug #1208187
6147
6148 2005-05-26 Raphael Neider <rneider AT web.de>
6149
6150         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6151           initializers with \0, bug #1208187
6152         * src/pic16/main.c (_process_pragma): added sanity checks
6153           for stack position and size, emit warnings when appropriate
6154
6155 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6156
6157         * device/lib/_strncpy.c: fixed not filling with \0
6158
6159 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6160
6161         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6162           createFunction),
6163         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6164           compound_statement),
6165         * src/SDCCsymt.h,
6166         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6167
6168 2005-05-24 Raphael Neider <rneider AT web.de>
6169
6170         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6171
6172 2005-05-24 Raphael Neider <rneider AT web.de>
6173
6174         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6175           TRISE definitions, closes bug #1162453
6176
6177 2005-05-22 Raphael Neider <rneider AT web.de>
6178
6179         * src/pic16/main.c (_process_pragma): check for missing
6180           arguments to pragmas code and udata
6181         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6182           consistency fixes to match other headers (thanks to Jim Paris)
6183         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6184
6185 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6186
6187         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6188
6189 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6190
6191         * support/regression/tests/bug1198642.c: new test
6192         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6193         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6194         * support/scripts/resource.h,
6195         * support/scripts/resource.rc,
6196         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6197         * support/scripts/sdcc.ico: added 32x32 icon
6198
6199 2005-05-18 Raphael Neider <rneider AT web.de>
6200
6201         * device/lib/pic16/libdev/pic18f*.c,
6202         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6203           keywords to "__sfr" and "__at (X)"
6204         * device/include/pic16/pic18fregs.h: added pic18f4520
6205         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6206           #1203088 (MPLAB compatibility)
6207
6208 2005-05-17 Raphael Neider <rneider AT web.de>
6209
6210         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6211         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6212         * device/lib/pic16/pics.all: added new devices
6213         * src/pic16/device.c: added support for pic18f4520
6214
6215 2005-05-16 Raphael Neider <rneider AT web.de>
6216         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6217         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6218         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6219           convenience function for bit access
6220
6221 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6222
6223         * device/lib/printf_large.c: fixed bug 1193299
6224         * support/regression/tests/bug1057979.c: added test %3.3s
6225
6226 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6227
6228         * device/include/mcs51/8051.h,
6229         * device/include/mcs51/8052.h: made parseable with lint
6230         * device/include/mcs51/lint.h: added include file for (sp)lint
6231         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6232         * doc/cdbfileformat.lyx,
6233         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6234
6235 2005-05-14 Raphael Neider <rneider AT web.de>
6236
6237         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6238         * device/lib/pic16/libc/stdlib/itoa.c (new)
6239         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6240         * device/lib/pic16/libio/Makefile: exclude subdir according to
6241           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6242         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6243         * src/pic16/gen.c (genFunction): prevent annoying warning
6244         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6245           nameclashes on BeOS
6246         * support/cpp2/cppmain.c (cpp_output_string): new
6247         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6248           fixes bug 1116802
6249
6250 2005-05-13 Borut Razem <borut.razem AT siol.net>
6251
6252         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6253
6254 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6255
6256         * .version: changed to version 2.5.1; back to bleeding edge development
6257
6258 2005-05-11 Borut Razem <borut.razem AT siol.net>
6259
6260         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6261           generate PDF version 1.3 documents
6262
6263 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6264
6265         * .version: changed to version 2.5.0
6266
6267 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6268
6269         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6270
6271 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6272
6273         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6274         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6275         well as many smaller updates.
6276         * .version: changed to version 2.5.0-pre1
6277
6278 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6279
6280         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6281
6282 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6283
6284         * support/regression/tests/bug1185672.c: added
6285         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6286           bug 1185672
6287         * src/mcs51/gen.c (genCall): added comments, made it look safer
6288         * src/mcs51/gen.c (genEndFunction): simplified
6289
6290 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6291
6292         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6293
6294 2005-04-14 Borut Razem <borut.razem AT siol.net>
6295
6296         * fixed bug 1045046 - SIGSEGV with really simple code?:
6297           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6298           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6299
6300 2005-04-14 Borut Razem <borut.razem AT siol.net>
6301
6302         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6303           src/pic16/device.h: temporarily disabled experimental #inline pragma
6304           for 2.5.0 release
6305
6306 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6307
6308         * device/include/z80/stdio.h,
6309         * device/include/z80/string.h: removed these highly incomplete files so
6310           SDCC can use the default ones in device/include/
6311
6312 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6313
6314         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6315         gcc warning.
6316         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6317         fix sdcpp warnings.
6318
6319 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6320
6321         * device/include/malloc.h: removed redundant __reentrant prototypes
6322         * device/lib/_mullong.c: added working xstack variant in asm (C version
6323           doesn't pass regression tests)
6324         * device/lib/bpx.c: used __data and made bpx char for mcs51
6325         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6326           (createFunction): fixed bug with xstackPtr
6327         * src/SDCCcse.c: corrected comments
6328         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6329           (killDeadCode, eBBlockFromiCode): removed unused code
6330         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6331           corrected comments
6332         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6333           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6334           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6335           (genModOneByte): fixed warning in MSVC
6336         * src/mcs51/main.c (): added comments
6337         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6338
6339 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6340
6341         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6342
6343 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6344
6345         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6346
6347 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6348
6349         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6350         characters arrays of larger size than the declared one.
6351
6352 2005-04-10 Borut Razem <borut.razem AT siol.net>
6353
6354         * src/pic/gen.c (genInline),
6355           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6356           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6357           (findNextInstruction), (findPrevInstruction),
6358           (findInstructionUsingLabel),
6359           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6360         * src/pic/pcode.c (findLabel): added missing '\n'
6361         * src/src.dsp: added SDCCdwarf2.c to the project
6362
6363 2005-04-09 Borut Razem <borut.razem AT siol.net>
6364
6365         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6366
6367 2005-04-08 Raphael Neider <rneider AT web.de>
6368
6369         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6370           into the chain after a given one) and mergeDefmapSymbols (combine
6371           defmap entries for each symbol per pcode)
6372         * (createDefmap): have defmap entries merged in the end
6373         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6374           a symbol before replacing one access type's symbol, merge symbols in
6375           the end (replacement symbol might already have an entry)
6376         * (assignValnums): keep reference to written WREG intact
6377
6378 2005-04-08 Raphael Neider <rneider AT web.de>
6379
6380         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6381           Alpha)
6382
6383 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6384
6385         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6386         bytes
6387
6388 2005-04-07 Raphael Neider <rneider AT web.de>
6389
6390         * device/include/pic16/usart.h: added compatibility defines for
6391           devices with more than one USART
6392         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6393
6394 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6395
6396         * device/lib/Makefile.in: updated for port specific include
6397
6398 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6399
6400         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6401
6402 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6403
6404         * device/include/8051.h,
6405         * device/include/8052.h,
6406         * device/include/at89S8252.h,
6407         * device/include/at89c55.h,
6408         * device/include/at89x051.h,
6409         * device/include/at89x51.h,
6410         * device/include/at89x52.h,
6411         * device/include/mcs51reg.h,
6412         * device/include/reg51.h,
6413         * device/include/reg764.h,
6414         * device/include/regc515c.h,
6415         * device/include/sab80515.h: (re)moved these 12 files
6416         * device/include/mcs51/8051.h,
6417         * device/include/mcs51/8052.h,
6418         * device/include/mcs51/at89S8252.h,
6419         * device/include/mcs51/at89c55.h,
6420         * device/include/mcs51/at89x051.h,
6421         * device/include/mcs51/at89x51.h,
6422         * device/include/mcs51/at89x52.h,
6423         * device/include/mcs51/mcs51reg.h,
6424         * device/include/mcs51/reg51.h,
6425         * device/include/mcs51/reg764.h,
6426         * device/include/mcs51/regc515c.h,
6427         * device/include/mcs51/sab80515.h: and added them here
6428
6429 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6430
6431         * device/include/stdarg.h: changed SDCC specific keywords to double
6432           underlined form.
6433         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6434           mcs51 and ds390.
6435         * device/include/hc08/mc68hc908gp32.h,
6436         * device/include/hc08/mc68hc908jb8.h,
6437         * device/include/hc08/mc68hc908jkjl.h,
6438         * device/include/hc08/mc68hc908qy.h: fixed comments
6439         * device/include/mcs51/README: updated
6440         * device/include/mcs51/c8051f120.h: added PINRSF
6441         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6442         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6443           amidst code. Also inline is not supported.
6444
6445 2005-04-06 Raphael Neider <rneider AT web.de>
6446
6447         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6448         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6449           callers stack/frame pointers
6450
6451 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6452
6453         * device/include/pic16/usart.h: added, missing in previous commit,
6454         * device/include/pic16/adc.h: fixed typo,
6455         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6456         commit,
6457         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6458         <p18fxxx.inc>
6459         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6460         uninitialized because a bug appears with gplink
6461         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6462         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6463         complains for unrecognised option
6464
6465 2005-04-05 Raphael Neider <rneider AT web.de>
6466
6467         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6468           structs as well (using memcpy)
6469         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6470           on ISRs (GOTO has no label)
6471         * src/pic16/device.h: added OF_OPTIMIZE_DF
6472         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6473           new data flow analysis/optimization
6474         * src/pic16/pcode.c: added (prototypes for and implementation of)
6475           dataflow analysis functions, fixed pCodeInstructions' inCond and
6476           outCond values, made RCALL a branch instruction
6477         * (pic16_unlinkpCode): keep C line if possible
6478         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6479           C line moved if possible
6480         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6481         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6482           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6483         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6484           new flow)
6485         * (pic16_getJumptabpCode): NEW, needed in...
6486         * (LinkFlow): fixed handling of jumptables, calls and conditional
6487           branches
6488         * (pic16_InsertCommentAfter): NEW
6489         * (pic16_pCodeReplace): made verbose and flow preserving
6490         * (AnalyzeFlow): added call to data flow analysis
6491         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6492         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6493         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6494
6495 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6496
6497         * src/SDCCast.c (decorateType): fixed bug #1105626
6498
6499 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6500
6501         * device/include/asm/pic16/features.h,
6502         * pic18f*.h headers,
6503         * device/include/pic16/adc.h,
6504         * device/include/pic16/delay.h,
6505         * device/include/pic16/i2c.h,
6506         * device/include/pic16/malloc.h,
6507         * device/include/pic16/stdio.h,
6508         * device/include/pic16/stdlib.h,
6509         * device/include/pic16/string.h,
6510         * device/lib/pic16/libc/stdio/printf_tiny.c,
6511         * device/lib/pic16/libc/stdio/printf_small.c,
6512         * device/lib/pic16/libc/stdio/strmgpsim.c,
6513         * device/lib/pic16/libc/stdio/strmmssp.c,
6514         * device/lib/pic16/libc/stdio/strmusart.c,
6515         * device/lib/pic16/libc/stdio/vfprintf.c,
6516         * device/lib/pic16/libc/stdlib/ltoa.c,
6517         * device/lib/pic16/libc/stdlib/putchar.c,
6518         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6519         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6520         * device/lib/pic16/libc/stdlib/memchrram.c,
6521         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6522         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6523         * device/lib/pic16/libio/adc/adcbusy.c,
6524         * device/lib/pic16/libio/adc/adcread.c,
6525         * device/lib/pic16/libio/adc/adcsetch.c,
6526         * device/lib/pic16/libio/usart/ubaud.c,
6527         * device/lib/pic16/libio/usart/ubusy.c,
6528         * device/lib/pic16/libio/usart/udrdy.c,
6529         * device/lib/pic16/libio/usart/uopen.c,
6530         * device/lib/pic16/libio/usart/uputc.c,
6531         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6532         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6533         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6534         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6535         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6536         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6537         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6538         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6539         specific keywords to double underlined form,
6540         * device/lib/pic16/libc/Makefile.rules,
6541         * device/lib/pic16/libsdcc/Makefile.rules,
6542         * device/lib/pic16/libm/Makefile,
6543         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6544         to compile with C standard set in Makefile.common
6545         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6546         rand.c and crc.c in compilation process,
6547         * device/lib/pic16/libsdcc/int/divuint.c,
6548         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6549         `c' from signed to unsigned,
6550         * device/lib/pic16/startup/crt0.c,
6551         * device/lib/pic16/startup/crt0i.c,
6552         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6553         keywords to double underlined form, bug fixes in _do_cinit function
6554         which prevented the correct initialization of the .idata segment,
6555         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6556         core to enter a infinite loop
6557         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6558
6559 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6560
6561         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6562
6563 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6564
6565         * device/include/Makefile.in: add support for hc08 subdirectory
6566         * device/include/hc08/: new subdirectory
6567         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6568         Lucas Loizaga, thanks!
6569         * device/include/hc08/mc68hc908qy.h,
6570         * device/include/hc08/mc68hc908gp32.h,
6571         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6572         their own directory. Changed internal macro names to use the compiler
6573         reserved namespace. Changed SDCC specific keywords to double
6574         underlined form.
6575         * device/include/math.h,
6576         * device/include/malloc.h,
6577         * device/include/stdarg.h,
6578         * device/include/stdbool.h
6579         * device/include/string.h,
6580         * device/include/tinibios.h,
6581         * device/include/ds400rom.h,
6582         * device/include/8051.h,
6583         * device/include/8052.h,
6584         * device/include/80c51xa.h,
6585         * device/include/at89c55.h,
6586         * device/include/at89S8252.h,
6587         * device/include/at89x51.h,
6588         * device/include/at89x52.h,
6589         * device/include/ds80c390.h,
6590         * device/include/reg764.h,
6591         * device/include/regc515c.h,
6592         * device/include/sab80515.h,
6593         * device/include/mcs51/c8051f000.h,
6594         * device/include/mcs51/c8051f018.h,
6595         * device/include/mcs51/c8051f020.h,
6596         * device/include/mcs51/c8051f040.h,
6597         * device/include/mcs51/c8051f060.h,
6598         * device/include/mcs51/c8051f120.h,
6599         * device/include/mcs51/c8051f300.h,
6600         * device/include/mcs51/c8051f310.h,
6601         * device/include/mcs51/c8051f320.h,
6602         * device/include/mcs51/c8051f330.h,
6603         * device/include/mcs51/c8051f350.h,
6604         * device/include/z180.h: Changed SDCC specific keywords to double
6605         underlined form.
6606
6607 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6608
6609         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6610         18F4455,
6611         * (pic16_assignConfigWordValue): disable testing of configuration
6612         register value with config mask,
6613         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6614         function with port->fun_prefix,
6615         * (genFunction): when generating a naked interrupt function never
6616         create an absolute segment placed in interrupt vector address, place
6617         the actual interrupt function at IVA instead, when an interrupt
6618         function is generated with unspecified interrupt then do not create
6619         the absolute section,
6620         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6621         code for generating a call to generic pointer get/put function with
6622         a call to function pic16_callGenericPointer(),
6623         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6624         the call to the generic pointer get/put functions with prefixing the
6625         function name with port->fun_prefix,
6626         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6627         * src/pic16/main.c (_process_pragma): prefix function with
6628         port->fun_prefix,
6629         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6630         calling assembler, old 18Fxxxx macro is deprecated,
6631         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6632         PC_ASMDIR in while condition,
6633         * (findInstruction): add PC_ASMDIR in while condition,
6634         * (buildCallTree): prefix main with port->fun_prefix,
6635         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6636         identifier for variable with banked access in instructions BTFSS,
6637         BTFSC, BCF, BSF, BTG
6638         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6639         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6640         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6641         perform optimization when enviroment variable NO_REG_OPT is set,
6642         * (insideLRBlock): NEW, return 1 if register is inside an
6643         INF_LOCALREGS block,
6644         * (RemoveRegFromLRBlock): remove a register that is completely
6645         eliminated by register optimization, but it is still left in local
6646         register store/restore in/from stack block,
6647         * (Remove2pcodes): after removing register, check to see if it
6648         should be removed from local register store/restore in/from stack
6649         block,
6650         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6651         DUMMY_READ_VOLATILE,
6652
6653         * device/include/pic16/adc.h: minor prototype modifications and
6654         update,
6655         * device/include/pic16/malloc.h: added GPL notice various
6656         modifications,
6657         * device/include/pic16/stdint.h: NEW, standard header for ints
6658         * device/include/pic16/delay.h: NEW, header for delay functions,
6659         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6660         delay1mtcy,
6661         * device/include/pic16/signal.h: NEW, header providing helper macros
6662         for implementing signal handlers,
6663         * device/include/pic16/stdio.h: added prototypes for functions,
6664         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6665         prototypes for stdin and stdout, added macro PUTCHAR to
6666         automatically implement putchar function prototype,
6667         * device/include/pic16/usart.h: modified and updated USART library,
6668         * device/lib/pic16/libio/adc/,
6669         * device/lib/pic16/libio/i2c: some modifications to improve library
6670         performance,
6671         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6672         family of functions,
6673         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6674         family of functions and other sources,
6675         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6676         of the PIC18Fxx[28] devices,
6677         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6678         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6679         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6680         _do_cinit function, because the previous failed when local variables
6681         where not placed in the same memory bank,
6682         * device/lib/pic16/libsdcc/char/: various modifications to improve
6683         library performance,
6684         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6685         information on the new functions of the c library and more...
6686
6687 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6688
6689         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6690
6691 2005-03-26 Raphael Neider <rneider AT web.de>
6692
6693         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6694           if condition == CARRY)
6695         * (genCmp): adapted to new genSkipc semantics
6696         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6697           on rIfx (genCmp was broken)
6698
6699 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6700
6701         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6702         * src/z80/main.c (_keywords[]),
6703         * src/SDCCglobal.h (struct options),
6704         * src/SDCC.y,
6705         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6706         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6707         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6708         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6709         always available in leading double underscore form. The C99 support is
6710         mostly missing, but it's a start.
6711         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6712         reserved identifier "__data".
6713
6714 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6715
6716         * src/mcs51/peeph.def: fixed bug 1170013
6717
6718 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6719
6720         * device/include/mcs51reg.h: fixed bug 842007
6721
6722 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6723
6724         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6725         last time.
6726
6727 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6728
6729         * src/port.h (struct PORT),
6730         * src/avr/ralloc.c (avr_assignRegisters),
6731         * src/avr/main.c,
6732         * src/ds390/ralloc.c (ds390_assignRegisters),
6733         * src/ds390/main.c,
6734         * src/hc08/ralloc.c (hc08_assignRegisters),
6735         * src/hc08/main.c,
6736         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6737         * src/mcs51/main.c,
6738         * src/pic/ralloc.c (pic14_assignRegisters),
6739         * src/pic/main.c,
6740         * src/pic16/ralloc.c (pic16_assignRegisters),
6741         * src/pic16/main.c,
6742         * src/xa51/ralloc.c (xa51_assignRegisters),
6743         * src/xa51/main.c,
6744         * src/z80/ralloc.c (z80_assignRegisters),
6745         * src/z80/ralloc.h,
6746         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6747         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6748         * src/SDCCcse.h,
6749         * src/SDCCdflow.c (computeDataFlow),
6750         * src/SDCCdflow.h,
6751         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6752         * src/SDCCloop.h,
6753         * src/SDCCcflow.c (*),
6754         * src/SDCCcflow.h,
6755         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6756         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6757         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6758         immedDom() returning wrong block; probably fixes bug #1160833)
6759
6760 2005-03-20 Borut Razem <borut.razem AT siol.net>
6761
6762         * support/scripts/inc2h.pl: WIN32 port
6763
6764 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6765
6766         * device/lib/makefile.in: added abs.c and labs.c
6767
6768 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6769
6770         * device/include/stdint.h: added
6771         * device/lib/abs.c: added
6772         * device/lib/labs.c: added
6773         * device/include/stdlib.h: added abs() and labs() prototypes
6774         * device/lib/libsdcc.lib: added abs and labs
6775         * device/include/float.h,
6776         * device/lib/_fsmul.c,
6777         * device/lib/printf_fast.c,
6778         * device/lib/printf_tiny.c: updated comments
6779
6780 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6781
6782         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6783         bug #1164313
6784
6785 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6786
6787         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6788         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6789
6790 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6791
6792         * device/lib/printf_large.c: removed inline assembly for portability and
6793           readability. Use printf_fast if speed or size are more important.
6794         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6795         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6796
6797 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6798
6799         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6800         prevent compiler warning
6801
6802 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6803
6804         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6805         moved to level 0 and declared as static. Also they are explicit
6806         placed in access bank. This was necessery because some times they
6807         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6808         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6809         optimizations. Currently only compare to unsigned char is implemented,
6810         * src/pic16/gen.c: added fReturnIdx array,
6811         * (struct resolvedIfx) is moved to gen.h and made public,
6812         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6813         * (aopForSym): added an optimization to directly store in stack of
6814         the operand of a SEND iCode,
6815         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6816         but as registers instead (AOP_REG) using the fReturnIdx array,
6817         * (pic16_freeAsmop): remove the freed register from the
6818         _G.sregsAlloc field,
6819         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6820         a compare of 'WREG',
6821         * (pic16_popGetTempRegCond): changed function prototype, now
6822         function takes also a bitVector argument v which holds the current
6823         set of registers that are allocated for stack access by aopForSym,
6824         registers allocated in aopForSym for accessing stack symbols are not
6825         any more part of the functions usedRegs field,
6826         * (genCall): some times aopOp is called for a stack variable to be
6827         send, aopForSym might perform the push, if this is true make sure
6828         that genCall doesn't push the variable twice by testing _G.resDirect,
6829         * (genFunction): changed testing for unspecified interrupt number
6830         from 256 to INTNO_UNSPEC,
6831         * modified selection scheme of frame pointer generation. Previously
6832         if function did use local registers a frame pointer was generated,
6833         now a frame pointer is generated only if function has arguments
6834         (that need PLUSW2 register access), or has stack arguments, or the
6835         compiler is not instructed to omit the frame pointer,
6836         * (genEndFunction): before restoring local registers that were saved
6837         in the function preamble, also restore the registers that *might*
6838         have been allocated for stack access,
6839         * (genRet): removed some old comments,
6840         * (genCmp, the active (RN's) version): added a call to the
6841         pic16_genCmp_special function to perform the compare with a more
6842         robust and optimized way,
6843         * (genInline): a feature has been added in inline code generation,
6844         which allows a wildcard variable substitution when writing inline
6845         assembly. Code is incomplete and experimental therefore undocumented,
6846         * (genCast): changed order of aopOp for result and right to allow
6847         aopForSym to directly load the result if possible,
6848         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6849         perform an optimized compare on some selected special occasions,
6850         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6851         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6852         generate an IVT any more,
6853         * src/pic16/main.c (pic16_optionsTable): added command line option
6854         --optimize-cmp,
6855         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6856         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6857         macros,
6858         * src/pic16/NOTES: Raphael Neider added in list of active developers
6859         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6860         jumptable_end to prevent bug #,
6861         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6862         inCond and outCond fields,
6863         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6864         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6865         turn off register spilling,
6866         * (packRegsForOneUse): synced with other ports' versions although it
6867         is not used currently,
6868         * (pic16_packRegisters): added an optimization while reading
6869         structure bitfields, some registers may be saved (malloc code is
6870         decreased by 80 bytes)
6871
6872 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6873
6874         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6875         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6876         this can be optimized more?
6877
6878 2005-03-10 Raphael Neider <rneider AT web.de>
6879
6880         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6881           genNearPointerGet): (hopefully) fixed access to bitfields via
6882           pointers (p->bitN = x; and x = p->bitN; failed)
6883
6884 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6885
6886         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6887
6888 2005-03-09 Raphael Neider <rneider AT web.de>
6889
6890         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6891
6892 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6893
6894         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6895         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6896           (regTypeNum): set REG_BIT type if necessary
6897         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6898         * support/regression/tests/critical.c: check bug 1144613
6899
6900 2005-03-02 Raphael Neider <rneider AT web.de>
6901
6902         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6903
6904 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6905
6906         * src/avr/ralloc.c (serialRegAssign),
6907         * src/ds390/ralloc.c (serialRegAssign),
6908         * src/hc08/ralloc.c (serialRegAssign),
6909         * src/mcs51/ralloc.c (serialRegAssign),
6910         * src/pic/ralloc.c (serialRegAssign),
6911         * src/pic16/ralloc.c (serialRegAssign),
6912         * src/xa51/ralloc.c (serialRegAssign),
6913         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6914
6915 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6916
6917         * src/SDCCast.c (decorateType): fixed bug 1124787
6918
6919 2005-02-20 Hubert Sack <sack AT digiplan.de>
6920         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6921
6922         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6923         patch #1121755
6924
6925 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6926
6927         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6928         to keep the correct label reference count when adding/removing references
6929         to labels. A peephole file using this is appended to patch #1144962.
6930
6931 2005-02-14 Raphael Neider <rneider AT web.de>
6932
6933         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6934         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6935         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6936           retrievals of result operand's value on assignment
6937
6938 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6939
6940         * device/include/pic16/string.h: modified prototype for memccpy()
6941         to memccpy(void *, void *, char, size_t)
6942         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6943         check whether to omit frame pointer or not,
6944         * (genInline): convert all occurences of "\n" to LF in inline
6945         assembler blocks, this helps formatting the inline text,
6946         * (pic16_loadFSR0): modified prototype,
6947         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6948         removed some 8051 legacy code,
6949         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6950         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6951         before allocating temporary registers in functions,
6952
6953 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6954
6955         * support/regression/tests/bitvars.c: corrected the "fix"
6956
6957 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6958
6959         * support/regression/tests/bitvars.c,
6960         * support/regression/tests/bitwise.c,
6961         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6962
6963 2005-02-10 Raphael Neider <rneider AT web.de>
6964
6965         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6966           different size for Alpha
6967         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6968
6969 2005-02-09 Raphael Neider <rneider AT web.de>
6970
6971         * src/SDCC.lex(doPragma) : save and restore warning options as well
6972           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6973         * have #pragma less_pedantic set the errorlevel to WARNING
6974           (fixes #1117001)
6975         * (cloneOptimize) : fixed wrong malloc's size
6976         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6977           facilitate correct handling of #pragma (save|restore)
6978
6979 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6980
6981         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6982
6983 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6984
6985         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6986
6987 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6988
6989         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6990
6991 2005-02-02 Raphael Neider <rneider AT web.de>
6992
6993         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6994         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6995         * (pic16_storeForReturn): fixed to allow returning function pointers
6996         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6997         * device/include/pic16/{stddef.h,stdbool.h}: added
6998
6999 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7000
7001         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7002
7003 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7004
7005         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7006         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7007          appeared to be required
7008
7009 2005-01-31 Borut Razem <borut.razem AT siol.net>
7010
7011         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7012           include/mcs51 and include/z80 directories to the package
7013
7014 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7015
7016         * src/hc08/gen.c (genFunction): fixed bug #1112752
7017
7018 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7019
7020         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7021
7022 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7023
7024         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7025
7026 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7027
7028         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7029
7030 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7031
7032         * device/include/c8051fxxx.h: removed these 6 files
7033         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7034
7035 2005-01-26 Raphael Neider <rneider AT web.de>
7036
7037         * src/pic16/gen.c (genAssign): fixed assignment from longs
7038           in codespace (were cut to three bytes)
7039         * (genDummyRead): implemented (except for CODESPACE...),
7040           fixed bug #1108575
7041         * src/pic16/glue.c (emitStatistics): beautified
7042         * device/lib/pic16/libm/Makefile: added include path
7043
7044 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7045
7046         * src/z80/gen.c (aopPut): fixed bug #1103902
7047
7048 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7049
7050         * device/lib/expf.c: fixed bug #1095792
7051
7052 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7053
7054         * device/lib/pic16/libm: added Math library sources
7055
7056 2005-01-24 Raphael Neider <rneider AT web.de>
7057
7058         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7059           to enable upcast to pCodeOpReg2 (there is no type tag to
7060           differenciate the two and pic16_popGet2p cast into PCOR2)
7061         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7062           (sizeof(sectNames) changed to sizeof(sectName))
7063           Both patches fix segfaults under MinGW.
7064
7065 2005-01-23 Raphael Neider <rneider AT web.de>
7066
7067         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7068           Safe_[mc]?alloc()'ed variables
7069         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7070           of (byte sized) temporaries (assign them to WREG for now)
7071         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7072           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7073           this might fix SIGSEGVs on MinGW...
7074         * src/SDCCopt.c (killDeadCode): restored original behaviour
7075           (volatile operands might get thrown away though)
7076
7077 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7078
7079         * src/pic16/gen.c: fixed bug #1106975,
7080         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7081         pointer update, INTCON is saved, global interrupts are disabled and
7082         restored after updateing TOS.
7083         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7084         * added function attribute 'shadowregs' to take advantage of shadow
7085         registers,
7086         * added function attribute 'wparam' as an alternative to the wparam
7087         pragma,
7088         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7089         user declares a non-ISR function as 'shadowregs',
7090         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7091
7092 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7093
7094         * .version: bumped version number to 2.4.8
7095         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7096         pic16 port,
7097         * device/lib/pic16/libio/i2c/: I2C module support library,
7098         * device/include/pic16/i2c.h: I2C support library header,
7099         * device/lib/pic16/libc/stdio/: standard IO support sources,
7100         * (printf_small.c): printf_small() source, supports float print,
7101         * (printf_tiny.c): printf_tiny() source, does not support floats,
7102         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7103         enable global optimizations for entire library source, other
7104         Makefiles in the source tree are also modified to reflect this,
7105         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7106         function,
7107         * doc/sdccman.lyx: updated to reflect new changes,
7108         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7109         sym->onStack if-case,
7110         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7111         sbit, idata, _idata, xdata, _xdata,
7112         * added pragma library, to link an external library, (see doc),
7113         * removed command line options, --pomit-config-words, --pomit-ivt,
7114         --pleave-reset-vector,
7115         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7116         when calling assembler to reflect memory model used, also define
7117         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7118         reflect stack model used,
7119         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7120         on stack return NULL,
7121
7122 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7123
7124         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7125           of the operands is volatile. Fixes #1020220
7126
7127 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7128
7129         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7130         * (OptimizeRegUsage): make sure that there is really no other flow where
7131           the first pCode is used
7132
7133 2005-01-22 Raphael Neider <rneider AT web.de>
7134
7135         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7136           to fix #1106967 (pCode->seq are not set up correctly)
7137
7138 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7139
7140         * src/SDCCglue.c (glue): make sure code area is declared before the
7141         static initialization area.
7142
7143 2005-01-21 Raphael Neider <rneider AT web.de>
7144
7145         * device/lib/Makefile.in: fixed test for pic16 install dir
7146         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7147           optimizations
7148         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7149           added --optimize-goto compiler switch and pragma wparam documentation
7150         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7151         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7152           and PRODH closing bug #1071770 (peephole optimizer)
7153
7154 2005-01-19 Raphael Neider <rneider AT web.de>
7155
7156         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7157           cmdLine buffers (used when calling sdcpp...) are large enough
7158           (MAX_PATH=256 truncates arguments leading to system halts when
7159           used in MinGW...)
7160         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7161         * (genUminus): rewritten to for efficiency
7162         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7163           used uninitialized in some cases)
7164         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7165           copy the third byte from the int -- now assumes 0x80 (data memory)
7166         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7167           operands (genAddLit expects the iCode's operands to swapped as
7168           well), fixed leftover bytes (crashed for short left operands)
7169         * (pic16_genMinusDec): performance improvements, removed false
7170           PIC14 emitSKPNCs
7171         * (pic16_genMinus): fixed to cope with differently sized operands
7172         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7173           for --obanksel > 1
7174         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7175         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7176           new banksel optimization
7177         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7178           analysis for temporary registers (segfaults...)
7179         * src/pic16/peeph.def: added rule
7180
7181 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7182
7183         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7184         which converts a float number to its ASCII representation
7185         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7186         functions to convert the fractional and integer part of a float to ASCII,
7187         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7188         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7189         ram
7190         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7191         _STATMEM macros,
7192         * device/include/pic16/adc.h: added GPL info,
7193         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7194         a pCodeOp as tested operand,
7195         * (genNearPointerGet): optimized bit testing, does not use
7196         intermediate register for bit value, test directly instead with
7197         BTFSS, BTFSC, works only for single bits,
7198         * (genpic16Code): dump the name of the iCode in the asm,
7199         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7200         renamed to pic16_decodeOp,
7201         * (serialRegAssign): do not allocate a temporary register for iCode
7202         sequences that test a single bit for 1/0
7203
7204 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7205
7206         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7207         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7208         access stack and frame pointers. They are initially assigned to
7209         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7210         accessing SFRs. Updated all occurences of modification of stack or
7211         frame pointer in gen.c and pcode.c,
7212         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7213         assigning of a literal value to pointers,
7214         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7215         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7216         selected
7217
7218 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7219
7220         * doc/sdccman.lyx: update documentation about stack pragma, added
7221         some info for stack memory models
7222
7223 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7224
7225         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7226
7227 2005-01-08 Raphael Neider <rneider AT web.de>
7228
7229         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7230           udata sections to fix bug #1097823
7231
7232 2005-01-05 Raphael Neider <rneider AT web.de>
7233
7234         * src/pic16/gen.c (genGenericShift): added handling of differently
7235           sized left operand and result
7236
7237 2005-01-04 Raphael Neider <rneider AT web.de>
7238
7239         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7240         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7241           to hold the condition bit)
7242         * added new version of genCmp (old code available via #define)
7243         * added new version of genShiftLeft/genShiftRight in a generic
7244           way, now supports shifting by negative values
7245         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7246           shiftCount (expected by genGenericShift)
7247         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7248         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7249           dump
7250         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7251           is an invalid literal too...)
7252
7253 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7254
7255         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7256         from Raphael Neider,
7257         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7258         for 8-bit literals. This fixes some literal operands which are sign
7259         extended to 16-bits ints when instruction needs only 8-bits.
7260
7261 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7262
7263         * device/lib/logf.c: added mcs51 assembly version
7264         * device/lib/expf.c: added mcs51 assembly version
7265         * device/lib/_logexpf.c: new shared asm code for expf and logf
7266         * device/include/math.h: add defines for assembly math library
7267         * device/lib/Makefile.in: build new _logexpf.c
7268         * device/lib/libfloat.lib: use new _logexpf.c
7269
7270 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7271
7272         * src/pic/device.c
7273         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7274           device types which have less than 0x7f registers.
7275
7276 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7277
7278         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7279
7280 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7281
7282         * device/lib/printf_fast.c: only build on supported arch.
7283         * device/lib/printf_tiny.c: only build on supported arch.
7284         * device/lib/printf_fast_f.c: only build if asm float lib
7285         * device/lib/_fsget1arg.c: only build if asm float lib
7286         * device/lib/_fsget2args.c: only build if asm float lib
7287         * device/lib/_fsnormalize.c: only build if asm float lib
7288         * device/lib/_fsreturnval.c: only build if asm float lib
7289         * device/lib/_fsrshift.c: only build if asm float lib
7290         * device/lib/_fsswapargs.c: only build if asm float lib
7291         * device/include/stdio.h: don't provide print_fast,
7292           print_fast_f, print_tiny prototypes if --xstack used
7293
7294 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7295
7296         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7297         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7298           to the SOURCES
7299
7300 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7301
7302         * device/lib/printf_fast_f.c: same as printf_fast, but
7303           with floating point enabled
7304         * device/lib/printf_fast.c: minor tweaks
7305         * device/include/stdio.h: add printf_fast_f
7306
7307 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7308
7309         * src/SDCCmain.c: make --float-reent default for mcs51
7310         * device/lib/_fsadd.c: added mcs51 assembly version
7311         * device/lib/_fssub.c: added mcs51 assembly version
7312         * device/lib/_fsmul.c: added mcs51 assembly version
7313         * device/lib/_fsdiv.c: added mcs51 assembly version
7314         * device/lib/_fseq.c: added mcs51 assembly version
7315         * device/lib/_fsneq.c: added mcs51 assembly version
7316         * device/lib/_fsgt.c: added mcs51 assembly version
7317         * device/lib/_fslt.c: added mcs51 assembly version
7318         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7319         * device/lib/Makefile.in: add _fscmp to build
7320         * device/lib/libfloat.lib: add _fscmp to build
7321
7322 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7323
7324         * device/lib/_fs2slong.c: added mcs51 assembly version
7325         * device/lib/_fs2sint.c: added mcs51 assembly version
7326         * device/lib/_fs2schar.c: added mcs51 assembly version
7327         * device/lib/_fs2ulong.c: added mcs51 assembly version
7328         * device/lib/_fs2uint.c: added mcs51 assembly version
7329         * device/lib/_fs2uchar.c: added mcs51 assembly version
7330         * device/lib/_slong2fs.c: added mcs51 assembly version
7331         * device/lib/_sint2fs.c: added mcs51 assembly version
7332         * device/lib/_schar2fs.c: added mcs51 assembly version
7333         * device/lib/_ulong2fs.c: added mcs51 assembly version
7334         * device/lib/_uint2fs.c: added mcs51 assembly version
7335         * device/lib/_uchar2fs.c: added mcs51 assembly version
7336         * device/include/float.h: added #define to select asm vs c
7337
7338 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7339
7340         * device/lib/printf_fast.c: improvements to float output
7341         * device/include/float.h: add defines for assembly float library
7342         * device/lib/_fsget1arg.c: receive 1 float arg
7343         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7344         * device/lib/_fsnormalize.c: normalize a float
7345         * device/lib/_fsreturnval.c: return float, various helper routines
7346         * device/lib/_fsrshift.c: right shift a float's mantissa
7347         * device/lib/_fsswapargs.c: swap 2 floats
7348         * device/lib/Makefile.in: build these 6 new files for mcs51
7349         * device/lib/libfloat.lib: add these 6 files to the library
7350
7351 2004-12-26 Borut Razem <borut.razem AT siol.net>
7352
7353         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7354           built by gcc 3.4.2
7355
7356 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7357
7358         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7359           and fully reentrant and register bank neutral.
7360         * device/lib/printf_fast.c: added float (not enabled by default),
7361           added compact/slower integer (also not enabled by default),
7362           improved size/speed of fast integer code, other minor changes
7363         * device/include/stdio.h, device/lib/Makefile.in,
7364           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7365
7366 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7367
7368         * src/pic16/pcode.c: declaring variables other than at the start of a
7369           block is not supported in C by VC6.
7370
7371 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7372
7373         * applied a previous patch from Raphael Neider that wasn't included
7374         in the previous commits, which fixes infinite loops within jumptable
7375         improvements,
7376         * made some fixes that previous patches introduced
7377
7378 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7379
7380         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7381         that fixes an issue with AOP_PCODE asmop's offset,
7382         * (pic16_popCopyReg): update instance field too,
7383         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7384         function of pic port,
7385         * (genCmp, genAnd, genAssign),
7386         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7387
7388 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7389
7390         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7391         variables initial values to idata section,
7392         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7393         variables in some functions. This utilizes parmBytes field of iCode
7394         structure to hold the offset of the variable in stack. (might be
7395         able to use the stack field too?)
7396         * applied patch from Raphael Neider # ### , # ###
7397         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7398         variable initial values in idata section,
7399         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7400         for static variables with initial value
7401         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7402         applied fix in while loop from Raphael Neider.
7403
7404 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7405
7406         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7407         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7408         * src/ds390/ralloc.c (serialRegAssign): spill bits
7409         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7410         * support/Util/SDCCerr.c,
7411         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7412         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7413         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7414
7415 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7416
7417         * device/include/sdcc-lib.h: inserted LGPL, added includes
7418           asm/ds390/features.h and asm/mcs51/features.h
7419         * device/include/asm/default/features.h,
7420         * device/include/asm/gbz80/features.h,
7421         * device/include/asm/z80/features.h: added empty _AUTOMEM
7422           and _STATMEM
7423         * device/include/asm/ds390/features.h,
7424         * device/include/asm/mcs51/features.h: added files with defines for
7425           _AUTOMEM and _STATMEM indicating automatic and static storage class
7426         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7427         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7428         * src/SDCCicode.c (geniCodeCast),
7429         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7430         * src/SDCCloop.c (loopInduction): removed unused variable lr
7431         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7432           to convertToFcall to include char modulo (RFE 1065037), added check
7433           if left operand is unsigned and use abs of literal value
7434         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7435           as it doesn't work after conversion from peephole.def to peephole.rul
7436         * src/mcs51/gen.c (toBoolean): added check for size,
7437           (genModOneByte): optimized code for signed char modulo a literal
7438           power of 2 (thanks to Hubert Sack),
7439           (genRRC): removed unnecessary "clr c",
7440           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7441         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7442           jump optimization,
7443           swapped rules 256.c and 256.d,
7444           extended 256.d by using new multiple checks (thanks Erik),
7445           added rules 256.e and 256.f,
7446           updated rule 261.a and 261.b to new generated code
7447         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7448
7449 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7450
7451         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7452           induction related bugs, including first part of bug #1074377
7453
7454 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7455
7456         * applied patch from bug-report #1076292,
7457         * applied patches for genAnd and Goto-optimizations for Raphael
7458         Neider,
7459         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7460         dump a less iCode information,
7461         * src/pic16/device.h (pic16_options_t): added field debgen,
7462         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7463         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7464         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7465         puclic,
7466         * (various functions): added macros FENTRY and FENTRY2 to functions,
7467         to emit function prologue,
7468         * (various functions): fixed indentation,
7469         * (genNearPointerGet): fixed loading of FSR0,
7470         * (genPackBits): applied patch from Raphael Neider to fix updating
7471         of FSR0 and touching only the modified bits,
7472         * src/pic16/genarith.c (various functions): added macros FENTRY to
7473         emit function prologue in comments,
7474         * src/pic16/pcode.h: added functions debugf2, debugf3,
7475         * src/pic16/ralloc.c: partial fix for packForPush caused
7476         segmentation fault,
7477
7478 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7479
7480         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7481           <stsp AT users.sourceforge.net> with reversed byte order
7482         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7483
7484 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7485
7486         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7487           bug #1074377
7488         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7489         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7490
7491 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7492
7493         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7494
7495 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7496
7497         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7498           conditions,
7499           (setFromConditionArgs): friendly operand parser for peephole rules,
7500           (operandBaseName, operandsNotRelated): new peephole condition
7501           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7502           architecture specific register naming into account, handles n-way
7503           comparisons, and supports quoted literals
7504         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7505
7506 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7507
7508         * src/mcs51/peeph.def: fixed bug #1076940
7509
7510 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7511
7512         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7513
7514 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7515
7516         Adding support for replacing ljmps with sjmps in jumptables
7517         generated for switch statements. For now you need to set the
7518         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7519         Now 4 algorithms for mcs51 jumptable generation are used:
7520         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7521         addresses loaded pc-relative for up to 112 cases and stack-pushing
7522         target addresses loaded with offset from dptr for up to 256 cases.
7523
7524         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7525         * src/mcs51/main.c: adapted constants for switch table generation
7526         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7527
7528 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7529
7530         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7531         * support/regression/tests/bug1057979.c: added test for bug 1073386
7532
7533 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7534
7535         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7536         compilers
7537
7538 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7539
7540         * src/pic16/device.h,
7541         * src/pic16/genarith.c,
7542         * src/pic16/glue.c,
7543         * src/pic16/main.c,
7544         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7545
7546 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7547
7548         Large cummulative patch for pic16 port.
7549         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7550         to call when a stack overflow occurs,
7551         * (malloc.h): added CVS Id tag,
7552         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7553         variable,
7554         * added libc directory. The current version of LibC contains string
7555         functions, ctype functions and macros and some functions of the
7556         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7557         be extensively tested in the future. Standard disclaimer here.
7558         Library is not automatically build yet. But one can build it by
7559         invoking 'make' inside the libc directory.
7560         * added ADC library under libio. Preliminary version yet.
7561
7562         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7563         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7564         aopForRemat() now and not by pic16_aopOp(),
7565         * (pic16_popGetTempReg): removed warning messgae when allocating
7566         temporary registers, its a buggy feature and will be removed,
7567         * (pic16_popGet): set register instance field in AOP_CRY,
7568         * (pic16_outBitC): fixed for results in size greater than 1,
7569         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7570         * (pic16_storeForReturn): optimized return of 0,
7571         * (genCmp): experimental code for new genCmp which uses PIC18's
7572         special compare&skip instructions. Initial tests fail some times
7573         with variables grater than 1 byte in size, so new code is disabled,
7574         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7575         a single bit,
7576         * (genCast): began a fix to optimize the casting of a bit to another
7577         bit, now assigning a bitfield to another bitfield will fail, sorry,
7578         * src/pic16/main.c: disabled the use of lr-support feature,
7579         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7580         * added some function prototypes, added function _debugf prototype,
7581         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7582         bits with offset (case PO_GPR_BIT),
7583         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7584         command line,
7585         * (isBankInstruction): modified to return 0 for no banking instruction,
7586         and 1 for banking instruction,
7587         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7588         caused stop processing pCodes after a inline assembly block,
7589         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7590         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7591         registers when it shouldn't,
7592         * src/pic16/ralloc.c (allocReg): add preliminary support for
7593         supporting a limited set of temporary registers,
7594
7595 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7596
7597         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7598           genDataPointerSet): ensure assignments always copy in MSB to LSB
7599           order,
7600           (loadRegFromAop): recognize CLRH optimization,
7601           (genFunction): optimize RECEIVE iCodes in reentrant functions
7602
7603 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7604
7605         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7606           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7607           selected.
7608         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7609         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7610           contiguous with data
7611
7612 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7613
7614         * device/lib/_gptrget.c (_gptrget),
7615         * device/lib/_gptrgetc.c (_gptrgetc),
7616         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7617           instead of sjmp to ret
7618         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7619           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7620
7621 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7622
7623         * .version: bumped version to 2.4.7
7624         * device/lib/_gptrget.c (_gptrget): is now _naked
7625         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7626         * device/lib/_gptrput.c (_gptrput): is now _naked
7627         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7628           (createFunction): fixed xstack
7629         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7630         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7631           or bit either,
7632           (geniCodeCritical): store original interrupt state in an iTemp bit
7633           var unless stack-auto
7634         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7635         * src/SDCCmain.c (setIncludePath): added include/target to search path
7636         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7637         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7638           prototype,
7639           (processFuncArgs): put bit vars in bit area
7640         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7641           unsaveRBank): fixed xstack,
7642           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7643           (genFunction, genEndFunction): fixed xstack,
7644           (genAssign): optimization don't walk backwards through mem
7645         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7646         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7647         * support/regression/Makefile: also make library (for stack-auto) when
7648           making "all" and added "test-mcs51-xstack-auto"
7649         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7650         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7651         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7652         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7653         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7654           make-library by MAKE_LIBRARY
7655         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7656           regression tests for xstack
7657         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7658         * support/regression/tests/critical.c: test for critical on mcs51
7659
7660 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7661
7662         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7663           built version of sdcc instead of installed version
7664
7665 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7666
7667         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7668         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7669           vprintf.c now
7670         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7671         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7672           WARNING: remove device/lib/build/z80/printf.o by hand when
7673           updating from previous build!
7674         * device/lib/z80/printf.c: updated comment
7675         * support/regression/tests/bug1057979.c: test all ports now
7676         * support/regression/tests/bug1065458.c: file added
7677
7678 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7679
7680         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7681           *_start and *_end symbols for static functions
7682
7683 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7684
7685         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7686           and search crt0.o in all library paths,
7687           (setIncludePath): proper handling of --nostdinc,
7688           (setLibPath): proper handling of --nostdlib
7689         * support/regression/Makefile,
7690         * support/regression/ports/ds390/spec.mk,
7691         * support/regression/ports/gbz80/spec.mk,
7692         * support/regression/ports/hc08/spec.mk,
7693         * support/regression/ports/mcs51/spec.mk,
7694         * support/regression/ports/mcs51-large/spec.mk,
7695         * support/regression/ports/mcs51-stack-auto/spec.mk,
7696         * support/regression/ports/z80/spec.mk: use include and lib files from
7697           built version of sdcc instead of installed version
7698         * doc/sdccman.lyx: fixed typo in --nostdinc
7699
7700 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7701
7702         * src/pic/pcode.c,
7703         * src/pic/device.c,
7704         * src/pic/ralloc.c,
7705         * src/pic/gen.c : added support to generate code for struct bit fields.
7706
7707 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7708
7709         * as/xa51/xa_version.h,
7710         * device/include/errno.h,
7711         * device/include/regc515c.h,
7712         * device/lib/_itoa.c,
7713         * device/lib/_ltoa.c,
7714         * device/lib/ser_ir_cts_rts.c,
7715         * sim/ucsim/xa.src/glob.cc,
7716         * sim/ucsim/xa.src/inst_gen.cc,
7717         * sim/ucsim/xa.src/xa_bit.cc,
7718         * sim/ucsim/xa.src/xa_sfr.cc,
7719         * sim/ucsim/z80.src/inst_dd.cc,
7720         * sim/ucsim/z80.src/inst_fdcb.cc,
7721         * support/scripts/keil2sdcc.pl,
7722         * src/pic16/pic16.dsp,
7723         * src/pic16/pic16a.dsp: corrected cvs line endings
7724         * device/lib/printf_large.c: fixed bug 1057979
7725         * src/pic16/gen.c: fixed non-C standard code
7726         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7727         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7728         * support/regression/ports/mcs51/support.c: reload T1 asap
7729         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7730           pdata use and clear idata startup behaviour
7731         * support/regression/tests/bug1057979.c: added
7732
7733 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7734
7735         * device/examples/ds390/ow390/ad26.h,
7736         * device/examples/ds390/ow390/cnt1d.h,
7737         * device/examples/ds390/ow390/crcutil.c,
7738         * device/examples/ds390/ow390/ownet.h,
7739         * device/examples/ds390/ow390/owsesu.c,
7740         * device/examples/ds390/ow390/swt12.h,
7741         * device/examples/ds390/ow390/swtoper.c,
7742         * device/examples/ds390/ow390/temp10.h,
7743         * device/examples/ds390/ow390/thermodl.c,
7744         * device/examples/ds390/tinitalk/tinitalk.dsp,
7745         * device/examples/ds390/tinitalk/tinitalk.dsw,
7746         * device/examples/mcs51/clock/hw.h,
7747         * device/examples/mcs51/simple2/go.bat,
7748         * device/examples/serialcomm/windows/serial.h,
7749         * device/examples/xa51/dummy.c,
7750         * device/examples/xa51/hello.c,
7751         * device/include/80c51xa.h,
7752         * device/include/at89x051.h: corrected cvs line endings
7753
7754 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7755
7756         * src/pic16/main.c (options): added command line --gstack, to trace
7757         stack over/under flows,
7758         * added pragma 'wparam' to allow passing first byte of function
7759         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7760         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7761         call to __gstack_test function and sets up the symbol as extern,
7762         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7763         * popaop): added call to pic16_testStackOverflow,
7764         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7765         wparamList list,
7766         * (genCall, genPcall): now all parameters are passed via stack
7767         except in functions that are pass to wparam pragma in which WREG is
7768         used too,
7769         * (genPcall): REENTRANT flag is checked to see if variable prototype
7770         contains reentrant keyword, don't call a non-reentrant function, via
7771         a reentrant function pointer or vice versa, functions are never
7772         passed via WREG,
7773         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7774         D.Winkler,
7775         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7776         SIGSEGV when accessing a NULL register stucture,
7777         * (pic16_printGPointerType): modified to handle UPPER modifier for
7778         function initializers, changed prototype of function to simpler one,
7779         * (pic16_printIvalFuncPtr): check to see if function is already
7780         added in externs list,
7781         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7782         optimized a move from W to SFR with a move to the same register
7783         later after a CALL,
7784         * device/lib/pic16/debug: NEW directory, contains debug features
7785         which are enabled when linking with libdebug.lib, currently command
7786         line option --gstack enables stack pointer tracing for over/under
7787         flow, corresponding sources are in debug/gstack
7788
7789 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7790
7791         * doc/sdccman.lyx: updated SDCC version,
7792         * (PIC16 port): update list of command line options,
7793         * src/pic16/device.h (structure pic16_options_t): added field gstack
7794         to enable stack overflow tracing on push/pops,
7795         * src/pic16/device.c (statistics structure): added statistics
7796         structure,
7797         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7798         pic16_dump_int_registers): increase statistics counters for each
7799         * variable which is encountered
7800         * (pic16_dump_usection): emit each .udata variable to its own udata
7801         section,
7802         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7803         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7804         parameters via stack, otherwise use old scheme,
7805         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7806         assembler output file,
7807         * src/pic16/main.c: added command line options --gstack to enable
7808         push/pop tracing for stack overflow,
7809         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7810         instructions): added size of each instruction,
7811         * (pic16_countInstruction): estimate size of instructions in
7812         the_pFile list, inline assembly blocks are not counted,
7813         * (pic16_FixRegisterBanking): trace previous register usage, when
7814         banksel optimizations is greater than 0, don't emit a redudant
7815         banksel directive,
7816
7817 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7818
7819         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7820         * src/pic16/ralloc.c : applied same fix for pic16.
7821         * src/pic/gen.c : tidied it up a little.
7822
7823 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7824
7825         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7826         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7827
7828 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7829
7830         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7831
7832 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7833
7834         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7835         non-reentrant function __modsint in the interrupt function (thus
7836         corrupting math operations during serial I/O)
7837         * device/lib/ser_ir.c: as above, changed buffersize
7838         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7839         256.c,d for zeroing
7840         * doc/Makefile: added option -t for rsync
7841
7842 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7843
7844         * src/SDCCast.h (struct ast),
7845         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7846
7847 2004-10-20 Borut Razem <borut.razem AT siol.net>
7848
7849         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7850         package
7851
7852 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7853
7854         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7855         makefile targets,
7856         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7857         support functions to replace long sequences of MOVFF's from access
7858         bank registers to stack and vice versa,
7859         * src/pic16/device.h: added new field opt_flags, where optimization
7860         flags can be set to enable certain features,
7861         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7862         * pBlock, (genFunction, genEndFunction): surroung loop for
7863         saving/loading used registers in stack with PC_INFO pCodes,
7864         INF_LREGS. Code in between can then be optimized by pCode optimizer
7865         to support function calls,
7866         * (genDataPointerSet): fixed bug which loaded float fields in
7867         structures with corrupt data,
7868         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7869         in a standard way debug info on stderr. Feature used for developing
7870         and debugging only,
7871         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7872         obsolete chunks of code,
7873         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7874         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7875         * pic16/src/pcode.c (pic16_newpCodeInfo,
7876         * (pic16_newpCodeOpLocalRegs),
7877         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7878         feature,
7879         * (pic16_pCodeConstString): printing of the initial value of a
7880         symbol as a comment is inhibited since parsing was already done by
7881         copyStr and output is corrupt,
7882         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7883
7884 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7885
7886         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7887
7888 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7889
7890         * as/mcs51/lkarea.c: removed old K&R style,
7891           (lnksect): changed check on boundary error,
7892           (lnksect2): changed check on boundary error,
7893           (lnksect2): extend XSTK to end of page if size = 1
7894         * as/mcs51/lkmain.c: removed old K&R style,
7895           (Areas51): create l_IRAM symbol
7896         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7897         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7898           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7899         * device/lib/_mullong.c: added version to be compiled with xstack
7900         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7901         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7902         * device/lib/mcs51/crtxstack.asm: fixed comment
7903         * src/SDCCglue.c: maxInterrupts defaults to 0,
7904           (emitMaps): added pdata,
7905           (createInterruptVect): (re)moved default,
7906           (glue): added pdata,
7907           (glue): moved __start__xstack to XSTK with default size 1
7908         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7909           and options.float_rent when options.stackAuto is set,
7910           (linkEdit): only write XDATA_NAME if provided on command line
7911         * src/SDCCmem.h,
7912         * src/SDCCmem.c: added pdata
7913         * src/port.h: added pdata_name to PORT
7914         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7915           (saveRegisters, unsaveRegisters): removed usage of B,
7916           (genMinus): fixed accumulator clash,
7917           (genJumpTab): added comment, this needs another look
7918         * src/mcs51/gen.c: added check for "B in use" paranoia,
7919           added pushB() and popB()
7920         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7921           chance
7922         * src/avr/main.c,
7923         * src/ds390/main.c,
7924         * src/hc08/main.c,
7925         * src/mcs51/main.c,
7926         * src/pic/main.c,
7927         * src/pic16/main.c,
7928         * src/xa51/main.c,
7929         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7930           added PSEG (PAG,XDATA) or NULL to port specifier
7931         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7932         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7933           (_mcs51_genInitStartup): removed __start__xstack equ,
7934           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7935         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7936         * src/z80/gen.c (_rleAppend): fixed warnings
7937         * support/regression/tests/zeropad.c: added pdata test
7938         * .version: bumped to 2.4.6
7939
7940 2004-10-17 Borut Razem <borut.razem AT siol.net>
7941
7942         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7943         as a part of nightly build
7944
7945 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7946
7947         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7948         WREG holds the first byte function parameters,
7949         * (aopForSym): take special case for symbols which are in FARSPACE
7950         but in CODESPACE too,
7951         * (assignResultValue): modified to take into account _G.useWreg,
7952         * (genCall): don't use wreg for parameter passing when function is
7953         declared as reentrant, too, added optimization INCF to stack
7954         pointer when stack parameter count is 1,
7955         * (genFunction, genEndFunction): refurnished and fixed to not using
7956         wreg for passing parameters when function has varargs or is
7957         reentrant, fixed bug with symbol name compare for generating
7958         functions in absolute address,
7959         * (pic16_storeForReturn): refurnished,
7960         * (genCmp): began writing a new version of the function, not ready
7961         yet, therefore it is disabled,
7962         * (genAssign): do not read code memory when assigning a function to
7963         a pointer function,
7964         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7965         array of characters, not pointer,
7966         * (pic16initialComments): in debug mode emit an .ident directive for
7967         the assembler,
7968         * (_process_pragma): emit a new warning type (internal to pic16)
7969         when setting stack to default length, emit a similar warning when
7970         placing a function at absolute address and address is not word aligned
7971         * (_pic16_parseOptions): added 'return TRUE' statement,
7972         * (_pic16_linkEdit): if compiling a source, then add the source's
7973         file object, first in the list of objects to link,
7974
7975 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7976
7977         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7978         * src/pic/main.c : removed VC warning.
7979         * src/pic/gen.c : changed comment.
7980
7981 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7982
7983         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7984         reference to a deprecated symbol _GPTRREG was causing failure to
7985         link. Thanks G. M. Gallant for the info.
7986
7987 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7988
7989         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7990         comments for Bugs item #954788.
7991
7992 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7993
7994         * src/pic16/device.c (pic16_dump_gsection,
7995         * pic16_groupRegistersInSection): handle symbols declared to be in
7996         access bank differently,
7997         * src/pic16/gen.c (struct _G): added field resDirect,
7998         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7999         send values read from stack directly to result and don't allocate
8000         temporary values,
8001         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8002         same registers,
8003         * (pic16_sameRegsOfs): NEW,
8004         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8005         free because they were not allocated from temporary pool,
8006         * pic16_popRegFromString): workaround to fix a problem with
8007         allocating variables twice or never,
8008         * (genGenPointerGet): using PRODL instead of FSR0H,
8009         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8010         instead of FSR0H,
8011         * (genAssign): take advantage of the _G.resDirect flag,
8012         * (genCast): around line 11844, use mov2f instead of directly
8013         MOVFF'ing between operands to account for literal values,
8014         * src/pic16/genutils.c: some new debug functions for gpsim have been
8015         added,
8016         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8017         float with integer part only,
8018         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8019         place variables in access bank
8020         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8021         updated sources to reflect recent changes in gen.c
8022
8023 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8024
8025         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8026         sources that searched for headers in installation path, now the
8027         device/include/pic16 is used,
8028         * src/pic16/glue.c (pic16glue),
8029         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8030         .line directives if not in debug mode, this suppresses assembler's
8031         warnings for ignored directives
8032
8033 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8034
8035         * src/port.h: made reset_regparms prototype void parameter explicit.
8036         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8037         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8038         * doc/sdccman.lyx: documented warning disabling and how to use
8039           printf_large to make it print floats.
8040         * device/include/stdbool.h: NEW
8041         * device/lib/_atof.c,
8042         * device/lib/_divuint.c,
8043         * device/lib/_divulong.c,
8044         * device/lib/expf.c,
8045         * device/lib/printf_large.c,
8046         * device/lib/sincosf.c,
8047         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8048         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8049           a completely reentrant lib.
8050
8051 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8052
8053         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8054         * device/include/pic16/stdio.h: fixed bug with colon
8055
8056 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8057
8058         * device/include/pic16/stdio.h,
8059         * device/include/pic16/stdlib.h,
8060         * device/include/pic16/math.h: NEW
8061         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8062         declared as _naked to reduce overhead
8063         * device/lib/Makefile.in (target port-specific-objects-pic16):
8064         changed * to *.* so to ignore the CVS directory,
8065         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8066         stacked variables back in stack,
8067         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8068         corruption
8069
8070 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8071
8072         * .version: bumped version number to 2.4.5
8073         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8074         * support/Util/SDCCerr.c (messages structure): added entry for
8075         W_POSSBUG2
8076
8077         Large cumulative patch for pic16 port and libraries.
8078         * device/include/pic16/sdcc-lib.h,
8079         * device/include/pic16/stdarg.h,
8080         * device/include/asm/pic16/features.h,
8081         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8082         * device/include/pic16/float.h: changes reentrant keyword with
8083         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8084         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8085         updated target build-libraries to include objects from gptr,
8086         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8087         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8088         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8089         all function headings,
8090         * src/SDCCmain.c: added global parameter userIncDirsSet,
8091         * (parseCmdLine): when option -I is encountered add directory to
8092         userIncDirsSet too,
8093         * src/version.awk: added space between control and long,
8094         * src/pic16/NOTES: added some notes for the port,
8095         * src/pic16/gen.c: added prototype for mov2fp function,
8096         * (fReturnpic16[]): properly named return value registers,
8097         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8098         * (aopForSym): added code to handle symbols with onStack flag set,
8099         symbols onStack are allocated PTRSIZE bytes,
8100         * (aopFreeAsmop): handles special case where asmops are stack objects,
8101         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8102         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8103         added argument lock to trace flaws in allocating temporary registers
8104         when developing port,
8105         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8106         * (pic16_popRegFromString): reenabled allocating a direct register
8107         from string,
8108         * (assignResultValue): various beautifications,
8109         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8110         referenced function argument,
8111         * (genIpush): reenabled to allow stacked arguments, handles only
8112         ic->parmPush iCodes,
8113         * (genCall, genPcall): major changes to allow for variable argument
8114         functions, fixed a bug with falsely restoring stack pointer after
8115         returning from call,
8116         * (genFunction): pending code for critical function,
8117         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8118         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8119         * (genNearPointerGet): fixed bug with indirect reading, was always
8120         reading from INDF0
8121         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8122         pointers,
8123         * (genAddrOf): rewrote code to take address of a stacked function parameter
8124         * (genCast): fixed casting to generic pointer type,
8125         * src/pic16/gen.h: added AOP_STA,
8126         * (struct asmop): added field stk,
8127         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8128         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8129         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8130         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8131         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8132         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8133         generic pointers,
8134         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8135         and library paths,
8136         * (pic16_port structure): generic pointer size is set to 3,
8137         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8138         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8139         compiler warning,
8140         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8141         operand is an iTemp,
8142
8143 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8144
8145         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8146         * debugger/mcs51/simi.c: addapt new syntax of s51
8147
8148 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8149
8150         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8151         * src/pic16/pcode.c: commented out some calls to free() in order to
8152         fix bug #989576,
8153
8154 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8155
8156         * src/SDCCicode.h,
8157         * src/SDCCicode.c (isiCodeInFunctionCall),
8158         * src/avr/ralloc.c (selectSpil),
8159         * src/pic/ralloc.c (selectSpil),
8160         * src/pic16/ralloc.c (selectSpil),
8161         * src/ds390/ralloc.c (selectSpil),
8162         * src/hc08/ralloc.c (selectSpil),
8163         * src/xa51/ralloc.c (selectSpil),
8164         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8165         stack in the middle of a function call sequence (fixes bug #1020268)
8166         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8167         costs associated with the minimum switch case.
8168
8169 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8170
8171         * src/SDCC.lex: fixed bug #1030549
8172
8173 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8174
8175         * src/SDCCcse.h (struct cseDef),
8176         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8177         over a function call if the CSE is derived from a symbol whose
8178         address has been taken (fixes bug #1029883)
8179         * support/regression/tests/bug-1029883: a new regression test for
8180         this bug
8181
8182 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8183
8184         * src/hc08/gen.c (emitinline): fixed bug #1029778
8185         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8186         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8187         and starts toward RFE #905167)
8188
8189 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8190
8191         * src/pic16/gen.c (mov2f): New function to move an operand to
8192         another without considering if it is a literal or a register,
8193         * (pic16_sameRegs): don't check if they are both AOP_REG,
8194         * (AccRsh): removed andmask=0 lines,
8195         * (genLeftShift): duplicated to be improved in future versions,
8196         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8197         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8198         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8199         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8200         * (insertBankSwitch): fixed inserting banksel directives algorithm
8201         for instructions that follow a skip instruction, this fixes a report
8202         for broken subtraction code generation,
8203         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8204         iCode is a left op, just in case result and right share the same
8205         registers
8206
8207 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8208
8209         * src/hc08/main.c,
8210         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8211         preservation of HX
8212         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8213         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8214         on 2004-09-12; it was buggy
8215
8216 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8217
8218         * src/SDCCsymt.h: removed RESULT_CHECK
8219         * src/SDCCast.c,
8220         * src/SDCCglue.c,
8221         * src/SDCCval.c,
8222         * src/pic/glue.c,
8223         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8224
8225 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8226
8227         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8228         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8229         configuration values no more rejected by compiler, they are assigned
8230         to configuration registers with a warning message instead,
8231         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8232         the for-loop so last conf register is emitted too,
8233         * (_pic16_initPaths): link library libsdcc.lib by default,
8234         * (_hasNativeMulFor): modified test for multiplication according to
8235         Raphael Neider's remarks. Integer multiplication is also done with
8236         support functions,
8237         * device/include/pic16/pic18fregs.h: corrected type error in while
8238         testing and including 18f6720 header file
8239
8240 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8241
8242         * src/pic16/device.h (pic16_options): removed field use_crt,
8243         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8244         until an optimization to handle single bits is added,
8245         * (pic16_loadFSR0): moved before genUnpackBits,
8246         * (genAnd): some white lines removed,
8247         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8248         leave_reset flags in pic16_options when using crt modules,
8249
8250 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8251
8252         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8253           for bugs 898889 & 979599. Also used some safer print instructions.
8254
8255 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8256
8257         * src/pic16/device.h (pic16_options_t): added field use_crt,
8258         crt_name, no_crt,
8259         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8260         catch a probable future bug,
8261         * src/pic16/gen.c: aopIdx function commented out,
8262         * (genAssign): commented out old code which used aopIdx,
8263         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8264         code, added if conditionals to take into account the --use-crt
8265         command line options,
8266         * src/pic16/main.c (pic16_optionsTable): added new command line
8267         options, --use-crt= and --no-crt,
8268         * (_pic16_linkEdit): now the proper crt object is added in the
8269         linker command line except than when --no-crt is specified,
8270         * src/pic16/pcode.c,
8271         * src/pic16/pcode.h: added some structures and functions for a new
8272         optimization scheme to compansate for instruction overhead between
8273         same iCodes, this scheme is currently under development and is not
8274         working in any way,
8275         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8276         to && operator,
8277         * device/lib/pic16/startup/crt0i.c,
8278         * device/lib/pic16/startup/crt0iz.c: added global char variable
8279         __uflags to force the generation of an idata section
8280
8281 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8282
8283         * doc/Makefile,
8284         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8285         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8286
8287 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8288
8289         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8290         Frieder) and clarified the default code optimization mode
8291
8292 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * src/SDCC.lex (doPragma, process_pragma),
8295         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8296         "opt_code_size", and "opt_code_balanced"
8297         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8298         regrouped options by category, added support for category headers
8299         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8300         and "--opt-code-size"
8301         * doc/sdccman.lyx: documented these new options and pragmas
8302         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8303         preference into account
8304
8305 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8306
8307         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8308           geniCodePreDec): Fixed bug 904237 by generating a warning
8309         * src/SDCCerr.h,
8310         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8311
8312 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8313
8314         * src/pic/device.c : When no max ram set validate full memory range.
8315         * src/pic/pcode.c,
8316         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8317
8318 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8319
8320         * device/lib/_gptrget.c,
8321         * device/lib/_gptrput.c: updated comment
8322         * device/lib/calloc.c,
8323         * device/lib/free.c,
8324         * device/lib/malloc.c,
8325         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8326         * src/SDCCcse.c (cseBBlock),
8327         * src/SDCCicode.c (printOperand, geniCodeArray),
8328         * src/SDCCicode.h (struct operand): fixed bug 868103
8329         * support/regression/tests/bug-868103.c: added
8330         * src/SDCCast.c (searchLitOp),
8331         * src/SDCCcse.h (struct cseDef),
8332         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8333         * src/SDCCicode.h (struct operand),
8334         * src/SDCCsymt.h (struct sym_link),
8335         * src/avr/gen.c (hasInc),
8336         * src/ds390/gen.c (hasInc),
8337         * src/hc08/gen.c (genPlusIncr, hasInc),
8338         * src/mcs51/gen.c (hasInc),
8339         * src/pic16/glue.c (pic16_printIvalChar),
8340         * src/pic16/ralloc.c (regWithIdx),
8341         * src/xa51/gen.c (hasInc) : removed warnings
8342         * src/SDCCast.c (createBlock): added comment ???
8343         * src/hc08/ralloc.c: updated comments
8344
8345 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8346
8347         * doc/sdccman.lyx: updated section on switch statements, added
8348         section about semaphore locking
8349         * doc/Makefile: added option -info for latex2html
8350         * device/lib/_gptrget.c,
8351         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8352
8353 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8354
8355         * src/pic/device.h,
8356         * src/pic/device.c,
8357         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8358          maxram is less than 0x100.
8359
8360 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8361
8362         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8363
8364 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8365
8366         * src/port.h,
8367         * src/mcs51/main.c,
8368         * src/ds390/main.c,
8369         * src/z80/main.c,
8370         * src/hc08/main.c,
8371         * src/pic/main.c,
8372         * src/pic16/main.c,
8373         * src/avr/main.c,
8374         * src/xa51/main.c
8375         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8376         a jump table is the best form for a switch statement, including
8377         automatic insertion of missing cases to make the case range
8378         continuous. Developed in collaboration with Frieder Ferlemann.
8379
8380 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8381
8382         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8383         accumulator result if it needs sign extension
8384
8385 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8386
8387         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8388
8389 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8390
8391         * device/lib/gbz80/printf.c,
8392         * device/lib/z80/printf.c: removed define for NULL
8393
8394 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8395
8396         * as/xa51/xa_link.c,
8397         * device/examples/ds390/ow390/ad26.c,
8398         * device/examples/ds390/ow390/cnt1d.c,
8399         * device/examples/ds390/ow390/counter.c,
8400         * device/examples/ds390/ow390/ds2480.h,
8401         * device/examples/ds390/ow390/ds2480ut.c,
8402         * device/examples/ds390/ow390/findtype.c,
8403         * device/examples/ds390/ow390/gethumd.c,
8404         * device/examples/ds390/ow390/owllu.c,
8405         * device/examples/ds390/ow390/ownetu.c,
8406         * device/examples/ds390/ow390/swt12.c,
8407         * device/examples/ds390/ow390/swtloop.c,
8408         * device/examples/ds390/ow390/temp.c,
8409         * device/examples/ds390/ow390/temp10.c,
8410         * device/examples/ds390/ow390/thermo21.c,
8411         * device/examples/ds390/ow390/tinilnk.c,
8412         * device/examples/ds390/ow390/tstfind.c,
8413         * device/examples/serialcomm/windows/serial.cpp,
8414         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8415         * device/include/reg51.h: fixed line endings for cvs
8416
8417 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8418
8419         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8420         packRegsForAccUse, packRegisters): new accumulator register
8421         packing algorithm
8422         * support/regression/ports/hc08/support.c (_putchar): suppress
8423         warning of unused variable
8424         * src/SDCCicode.c: added SWAP entry to codeTable
8425
8426 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8427
8428         * device/lib/sprintf.c: forgot to add this file before previous commit
8429
8430 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8431
8432         * src/pic16/gen.c (genPackBits): added operand right in function
8433         parameters, load result directly if p_type is POINTER (that is
8434         called by genNearPointerSet)
8435         * (genUnPackBits): added operand left in function parameters,
8436         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8437         FSR0 if accessing bitfields,
8438
8439 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8440
8441         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8442           _print_format; updated printf, sprintf, vsprintf
8443         * device/include/asm/default/features.h: corrected comment/define
8444         * device/lib/Makefile.in: added sprintf.c
8445         * device/lib/libsdcc.lib: added sprintf module
8446         * device/lib/printf_large.c,
8447         * device/lib/vprintf.c,
8448         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8449           into these 3 files
8450         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8451         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8452         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8453           hc08 test
8454         * support/regression/tests/zeropad.c: define idata as data for hc08
8455
8456 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8457
8458         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8459         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8460         labels are referenced at least once (even if a reference is not found)
8461         * src/hc08/gen.c (emitcode): set isComment flag for comments
8462         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8463         loads), rules 6a..6b (optimize jumps to return)
8464
8465 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8466
8467         * device/lib/acosf.c (acosf),
8468         * device/lib/asinf.c (asinf),
8469         * device/lib/atanf.c (atanf),
8470         * device/lib/ceilf.c (ceilf),
8471         * device/lib/cosf.c (cosf),
8472         * device/lib/coshf.c (coshf),
8473         * device/lib/cotf.c (cotf),
8474         * device/lib/fabsf.c (fabsf),
8475         * device/lib/floorf.c (floorf),
8476         * device/lib/log10f.c (log10f),
8477         * device/lib/logf.c (logf),
8478         * device/lib/sinf.c (sinf),
8479         * device/lib/sinhf.c (sinhf),
8480         * device/lib/sqrtf.c (sqrtf),
8481         * device/lib/tanf.c (tanf),
8482         * device/lib/tanhf.c (tanhf),
8483         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8484         replaced all instances of "reentrant" in the library functions
8485         defined in math.h with this macro.
8486         * support/regression/tests/float_trans.c: reenabled test for hc08
8487
8488 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8489
8490         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8491         erroneously deleted
8492
8493 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8494
8495         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8496         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8497         multi-byte volatile operands are used
8498         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8499         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8500         initialization to area GSINIT0 so that it would always precede
8501         any static initializers in GSINIT
8502         * support/regression/tests/zeropad.c: fixed idata define for hc08
8503         * support/regression/tests/bug-927659.c,
8504         * support/regression/tests/float_trans.c: disabled tests for hc08
8505         pending missing library routines
8506         * .version: increased version number to 2.4.4 - hc08 port now passes
8507         regression tests
8508
8509
8510 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8511
8512         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8513         * Makefile.common.in,
8514         * as/Makefile,
8515         * as/hc08/Makefile.in,
8516         * as/mcs51/Makefile.in,
8517         * as/z80/Makefile.in,
8518         * debugger/mcs51/Makefile.in,
8519         * device/include/Makefile.in,
8520         * device/lib/Makefile.in,
8521         * doc/Makefile,
8522         * link/Makefile,
8523         * link/z80/Makefile.in,
8524         * packihx/Makefile.in,
8525         * sim/ucsim/main_in.mk,
8526         * sim/ucsim/avr.src/Makefile.in,
8527         * sim/ucsim/doc/Makefile.in,
8528         * sim/ucsim/gui.src/serio.src/Makefile.in,
8529         * sim/ucsim/hc08.src/Makefile.in,
8530         * sim/ucsim/s51.src/Makefile.in,
8531         * sim/ucsim/xa.src/Makefile.in,
8532         * sim/ucsim/z80.src/Makefile.in,
8533         * src/Makefile.in,
8534         * support/cpp2/Makefile.in,
8535         * support/librarian/Makefile,
8536         * support/makebin/Makefile: added DESTDIR to the install path proposed
8537         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8538         * doc/sdccman.lyx: added DESTDIR documentation
8539
8540 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8541
8542         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8543         instruction for interrupt handlers, use fast returns when returning
8544         from high priority interrupts
8545
8546 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8547
8548         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8549         code generation
8550         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8551         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8552         bugs, ported much of Bernhard's code from mcs51
8553         * src/mcs51/gen.c (genSend),
8554         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8555         than one when calling a reentrant function
8556         * device/lib/_mullong.c: defined an alternate struct layout for big
8557         endian ports (hc08)
8558
8559 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8560
8561         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8562         test
8563
8564 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8565
8566         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8567         are sane and complete before asking the port its prefered parameter
8568         passing method (fixes bug #1017633)
8569         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8570         and _ret3
8571
8572 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8573
8574         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8575         problem in bitfields >= 8 bits.
8576
8577 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8578
8579         * src/SDCCsymt.c: undid changes that were not meant to be committed
8580
8581 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8582
8583         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8584
8585 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8586
8587         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8588           copied and wrong bit got inverted
8589
8590 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8591
8592         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8593         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8594         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8595         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8596         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8597         assignments to bitfields at known addresses
8598         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8599         reads from bitfields at known addresses
8600         * src/hc08/ralloc.c (packRegisters),
8601         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8602         genhc08Code): optimize pointer get values used as conditionals
8603         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8604         and branch
8605
8606 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8607
8608         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8609         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8610         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8611         as conditionals
8612
8613 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8614
8615         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8616
8617 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8618
8619         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8620         related problems
8621
8622 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8623
8624         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8625
8626 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8627
8628         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8629         mcs51 port
8630
8631 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8632
8633         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8634
8635 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8636
8637         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8638         cases use more compact code.
8639
8640 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8641
8642         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8643
8644 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8645
8646         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8647
8648 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8649
8650         * src/SDCCsymt.h,
8651         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8652         parameter of changePointer() from symbol* to sym_link*
8653         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8654         * src/SDCCsymt.c (compareType): void* type is castable to other
8655         pointers, but not necesarily an exact match.
8656         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8657         is no longer blindly treated as an exact match.
8658         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8659
8660 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8661
8662         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8663
8664 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8665
8666         * src/pic/gen.c,
8667         * src/pic/pcode.c,
8668         * src/pic/ralloc.h,
8669         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8670
8671 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8672
8673         * src/pic/device.c,
8674         * src/pic/device.h,
8675         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8676
8677 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8678
8679         * src/mcs51/gen.c (emitcode): fixed bug #992819
8680
8681 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8682
8683         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8684           there's no need to make it worse
8685
8686 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8687
8688         * src/mcs51/ralloc.c (deassignLR),
8689         * src/ds390/ralloc.c (deassignLR),
8690         * src/hc08/ralloc.c (deassignLR),
8691         * src/z80/ralloc.c (deassignLR),
8692         * src/pic/ralloc.c (deassignLR),
8693         * src/pic16/ralloc.c (deassignLR),
8694         * src/avr/ralloc.c (deassignLR),
8695         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8696         rlivePoint): fixed another part of bug #971834
8697
8698 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8699
8700         * src/z80/main.c: enabled "critical" keyword
8701         * src/z80/mappings.i,
8702         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8703         functions (fixes bug #979646)
8704         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8705
8706 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8707
8708         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8709           such as c:\mydir.
8710
8711 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8712
8713         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8714           doesn't disable too much optimizations
8715
8716 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8717
8718         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8719
8720 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8721
8722         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8723
8724 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8725
8726         * src/pic/gen.c tidied up tabs
8727         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8728         * src/pic/main.c tidied up tabs
8729         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8730         * src/pic/pcoderegs.c tidied up tabs
8731         * src/pic/ralloc.c tidied up tabs
8732
8733 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8734
8735         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8736         to S_FIXED for pic16 port and when symbol is not in level 0,
8737         allocate for S_REGISTER storage class and pic16 port, too,
8738         * src/pic16/device.h: prototype for checkSym,
8739         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8740         * (pic16_assignConfigWordValue): test the value and the mask to
8741         validate that the value is suitable for the configuration word,
8742         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8743         collect extern declared symbols, don't emit symbol twice, check
8744         first if symbol is in publics set first,
8745         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8746         * added command line '--fstack' which enables an experimental
8747         feature for stack access, too buggy to be used yet...
8748         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8749         * (pic16_allocDirReg): when register has storage class S_REGISTER
8750         allocate in pic16_dynAccessRegs,
8751         * device/include/pic16/pic18f????.h: modified configuration word
8752         naming convention, words started as CONFIG0H but should be CONFIG1H
8753
8754 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8755
8756         * device/include/mcs51reg.h: fixed bug 970993
8757
8758 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8759
8760         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8761         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8762         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8763         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8764         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8765         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8766           error/warning numbers,
8767           added function setWarningDisabled()
8768         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8769         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8770           _memcmp.c _memmove.c calloc.c realloc.c free.c
8771         * support/regression/tests/malloc.c: added tests for new functionality
8772         * support/regression/tests/zeropad.c: added tests for truncated initializers
8773           and initialized char arrays starting with '\x0'
8774         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8775
8776 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8777
8778         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8779
8780 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8781
8782         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8783         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8784         peephole 177.e. Thanks to anonymous
8785
8786 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8787
8788         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8789         function isn't used in the source but referenced as a
8790         variable initializer then declare it as extern in .asm file
8791
8792 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8793
8794         * .version: increased version number to 2.4.3
8795
8796         Adding version extension according to ChangeLog CVS revision
8797         * src/Makefile.in (target all): added dependency 'version.h'
8798         * (rule version.h): added rule to create version.h from ChangeLog,
8799         * (rule dep): added dependency version.h,
8800         * src/version.awk: AWK script to create version.h
8801         * src/SDCCdwarf2.c (dwWriteModule),
8802         * src/SDCCglue.c (initialComments),
8803         * src/SDCCmain.c (printVersionInfo): modified to write after
8804         version string the version extension number,
8805         * src/SDCCutil.c: included "version.h"
8806         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8807         number,
8808         * src/SDCCutil.h: added prototype for getBuildNumber
8809
8810         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8811         includeDirsSet, too,
8812         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8813         const char [] is found in function prototype...
8814
8815         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8816         moving to WREG with source is already in WREG,
8817         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8818         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8819         * (aopForSym): stack'ed symbols are partially supported, added
8820         if-clause to support symbols in FARSPACE,
8821         * (sameRegs): added test for AOP_ACC to see if registers are same,
8822         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8823         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8824         * (pic16_popRegFromString): will not allocate a new register if it
8825         doesn't find one by name, bug may have introduced...
8826         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8827         * (genIpush): revived to use pic16 port's stack,
8828         * (genAddrOf): added incomplete case for stack'ed operand,
8829         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8830         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8831         can handle multibyte operands,
8832         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8833         * (pic16initialComments): added message for MPLAB compatibility
8834         mode enabled,
8835         * src/pic16/main.h: prototype for pic16_mplab_comp,
8836         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8837         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8838         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8839         because of increased complexity of procedure,
8840         * (_process_pragma): stack pragma changed to format 'stack pos len',
8841         emit symbol '_stack_end' to conform with gplink,
8842         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8843         to search for register,
8844         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8845         PO_GPR_REGISTER,
8846         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8847         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8848         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8849         case for PO_GPR_REGISTER,
8850         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8851         dies, the new era is ahead !...
8852         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8853         pic16_dynInternalRegs,
8854         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8855         * (pic16_allocDirReg): minor optimizations and bug fixes,
8856         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8857
8858         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8859         load stack and frame pointer with address of 'stack_end' symbol
8860
8861 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8862
8863         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8864         without source code but only variable initializers
8865
8866 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8867
8868         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8869         external are not declared as extern to reduce overhead while linking
8870
8871 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8872
8873         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8874
8875 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8876
8877         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8878           Yee Keat for the patch
8879         * src/SDCCast.c (decorateType): fixed bug #979599
8880         * src/ds390/gen.h: removed local fReturnSizeDS390
8881         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8882         * src/ds390/gen.c (genAnd, genOr, genXor),
8883         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8884
8885 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8886
8887         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8888         add relFilesSet to $3, manipulate $2 to handle linking of object
8889         files without source files in command line,
8890         * device/include/pic16 (all headers): added ID location macros,
8891         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8892         entries for ID location bytes,
8893         * (pic16_assignIdByteValue): NEW,
8894         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8895         added field dumpcalltree to pic16_options_t,
8896         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8897         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8898         emitting rFalseIfx label after check_carry label,
8899         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8900         pic16_emitDIRegs), NEW
8901         * (pic16glue): dump .calltree file when option --calltree found,
8902         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8903         * (_pic16_genAssemblerPreamble): emit ID locations after
8904         configuration registers,
8905         * (pic16_linkCmd): modifications of the link command,
8906         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8907         * (pic16_pCodeInitRegisters): don't init stack registers,
8908         * (pic16_findPrevInstruction): fixed bug,
8909         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8910         bug with immediate registers,
8911         * (buildCallTree): traces stack push and pop,
8912         * (pct2): dump also stack usage for each function,
8913         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8914         * (pic16_allocDirReg): various modifications,
8915         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8916         fixed to 1,
8917
8918 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8919
8920         * src/pic16/pcode.c: removed buggy double colon
8921
8922 2004-07-01 Borut Razem <borut.razem AT siol.net>
8923
8924         * support/scripts/sdcc.nsi: added include/pic16 to setup
8925
8926 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8927
8928         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8929         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8930         target 'clean',
8931         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8932         specific command line arguments. Also added sample lkr script
8933         for placing a variable at a specific memory bank.
8934         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8935         at a specific memory bank,
8936         * (pic16_dump_isection): fixed bug which caused string literals to
8937         be omitted when dumping idata section,
8938         * (pic16_groupRegistersInSection): added code to handle registers
8939         in specific memory banks,
8940         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8941         public, all references are renamed too,
8942         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8943         AOP_DPTR2,
8944         * (pic16_storeForReturn): added case to handle when dest is WREG,
8945         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8946         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8947         pic16_rel_udata, check to see if that register is marked as being
8948         a member of a specific memory bank,
8949         * (pic16_printIvalCharPtr): added code to add string literals either
8950         to code or the idata sections,
8951         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8952         also accept the 'udata' pragma,
8953         * src/pic16/main.h: new structure types sectName and sectSym
8954         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8955         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8956         * (pic16_findPrevInstruction): fixed, it returned nothing,
8957         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8958         instruction combinations,
8959         * (pic16_FixRegisterBanking): heavily reorganised,
8960         * (pic16_AnalyzeBanking): if generating banksel directives is
8961         disabled, then don't call FixRegisterBanking at all,
8962         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8963         completely removed,
8964         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8965
8966 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8967
8968         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8969         Phuah Yee Keat <yk.phuah AT nestac.com>
8970
8971 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8972
8973         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8974         correctly the IVT even if it is relocated to some other location
8975
8976 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8977
8978         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8979         * device/include/pic16/pic18f2220.h: NEW,
8980         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8981         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8982         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8983         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8984         nodefaultlibs, ivt_loc is the location of the interrupt vector
8985         table, and nodefaultlibs signs that default libraries should not be
8986         linked in link stage,
8987         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8988         according to --ivt-loc argument,
8989         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8990         when pragma stack is found,
8991
8992 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8993
8994         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8995         256 (range check), 257 (do while), 258.a-f (bit banging
8996         f.e. on 3-wire SPI bus)
8997
8998 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8999
9000         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9001         variables used exclusively within a loop
9002
9003 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9004
9005         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9006
9007 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9008
9009         * src/SDCClrange.c (computeClash): fixed bug #971834
9010
9011 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9012
9013         * src/mcs51/gen.c (genCmp): fixed bug #975903
9014         * src/hc08/gen.c (operandsEqu),
9015         * src/ds390/gen.c (operandsEqu),
9016         * src/z80/gen.c (operandsEqu),
9017         * src/pic/gen.c (operandsEqu),
9018         * src/pic16/gen.c (operandsEqu),
9019         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9020         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9021
9022 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9023
9024         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9025
9026 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9027
9028         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9029         default case in switch statement,
9030         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9031         to eliminate problem with initialisation of pointers, but problem
9032         still exists,
9033         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9034         * (emitStaticSegment): removed various lines emitting debug info,
9035         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9036         added processor registers for utilizing EEPROM,
9037         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9038         configurable and set 8
9039
9040 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9041
9042         * .version: increased version number to 2.4.2,
9043
9044         Cumulative patch for pic16 port
9045         * src/pic16/device.c: changed scheme to dump initial values for
9046         variables in idata segment, all print_idata* functions were removed,
9047         now the pic16_printIval* will be called,
9048         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9049         * _pic16_printPointerType, pic16_printPointerType,
9050         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9051         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9052         NEW, similar to the respective functions in SDCCglue.c,
9053         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9054         way, emitting hex bytes,
9055         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9056
9057 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9058
9059         * src/avr/ralloc.c (serialRegAssign),
9060         * src/xa51/ralloc.c (serialRegAssign),
9061         * src/pic/ralloc.c (serialRegAssign),
9062         * src/pic16/ralloc.c (serialRegAssign),
9063         * src/hc08/ralloc.c (serialRegAssign),
9064         * src/z80/ralloc.c (serialRegAssign),
9065         * src/ds390/ralloc.c (serialRegAssign),
9066         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9067
9068 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9069
9070         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9071         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9072
9073 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9074
9075         Cumulative patch for pic16 port:
9076         * src/pic16/device.h (typedef PIC16_device) modified fields for
9077         defining microcontrollers,
9078         * src/pic16/device.c: added new info for all devices in Pics16 array,
9079         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9080         to be optimised out by the pCode optimiser,
9081         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9082         specially, bug reported by G.M. Gallant,
9083         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9084         as force'd so that cannot be optimised out by pCode optimiser,
9085         * src/pic16/pcode.c,
9086         * src/pic16/pcodepeeph.c,
9087         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9088         they are disabled by default, but can be enabled explicit with
9089         command argument --denable-peeps, for testing,
9090         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9091         --pomit-ivt in COMPILE_FLAGS
9092
9093 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9094
9095         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9096           compilation on MSVC
9097
9098 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9099
9100         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9101
9102 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9103
9104         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9105         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9106
9107 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9108
9109         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9110         would only assign 0x300001 register.
9111
9112 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9113
9114         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9115         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9116
9117 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9118
9119         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9120         for ds80c400
9121         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9122         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9123         added peephole 254 (left shift), 255 (jump table)
9124
9125 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9126
9127         * device/lib/Makefile.in: removed comment line with model-pic16,
9128         * (target port-specific-objects-pic16): the libraries and objects
9129         are copied to the build directory form the device/lib/pic16/bin
9130         directory
9131
9132         Cumulative patch concerning pic16 port:
9133         * library directory has been re-organized,
9134         * added support for PIC18F1220,
9135         * added headers and library sources for chips 18f1220,18f6520,
9136         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9137
9138         * configuration registers setting has changed, now each supported
9139         device has a complete description of the registers it uses,
9140         * all initialisations are moved to idata sections, these section
9141         can be absolute or relocatable,
9142         * fixed initialisation of codespace variables,
9143         * fixed warning about PCLATU and gpsim,
9144         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9145         * (genAssign): use table reads when assigning from variables in codespace,
9146         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9147         char/int variables placed in codespace,
9148         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9149         registers set in .asm file, no need for --pomit-config-words anymore,
9150         * (pic16glue): some 8051 legacy segments are commented out
9151         (to be removed completely),
9152         * added support for alternative assembler and linker with --asm=
9153         and --link= command line arguments,
9154         * peepholes are disabled automatically in the port, no need to
9155         specify on command line,
9156         * port supports natively char/int/long multiplication, but converts
9157         all divisions to support functions,
9158         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9159         to the file set in variable $2,
9160         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9161         strings in ASCII format and not in hex,
9162         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9163         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9164         allocate proper register if iCodes aren't temporary,
9165
9166 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9167
9168         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9169
9170 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9171
9172         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9173         is commented out
9174
9175 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9176
9177         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9178         computed address is reused
9179         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9180         multi-byte bitfields
9181
9182 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9183
9184         * src/z80/gen.c: (genArrayInit): must check for pointers too
9185
9186 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9187
9188         * support/regression/tests/zeropad.c: never meant to commit the
9189           nestedstruct test: removed, added check for GCC version
9190
9191 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9192
9193         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9194         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9195         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9196           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9197           bugs 928906 and 954082 half-empty initializers
9198         * src/SDCCsymt.h,
9199         * src/SDCCsymt.c (getAllocSize): added for above fix
9200         * src/z80/gen.c (genArrayInit): fixed bug 741044
9201         * support/regression/tests/zeropad.c: added tests
9202
9203 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9204
9205         * src/pic16/device.c (pic16_dump_section): corrected bug which
9206         caused some symbols of the libraries to be misplaced
9207
9208 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9209
9210         * src/pic16/glue.c,
9211         * src/pic16/ralloc.h,
9212         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9213         to fix conflict with pic port
9214
9215 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9216
9217         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9218         externs configuration variables,
9219         * src/pic16/ralloc.h,
9220         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9221         prototype in header, commented out some debug messages
9222
9223 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9224
9225         * src/pic16/glue.c,
9226         * src/pic16/main.c,
9227         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9228         for gpasm COFF object generation. Thanks to D. Hawkins for
9229         his patch info
9230
9231 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9232
9233         * src/ds390/main.c,
9234         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9235         Brock for spotting this)
9236         * src/ds390/gen.c (genEndFunction),
9237         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9238         interrupt handler and critical. Disable push/pop optimizations when
9239         peephole optimizations disabled.
9240
9241 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9242
9243         Updated pic16 library sources and headers.
9244         * device/lib/pic16/pic18f*/ ,
9245         * device/include/pic16/*.h: modified to handle structured SFR
9246         definitions
9247
9248 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9249
9250         * src/port.h (PORT structure): added hook initPaths, now each
9251         port can declare its own default search paths,
9252         which can been seen with the --print-search-dirs option,
9253         see pic16 port for example,
9254         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9255         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9256         * (doPrintSearchDirs): NEW, replaces in a central manner the
9257         printing of search dirs which was split in set*Paths functions,
9258         * (main): added call to port->initPaths and doPrintSearchDirs,
9259         * src/avr/main.c,
9260         * src/ds390/main.c,
9261         * src/hc08/main.c,
9262         * src/izt/i186.c,
9263         * src/izt/tlcs900h.c,
9264         * src/mcs51/main.c,
9265         * src/pic/main.c,
9266         * src/pic16/main.c: modified port structures to reflect addition of
9267         initPaths hook,
9268
9269         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9270         * (pic16_dump_section): for registers in same address reserve memory once,
9271         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9272         to no_banksel,
9273         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9274         result is greater in size than right or left,
9275         * (pic16_genUMult8X8_8): there are some cases where the result can
9276         be 16 bits size, so handle these,
9277         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9278         * (pic16_outBitC): modified to emit pcodes,
9279         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9280         or not,
9281         * (genDivOneByte): implemented algorithm to divide 8-bits,
9282         * (genCmp): uncommented goto, but issues still exist,
9283         * (genAnd): fixed a bug with variables >8bits,
9284         * (genPackBits): optimization added that uses BCF/BSF to change a
9285         single bit,
9286         * (genAssign): fixed bug when assigning floating point literals,
9287         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9288         __sdcc_gsinit_startup label,
9289         * src/pic16/main.c (_pic16_init): removed search directory
9290         initialisations,
9291         * (_pic16_initPaths): NEW, used to initialise search directories,
9292         * (_hasNativeMulFor): support functions for all except char/int
9293         multiplication, and char division,
9294         * (PIC16_port struct): modified entry for native mul support,
9295         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9296         no_banksel option,
9297         * (buildCallTree): call to register_usage is ifdef'ed out,
9298
9299 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9300
9301         * device/include/string.h: applied Stas Sergeev's patch to make this
9302         header file compatible with the preprocessor -Wundef option
9303         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9304         failure (fixes bug #941458)
9305
9306 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9307
9308         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9309         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9310         that the variable, not the function, should be static
9311         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9312         to be consistent with non-literal case
9313
9314 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9315
9316         * src/SDCCast.c (isConformingBody): fixed bug #949967
9317         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9318         convilong): fixed bug #952086
9319
9320 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * src/SDCCmem.c (allocVariables): fixed bug #955321
9323
9324 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9325
9326         * src/hc08/main.c (_hc08_genAssemblerEnd),
9327         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9328         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9329         completely eliminated the use of a temporary file
9330         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9331         when more than one file linked
9332         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9333
9334 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9335
9336         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9337         which fixes bug #543481
9338         * support/regression/tests/bug-751703.c: fixed comments left from a
9339         cut and paste error
9340         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9341         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9342         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9343         scopes
9344         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9345         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9346         are now changed to underscores in moduleName
9347
9348 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9349
9350         * as/mcs51/lkmem.c: better fix for bug #954173
9351
9352 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9353         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9354
9355         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9356         * device/include/c8051f000.h,
9357         * device/include/c8051f120.h,
9358         * device/include/c8051f300.h,
9359         * device/include/c8051f310.h,
9360         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9361         PWM16) and detab'ed
9362
9363 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9364
9365         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9366         and mailing lists, doc'ed --no-peep-comments, removed reference
9367         to knoppix (newest version has no LyX/LaTeX), other minor changes
9368         * src/SDCCglue.c (glue): save 2 bytes stack space with
9369         option --main-return. The ljmp could probably be avoided too
9370
9371 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9372
9373         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9374
9375 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9376
9377         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9378         * src/SDCCopt.c (isLocalWithoutDef),
9379         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9380         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9381         (credit to Maarten Brock for patch #949363, on which this is based)
9382         * support/regression/tests/bug-751703.c: some test cases of extern used
9383         within inner scopes.
9384
9385 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9386
9387         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9388         SPEC_STRUCT
9389         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9390         struct definitions
9391         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9392         dwWriteLabel): fix to create valid debugger symbols even when
9393         the module name has non-alphanumeric symbols in it
9394         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9395         when a variable's allocation has been optimized away
9396
9397
9398 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9399
9400         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9401         * src/hc08/main.c,
9402         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9403         * src/mcs51/main.c,
9404         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9405         * src/ds390/main.c,
9406         * src/z80/gen.c (z80_emitDebuggerSymbol),
9407         * src/z80/main.c,
9408         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9409         * src/pic/main.c,
9410         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9411         * src/pic16/main.c,
9412         * src/avr/gen.c (avr_emitDebuggerSymbol),
9413         * src/avr/main.c,
9414         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9415         * src/xa51/main.c,
9416         * src/SDCCdebug.c (emitDebuggerSymbol),
9417         * src/SDCCdebug.h,
9418         * src/port.h: added a debugger struct to the port struct. Added a
9419         callback for defining debugger symbols
9420
9421         * src/SDCCast.c (createLabel),
9422         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9423         with isitmp = 1
9424         * src/SDCCicode.h,
9425         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9426         iCode back to the ast for the function
9427
9428         * src/hc08/ralloc.c (hc08_assignRegisters),
9429         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9430         unneeded fields from the regs struct.
9431         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9432         pushReg() & pullReg() functions instead of emitcode()
9433
9434         * src/hc08/gen.c (genLabel, genhc08Code),
9435         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9436
9437         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9438         debugger hooks
9439
9440         * src/hc08/gen.c (genEndFunction, genhc08Code),
9441         * src/hc08/gen.h,
9442         * src/mcs51/gen.c (genEndFunction, gen51Code),
9443         * src/mcs51/gen.h,
9444         * src/ds390/gen.c (genEndFunction, gen390Code),
9445         * src/ds390/gen.h,
9446         * src/z80/gen.c (genEndFunction, genZ80Code),
9447         * src/z80/gen.h,
9448         * src/z80/z80.h,
9449         * src/pic/gen.c (genEndFunction, genpic14Code),
9450         * src/pic/gen.h,
9451         * src/pic16/gen.c (genEndFunction, genpic16Code),
9452         * src/pic16/gen.h,
9453         * src/avr/gen.c (genEndFunction, genAVRCode),
9454         * src/avr/gen.h,
9455         * src/xa51/gen.c (genEndFunction, genXA51Code),
9456         * src/xa51/gen.h,
9457         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9458         specific code to cdbFile.c and out of the backend code generators
9459
9460         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9461         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9462         starting address is now 0
9463
9464         * as/hc08/asm.h,
9465         * as/hc08/m08pst.c,
9466         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9467         assembler directive for DWARF support
9468         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9469
9470         * src/src.dsp,
9471         * src/Makefile.in,
9472         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9473
9474 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9475
9476         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9477         and inappropriate peephole optimization in jump tables
9478
9479 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9480
9481         * as/hc08/m08pst.c,
9482         * src/SDCCglue.c: sdccopt works for the hc08 port now
9483
9484 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9485
9486         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9487
9488 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9489
9490         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9491
9492 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9493
9494         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9495         rules
9496         * src/SDCCmain.c,
9497         * src/SDCCglobl.h,
9498         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9499         comments from the peephole optimizer replacement rules
9500         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9501         symbols
9502         * src/SDCCcse.c (updateSpillLocation),
9503         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9504         equivalents
9505         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9506         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9507         objects far pointers
9508
9509 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9510
9511         * src/SDCCsymt.h: a missing part of my last change
9512         * src/pic/ralloc.c (regTypeNum),
9513         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9514
9515 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9516
9517         * src/SDCCicode.h,
9518         * src/SDCCicode.c (aggrToPtrDclType),
9519         * src/SDCCptropt.h,
9520         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9521         ptrPseudoSymConvert),
9522         * src/pic/ralloc.c (regTypeNum),
9523         * src/pic16/ralloc.c (regTypeNum),
9524         * src/hc08/ralloc.c (regTypeNum),
9525         * src/ds390/ralloc.c (regTypeNum),
9526         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9527         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9528
9529 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9530
9531         * link/z80/lkmain.c (afile),
9532         * as/hc08/lkmain.c (afile),
9533         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9534         prevent a pointer problem when a filename has no directory and
9535         no extension specified.
9536
9537 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9538
9539         * link/z80/lkmain.c (afile): allow periods in directory names
9540         * link/z80/lkmain.c (afile),
9541         * as/mcs51/lkmain.c (afile),
9542         * as/hc08/lkmain.c (afile): allow linker script file to have an
9543         extension other than ".lnk"
9544         * link/z80/lklex.c (getfid),
9545         * link/z80/lkmain.c (parse),
9546         * as/mcs51/lklex.c (getfid),
9547         * as/mcs51/lkmain.c (parse),
9548         * as/hc08/lklex.c (getfid),
9549         * as/hc08/lkmain.c (parse): Support comments in the linker script
9550         file on lines by themselves and after filenames
9551
9552 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9553
9554         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9555
9556 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9557
9558         * src/z80/peeph-z80.def: removed some peephole rules that don't
9559         work with multibyte arithmetic (fixed bug #937126)
9560         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9561         to registers and not global variables
9562         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9563         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9564         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9565         checking for assignments not internally generated (fixed bug #931895)
9566         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9567         structure member (fixed bug #930072)
9568
9569 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9570
9571         * src/SDCCmain.c (linkEdit),
9572         * src/hc08/main.c (_hc08_parseOptions),
9573         * as/hc08/Makefile.in,
9574         * as/hc08/aslink.h,
9575         * as/hc08/asm.h,
9576         * as/hc08/m08pst.c,
9577         * as/hc08/lkrloc.c (relr, rele),
9578         * as/hc08/lkarea.c (lnkarea)
9579         * as/hc08/lkmain.c (afile, parse),
9580         * as/hc08/lkelf.c: support for ELF output
9581         * as/hc08/lks19.c (s19),
9582         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9583
9584 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9585
9586         * as/mcs51/lkihx.c: Fixed bug #899105.
9587
9588 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9589
9590         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9591         .dsp files from Unix to DOS.
9592
9593 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9594
9595         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9596         function pointers; we have been compliant for several months now.
9597         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9598         change that was accidently commented out
9599         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9600         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9601         bug #922319
9602
9603 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9604
9605         * src/hc08/gen.c: output of all of the internal debugging information
9606         is now controlled by the D() macro; it is disabled by default
9607
9608 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9609
9610         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9611         harder to keep the same registers during a CAST iCode
9612         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9613         long via int can be done in a single cast, if the signedness is
9614         correct.
9615         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9616         putchar() in tinibios.c in ds390's library
9617
9618 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9619
9620         * src/SDCCast.c (decorateType): fixed bug #898889,
9621         cast result of a literal complement too
9622         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9623         fixed check for bitfields
9624
9625 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9626
9627         * src/SDCCicode.c (geniCodeLogic): made it static,
9628         (geniCodeLogicAndOr): added in order to fix bug #905492,
9629         (ast2iCode): fixed bug #905492
9630         * support/regression/tests/bug-905492.c: added
9631         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9632         (processParms): fixed bug #927659: don't copy parms, this will clear
9633         decorated flag
9634         * support/regression/tests/bug-927659.c: added
9635
9636 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9637
9638         * src/SDCCast.c (addCast): don't cast float to char
9639         * device/lib/libsdcc.lib: added _memmove
9640
9641 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9642
9643         * device/lib/large/Makefile: fixed parallel execution by
9644         replacing `make` by `$(MAKE)`
9645
9646 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9647
9648         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9649         offsets (fixes bug #923936)
9650
9651 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9652
9653         * device/lib/small/Makefile: fixed parallel execution by
9654         replacing `make` by `$(MAKE)`
9655
9656 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9657
9658         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9659
9660 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9661
9662         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9663         * src/regression/Makefile: Regression test was not running.
9664
9665 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9666
9667         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9668         complement if possible
9669         * src/SDCCval.c (valComplement),
9670         * src/SDCCicode.c (operandOperation): fixed complement of literal
9671         * support/regression/tests/onebyte.c (testComplement): added
9672
9673 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9674
9675         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9676         return an optimized tree; actually replace actParm with the new tree
9677         * src/SDCCast.h: added some parantheses to remove side effects
9678         * support/regression/tests/bug-920866.c
9679
9680 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9681         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9682         Bit operands were not being handled properly in the pic14 port.
9683         (now src/regression/add.c passes again).
9684
9685 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9686
9687         * src/SDCC.y (labeled_statement): case and default no longer require
9688         a following statement (RFE #893037)
9689
9690 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9691
9692         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9693         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9694         disabled (fixes bug #916294)
9695         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9696         "mov a,acc"; patch provided by Lenny Story
9697         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9698
9699 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9700
9701         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9702         functions
9703         * src/ds390/gen.c (genFunction, genEndFunction),
9704         * src/ds390/ralloc.c (ds390_assignRegisters),
9705         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9706         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9707         pushed if there are parameters passed on the stack. Also, a cleaner
9708         way to decide if r0/r1 should be pushed/popped. (Together they fix
9709         bug #918693)
9710
9711 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9712
9713         * doc/sdccman.lyx,
9714         * device/lib/mcs51/crtpagesfr.asm,
9715         * device/lib/mcs51/crtxinit.asm,
9716         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9717         to avoid confusion with Si Lab's SFRPAGE register.
9718
9719 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9720
9721         * src/SDCCglue.c (emitMaps): allow public sfr variables
9722         * src/SDCCglue.c (initialComments): include compiler build date
9723         with compiler version and put the timestamp of the generated
9724         assembly file on a serperate line to be less confusing.
9725         * src/port.h: added genInitStartup hook
9726         * src/avr/main.c,
9727         * src/ds390/main.c,
9728         * src/hc08/main.c,
9729         * src/pic/main.c,
9730         * src/pic16/main.c,
9731         * src/xa51/main.c,
9732         * src/z80/main.c: genInitStartup initialize as NULL (default to
9733         historical behaviour)
9734         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9735         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9736         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9737         library instead of hard coding it into the compiler.
9738         * support/regression/ports/mcs51-stack-auto/spec.mk,
9739         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9740         * device/lib/mcs51/Makefile,
9741         * device/lib/small/Makefile,
9742         * device/lib/large/Makefile,
9743         * device/lib/mcs51/crtpagesfr.asm,
9744         * device/lib/mcs51/crtstart.asm,
9745         * device/lib/mcs51/crtxclear.asm,
9746         * device/lib/mcs51/crtxinit.asm,
9747         * device/lib/mcs51/crtclear.asm,
9748         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9749         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9750         and into user configurable files.
9751         * device/lib/clean.mk: clean mcs51 directory too
9752         * support/regression/tests/longlit.c: added static to T1 declaration
9753         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9754         accesses in the initialization code
9755
9756 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9757
9758         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9759         OSCTRIMVAL as noted in bug #916008
9760
9761 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9762
9763         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9764         in loops with multiple exits (reported as incorrect registers
9765         used by Martin Helmling in Sdcc-user list)
9766
9767 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9768
9769         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9770         made ds390 register extensions look less like error messages
9771
9772 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9773
9774         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9775         reported by Adam Wozniak in Sdcc-user list
9776
9777 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9778
9779         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9780         arithmetic optimizations, added debug output
9781
9782 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9783
9784         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9785         * sdcc.spec: updated and split sdcc into 3 rpms
9786         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9787         needed for literals of LEFT_OP and '+'
9788         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9789         introduced RESULT_TYPE_NOPROM
9790         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9791         left shift
9792         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9793         limited promotion to int only for '*'
9794         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9795
9796 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9797
9798         * src/pic16/gen.c (genSkip),
9799         (genc16bit2lit), (gencjneshort): commented out
9800         (is_LitOp): new helper function, checks operand type
9801         (genCmpEq): rewritten
9802
9803 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9804
9805         * support/regression/tests/bug-908454.c: added
9806
9807 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9808
9809         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9810         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9811         (geniCodeCast): cosmetic, don't preserve bit storage class
9812         (geniCodeLeftShift): added promotion
9813         (geniCodeLogic): fixed regression
9814         * src/SDCCsymt.c (computeTypeOr): accept bits too
9815         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9816
9817 2004-03-07  Borut Razem <borut.razem AT siol.net>
9818
9819         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9820
9821 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9822
9823         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9824         version of pic16_genPackRegisters which does not check if ic is a
9825         CAST operator,
9826         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9827         function cause string1.c regression test fails
9828
9829 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9830
9831         * sim/ucsim/configure.in,
9832         * sim/ucsim/configure,
9833         * sim/ucsim/doc/Makefile.in: use docdir
9834         * src/SDCC.y: fixed sbit atrributes
9835         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9836         * src/SDCCast.c (decorateType): |^& need special promotion handling
9837         * src/SDCCast.h,
9838         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9839         * src/SDCCsymt.h (computeType),
9840         * src/SDCCicode.c: computeType() needs op
9841         * src/SDCCsymt.c (checkTypeSanity),
9842         * doc/sddman.lyx: "plain" bitfields are unsigned
9843         * src/SDCCsymt.c (computeTypeOr): added
9844         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9845         |^& ops
9846         * src/SDCCval.c (val*): computeType() needs op
9847         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9848         * support/regression/tests/onebyte.c: added tests for |^&
9849
9850 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9851
9852         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9853         for writing icode into asm output.
9854
9855 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9856
9857         * src/pic16/device.c: added some debug lines enabled
9858         with macro DEBUG_CHECK,
9859         * src/pic16/genarith.c: more debug in genPlus,
9860         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9861         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9862         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9863         * (aopForSym): onStack symbols are re-placed in data memspace,
9864         and onStack flag is cleared,
9865         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9866         copy temporary pcodeop,
9867         * (genPcall): added warning for not updating PCLATU,
9868         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9869         always true for pic16 port,
9870         * (genMultOneWord): NEW, supports integer multiplication,
9871         * (genMult): modified to call genMultOneWord,
9872         * (ifxForOp): added warning when return NULL,
9873         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9874         flag is set before call to operandFromSymbol for implicit
9875         added structures,
9876         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9877         options.intlong_rent are set by default,
9878         * (_hasNativeMulFor): modified to allow port generation of integer
9879         multiplication,
9880         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9881         set regtype to REG_SFR for all registers, restricting seting the
9882         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9883
9884 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9885
9886         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9887         more than 500 times in the regression tests
9888
9889 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9890
9891         * support/Util/SDCCerr.h,
9892         * support/Util/SDCCerr.c,
9893         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9894         enumerator_list),
9895         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9896         for symbol conflicts.
9897         * support/valdiags/tests/enum.c,
9898         * support/valdiags/tests/tentdecl.c,
9899         * support/valdiags/tests/struct.c: expect possible error messages
9900         referring to original symbol definitions.
9901         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9902         * src/SDCCsymt.h,
9903         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9904
9905 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9906
9907         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9908
9909 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9910
9911         * src/pic16/ralloc.c (newReg): fixed bug #908929
9912
9913 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9914
9915         * src/ds390/gen.c: added missing #include "main.h"
9916
9917 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9918
9919         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9920         checking if symbol is already in set,
9921         * src/pic16/device.h: prototype for checkAddSym,
9922         * src/pic16/gen.c: (_G): added entry interruptvector,
9923         * (assignResultValue): removed some commented out lines,
9924         * (genFunction): check for ISR via sym->type, absolute section for
9925         interrupt code is created via a new pBlock, the goto instruction is
9926         placed now correctly at the interrupt vector position, changed all
9927         references from ivec to _G.interruptvector,
9928         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9929         is the interrupt is a high priority one, same for return from ISR,
9930         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9931         externs to calls of checkAddSym,
9932         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9933         pic16_pcode_verbose flag is set,
9934         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9935         * src/pic16/pcoderegs.c: message about how many registers are saved
9936         will only be emitted if pic16_pcode_verbose flag is set,
9937
9938 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9939
9940         * src/ds390/ralloc.h,
9941         * src/ds390/ralloc.c (ds390_regWithIdx),
9942         * src/ds390/gen.c (emitcode),
9943         * src/ds390/main.h,
9944         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9945         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9946         ds390operandCompare, getRegsRead, getRegsWritten,
9947         initializeAsmLineNode): customized instruction size calculation for
9948         ds390, started basis for some register optimizations
9949         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9950         corresponding assembly output
9951         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9952         missing push/pop of r0/r1. Optimized push/pops
9953
9954 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9955
9956         * src/mcs51/main.c (instructionSize): fixed ACALL size
9957         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9958
9959 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9960
9961         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9962         the sorting of rlist with NULL elements
9963         * (print_idataType, print_idata): NEW to create idata sections
9964         * src/pic16/device.h: idataSymSet new variable
9965         * src/pic16/gen.c (genFunction): fixed some bugs in string
9966         comparing, improved the absolute section creation for ISRs,
9967         added FSR0L/FSR0H in registers that are saved in an ISR,
9968         * (genInline): fixed the processing of inline snippets,
9969         now they undergo no process by the peephole optimizer
9970         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9971         are placed in idataSymSet,
9972         * (pic16emitStaticSeg): extern symbols are added in externs,
9973         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9974         switching when aboslute variables are placed in access bank memory
9975         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9976         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9977         commented out with #if,
9978         * (pic16_packRegisters): reintroduce the check for CAST because some
9979         symbols are not correctly handled,
9980         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9981         pCodeInstruction instead of pCode,
9982         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9983         pCodeAsmDir definition,
9984         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9985         directive, then the argument directive is emitted without the leading
9986         tab, hack for inline labels which must be in the first column,
9987         * (compareLabel,pic16_findNextInstruction),
9988         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9989         * (insertBankSwitch): modified for the new pCodeAsmDir,
9990
9991 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9992         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9993
9994         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9995         instance,
9996         * (pushSide): commented out with #if,
9997         * (assignResultValue): fixed some typos in saving
9998         registers,
9999         * (genPcall): FIXED and sync'ed with genCall,
10000         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10001         * (genNearPointerGet): fixed to handle some more cases,
10002         implementation scheme via table reads,
10003         * (genConstPointerGet): modified to access code memory correct,
10004         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10005         and improved to handle some cases
10006         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10007         instead of "RETLW" for init data
10008         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10009         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10010         variables are placed in access bank memory (<0x80 and >=0xf80),
10011         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10012         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10013         TBLWT_POSTDEC,TBLWT_PREINC
10014         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10015         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10016         directives
10017         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10018         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10019         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10020         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10021
10022 2004-02-29  Borut Razem <borut.razem AT siol.net>
10023
10024         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10025         support/Util/findme.h, support/Util/system.h: enhance binary relative
10026         search for lib and include by using findProgramPath()
10027
10028 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10029
10030         * src/SDCCpeeph.h,
10031         * src/SDCCpeeph.c (pcDistance),
10032         * src/port.h,
10033         * src/mcs51/ralloc.h,
10034         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10035         * src/mcs51/main.h,
10036         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10037         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10038         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10039         size calculation port specific, started basis for some register
10040         optimizations
10041         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10042         missing push/pop of r0/r1. Optimized push/pops
10043         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10044         * device/lib/_modsint.c (_modsint),
10045         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10046         and stack version so regression tests pass
10047
10048 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10049
10050         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10051         * src/SDCCast.c (decorateType): catch another small optimization
10052         with '?' operator
10053         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10054         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10055         modified to finally use computeType() all over SDCC,
10056         see Feature Request #877103
10057         * src/SDCCval.h: cosmetic
10058         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10059         valCompare(); regression tested in muldiv.c
10060         * support/regression/tests/muldiv.c (testMod): mod sign follows
10061         dividend only
10062
10063 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10064
10065         * src/SDCCast.c (decorateType): fixed bug #902362
10066         * doc/INSTALL.txt: fixed install instructions for win32
10067
10068 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10069
10070         * device/include/Makefile.in (install): fixed by replacing spaces
10071         by tabs
10072         * doc/README.txt,
10073         * doc/INSTALL.txt: updated for release
10074         * doc/sdccman.lyx: added warning for --xstack being buggy
10075
10076 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10077
10078         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10079         to eliminate build warnings.
10080         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10081
10082 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10083            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10084
10085         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10086         removed -penable-stack, added comment for stack pragma, added
10087         warning for not initializing the stack/frame registers, removed
10088         comment at interrupts section
10089
10090         Stack is made permanent, there is no ability to disable stack usage.
10091         * src/pic16/device.h,
10092         * src/pic16/device.c: removed all references to USE_STACK macro,
10093         * src/pic16/device.c (pic16_dump_section): when no elements in
10094         rlist, free rlist before return,
10095         * (pic16_dump_int_registers): NEW, internal registers are a new set
10096         of general purpose registers reused by each function,
10097         * (checkAddReg): returns 1 if registers is added to set,
10098         * (pic16_groupRegistersInSection): when a registers is of type
10099         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10100         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10101         SRCASECMP macro is moved here from device.c
10102         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10103         PO_PCLATU, PO_PRODL, PO_PRODH,
10104         * (pic16_pCodeOpType, genMinus,
10105         changed compares to "a" register, with AOP_ACC,
10106         * (pic16_genPlus): fixed some bugs and indented properly,
10107         * (pic16_addSign): changed size to size+offset in the MOVWF
10108         instruction,
10109         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10110         multiply 8-bit operand by literal, result is 8-bit,
10111         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10112         multiply 2 8-bit operand, result is 8-bit,
10113         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10114         genUMult8X*_16,
10115         * src/pic16/gen.c: changed accUse to contain WREG only,
10116         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10117         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10118         true, do not use immediate addressing any more unless sym is a
10119         pointer in codespace,
10120         * (aopForRemat): do not use immediate addressing when symbol not in
10121         codespace and when symbol's address is requested,
10122         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10123         accUse size (= 1),
10124         * (aopGet): added case for AOP_ACC and don't return "accumulator
10125         bug" but WREG instead,
10126         * (popGetTempReg): pushes contents of temporary register in stack,
10127         * (popReleaseTempReg): pops contents of temporary register from
10128         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10129         * (pic16_popGet): separated case AOP_ACC to return register WREG
10130         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10131         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10132         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10133         the use of immediate pointers to certain cases only.
10134
10135         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10136         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10137         * (assignResultValue, genCall, genRet): modified to use the new
10138         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10139         genPcall is still broken,
10140         * (genFunction): added code to create 'A' type pBlocks when
10141         interrupt functions are generated, code not extensively tested yet,
10142         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10143         * (genEndFunction): modified so ISRs pop stored registers from stack,
10144         * (genMultOneByte): cleanup,
10145         * (AccRsh): added flag andmask, to and result with appropriate mask,
10146         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10147         * (genDataPointerGet): fixed and reenabled its use,
10148         * (genNearDataPointerGet): bugs fixed,
10149         * (genDataPointerSet): bugs fixed,
10150         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10151         pic16_DumpSymbol, pic16_DumpOp,
10152         * src/pic16/genutils.h: function prototypes for the above functions,
10153         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10154         pointers,
10155         * (pic16emitRegularMap): many many many improvements, but needs a
10156         major cleanup,
10157         * src/pic16/main.c: enable_stack in pic16_options is removed,
10158         * (_pic16_parseOptions): removed command line options -penable-stack,
10159         * (_process_pragma): emit stack symbol only when stack pragma is
10160         processed,
10161         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10162         redirected to FSR0L/FSR0H pair,
10163         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10164         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10165         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10166         for immediates,
10167         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10168         * (dumpPicOptype): NEW,
10169         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10170         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10171         with movff instruction,
10172         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10173         added pic16_int_regs, some packRegsFor* functions are commented out,
10174         because produce errors,
10175         * src/pic16/NOTES: minor modifications
10176
10177 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10178
10179         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10180         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10181         --pack-iram.
10182         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10183         * as/mcs51/lkaomf51.c: fixed bug #895763
10184
10185 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10186
10187         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10188
10189 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10190
10191         * doc/sdccman.lyx: added details about the HC08 storage classes and
10192         interrupts, fixed the register usage info for z80 & gbz80
10193
10194 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10195
10196         * doc/sdccman.lyx: added more pic16 port documentation
10197         * device/include/pic16/: added header pic18fregs.h
10198
10199 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10200
10201         * doc/sdccman.lyx: added Vangelis' contribution
10202
10203 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10204
10205         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10206         extend to the next CALL or PCALL, not just to the next CALL.
10207
10208 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10209
10210         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10211
10212 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10213
10214         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10215         bug #895752 and a better fix for bug #716790
10216
10217 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10218
10219         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10220
10221 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10222
10223         * doc/sdccman.lyx: minor changes, minor changed
10224
10225 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10226
10227         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10228         which can't handle SDCC_NEWONEBYTEOPS,
10229         (geniCodeMultiply): removed conversion from mult to shift for pic14
10230         and pic16
10231
10232 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10233
10234         * src/hc08/gen.h,
10235         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10236         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10237         thus fixing bug #895406
10238
10239 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10240
10241         * device/lib/_modsint.c,
10242         * device/lib/_modslong.c: sign follows divisor only
10243         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10244         signs or signedness can be ignored
10245         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10246         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10247         added optimization for IFX,
10248         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10249         arguments;
10250         reenabled optimization for IFX, which was removed on 2004-01-11
10251         * src/SDCCast.h: added return type IFX
10252         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10253         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10254         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10255         SDCC_OLDONEBYTEOPS selects the old behaviour
10256         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10257         changed again and commented promotion rule
10258         * src/SDCCval.c (valDiv): promotion no longer necessary
10259         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10260         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10261         rewritten
10262         * support/regression/tests/onebyte.c: added
10263
10264 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10265
10266         * gen.c (genInline): reverted to old code for assemnling inline
10267         code because of bug reported James Chadd
10268
10269 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10270
10271         * ralloc.h: missing declarations from previous patch,
10272         seems that patch for ralloc.h was never applied, fixed
10273
10274 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10275            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10276
10277         * pcode.c,
10278         * pcode.h,
10279         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10280         indirect addressing. Marked FSR0 as deprecated
10281         * gen.c (pointerCode): commented out, not needed now
10282         (pic16_popGet2p): new MOVFF helper function
10283         (genGenPointerGet),
10284         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10285         (shiftRLong): removed duplicate debugging info
10286
10287 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10288
10289         * src/ds390/gen.c (genNearPointerGet),
10290         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10291         optimization with bits, but not bitfields.
10292         * src/ds390/ralloc.c (packRegisters),
10293         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10294
10295 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10296
10297         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10298
10299 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10300
10301         * src/SDCCsymt.h,
10302         * src/SDCCicode.c (operandFromSymbol),
10303         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10304         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10305         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10306         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10307         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10308         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10309         bug #892038
10310         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10311         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10312         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10313         * src/SDCCsymt.c (newSymbol),
10314         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10315         enumerator_list),
10316         * src/SDCCval.h,
10317         * src/SDCCval.c (newiList): fixed bug #885705
10318
10319 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10320
10321         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10322         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10323
10324 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10325
10326         * device/include/c8051f120.h,
10327         * device/include/c8051f300.h,
10328         * device/include/c8051f310.h: added/updated header files for Silicon
10329         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10330         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10331         in new section Submitting patches
10332
10333 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10334
10335         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10336         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10337         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10338         genGenPointerSet),
10339         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10340         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10341         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10342         genGenPointerSet),
10343         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10344         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10345         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10346         genGenPointerSet),
10347         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10348         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10349         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10350         genGenPointerSet): fixed bug #892400
10351         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10352         to eliminate build warnings.
10353         * src/SDCCast.c (processParms),
10354         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10355         fixed bug 751859
10356         * support/valdiag/valdiag.py: added GCC to the list of defines active
10357         when compiling with gcc
10358
10359 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10360
10361         * support/Util/SDCCerr.h,
10362         * support/Util/SDCCerr.c,
10363         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10364         with an incomplete type (fixed bug #883734)
10365         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10366
10367 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10370
10371 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10372
10373         * src/SDCCast.c (decorateType),
10374         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10375         function pointer implementation
10376         * support/regression/tests/funptrs.c: added tests to verify both forms
10377         of function pointers work correctly. Added tests to verify parameters
10378         are passed in the correct order.
10379
10380 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10381
10382         * device.c (regCompare): registers are sorted by ascending
10383         address and increasing size,
10384         * main.c (_pic16_finaliseOptions): removed the declaration
10385         of compiler macro MCU. Now a macro of the format pic18fxxxx
10386         will be defined from the command line
10387
10388 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10389             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10390
10391         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10392         PCOP_RLCF was overwritten!
10393         * gen.c (genSkip): commented out calls to pic16_emitcode,
10394         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10395         * (genlshTwo),
10396         * (genRRC): added debugging info,
10397         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10398         overwritten while shifting,
10399         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10400         overwritten while shifting,
10401         * (AccLsh),
10402         * (AccRsh),
10403         * (shiftLLeftOrResult),
10404         * (shiftRLeftOrResult),
10405         * (shiftRLong),
10406         * (shiftLLong): Implemented with pic16_emitpcode
10407         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10408         * (genLeftShift): Fixed bug, operand for shift by variable always
10409         was "and"ed with 0x0f,
10410         * (genLeftShiftLiteral),
10411         * (genrshTwo),
10412         * (genRightShiftLiteral): added debugging info,
10413         * (genrshFour): added comment,
10414         * (genRightShift): determined signedness from operand "left"
10415         instead of "result"
10416
10417 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10418
10419         * src/SDCCicode.c (geniCodeParms),
10420         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10421         function pointers, fixed function pointer bugs #861242 and #861896
10422
10423 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10424
10425         * device/include/c8051f000.h,
10426         * device/include/c8051f120.h,
10427         * device/include/c8051f300.h: added header files for Silicon
10428         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10429
10430 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10431
10432         * src/SDCCast.c (processParams): added new type flow and restructured
10433         (gatherAutoInit): added new type flow
10434         (addCast): cosmetic changes
10435         (getLeftResultType): added new type flow for array indices, patch
10436         provided by Stas, see FR #877103
10437         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10438         array index patch by Stas
10439         * src/SDCCast.h: added prototype getResultTypeFromType()
10440         * src/SDCCval.h,
10441         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10442         * src/pic/glue.c (pic14emitStaticSeg),
10443         * src/pic16/glue.c (pic16emitStaticSeg),
10444         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10445         for initialization of symbols
10446         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10447         * support/Util/SDCCerr.h:
10448         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10449         * .version: bumped version number to 2.3.8
10450         * device/include/Makefile.in (install),
10451         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10452         avoid warnings
10453
10454 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10455
10456         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10457         Slade Rich fixed an optimization bug
10458         * src/pic/pcodepeep.c,
10459         * src/pic/pcoderegs.c
10460         * doc/Makefile (install): added test for directory
10461
10462 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10463
10464         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10465         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10466         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10467         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10468         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10469         * as/mcs51/asexpr.c (term),
10470         * as/hc08/asexpr.c (term): fixed bug #887146
10471
10472 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10473
10474         * src/z80/gen.c (genMult): handle single byte result product
10475         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10476         DUMMY_READ_VOLATILE (fixed bug #886367)
10477
10478 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10479
10480         * support/regression/tests/libmullong.c: fixed logic, on little endian
10481         hosts we ended without a mullong_wrapper()
10482
10483 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10484
10485         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10486         virus/worm forged address usage.
10487
10488 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10489
10490         Fixed promotion, it should be done on AST level:
10491         * src/SDCCast.c (addCast): added promotion to int
10492         (decorateType): updated call to upCast()
10493         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10494         usualUnaryConversions()
10495
10496 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10497
10498         * support/regression/tests/literalop.c (mulWrapper): Added a
10499         wrapper to remove integer overflow warnings.
10500
10501         * support/regression/tests/float_trans.c: Made work on host.
10502
10503         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10504         location of sz80.
10505
10506         * support/regression/generate-cases.py (main): Changed from inline
10507         to a main method.
10508
10509         * doc/Makefile (install): Changed to depth first to get rid of
10510         missing directory install warning.
10511
10512         * as/Makefile (install-doc): Made work on Mac.
10513
10514 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10515
10516         * src/SDCCast.c: added an additional type flow in decorateType() of
10517         opposite direction, see feature request #860006; it's enabled at runtime
10518         by setting the environment variable SDCC_NEWTYPEFLOW
10519         * src/SDCCast.h: changed prototype of decorateType()
10520         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10521         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10522         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10523         see feature request #877103
10524         * src/SDCCval.c: updated call of decorateType()
10525         (valBitwise): fixed bug #882876
10526         (valMinus): added promotion
10527         (valLogicAndOr): result is unsigned
10528         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10529         * src/SDCCsymt.c (computeType),
10530         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10531         must not cause an unsigned operation
10532         * src/pic/glue (pic14emitRegularMap),
10533         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10534
10535 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10536
10537         * src/pic/pcode.c (PCodeID): commented out left over debug code
10538
10539 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10540
10541         * support/valdiag/tests/overflow.c: added shift tests
10542         * src/pic/device.c,
10543         * src/pic/gen.c,
10544         * src/pic/gen.h,
10545         * src/pic/glue.c,
10546         * src/pic/main.c,
10547         * src/pic/pcode.c,
10548         * src/pic/pcode.h,
10549         * src/pic/pcodepeep.c,
10550         * src/pic/pcoderegs.c,
10551         * src/pic/ralloc.c,
10552         * src/pic/ralloc.h: applied patch from Slade Rich;
10553         added support for multiple code pages and multiple RAM banks on the
10554         PIC 14 port. The ASM files now no longer simply assume all the
10555         code / RAM are in the same page / bank. This means the linker can
10556         safely allocate code/RAM of separate ASM files to different pages/banks.
10557         * doc/sdccman.lyx: added Slade's tips
10558         * src/mcs51/peeph.def: fixed bug #880768
10559
10560 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10561
10562         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10563         * src/SDCCast.c (decorateType): fixed bug #880197
10564
10565 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10566
10567         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10568         getopt.h.
10569
10570         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10571         strtof is not part of C89 and isn't included with Mac OS X.
10572
10573 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10574
10575         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10576         shiftL2Left2Result): fixed bug #879326
10577         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10578         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10579         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10580         address fetch for clr instruction
10581         * device/lib/hc08/_mulint.c: created optimized assembly version
10582         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10583
10584 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10585
10586         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10587         proposed in FR #877103
10588
10589 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10590
10591         * src/SDCCval.c (cheapestVal): added missing checks
10592         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10593         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10594
10595 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10596
10597         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10598         equal operands
10599
10600 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10601
10602         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10603         loaded with the linker search paths (-L arguments) and the libraries
10604         to be linked with the current source (-l arguments). Changes
10605         currently will affect only the pic16 port.
10606         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10607         include path the port specific paths and port specific libraries,
10608         * gplink command now contains the $3 argument,
10609         * src/pic16/device.h,
10610         * src/pic16/device.c,: structure PIC_device is made public and
10611         renamed to PIC16_device, the same for variable Pics which is renamed
10612         to Pics16. Updated all references to them.
10613         * src/pic16/glue.c (pic16glue): corrected bug with code
10614         initialization which bypassed the variable initializations block.
10615
10616         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10617         COMPILE_FLAGS and added the --nostdinc option
10618
10619 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10620
10621         * device/include/mc68hc908jb8.h: Register defs for another member
10622         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10623
10624 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10625
10626         Documenting changes from previous commits.
10627         * configure.in (version 1.56),
10628         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10629         when generating output files to configure the pic16 library,
10630         but now I've commented it out, since gputils aren't installed in the
10631         SF compile farm, so library won't compile
10632
10633         * device/lib/Makefile.in (version 1.56): initially I've added in
10634         target 'all' the prerequestive 'model-pic16' so it compiled the
10635         pic16 library, but now I've commented it out for the same reasons
10636         above,
10637         * added targets 'model-pic16' and 'objects-pic16' to compile the
10638         library
10639         * added target 'port-specific-objects-pic16' to handle the
10640         generated libraries and copy them into the build/ directory
10641         * added target 'clean-intermediate-pic16' to clean intermediate
10642         files into pic16 directory
10643         * in target 'installdirs' added line to create directory pic16 in
10644         the installation path
10645
10646         * device/include/Makefile.in (version 1.11): in target 'install'
10647         added lines to copy all header files to installation path,
10648         * in target 'installdirs' added line create directory for pic16
10649         headers in the installation path
10650
10651 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10652
10653         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10654          a function call
10655
10656 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10657
10658         * configure,
10659         * device/lib/configure.in,
10660         * device/lib/configure: fixed for autoconf 2.57
10661
10662 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10663
10664         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10665         option so that it actually works. Made it specific to the z80, since
10666         the gbz80 doesn't have these kinds of I/O ports.
10667
10668 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10669
10670         * device/include/z180.h,
10671         * device/lib/_memcpy.c,
10672         * device/lib/_memmove.c,
10673         * device/lib/_mulint.c,
10674         * device/lib/ser_ir.c,
10675         * device/lib/ser_ir_cts_rts.c,
10676         * device/lib/_strcmp.c,
10677         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10678         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10679         portmode; added deprecation warning for bank= and protmode= forms.
10680         Also, guard against buffer overflow.
10681         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10682
10683 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10684
10685         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10686         changed interrupt vector table generation to only emit declared vectors.
10687         * device/include/Makefile.in: added missing backslash
10688         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10689
10690 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10691
10692         Mainly changes to support compilation of the device libraries
10693         * src/pic16/device.c: stack is allocated via symbol and not
10694         via literal number. The symbol is placed in the corresponding
10695         position of the data ram
10696         * (pic16_dump_section): relocatable and absolute uninitialized
10697         data are now emitted in sorted order to reduce section naming,
10698         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10699         weren't marked as being in the access bank,
10700
10701 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10702
10703         Added portion of GNU PIC Library under the directory
10704         device/include/pic16 and device/lib/pic16. These files
10705         contain the declarations of SFRs for the PIC18Fxx2 devices.
10706         The directory is initialized via configure from toplevel.
10707
10708 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10709
10710         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10711         the spilllocations to be compared correctly
10712
10713 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10714
10715         * src/SDCCast.c (decorateType): fixed bug introduced today
10716
10717 2004-01-12  Borut Razem <borut.razem AT siol.net>
10718
10719         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10720         doc/sdccman.lyx: upper case pragmas are deprecated
10721
10722 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10723
10724         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10725         in simpler and even better code
10726
10727 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10728
10729         * src/SDCCicode.c (operandOperation): fixed bug #874819
10730         * src/SDCCast.c (decorateType): fixed
10731         char foo (unsigned long ul) { return ul > 0; }
10732
10733 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10734
10735         * doc/sdccman.lyx: Moved and added some sections, small changes
10736         all over. Telling LaTeX to be less strict with word spacing
10737         to better keep the right margin. Changed some notes about
10738         maintainance of the ports in section 3.2.1 - is it OK like this?
10739
10740 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10741
10742         SDCC source changes:
10743         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10744         convilong): modified to inform the pic16 port that builtin functions
10745         are external
10746
10747         PIC16 PORT specific changes:
10748         * src/pic16/device.c pic16_dump_equates() added,
10749         processor registers declared internally by the port are emitted in
10750         the translation as equates,
10751         * src/pic16/gen.c: inline code is passed unprocessed to the
10752         translation,
10753         * (pic16_popGetLit2): fnuction modified to take second operand as
10754         pCodeOp pointer and not as literal,
10755         * (popRegFromIdx): prefixed with pic16_,
10756         * (pic16_popCombine2): modified to receive already allocated pCode
10757         operands,
10758         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10759         * (genFunction): initializes local stack frame and pushes on stack
10760         all the registers used by this function,
10761         * (genEndFunction): restores all registers from stack and restores
10762         stack frame,
10763         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10764         improvements,
10765         * (pic16glue): changed the program startup sequence,
10766         * added new dbName code 'A' for functions placed in absolute section
10767         * src/pic16/main.c: added function attribute _naked,
10768         * added pragma 'code' to place a fnuction at an absolute address,
10769         * added command line arguments --debug-ralloc and --pcode-verbose,
10770         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10771         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10772         * (pic16_newpCodeOpLit2): modified to take the second operand as
10773         pCodeOp pointer,
10774         * (pic16_printpBlock): modified to emit each function in a separate
10775         section,
10776         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10777         UPPER for immediate operands,
10778         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10779         instruction,
10780         * src/pic16/peeph.def: all peepholes with movff are commented out,
10781         because there is a problem in the pcode peep optimizer,
10782         * src/pic16/ralloc.c: the register allocator can now reuse local
10783         function symbols for another function. This saves register usage.
10784         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10785
10786         Added file src/pic16/NOTES with information about program writing on
10787         the current port version.
10788
10789 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10790
10791         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10792         and peephole 252 (array access)
10793
10794 2004-01-09  Borut Razem <borut.razem AT siol.net>
10795
10796         * src/SDCCmain.c : fixed #872250: -l command line defined library
10797           files are scanned before standard library files
10798
10799 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10800
10801         * src/SDCCast.c (decorateType): fixed bug #874046
10802
10803 2004-01-09  Borut Razem <borut.razem AT siol.net>
10804
10805         * support/scripts/sdcc.nsi: remove previous installation
10806
10807 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10808
10809         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10810         bytes for last interrupt vector (mcs51)
10811         * sdcc.spec: fixed typo
10812
10813 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10814
10815         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10816         gen51Code): more efficient parameter receive for --model-large
10817         ("bug" #845294)
10818
10819 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10820
10821         * src/ds390/main.c,
10822         * src/z80/main.c: added missed needLinkerScript flags (more than
10823         one port structure defined in these file)
10824         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10825         bug #795325
10826
10827 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10828
10829         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10830         * src/port.h: added flag needLinkerScript in port->linker
10831         structure to inform whether to create a .lnk file or not,
10832         * src/avr/main.c,
10833         * src/ds390/main.c,
10834         * src/hc08/main.c,
10835         * src/mcs51/main.c,
10836         * src/pic/main.c,
10837         * src/pic16/main.c,
10838         * src/xa51/main.c,
10839         * src/z80/main.c: changed appropriately to configure
10840         needLinkerScript flag
10841         * src/pic/gen.c,
10842         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10843         * src/pic/glue.c: added variable udata_section_name to
10844         override default uninitialized data segment definition for
10845         devices only with SHAREBANK memory (reported from Erik Epetrich)
10846         * (pic14emitOverlay): modified to emit a commented overlay segment
10847         directive when no overlay data exist
10848         * (picglue): modified to emit uninitialized data segment
10849         according to udata_section_name
10850         * src/pic/main.c (_pic14_parseOptions): added command line
10851         options --udata-section-name=[name] to override default
10852         udata definition name
10853         * modified _linkCmd and _asmCmd to include compiler passed
10854         arguments via -W option
10855         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10856         object file from '.rel' to '.o' in port->linker structure,
10857         changed size of fptr from 2 to 3 in port structure
10858
10859 2004-01-07  Borut Razem <borut.razem AT siol.net>
10860
10861         * support/scripts/sdcc.nsi: update PATH
10862         * support/scripts/sdcc.ico: craeted
10863
10864 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10865
10866         * device/include/Makefile.in: fix install
10867         * doc/Makefile: fix install
10868
10869 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10870
10871         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10872         in bug #860505
10873         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10874         how the function variable allocation summary is displayed; also
10875         include information about variables allocated to the overlay
10876         segment
10877
10878 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10879
10880         * as/mcs51/lkmain.c: Help about -Y option
10881         * as/mcs51/lkarea.c: Fixed gcc warnings
10882
10883 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10884
10885         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10886         fixed warning
10887         * support/valdiag/tests/overflow.c: added
10888         * src/SDCCast.c (decorateType),
10889         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10890         LEFT_OP (left shift)
10891
10892 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10893
10894         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10895         (default behaviour).
10896
10897 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10898
10899         A python script to validate compiler diagnostic messages. It can be
10900         used to verify that sdcc complains about bad c source code and
10901         gives a good location of the error.
10902         * support/valdiag/Makefile,
10903         * support/valdiag/valdiag.py,
10904         * support/valdiag/tests/*
10905
10906 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10907
10908         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10909         * src/SDCCsymt.c (newEnumType),
10910         * src/SDCCsymt.h
10911         * support/Util/SDCCerr.c,
10912         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10913         enum related bugs.
10914         * support/regression/tests/enum.c: added test for enum values that
10915         require at least 2 bytes of storage.
10916
10917 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10918
10919         * src/common.h: added ifndef/define/endif macros
10920         around the header file.
10921         Bug reported from Jesus Calvino-Fraga
10922
10923 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10924
10925         * sdcc.spec: updated
10926         * device/include/Makefile.in: don't install CVS directories
10927         * device/lib/Makefile.in: added removal of CVS directories after install
10928         * doc/Makefile: fixed install, added local_icons
10929         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10930         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10931         * src/ds390/gen.c (genRightShift): fixed bug #870788
10932         * src/SDCCast.c (decorateType): fixed bug #870781
10933
10934 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10935
10936         PIC16 port related changes:
10937         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10938         added variable stackPos,
10939
10940         * gen.c: genCall, assignResultValue: added support for
10941         pushing/retrieving function parameters to/from stack,
10942         genFunction,genEndFunction: setup stack frame for the
10943         generated function,
10944         genAddrOf: will be changed according to bug 863624
10945
10946         * added files genutils.c and genutils.h which contain gen*
10947         debugged and optimised functions extracted from gen.c
10948
10949         * glue.c: added variable 'externs' which holds extern symbols,
10950         pic16emitRegularMap: is modified to properly handle relocatable
10951          symbols under the new scheme,
10952         pic16createInterruptVect: is modified
10953         pic16printPublics: is modified to emit 'global' assembler directives,
10954         added pic16_printExterns to print extern symbols,
10955         pic16glue: initializes stack/frame pointer in the beginning of
10956         the assembly output. Temporary hack, will be corrected later,
10957         because gplink yet does not support stack and SDCC does not
10958         yet support a type of crt0.o object to create the final binary.
10959
10960         * Removed many lines that contain 8051 legacy code.
10961         * The code is finally placed under a 'code' directive.
10962         * Added port specific options.
10963
10964         * _process_pragma: simplified since now we do not need *special*
10965         include file to define SFR registers. But a separate header
10966         will be needed. This will be developed later.
10967         * _pic16_parseOptions: added, parses port specific options:
10968         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10969         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10970         --preplace-udata-with=
10971
10972         * _pic16_setDefaultOptions: modified to initialize section names,
10973         but hack is temporarly out of order since it needs improvement.
10974         * _pic16_genAssemblerPreamble: configuration words are emitted by
10975         their address instead of their name. This part is incomplete and
10976         supports only the 18Fxx2 devices. Other devices will emit an error
10977         during assembly since they do not contain the same set of config
10978         registers
10979         * _pic16_genIVT: is modified,
10980
10981         * pcode.c: added definitions for some hardware registers that are needed
10982         for stack support
10983         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10984         All PCI entries are updated. Now LFSR is supported.
10985         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10986         * added pic16_newpCodeOpLit2 to support instructions with
10987         two literal arguments
10988         * pic16_pCode2str: corrected code that emits assembler instructions
10989         with two literal operands and those that have an access bit modifier
10990         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10991         this fixes a bug which caused some labels to be lost, when an
10992         assembler directive was added, i.e. banksel,
10993         * pic16_FixRegisterBanking: improved logic that causes the insertion
10994         of bank switching,
10995         * InlineFunction: functions that are called once, are not any more
10996         inlined. This can be a port option in the future,
10997
10998         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10999
11000         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11001         hold the corresponding uninitialized symbols,
11002         * pic16_allocProcessorRegister: registers have explicit marked the
11003         accessBank field,
11004         * pic16_allocInternalRegister: registers are explicit marked as
11005         not used,
11006         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11007         processing list, so bit registers were lost,
11008         *
11009
11010         * ralloc.h: added field 'accessBank' and original symbol operand
11011         in register definition,
11012         * removed the field isMapped from register definition,
11013
11014         ** Several functions have been removed from various sources:
11015         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11016         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11017         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11018         pic16_assignRelocatableRegisters
11019
11020         ** others have been introduced:
11021         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11022         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11023
11024 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11025
11026         * support/scripts/inc2h.pl: changed definition of BIT_AT
11027         to emit 'sbit at' instead of 'bit at'. This was a request.
11028
11029         PIC16 port related preliminary changes:
11030         * gen.c: prefixed function popRegFromString with
11031         pic16_ and all references to it corrected
11032         * pcode.c: all pic16_pc_* hardware registers prefixed
11033         with underscore (_),
11034         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11035         * ralloc.c: newReg(): when register is REG_SFR then
11036         set address to rIdx,
11037         pic16_allocProcessorRegister(): marks register wasUsed=0
11038         pic16_writeUsedRegs(): added a call to assign processor
11039         registers via pic16_assignFixedRegisters
11040
11041 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11042
11043         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11044         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11045         variables in unused register banks.  Also the SSEG is placed
11046         wherever there is enough space for it, and IDATA can be anywhere
11047         in internal RAM.  For now compile using -Wl-Y[stack_size].
11048         The mem file is different for this option as well, since it
11049         makes no sense of talking about DSEG lenght.
11050
11051 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11052
11053         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11054         in certain cases, e.g. when ROM assignment, patch provided
11055         from Albert den Haan.
11056
11057 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11058
11059         Many signedness and type propagation fixes:
11060         * src/SDCCicode.c: made geniCodeCast() static
11061         replaced SPEC_ by IS_ (cosmetic)
11062         (operandOperation): fixed div and mod operation
11063         (usualBinaryConversions): added support for promotion of char
11064         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11065         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11066         (geniCodeAdd): an array index will stay unsigned, even if promoted
11067         from char to int
11068         (geniCodeArray): ditto
11069         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11070         * src/SDCCsymt.c (computeType): added more support for char;
11071         promotion of char is selectable by promoteCharToInt, fixed signedness
11072         for all cases
11073         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11074         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11075         * src/SDCCval (val*): replaced signedness calculation by
11076         computeType()
11077         rearranged if-branches (cosmetic)
11078         (valShift): added warning W_SHIFT_CHANGED
11079         (valCompare): fixed problem with different types
11080         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11081         * support/regression/tests/literalop.c: added many cases
11082         * support/regression/tests/ast_constant_folding.c: changed finally to
11083         'unsigned int'
11084         * .version: new year, new version: 2.3.7
11085         * src/SDCCmain.c (main): applied patch #866468
11086         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11087         provided by Scott Bronson
11088         * doc/sdccman.lyx: updated documentation for sdcdb
11089         updated and added chapter tips
11090
11091 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11092
11093         * src/SDCCsymt.h: missing from yesterday's commits
11094
11095 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11096
11097         * src/SDCC.y (struct_or_union_specifier),
11098         * support/Util/SDCCerr.c,
11099         * support/Util/SDCCerr.h: verify that struct & union tags are used
11100         as declared.
11101
11102 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11103
11104         * src/SDCCglobl.h: missing from yesterday's commits
11105
11106 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11107
11108         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11109         sft_attributes, struct_declaration, parameter_declaration,
11110         type_name, start_block, declaration_list),
11111         * src/SDCC.lex (check_type): support redefinition of typedef names
11112
11113 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11114
11115         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11116         aligned xdata arrays. Erik helped me with the if clause.
11117
11118 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11119
11120         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11121         warning
11122
11123 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11124
11125         * src/SDCCast.h,
11126         * src/SDCCast.c (newAst_),
11127         * src/SDCCicode.h,
11128         * src/SDCCicode.c (ast2iCode, newiCode),
11129         * src/SDCCglobl.h,
11130         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11131         expr, statement, expression_statement, selection_statement,
11132         iteration_statement, expr_opt, jump_statement): foundation for tracking
11133         sequence points
11134         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11135         point code too)
11136
11137 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11138
11139         * support/Util/SDCCerr.c,
11140         * src/SDCCast.h,
11141         * src/SDCCast.c (createCase, createDefault, decorateType),
11142         * src/SDCClabel.c (labelUnreach),
11143         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11144         to error messages.
11145         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11146         (with thanks to Stas Sergeev)
11147         * device/include/time.h,
11148         * device/lib/time.c (CheckTime): suppress unreachable code warning
11149
11150 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11151
11152         * src/SDCCast.c (createIvalCharPtr),
11153         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11154         bug #753752)
11155         * support/regression/tests/nullstring.c: tests for these two bugs
11156
11157 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11158
11159         * support/Util/SDCCerr.h,
11160         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11161         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11162         about storage class and 'at' used inside struct or union
11163         * src/SDCCBBlock.c (iCodeFromeBBlock),
11164         * src/SDCCcse.c (ifxOptimize),
11165         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11166         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11167         printIval, emitStaticSeg, emitOverlay),
11168         * src/SDCClabel.c (deleteIfx),
11169         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11170         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11171         gatherAutoInit, processParms),
11172         * support/Util/SDCCerr.h,
11173         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11174         reporting for post-parse errors.
11175
11176 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11177
11178         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11179         implicit casts via union; they don't work on big endian systems
11180         (possible fix for bug #861138)
11181
11182 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11183
11184         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11185         * src/mcs51/main.c: fixed the fix for bug #737001
11186
11187 2003-12-15  Borut Razem <borut.razem AT siol.net>
11188
11189         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11190
11191 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11192
11193         * support/makebin/makebin.c: put output in binary mode
11194
11195 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11196
11197         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11198         xdata and data memory on startup. Set the environment variable
11199         SDCC_NOGENRAMCLEAR to disable this.
11200         * src/mcs51/peephole.def,
11201         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11202         (allows non-interrupt and interrupt code to safely compete for a resource
11203         without the non-interrupt code having to disable interrupts)
11204
11205 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11206
11207         * src/SDCCicode.c (geniCodeAdd),
11208         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11209         with valFromType if type might be a pointer and host is big endian).
11210         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11211         types, not just integer types.
11212         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11213         multiply defined with mismatching "at" address.
11214
11215 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11216
11217         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11218         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11219         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11220         with embedded nulls (fixed bug #753752)
11221
11222 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11223
11224         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11225         Apparently this did not see much testing (endless loop)
11226
11227 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11228
11229         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11230
11231 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11232
11233         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11234         gracefully handle NULL memmap pointers
11235
11236 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11237
11238         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11239         instead of deleting the iCode when an operand is volatile
11240         * src/z80/gen.c (genDummyRead),
11241         * src/mcs51/gen.c (genDummyRead),
11242         * src/ds390/gen.c (genDummyRead),
11243         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11244         not just IC_RIGHT
11245         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11246         * src/SDCC.y: fixed bug #850420
11247
11248 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11249
11250         Applied z80 i/o port patch from Peter Townson and fixed some operators
11251         to better handle operands in A register.
11252         * device/include/z180.h
11253         * src/SDCC.y
11254         * src/SDCCglue.c
11255         * src/z80/gen.c
11256         * src/z80/gen.h
11257         * src/z80/main.c
11258         * src/z80/peeph-z80.def
11259         * src/z80/peeph.def
11260         * src/z80/z80.h
11261
11262 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11263
11264         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11265
11266 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11267
11268         * device/lib/hc08/_mullong.c: Removed extra #endif
11269
11270 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11271
11272         * sim/ucsim/hc08.src/inst.cc,
11273         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11274         carries from x to h
11275         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11276         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11277         * device/include/stdarg.h: fixed varargs for hc08
11278         * device/lib/Makefile.in,
11279         * device/lib/hc08/Makefile,
11280         * device/lib/hc08/_mulint.c,
11281         * device/lib/hc08/_mullong.c: fixed some endian problems
11282
11283 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11284
11285         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11286         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11287         * device/lib/_gptrget.c,
11288         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11289
11290 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11291
11292         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11293         * src/SDCCast.c (astErrors): fixed bug #846007
11294         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11295
11296 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11297
11298         * src/SDCCast.c (decorateType): disabled a transformation I added in
11299         revision 1.188 (access to fields of a structure at an absolute address);
11300         it breaks with bitfields, extern declarations, and gcse analysis.
11301         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11302         could be assigned through a pointer, so don't complain.
11303         * src/SDCCast.c (astErrors),
11304         * src/SDCCast.h,
11305         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11306
11307 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11308
11309         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11310         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11311         output of __config directives, since gpasm now supports them
11312         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11313         pre-processor macro, i.e. -DMCU=p18f452
11314         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11315         and modified to handle 'cast' icode similarly to '=' icode
11316         * src/pic16/device.h (typedef struct PIC_device): added field
11317         'extMIface' to indicate that chip has external memory interface
11318         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11319         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11320         18F8720
11321
11322 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11323
11324         * src/SDCC.y (pointer): fixed bug #846006
11325         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11326         * src/SDCCast.c (decorateType): fixed bug #846009
11327         * src/ds390/peeph.def,
11328         * src/ds390/gen.c (genAnd, genOr),
11329         * src/mcs51/peeph.def,
11330         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11331
11332 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11333
11334         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11335         * src/SDCCdflow.c
11336         * src/SDCCcse.c
11337         * src/SDCCcse.h
11338         * src/SDCCBBlock.h
11339         * src/SDCCBBlock.c
11340
11341 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11342
11343         fixed bug #845089
11344         * src/SDCCbitv.h,
11345         * src/SDCCbitv.c: added function to free a bitvector
11346         * src/SDCClrange.h,
11347         * src/SDCClrange.c: added function to recompute the liveranges
11348         * src/avr/ralloc.c,
11349         * src/ds390/ralloc.c,
11350         * src/hc08/ralloc.c,
11351         * src/mcs51/ralloc.c,
11352         * src/pic/ralloc.c,
11353         * src/pic16/ralloc.c,
11354         * src/xa51/ralloc.c,
11355         * src/z80/ralloc.c: recompute the liveranges after register packing
11356
11357 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11358
11359         * src/SDCCloop.c (newInduction): fixed bug #845630
11360
11361 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11362
11363         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11364         inadvertantly left behind from my 2003-11-12 change
11365
11366 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11367
11368         Updated headers I neglected to commit yesterday.
11369         * src/SDCClrange.h,
11370         * src/SDCCicode.h
11371
11372 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11373
11374         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11375         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11376         * src/SDCCopt.c (eBBlockFromiCode),
11377         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11378         the creation of the key hash table from the sequencing so it can be used
11379         earlier (for some GCSE bug fixes still pending)
11380
11381 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11382
11383         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11384         * support/regression/tests/addsub.c: testing genPlus shortcut
11385
11386 2003-11-15  Borut Razem <borut.razem AT siol.net>
11387
11388         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11389
11390 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11391
11392         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11393         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11394         ordering is immaterial.
11395         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11396
11397 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11398
11399         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11400         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11401         (SIGSEV) of bug #840381
11402         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11403         unlink new file before rename if new and old filenames are the same)
11404
11405 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11406
11407         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11408         uninitialized variables) for the mcs51. Set environment variable
11409         SDCC_GENRAMCLEAR to test.
11410         xdata initialization slightly shorter
11411
11412 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11413
11414         * src/SDCCsymt.h,
11415         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11416         #838241 & 780691 (basicly the same bug)
11417         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11418         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11419
11420 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11421
11422         * src/SDCCmain.c (linkEdit): "fix" #834252
11423
11424 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11425
11426         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11427         * src/SDCCast.h,
11428         * src/SDCC.y: fixed bug #819403
11429
11430 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11431
11432         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11433         the reentrant attribute.
11434         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11435         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11436         simulation
11437         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11438         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11439         erroneously reduced to a literal.
11440         * src/hc08/ralloc.c (packRegisters, rematStr),
11441         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11442         some cases
11443
11444 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11445
11446         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11447         * doc/sdccman.lyx: changed from 'article' to 'book'
11448         * doc/Makefile: readded test_suite_spec and cdbfileformat
11449
11450 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11451
11452         * device/include/stdlib.h: include malloc.h to comply with ANSI
11453         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11454
11455 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11456
11457         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11458         * doc/clean.mk: also remove *.out files
11459         * doc/sdccman.lyx: some additions, larger top/bottom margins
11460
11461 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11462
11463         * src/SDCC.y: fixed bug #837365
11464         * support/regression/tests/bitopcse.c
11465         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11466         a symbol (might be valop instead)
11467         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11468         * device/lib/clean.mk: added hc08 to the cleaning list
11469
11470 2003-11-04  Borut Razem <borut.razem AT siol.net>
11471
11472         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11473           made 2003-11-04
11474         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11475           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11476           malloc is declared in standard stdlib.h
11477
11478 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11479
11480         * device/lib/hc08/Makefile: need to clean .rel not .o files
11481         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11482
11483 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11484
11485         * src/port.h,
11486         * src/hc08/main.c,
11487         * src/mcs51/main.c,
11488         * src/ds390/main.c,
11489         * src/z80/main.c,
11490         * src/avr/main.c,
11491         * src/pic/main.c,
11492         * src/pic16/main.c,
11493         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11494         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11495         tests (which uses the port's oclsExpense function)
11496         * src/SDCC.y,
11497         * src/SDCCast.c,
11498         * src/SDCCicode.c,
11499         * src/hc08/gen.c,
11500         * src/ds390/gen.c,
11501         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11502
11503 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11504
11505         * src/SDCCcse.c (ifxOptimize),
11506         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11507         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11508         deleting the IFX iCode.
11509         * src/hc08/ralloc.c: reduced unneeded slocs
11510         * src/hc08/gen.c: fixed bug in asmopToBoolean
11511
11512 2003-11-04  Borut Razem <borut.razem AT siol.net>
11513
11514         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11515           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11516           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11517           transferred to configure
11518
11519 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11520
11521         Use headers defined in the C[++] standards:
11522         * sim/ucsim/gui.src/serio.src/fileio.cc
11523         * sim/ucsim/gui.src/serio.src/frontend.cc
11524         * sim/ucsim/gui.src/serio.src/main.cc
11525         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11526         * support/Util/NewAlloc.c
11527         * as/hc08/lklibr.c
11528         * as/mcs51/lklibr.c
11529         * as/z80/aslist.c
11530         * as/z80/assym.c
11531
11532 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11533
11534         * Added MSVC projects for hc08 assembler and linker:
11535         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11536         /as/hc08/link_hc08.dsp
11537
11538 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11539
11540         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11541
11542 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11543
11544         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11545
11546 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11547
11548         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11549
11550 2003-10-31  Borut Razem <borut.razem AT siol.net>
11551
11552         * support/cpp2/cpplib.h,
11553           support/cpp2/cpplib.c,
11554           support/cpp2/cpplex.c,
11555           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11556           to switch _asm block preprocessing on / off. Default is
11557           #pragma preproc_asm +
11558
11559 2003-10-31  Borut Razem <borut.razem AT siol.net>
11560
11561         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11562           when outputting comment blocks (when executed with -C option) and
11563           _asm (SDCPP specific) blocks
11564
11565 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11566
11567         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11568
11569 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11570
11571         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11572
11573 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11574
11575         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11576         * src/SDCCast.c (decorateType): fixed bug #832664
11577
11578 2003-10-31  Borut Razem <borut.razem AT siol.net>
11579
11580         * support/cpp2/cpplex.c: fixed for SDCPP:
11581           comments(when executed with -C option) and _asm blocks
11582           were included even if they where in skipped #if block.
11583           Applied solution from GCC cpp 3.3.2
11584
11585 2003-10-31  Borut Razem <borut.razem AT siol.net>
11586
11587         * src/SDCC.lex: sdcc now understands both formats:
11588           '# <line_number> <file_name>' and
11589           '#line <line_number> <file_name>'
11590         * support/cpp2/cppmain.c: sdcpp now generates the standard
11591           '# <line_number> <file_name>' instead of former
11592           '#line <line_number> <file_name>'
11593
11594 2003-10-30  Borut Razem <borut.razem AT siol.net>
11595
11596         * support/cpp2/cpphash.h,
11597         * support/cpp2/cpplib.h
11598         * support/cpp2/cpplex.c,
11599         * support/cpp2/cppmain.c,
11600         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11601
11602 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11603
11604         Fixed a number of problems revealed by bug #827883.
11605         * src/SDCCloop.c (loopInvariants): Spill location of the
11606         result operand should be recomputed if extracted from
11607         a loop. Also, don't extract assignments of an iTemp
11608         from a literal.
11609         * src/SDCCast.c (isConformingBody): loop reversal should
11610         not occur if the control variable is involved with a
11611         relational operator.
11612
11613 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11614
11615         * .version: bumped to 2.3.6 to reflect the big improvements
11616         made by Erik and Klaus. Thanks!
11617
11618 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11619
11620         Replaced the livrange code.
11621         * src/SDCClrange.c: added new LR code
11622         * src/SDCCloop.c,
11623         * src/SDCCBBlock.h: removed remainig parts from old LR code
11624         * src/ds390/ralloc.c,
11625         * src/ds390/gen.c: minor fixes to make it work with new code
11626
11627 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11628
11629         * as/hc08/asm.h,
11630         * as/hc08/lkrloc.c,
11631         * src/hc08/gen.c,
11632         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11633         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11634         (tweaked fix for bug #818696)
11635
11636 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11637
11638         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11639
11640 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11641
11642         * src/SDCCmain.c,
11643         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11644         * src/mcs51/gen.c (gencjneshort),
11645         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11646         more efficient (per Scott Bronson's suggestion)
11647
11648 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11649
11650         Extended the semantics of the critical keyword to include
11651         individual statements. See RFE #827755 and #799831
11652         * src/SDCC.y
11653         * src/SDCCicode.c
11654         * src/SDCCopt.c
11655         * src/SDCCast.c
11656         * support/Util/SDCCerr.c
11657         * support/Util/SDCCerr.h
11658         * src/mcs51/gen.c
11659         * src/ds390/gen.c
11660         * src/hc08/gen.c
11661
11662 2003-10-19  Borut Razem <borut.razem AT siol.net>
11663
11664         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11665
11666 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11667
11668         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11669         Fixed bug #818696
11670         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11671         and predecrement operand is displayed
11672
11673 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11674
11675         * src/SDCCval.c (valMinus): fixed bug #826041
11676
11677 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11678
11679         Some hc08 related updates that I missed earlier
11680         * sim/ucsim/stypes.h
11681         * support/regression/ports/hc08/spec.mk
11682
11683 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11684
11685         New target "hc08" for the Motorola 68hc08 family of micros
11686
11687         * configure
11688         * configure.in
11689         * Makefile
11690         * src/hc08/*
11691         * src/SDCCmain.c
11692         * src/port.h
11693         * sim/ucsim/hc08.src/*
11694         * sim/ucsim/configure.in
11695         * src/ucsim/configure
11696         * sim/ucsim/packages_in.mk
11697         * as/hc08/*
11698         * as/Makefile
11699         * device/include/mc68hc908qy.h
11700         * device/lib/hc08/*
11701         * device/lib/Makefile.in
11702         * support/regression/ports/hc08/*
11703         * support/regression/Makefile
11704
11705 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11706
11707         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11708         regression test
11709         * src/ds390/gen.c (genCast): fixed bug #821957
11710
11711 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11712
11713         * device/lib/logf.c: "fixed" overlay bug
11714         * support/regression/ports/host/spec.mk: added m library
11715         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11716         * support/regression/tests/float_trans: added (for Eric)
11717
11718 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11719
11720         * src/mcs51/gen.c (genCpl): fixed bug
11721         http://sf.net/mailarchive/message.php?msg_id=6263915
11722
11723 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11724
11725         * src/SDCCast.c (decorateType): added extended constant folding
11726         * src/SDCCsymt.c (computeType): cleanup
11727         * src/SDCCval.c (valShift): minor optimization
11728         * support/regression/tests/ast_constant_folding.c: added
11729
11730 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11731
11732         * src/SDCCmain.c: removed some unintended changes
11733
11734 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11735
11736         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11737         * src/z80/gen.c: fixed part of bug #817589
11738         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11739
11740 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11741
11742         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11743         * src/SDCCcflow.c
11744         * src/SDCCcse.c
11745         * src/SDCCdflow.c
11746         * src/SDCClabel.c
11747         * src/SDCClrange.c
11748         * src/SDCCmem.c
11749         * src/SDCCopt.c
11750         * src/SDCCpeeph.c
11751         * src/SDCCset.c
11752         * src/avr/ralloc.c
11753         * src/ds390/ralloc.c
11754         * src/izt/ralloc.c
11755         * src/mcs51/ralloc.c
11756         * src/pic/ralloc.c
11757         * src/pic16/ralloc.c
11758         * src/xa51/ralloc.c
11759         * src/z80/ralloc.c
11760         * src/z80/gen.c: removed unused label "release:"
11761
11762 2003-10-06  Borut Razem <borut.razem AT siol.net>
11763
11764         * src/SDCC.lex: removed definition of unused variables
11765           save_optimize and save_options
11766
11767 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11768
11769         * clean.mk: removed '=' in "-maxdepth=1"
11770         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11771         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11772
11773 2003-10-06  Borut Razem <borut.razem AT siol.net>
11774
11775         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11776           my_unput() replaced by unput()
11777
11778 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11779
11780         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11781         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11782         type-punned pointer will break strict-aliasing rules"
11783         Old LR behaviour is again default; Klaus' LR can be choosen by
11784         defining the environment variable LRKLAUS
11785         * src/SDCCBBlock.h
11786         * src/SDCCloop.c
11787         * src/SDCClrange.c
11788         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11789         * clean.mk: fixed removal of files in bin/CVS/
11790         * device/lib/clean.mk: fixed removal of directories small and large
11791         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11792         * src/SDCCicode.c,
11793         * src/SDCCval.c: removed superflous test for pedantic
11794
11795 2003-10-05  Borut Razem <borut.razem AT siol.net>
11796
11797         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11798           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11799           message "unmatched #pragma SAVE and #pragma RESTORE"
11800
11801 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11802
11803         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11804           assembly, critical functions, atomic, nojtbound)
11805
11806 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11807
11808         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11809         * src/SDCCBBlock.h
11810         * src/SDCCloop.c
11811         * src/SDCCloop.h
11812         * src/SDCClrange.c
11813
11814 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11815
11816         * src/z80/gen.h,
11817         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11818         * src/mcs51/gen.h
11819         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11820         * src/ds390/gen.h
11821         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11822         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11823         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11824
11825 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11826
11827         * src/z80/gen.c (genRet): fixed bug #524753
11828         * src/z80/gen.c (genCast): fixed internal error on cast from
11829         pointer to long
11830         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11831         fix for bug #477835 to the z80
11832         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11833         for tracking iCodes in the peephole optimizer for z80
11834
11835 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11836
11837         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11838         the other part of bug #814548
11839         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11840
11841 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11842
11843         * src/SDCCcse.c: fixed part of bug #814548
11844
11845 2003-09-28  Borut Razem <borut.razem AT siol.net>
11846
11847         * src/asm.c: rewrite of printILine() to use temporary file instead
11848           a pipe
11849         * src/xa51/main.c: commented out declaration of int rewinds
11850
11851 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11852
11853         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11854
11855 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11856
11857         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11858         * src/asm.c (printILine): Fixed bug #811015
11859
11860 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11861
11862         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11863         freeing.
11864
11865 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11866
11867         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11868         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11869         to correctly handle general case of AOP_PAIRPTR
11870         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11871
11872 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11873
11874         * src/mcs51/ralloc.c (fillGaps),
11875         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11876         register positioning bug)
11877
11878 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11879
11880         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11881
11882 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11883
11884         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11885         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11886         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11887         (ralloc doesn't intentionally do this now, but perhaps later)
11888         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11889         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11890         register positioning bugs (Fixed bug #762602 and #795325)
11891         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11892         (Fixed bug #808779)
11893         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11894         lines that --i-code-in-asm generates
11895
11896 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11897
11898         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11899         trying to fclose a FILE* that was already closed.
11900
11901 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11902
11903         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11904         of const struct should be treated as if const themselves)
11905
11906 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11907
11908         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11909
11910 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11911
11912         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11913         Unix (/n) and DOS (/r/n) line terminations.
11914
11915 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11916
11917         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11918         bug #613775
11919
11920 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11921
11922         * src/mcs51/gen.c (genFunction, genEndFunction),
11923         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11924         and restore of EA so that stack offsets to parameters are
11925         correct when using both critical and reentrant/stack-auto.
11926         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11927         size (can be triggered in error if sloc is shared between
11928         different sized objects)
11929         * device/include/float.h: fixed macros to explicitly use
11930         unsigned long where needed
11931
11932 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11933
11934         Feature req. 799831: added code to allow nesting of critical functions
11935         * src/mcs51/gen.c (genFunction, genEndFunction)
11936         * src/ds390/gen.c (genFunction, genEndFunction)
11937
11938 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11939
11940         * src/SDCCsymt.c (sclsFromPtr),
11941         * src/SDCCsymt.h,
11942         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11943         support for standard C idiom of memory mapped variables; for
11944         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11945         to xdata int at 0x1234 tempvar = 1.
11946         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11947         provided by Akiya ISHIDA
11948
11949 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11950
11951         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11952         * src/SDCCval.c (constVal): added reduction from int to char
11953         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11954         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11955         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11956         to ignore the sign
11957         * support/regression/tests/shifts.c: fixed
11958
11959 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11960
11961         * src/z80/gen.c (genXor): Fixed bug #805445
11962
11963 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11964
11965         Fixed bug #621531 (const & volatile confusion in the type chain).
11966         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11967         refer to the const or volatile state of the pointer itself.
11968
11969         * src/SDCCast.c
11970         * src/SDCCglue.c
11971         * src/SDCCicode.c
11972         * src/SDCCsymt.c
11973         * src/SDCCval.c
11974         * src/SDCC.y
11975         * src/SDCCsymt.h
11976         * src/pic/gen.c
11977         * src/pic/ralloc.c
11978         * src/pic16/gen.c
11979         * src/pic16/ralloc.c
11980         * support/regression/tests/const.c
11981
11982 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11983
11984         When checking for duplicated modules, use absolute paths
11985         instead of relative paths.  Files changed:
11986
11987         * as/mcs51/lklib.c
11988         * link/z80/lklib.c
11989
11990 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991
11992         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11993
11994 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11995
11996         * device/include/string.h: added size_t typedef, changed
11997         prototypes to use size_t, eliminated separate reentrant and
11998         non-reentrant declarations, added _memmove declaration
11999         * device/lib/_memcpy.c: changed to use size_t instead of int,
12000         changed /4 to >>2 to avoid division library call
12001         * device/lib/_memcmp.c,
12002         * device/lib/_memset.c,
12003         * device/lib/_strncat.c,
12004         * device/lib/_strncpy.c,
12005         * device/lib/_strncmp.c: changed to use size_t instead of int
12006         * device/lib/_memmove.c: new file (fixed bug #772294)
12007         * device/lib/Makefile.in: added _memmove.c
12008         * device/lib/z80/asm_strings.s: fixed bug #772290
12009         * support/regression/tests/bitfields.c: attempt to fix host assertion
12010         failure on amd64-unknown-linux2.2
12011
12012 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12013
12014         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12015         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12016         * as/z80/asmain.c (main): fixed bug #801766
12017
12018 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12019
12020         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12021         compilers
12022
12023 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12024
12025         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12026         reported in bug #800609
12027
12028 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12029
12030         * Top header beautifications in src/pic16 directory:
12031           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12032           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12033           pcoderegs.h, ralloc.c, ralloc.h
12034         * main.c: added top header and GPL license notice
12035         * pcode.c: fixed the if-conditional warning
12036
12037 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12038
12039         * device/lib/_mullong.c: replaced int by short for gcc
12040
12041 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12042
12043         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12044         and JUMPTABLE iCodes properly now (worked by accident before)
12045         * src/mcs51/gen.c (leftRightUseAcc),
12046         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12047         iCode properly now. Use getSize instead of nRegs since a & b
12048         aren't part of the nRegs tally.
12049
12050 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12051
12052         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12053         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12054           before instructions that use the _STATUS register
12055
12056 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12057
12058         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12059         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12060         fetching of the pointer
12061         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12062         copied from genNearPointerSet()
12063         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12064         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12065         If they pop r0/r1 they must be called in the opposite order than aopOp().
12066         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12067         (resp. --stack-auto), prepared for --xstack
12068
12069 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12070
12071         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12072
12073 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12074
12075         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12076         these ports have their own __sdcc_external_start()
12077
12078 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12079
12080         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12081         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12082         type for bits was changed. It resulted in bit variables becoming
12083         global, which is not permitted in PIC 14 assembly output.
12084
12085 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12086
12087         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12088
12089 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12090
12091         Z80 and MCS51 linkers complaint if a public symbol is defined
12092         in more than one library module:
12093
12094         * as/mcs51/lklib.c
12095         * link/z80/lklib.c
12096         * as/mcs51/Makefile.in
12097
12098 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12099
12100         A few small changes that speed up the peephole optimizer.
12101
12102         * src/SDCCpeeph.c
12103
12104 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12105
12106         Try to make the peephole optimizer smarter by maintaining
12107         an association between the assembly source code and the
12108         iCodes that originated them. Put this information to use
12109         with a new peephole rule condition "notVolatile" so that
12110         the rules can be aggressive yet still safe.
12111
12112         * src/SDCCpeeph.c
12113         * src/SDCCpeeph.h
12114         * src/mcs51/gen.c
12115         * src/mcs51/peeph.def
12116
12117 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12118
12119         Fixed bug #741761
12120
12121         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12122         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12123         if the left or right operand symbols have the accuse flag set.
12124
12125 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12126
12127         Changed the type of the result of the ! (NOT) operator to char;
12128         previously it returned the same type as the source. This allows
12129         us to eliminate all the genFloatNot functions (all of its target
12130         implementations were very buggy) since !float can use the same
12131         code as !long now.
12132
12133         * src/SDCCicode.c (ast2iCode): ! returns char
12134         * src/mcs51/gen.c (genNot, genNotFloat),
12135         * src/ds390/gen.c (genNot, genNotFloat),
12136         * src/z80/gen.c (genNot, genNotFloat),
12137         * src/pic/gen.c (genNot, genNotFloat),
12138         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12139
12140 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12141
12142         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12143         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12144            during interrupts. Ensure WSAVE is located at a shared bank address.
12145         2. Fixed page selection in some places
12146         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12147            the registers name strings.
12148         4. Fixed "signed / unsigned compare" compiler warnings.
12149         5. The PIC port manages its own allocation of the general purpose
12150            registers, but makes no attempt to reuse them. As a result when
12151            compiling it soon runs out of general purpose registers. Some
12152            additional code was added to the files pcode.c and device.c to walk
12153            through the function call tree and rename the registers so that they
12154            get reused.
12155
12156         * src/pic/device.c
12157         * src/pic/gen.c
12158         * src/pic/glue.c
12159         * src/pic/pcode.c
12160         * src/pic/pcode.h
12161         * src/pic/ralloc.c
12162         * src/pic/ralloc.h
12163         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12164         genPlus() & genMinus() when the result is the same as left or right
12165
12166 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12167
12168         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12169
12170 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12171
12172         Made bitfield a distinct type from bit so that bitfields
12173         convert as per ANSI C and bits retain their traditional
12174         boolean style behaviour. Implemented bitfield support in
12175         the z80 port.
12176
12177         * src/SDCCsymt.h,
12178         * src/SDCCsymt.c,
12179         * src/SDCCast.c,
12180         * src/cdbFile.c,
12181         * src/mcs51/gen.c,
12182         * src/ds390/gen.c: bit v bitfield split
12183         * src/z80/gen.c: New support for bitfields
12184         * support/regression/tests/bitfields.c: reenabled z80,
12185         added more tests
12186
12187 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12188
12189         Rules 246.x, 247.x relate to bitfields, the others speed up
12190         access to xdata mapped I/O devices.
12191
12192         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12193
12194 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12195
12196         Cleaned up genPackBits and genUnpackBits and added two helper
12197         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12198         for literal assignments in genPackBits (thanks to Frieder for
12199         reminding me).
12200
12201         * src/mcs51/gen.c
12202         * src/ds390/gen.c
12203
12204 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12205
12206         Fixed bug #748310 (pointer to function type mishandled when the
12207         function name is omitted). Also fixed a SIGSEGV when a function
12208         attribute (reentrant, etc) is used on a non-function or on a
12209         function but misplaced before the parameter list.
12210
12211         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12212         bug #748310
12213         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12214         * support/Util/SDCCerr.h,
12215         * support/Util/SDCCerr.c: Added func attr misuse error msg
12216
12217 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12218
12219         Fixed bug #787649 by anonymous
12220         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12221         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12222
12223 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12224
12225         Fixed numerous bitfield problems.
12226
12227         * src/SDCC.y: More bitfield related error checking
12228         * src/SDCCsymt.h,
12229         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12230         * support/Util/SDCCerr.h,
12231         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12232         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12233         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12234         * support/regression/tests/bitfields.c: tests added
12235
12236 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12237
12238         Made the constant following the "interrupt" keyword optional. If
12239         omitted, the function will not automatically be given an entry
12240         in the interrupt vector table (similar to #pragma NOIV, but
12241         less syntacticly kludgy). The interrupt number is also now
12242         range checked. Also fixed a bug in the high order bit example
12243         in the manual.
12244
12245         * src/SDCC.y
12246         * src/SDCCmem.c
12247         * src/SDCCglue.c
12248         * src/SDCCsymt.h
12249         * support/Util/SDCCerr.c
12250         * support/Util/SDCCerr.h
12251         * doc/sdccman.lyx
12252
12253 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12254
12255         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12256         * src/SDCCicode.c (operandOperation): rewritten some ops
12257         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12258         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12259         other type
12260         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12261         be re-activated by defining REDUCE_LITERALS)
12262         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12263         unsigned, but are signed by default
12264         * src/SDCCval.c (constVal): rearranged
12265         * src/SDCCval.c (valMod): preliminary fix
12266         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12267         * support/regression/literalop.c: added, work in progress
12268
12269 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12270
12271         Generate warnings for useless declarations like "char data;"
12272         that don't do what new users expect.
12273
12274         * src/SDCC.y
12275         * support/Util/SDCCerr.h
12276         * support/Util/SDCCerr.c
12277
12278 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12279
12280         * src/SDCCval.c (valMult): fix overflow detection of negative int
12281
12282 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12283
12284         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12285
12286         Changes to support big endian targets:
12287
12288         * src/ports.h
12289         * src/SDCCglue.c
12290         * src/avr/main.c
12291         * src/ds390/main.c
12292         * src/izt/i186.c
12293         * src/mcs51/main.c
12294         * src/pic/main.c
12295         * src/pic16/main.c
12296         * src/xa51/main.c
12297         * src/z80/main.c
12298
12299 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12300
12301         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12302         * device/lib/time.c: fixed warning "integer overflow in expression"
12303
12304 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12305
12306         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12307         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12308         constants are unsigned; added recognition of "u" flag for unsigned
12309         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12310         * src/SDCCval.c (valDiv, valMod): fixed signdness
12311         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12312         signedness of modulo, left and right shift
12313         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12314         * support/Util/SDCCerr.h: added warning W_INT_OVL
12315         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12316         * src/SDCCast.c (ast_print): improved output of constants
12317
12318 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12319
12320         Fixed some warnings when building with MSVC:
12321
12322         * as/mcs51/asdata.c
12323         * as/z80/asdata.c
12324         * as/mcs51/asm.h
12325         * as/z80/asm.h
12326         * link/z80/aslink.h
12327         * link/z80/lkdata.c
12328         * link/z80/lkeval.c
12329         * link/z80/lkgb.c
12330         * link/z80/lkihx.c
12331         * link/z80/lks19.c
12332         * link/z80/lksym.c
12333         * support/cpp2/cpplib.c
12334         * src/ds390/gen.c
12335         * src/mcs51/gen.c
12336
12337 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12338
12339         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12340
12341 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12342
12343         * support/librarian/clean.mk: Do not remove Makefile.
12344         * support/librarian/Makefile: added.
12345
12346 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12347
12348         Added librarian to MSVC build:
12349         * all.dsp
12350         * sdcc.dsw
12351         * support/librarian/librarian.dsp
12352
12353         'configure' not needed for librarian, removed:
12354         * support/librarian/configure
12355         * support/librarian/configure.in
12356         * support/librarian/config_in.h
12357         * support/librarian/Makefile.in
12358
12359         Hopefully these ones built the librarian and the rest of sdcc properly:
12360         * Makefile
12361         * Makefile.common.in
12362
12363         Messed up 'configure', so revert to previous version:
12364         * configure
12365         * configure.in
12366
12367 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12368
12369         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12370         there, while the mantissa of a double is "only" 53 bits wide.
12371
12372 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12373
12374         Adding sdcclib to the build.  MSVC project coming soon.
12375         Files added/changed:
12376
12377         * support/librarian/clean.mk
12378         * support/librarian/configure
12379         * support/librarian/configure.in
12380         * support/librarian/config_in.h
12381         * support/librarian/Makefile.bcc
12382         * support/librarian/Makefile.in
12383         * support/librarian/sdcclib.c
12384         * Makefile.bcc
12385         * Makefile
12386         * Makefile.common.in
12387         * configure
12388         * configure.in
12389
12390 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12391
12392         Linker now complaints if linked modules have conflicting options, for
12393         example, one compiled using --model-large and another one compiled with
12394         --model-small.  The following files were modified:
12395
12396         * as/mcs51/asdata.c
12397         * as/mcs51/aslink.h
12398         * as/mcs51/asm.h
12399         * as/mcs51/asmain.c
12400         * as/mcs51/asout.c
12401         * as/mcs51/i51pst.c
12402         * as/mcs51/lkdata.c
12403         * as/mcs51/lklibr.c
12404         * as/mcs51/lkmain.c
12405         * as/z80/asdata.c
12406         * as/z80/asm.h
12407         * as/z80/asmain.c
12408         * as/z80/asout.c
12409         * as/z80/z80pst.c
12410         * link/z80/aslink.h
12411         * link/z80/lkdata.c
12412         * link/z80/lklibr.c
12413         * link/z80/lkmain.c
12414         * src/SDCCglue.c
12415
12416 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12417
12418         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12419         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12420
12421 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12422
12423         * src/z80/mappings.i: fix _mul[us][int,long] entries
12424
12425 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12426
12427         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12428
12429 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12430
12431         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12432         * support/regression/tests/bitopcse.c: added
12433         fixed warning:
12434         * src/avr/gen.c:
12435         * src/pic/gen.c:
12436         * src/pic16/gen.c:
12437         * src/z80/gen.c:
12438         * src/xa51/gen.c:
12439
12440 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12441
12442         added support for new library format to z80, gbz80 linkers:
12443         *link/z80/aslink.h
12444         *link/z80/lklex.c
12445         *link/z80/lklib.c
12446         *link/z80/lklist.c
12447
12448 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12449
12450         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12451         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12452
12453 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12454
12455         added DUMMY_READ_VOLATILE:
12456         * src/SDCC.y:
12457         * src/avr/gen.c:
12458         * src/xa51/gen.c:
12459         * src/z80/gen.c:
12460         * src/pic/gen.c:
12461         * src/pic16/gen.c:
12462         * src/mcs51/gen.c:
12463         * src/ds390/gen.c:
12464         * src/SDCCcse.c (algebraicOpts): many improvements
12465         * src/SDCCcse.h: removed algebraicOpts()
12466         * src/SDCCicode.c (picDummyRead): added
12467
12468 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12469
12470         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12471         "Insufficient space in data memory".
12472
12473 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12474
12475         * src/mcs51/gen.c: fixed bug #771358
12476         * src/z80/gen.c: fixed bug #759087
12477
12478 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12479
12480         * src/pic16/glue.c: minor cleanup by Vangelis
12481
12482 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12483
12484         * device/include/regc515c.h: fixed #758477
12485         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12486         * device/lib/_gptrput.c: saved a few bytes
12487         * my tab spacing is 8, yours too?)
12488         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12489         * device/lib/serial.c: process RX bytes earlier than TX bytes
12490         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12491
12492 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12493
12494         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12495
12496 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12497
12498     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12499
12500 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12501
12502         * device/lib/Makefile.in: bad fix, reverted to 1.43
12503
12504 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12505
12506         * device/lib/Makefile.in: added missing z80 object files
12507
12508 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12509
12510         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12511         pic16 progress by Vangelis:
12512         * src/SDCCglobl.h:
12513         * src/SDCCmain.c:
12514         * src/pic/Makefile:
12515         * src/pic:
12516         * pic/Makefile:
12517         * pic16/device.c:
12518         * pic16/device.h:
12519         * pic16/gen.c:
12520         * pic16/gen.h:
12521         * pic16/genarith.c:
12522         * pic16/glue.c:
12523         * pic16/main.c:
12524         * pic16/pcode.c:
12525         * pic16/pcode.h:
12526         * pic16/pcodepeep.c:
12527         * pic16/peeph.def:
12528
12529 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12530
12531     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12532
12533 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12534
12535     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12536     added gbz80 build to MSVC project.
12537     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12538     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12539     from 8051 stuff and setup so it links using a .lnk file.
12540
12541 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12542
12543     * support/librarian/sdcclib.c: sdcc librarian.
12544     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12545     with sdcclib.
12546
12547 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12548
12549     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12550
12551 2003-07-02  Borut Razem <borut.razem AT siol.net>
12552
12553         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12554         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12555         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12556         src/xa51/main.c, src/z80/main.c:
12557         virtualization of glue() function: each port has it's own glue function,
12558         which is accessed by do_glue function pointer in PORT.general structure
12559
12560 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12561
12562         * DS800C400 fun, improved ROM interface and tinibios.
12563
12564 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12565
12566         * More support for DS80C400. Now includes beginning of interface to ROM.
12567
12568 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12569
12570         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12571
12572 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12573
12574         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12575
12576 2003-06-19  Borut Razem <borut.razem AT siol.net>
12577
12578         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12579
12580 2003-06-19  Borut Razem <borut.razem AT siol.net>
12581
12582         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12583         fixed Z80 port - crt0.o: cannot open.
12584
12585 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12586
12587         * support/Util/MySystem.c (merge_command): revert bad fix
12588
12589 2003-06-18  Borut Razem <borut.razem AT siol.net>
12590
12591         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12592
12593 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12594
12595         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12596         option --use-stdout sends errors to stdout instead of stderr.
12597
12598 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12599
12600         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12601
12602 2003-06-15  Borut Razem <borut.razem AT siol.net>
12603
12604         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12605         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12606         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12607         fixed width array of pointers replaced with sets;
12608         multiple include and lib paths ared transferred to preprocessor and linker
12609         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12610         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12611         fixed width array of pointers
12612         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12613         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12614         fixupPath(), getPathDifference()
12615         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12616         fixed width array of pointers
12617
12618 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12619
12620         * src/pic16/ralloc.c: fix warnings
12621         * src/pic16/pcode.c: fix warning
12622
12623 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12624
12625          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12626         know all the details, but essentially this set of changes enable
12627         the pic16 port to generate movff instructions and generate assembler
12628         directives,
12629         * src/SDCCmain.c:
12630         * src/pic16/gen.c:
12631         * src/pic16/glue.c:
12632         * src/pic16/pcode.c:
12633         * src/pic16/device.c:
12634         * src/pic16/main.c:
12635         * src/pic16/pcode.h:
12636         * src/pic16/pcoderegs.c:
12637         * src/pic16/ralloc.c:
12638         * src/pic16/ralloc.h:
12639
12640 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12641
12642         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12643         added option --vc, so sdcc errors and warnings are compatible with
12644         Microsoft Visual Studio.
12645
12646 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12647
12648         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12649           device/lib/libfloat.lib: added atof function.
12650
12651 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12652
12653         * doc/sdccman.lyx: updated to Lyx 1.3
12654         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12655         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12656         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12657
12658 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12659
12660         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12661
12662 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12663
12664         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12665           additions to the "related tools/documentation" section
12666
12667 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12668
12669         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12670
12671 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12672
12673         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12674         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12675
12676 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12677
12678         * doc/sdccman.lyx: fix double dash and other minor things
12679         * doc/Makefile: fix double dash
12680
12681 2003-05-28  Karl Bongers(patches from Martin Helmling)
12682         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12683           condition and ignore commands.
12684
12685 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12686
12687         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12688           is in parts still quite out of date, I did changes as far as I felt makes sense
12689           for a non-native english speaker.
12690           Please feel free to add to the manual or to correct my changes.
12691         * doc/Makefile: undid touching the date of intermediate tex files.
12692
12693 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12694
12695         * doc/sdccman.lyx: Manual has an index now
12696
12697 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12698
12699         Finalize muluint/mulsint and mululong/mulslong merging:
12700         * device/lib/_mulint.c
12701         * device/lib/_mullong.c
12702         * device/lib/gbz80/mul.s
12703         * device/lib/gbz80/stubs.s
12704         * device/lib/z80/mul.s
12705         * device/lib/z80/stubs.s
12706         * src/SDCCsymt.c (initCSupport)
12707
12708 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12709
12710         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12711         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12712           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12713           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12714           instead of /Zm500.
12715
12716 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12717
12718         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12719           the regression tests I'm not brave enough to enable 245.b, 245.c
12720         * doc/sdccman.lyx: added latex preamble for hyperref package.
12721           Using pdflatex this will give you a hyperlinked pdf file with
12722           bookmarks. (prepend '%' before /usepackage if this breaks something)
12723
12724 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12725
12726          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12727
12728 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12729
12730         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12731
12732 2003-05-21    <johan AT balder>
12733
12734         * src/SDCCglue.c (printIval): fixed bug #739934
12735
12736 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12737
12738         Applied patch from bug 737905 (renamed yylineo to mylineno):
12739         * src/altlex.c
12740         * src/SDCCast.c
12741         * src/SDCglobl.h
12742         * src/SDCC.lex
12743         * src/SDCCsymt.c
12744         * src/SDCCval.c
12745         * src/pic16/pcode.c: Cleaned warnings
12746         * src/pic16/pcodeflow.c: Cleaned warnings
12747         * src/pic16/pcoderegs.c: Cleaned warnings
12748
12749 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12750
12751         * src/pic16/pcode.c: Cleaned warnings
12752         * src/pic16/pcodepeep.c: Cleaned warnings
12753         * src/pic16/ralloc.c: Cleaned warnings
12754
12755 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12756
12757         * doc/sdccman.lyx: fixed bug 739745
12758         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12759
12760 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12761
12762         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12763         it can be defined with CFLAGS when running configure
12764         * src/SDCCmain.c: fixed compiling + linking with object files
12765
12766 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12767
12768         * configure.in: configure for pic16 port,
12769             added --disable-pic16-port
12770         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12771         * src/SDCCmain.c: linkOptions is changed to set *,
12772             added if/endif conditional macros to remove options help
12773             messages from optionsTable when a port is not configured, added
12774             support for the PIc16 port in the ports table, when executing
12775             the compiler with no port specified on command line, a default
12776             port is selected with the new macro DEFAULT_PORT which is
12777             defined in port.h, in setDefaultOptions() linkOptions is removed
12778             from initialization assignment, since now it is a set,
12779             parseCmdLine uses setParseWithComma for linkOptions, in
12780             linkEdit() linkOptions are accessed with new function indexSet()
12781             which returns the i'th item of a set variable. See SDCCset.c, in
12782             linkEdit() when calling buildCmdLine(), added linkOptions as
12783             last argument. Now users can pass arguments to gplink via the
12784             -Wl option, main() uses pic16glue() to glue up pic16 programs
12785         * src/SDCCpeeph.c: various changes to support pic16
12786         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12787             return the i'th item of the set
12788         * src/SDCCset.h: added function prototype for indexSet()
12789         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12790         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12791         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12792             added macro DEFAULT_PORT
12793         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12794         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12795             generated
12796         * src/pic16/glue.c: commented out some error producing lines
12797         * src/pic16/main.c: __config directives are commented out to stop
12798             gpasm complaining and test the linkage with gplink, _linkCmd and
12799             _asmCmd changed to be more gplink and gpasm friendly
12800         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12801             produced an error when parsed, peep rule 12 is added to utilize
12802             movff, but it is commented out since the pCode does not support
12803             yet a command with 2 address arguments
12804
12805 2003-05-18    <johan AT balder>
12806
12807         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12808         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12809 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12810
12811         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12812   Added feature to script commands from file.
12813
12814 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12815
12816         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12817         * src/SDCCutil.c: include ctype.h for win32
12818
12819 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12820
12821         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12822
12823 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12824
12825         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12826   Fixed so you can set breakpoints prior to run, run does not stop
12827   on entry now.  Add tbreak.  Other enhancements and fixes for use
12828   with ddd.
12829
12830 2003-05-12  Borut Razem <borut.razem AT siol.net>
12831
12832         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12833
12834 2003-05-11  Borut Razem <borut.razem AT siol.net>
12835
12836         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12837         the path of bin directory, so that PATH is the only env. variable, which has to be set
12838         in case of standard installation.
12839         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12840         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12841         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12842
12843 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12844
12845         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12846         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12847         temp files are in the port dir; clean the gen/test directory when
12848         generating new test.c
12849         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12850         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12851         * support/regression/tests/zeropad.c: added
12852
12853 2003-05-09    <johan AT balder>
12854
12855         * src/SDCCglue.c: fixed bug #597940
12856
12857 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12858
12859         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12860   cache sfr, optimize next,step, fix off by one sourceline,
12861   support ddd list function.
12862         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12863
12864 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12865
12866         * support/regression/HTMLgen.py: added compare_s2f()
12867         * support/regression/Makefile: redo 1.27
12868         * support/regression/generate-cases.py: redo 1.5
12869
12870 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12871
12872         * support/regression/tests/float.c: workaround 33 bit hex constant
12873         * support/regression/tests/simplefloat.c: fix division for host
12874
12875 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12876
12877         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12878         that tame's the PIC's over-aggressive optimizer.
12879
12880 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12881
12882          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12883          support for MSVC.
12884
12885 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12886
12887         Initial support for DS80C400. "Hello world" runs on TINIm400
12888         (with polled I/O).
12889
12890 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12891
12892          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12893          * Some notes on ddd usage added in debugger/README
12894          Martin Helmling adding more features and fixes for ddd GUI debugger.
12895          Code added for nexti, stepi, up, down, and other adjustments.
12896
12897 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12898
12899         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12900         * src/pic/peeph.def Added two rules to optimize carry manipulation
12901         * src/pic/* removed debug printfs
12902
12903 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12904
12905         * debugger/mcs51/cmd.c: added header newalloc.h
12906
12907 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12908
12909         * as/Makefile: new EXEEXT
12910         * as/z80/Makefile: remove trailing slash of BUILDIR
12911         * as/z80/clean.mk: new EXEEXT
12912         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12913         * support/cpp2/Makefile.in: new EXEEXT
12914         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12915
12916 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12917
12918         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12919         EXEEXT was introduced to fix all related problems with targets
12920         "clean", "install" and "uninstall"; a couple of further flaws
12921         especially with "clean" have been fixed too
12922         * as/mcs51/Makefile.in
12923         * as/mcs51/clean.mk
12924         * as/z80/Makefile
12925         * Makefile
12926         * clean.mk
12927         * debugger/mcs51/Makefile.in
12928         * debugger/mcs51/clean.mk
12929         * link/z80/Makefile
12930         * link/z80/Makefile.in
12931         * link/z80/clean.mk
12932         * link/Makefile
12933         * packihx/Makefile.in
12934         * packihx/clean.mk
12935         * sim/ucsim/Makefile
12936         * sim/ucsim/clean.mk
12937         * sim/ucsim/avr.src/Makefile.in
12938         * sim/ucsim/avr.src/clean.mk
12939         * sim/ucsim/s51.src/Makefile.in
12940         * sim/ucsim/s51.src/clean.mk
12941         * sim/ucsim/xa.src/Makefile.in
12942         * sim/ucsim/xa.src/clean.mk
12943         * sim/ucsim/z80.src/Makefile.in
12944         * sim/ucsim/z80.src/clean.mk
12945         * sim/ucsim/main_in.mk
12946         * sim/ucsim/packages_in.mk
12947         * sim/ucsim/gui.src/Makefile.in
12948         * sim/ucsim/gui.src/serio.src/Makefile.in
12949         * sim/ucsim/gui.src/serio.src/clean.mk
12950         * src/Makefile.in
12951         * src/clean.mk
12952         * support/cpp2/Makefile.in
12953         * support/cpp2/clean.mk
12954         * support/makebin/Makefile
12955         * support/makebin/clean.mk
12956         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12957         * doc/sdccman.lyx: --program-suffix no longer needed
12958
12959 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12960
12961          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12962          Martin Helmling added support for ddd GUI debugger.
12963          Code added to display assembly, set variables, and other commands
12964          to interface to ddd.
12965
12966 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12967
12968         * as/Makefile: fix target clean
12969         * as/clean.mk: fix target clean
12970         * as/z80/clean.mk: fix target clean
12971
12972 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12973
12974         * Makefile.common.in: added  AT EXEEXT AT
12975         * configure.in: removed all mingw32 stuff
12976         * configure: rebuilt from configure.in
12977         * doc/sdccman.lyx: updated section "installation"
12978         * support/scripts/sdcc_mingw32: adapted to configure
12979         * support/scripts/sdcc_cygwin_mingw32: added
12980
12981 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12982
12983         * src/pic Added object file support for the PIC port
12984         * src/pic Applied patch from Craig Franklin (this started the object file support)
12985         * src/regression Updated the PIC regression tests for object files
12986
12987 2003-04-20  Borut Razem <borut.razem AT siol.net>
12988
12989         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12990           lklex.c: In function `getfid':
12991           lklex.c:203: warning: array subscript has type `char'
12992         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12993           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12994         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12995           stack handling macros
12996
12997 2003-04-19  Borut Razem <borut.razem AT siol.net>
12998
12999         * "handling space characters in file path" task:
13000         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13001         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13002         * support/Util/MySystem.h: make it self-sufficient
13003         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13004           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13005           handling space characters in file path
13006         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13007           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13008         * support/Util/MySystem.c: handling space characters in executable's path
13009
13010 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13011
13012         * as/z80/Makefile: fix permanent rebuild of z80
13013         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13014         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13015
13016 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13017
13018         * src/SDCCopt.c: add special case optimization to replace modulo by
13019           a power of two with a bitwise AND.
13020
13021 2003-04-18    <johan AT balder>
13022
13023         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13024
13025 2003-04-17    <johan AT balder>
13026
13027         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13028         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13029
13030 2003-04-13  Borut Razem <borut.razem AT siol.net>
13031
13032         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13033         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13034           fixed mingw problem in adl_NORMALIZE_PATH
13035
13036 2003-04-12  Borut Razem <borut.razem AT siol.net>
13037
13038         * fixed "#pragma SAVE/RESTORE can not be nested":
13039         * src/SDCC.lex: reworked pragma handling functions
13040         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13041         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13042
13043 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13044
13045         * src/SDCCutil.c (pathEquivalent): defined but not used
13046         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13047         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13048         * configure: rebuilt from configure.in
13049         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13050         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13051         * device/include/Makefile.in: replace sdcc_datadir
13052         * device/lib/Makefile.in: replace sdcc_datadir
13053         * Makefile.common.in: add LDFLAGS from configure
13054         * packihx/Makefile.in: use LDFLAGS
13055         * src/Makefile.in: use LDFLAGS
13056         * support/cpp2/Makefile.in: add LDFLAGS from configure
13057         * support/makebin/Makefile: use LDFLAGS
13058         * .version: bumped version number to 2.3.5
13059
13060 2003-04-12  Borut Razem <borut.razem AT siol.net>
13061
13062         * completed "different paths" task:
13063         * src/SDCCmacro.c: fixed bug in handling quotes
13064         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13065         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13066
13067 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13068
13069         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13070
13071 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13072
13073         * ds390/gen.c ds390/peeph.def: fix bug 706781
13074
13075 2003-04-11  Borut Razem <borut.razem AT siol.net>
13076
13077         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13078
13079 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13080
13081         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13082         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13083          set - this bit used to not be set...).
13084         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13085           bad code in PIC Port
13086         * src/regression/and2.c added to test bug 609268
13087         * src/regression/Makefile added and2.c to regression test
13088
13089
13090 2003-04-08    <johan AT CP255758-A>
13091
13092         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13093         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13094         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13095
13096 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13097
13098         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13099         fix bug #487815
13100         * support/cpp2/Makefile.in: fix bug #487815
13101         * configure: rebuilt from configure.in
13102         * Makefile.common.in: docdir changed, new path suffixes
13103         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13104         * sdcc_vc_in.h: reflect changes from sdccconf.h
13105         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13106         * src/SDCCutil.h: remove BINDIR hack
13107         * doc/sdccman.lyx: update new path hierarchy
13108
13109 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13110
13111         * src/SDCCpeeph.c: added okToRemoveSLOC test
13112
13113 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13114
13115         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13116
13117 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13118
13119         * src/SDCCpeeph.c: added labelIsReturnOnly test
13120         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13121
13122 2003-04-05    <johan AT balder>
13123
13124         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13125         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13126         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13127         * src/SDCCast.c: fixed a warning
13128         * src/SDCCast.h: fixed a warning
13129         * src/SDCCicode.c (operandFromAst): fixed a warning
13130
13131 2003-04-04    <johan AT balder>
13132
13133         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13134         * src/SDCCast.c (decorateType): fixed bug #715076
13135         * src/SDCC.y: fixed bug #702907
13136
13137 2003-04-03    <johan AT balder>
13138
13139         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13140         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13141         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13142         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13143         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13144
13145 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13146
13147         * _decdptr.c: fix return values
13148         * _gptrget.c: fix return values
13149         * _gptrgetc.c: fix return values
13150         * _gptrput.c: fix return values
13151         * _mulint.c: fix return values
13152         * as/z80/Makefile: fix 'make -j' problem
13153
13154 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13155
13156         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13157         * configure.in: big cleanup, updated to autoconf 2.5x
13158         * configure: rebuilt from configure.in
13159         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13160         * sdcc_vc_in.h: reflect changes from sdccconf.h
13161         * doc/Makefile: fixed a flaw in "make install"
13162
13163 2003-04-02    <johan AT balder>
13164
13165         * src/ds390/gen.c (genCmp): no comments
13166         * src/mcs51/gen.c (genCmp): no comments
13167         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13168         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13169
13170 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13171
13172         * support/regression/generate-cases.py: place generated file in given sub directory
13173         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13174         * support/regression/Makefile: improvements for 'make -j';
13175         side effect: it's simpler and faster now
13176
13177 2003-03-31  Borut Razem <borut.razem AT siol.net>
13178
13179         * src/z80/main.c: link-{port} and as-{port} defined without path
13180         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13181
13182 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13183
13184         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13185
13186 2003-03-30  Borut Razem <borut.razem AT siol.net>
13187
13188         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13189           changed type of list parameter to set
13190         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13191         * src/port.h: changed type of do_assemble() parameter to set
13192         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13193           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13194           definition of "cppoutfilename" macro with NULL value in preProcess()
13195         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13196         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13197         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13198           replaced with set *binPathSet
13199         * shash_add() deallocates the item, if allready exsists, before adding the new one
13200         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13201
13202 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13203
13204         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13205           a nested for loop bug in the PIC port
13206         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13207           for loops
13208
13209 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13210
13211         * support/Util/dbuf.h: remove C++ stuff to make it portable
13212
13213 2003-03-28  Borut Razem <borut.razem AT siol.net>
13214
13215         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13216           literal strings in stringLiteral()
13217         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13218         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13219           to the project
13220
13221 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13222
13223         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13224
13225 2003-03-26    <johan AT balder>
13226
13227         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13228         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13229         * src/SDCCast.c (decorateType): fixed " -v < 3"
13230
13231 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13232
13233         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13234         Added Lenny Story's debug infrastructure changes:
13235         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13236         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13237         * src/cdbFile.c: added
13238         * src/SDCCdebug.c: added
13239         * src/SDCCdebug.h: added
13240         * src/SDCCast.c (createFunction)
13241         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13242         * src/SDCCmain.c (parseCmdLine, main)
13243         * src/SDCCmem.c (redoStackOffsets)
13244         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13245         * src/SDCCsymt.h
13246         * src/common.h
13247         * src/avr/gen.c (genAVRCode)
13248         * src/ds390/gen.c (gen390Code)
13249         * src/mcs51/gen.c (gen51Code)
13250         * src/pic/gen.c (genpic14Code)
13251         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13252         * src/xa51/gen.c (genXA51Code)
13253         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13254
13255 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13256
13257         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13258         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13259
13260 2003-03-22    <johan AT balder>
13261
13262         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13263
13264 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13265
13266         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13267         * doc/cdbfileformat.lyx: added, written by Lenny Story
13268         * doc/Makefile: added cdbfileformat.lyx
13269         * doc/clean.mk: added cdbfileformat.lyx
13270
13271 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13272
13273         * src/mcs51/peeph.def: fix bug #705773
13274
13275 2003-03-20    <johan AT balder>
13276
13277         An sfr/sbit can have an "at #" AND an initializer
13278         * src/SDCCsymt.c (checkSClass):
13279         * src/SDCCmem.c (allocGlobal):
13280         * src/SDCCmem.c (allocLocal):
13281         * src/SDCCast.c (createBlock):
13282
13283 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13284
13285         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13286
13287 2003-03-16    <johan AT balder>
13288
13289         Undid the hackup of const and volatile, the problem is much bigger
13290         * src/SDCC.y:1.65
13291         * src/SDCCast.c:1.171
13292         * src/SDCCglue.c:1.138
13293         * src/SDCCicode.c:1.146
13294         * src/SDCCsymt.c:1.150
13295         * src/SDCCval.c:1.65
13296
13297 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13298
13299         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13300         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13301
13302 2003-03-13    <johan AT balder>
13303
13304         Hackup const and volatile modifiers in type chains a bit:
13305         * src/SDCC.y:1.63
13306         * src/SDCCast.c:1.169
13307         * src/SDCCglue.c:1.136
13308         * src/SDCCicode.c:1.143
13309         * src/SDCCsymt.c1.146
13310         * src/SDCCsymt.h1.59
13311         * src/SDCCval.c:1.63
13312
13313 2003-03-12    <johan AT balder>
13314
13315         * src/SDCCBBlock.h: more LRH debugging junk
13316         * src/SDCCcflow.h: more LRH debugging junk
13317         * src/SDCCloop.c: more LRH debugging junk
13318         * src/SDCC.y (struct_declaration): fixed bug #697590
13319         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13320         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13321         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13322
13323 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13324         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13325         test function names must now match exactly).
13326         * src/SDCCcse.c: added special case in findCheaperOp to allow
13327         extending a short integer. Makes less awful code for bug 700121 test case.
13328
13329 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13330
13331         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13332         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13333
13334 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13335
13336         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13337         actually called (operandsNotEqual() was called for all
13338         operandsNotEqualX tests).
13339
13340 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13341
13342         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13343         with shorter literals. Fixes bug 700121.
13344
13345 2003-03-11    <johan AT balder>
13346
13347         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13348
13349 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13350
13351         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13352         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13353
13354 2003-03-10  Borut Razem <borut.razem AT siol.net>
13355
13356         * src/SDCCmain.c: pipe preprocessor's output
13357         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13358         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13359         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13360         which closes all pipes in pipeSet set
13361         * src/SDCCset.c: free deleted item in function deleteSetItem()
13362         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13363         moved from z80 to src subproject
13364         * .version: increased version number to 2.3.4
13365
13366 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13367
13368         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13369         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13370         * support/regression/ports/xa51/spec.mk: fix typo
13371
13372 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13373
13374         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13375
13376 2003-03-09  Borut Razem <borut.razem AT siol.net>
13377
13378         * src/SDCCmain.c: pipe preprocessor's output
13379         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13380         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13381         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13382         which closes all pipes in pipeSet set
13383         * src/SDCCset.c: free deleted item in function deleteSetItem()
13384         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13385         moved from z80 to src subproject
13386
13387 2003-03-09  Borut Razem <borut.razem AT siol.net>
13388
13389         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13390         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13391         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13392         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13393         * src/SDCCglobl.h: unification of WIN32 native definitions
13394
13395 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13396
13397         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13398
13399 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13400
13401         * src/configure.in:   check for endianess (even while cross-compiling)
13402         * src/configure:      check for endianess (even while cross-compiling)
13403         * src/configure_in.h: check for endianess (even while cross-compiling)
13404         * src/avr/gen.c:        remove old endianess stuff
13405         * src/mcs51/gen.c:      remove old endianess stuff
13406         * src/ds390/gen.c:      remove old endianess stuff
13407         * src/pic/gen.c:        remove old endianess stuff
13408         * src/pic/genarith.c:   remove old endianess stuff
13409         * src/pic/glue.c:       fix endianess check
13410         * src/pic16/gen.c:      remove old endianess stuff
13411         * src/pic16/genarith.c: remove old endianess stuff
13412         * src/pic16/glue.c:     fix endianess check
13413         * src/xa51/gen.c:       remove old endianess stuff
13414         * src/z80/gen.c:        fix endianess check
13415         * src/SDCCglue.c:       fix endianess check
13416         * src/ds390/peeph.def: fix bug 700036
13417
13418 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13419
13420         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13421         * src/configure: find appropriate data-types on host for SDCC's int and long
13422         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13423         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13424         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13425
13426 2003-03-07    <johan AT balder>
13427
13428         Just a big NOOP:
13429                 some minor cleanups before the big shot
13430                 OP_DEFS and OP_USES now use Kevin's protection
13431                 new option --nolabelopt
13432
13433         * src/SDCCBBlock.c:
13434         * src/SDCCast.c,:
13435         * src/SDCCcflow.c:
13436         * src/SDCCcse.c:
13437         * src/SDCCicode.c:
13438         * src/SDCCicode.h:
13439         * src/SDCClabel.c:
13440         * src/SDCCloop.c:
13441         * src/SDCCmain.c:
13442         * src/ds390/ralloc.c:
13443         * src/mcs51/ralloc.c:
13444         * src/pic/ralloc.c:
13445         * src/xa51/ralloc.c:
13446         * src/z80/ralloc.c:
13447
13448 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13449
13450         * src/pic/pcode.c (get_op): fix 64 bit warnings
13451         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13452         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13453         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13454         * support/regression/tests/malloc.c: fix 64 bit warnings
13455
13456 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13457
13458         * src/mcs51/gen.c (genMinus): fixed bug 696436
13459
13460 2003-03-02  Borut Razem <borut.razem AT siol.net>
13461
13462         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13463
13464 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13465
13466         * configure.in: test for mkstemp
13467         * sdccconf_in.h: add HAVE_MKSTEMP
13468
13469 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13470
13471         * device/include/ctype.h: removed warning while using --stack-auto
13472         * device/include/malloc.h: removed warning while using --stack-auto
13473         * device/include/string.h: removed warning while using --stack-auto
13474
13475 2003-02-23  Borut Razem <borut.razem AT siol.net>
13476
13477         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13478         because NDEBUG is defined (see man assert)
13479         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13480
13481 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13482
13483         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13484         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13485
13486 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13487
13488         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13489         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13490
13491 2003-02-18    <johan AT balder>
13492
13493         * as/mcs51/asmain.c (asmbl): module can start with a digit
13494         * as/z80/asmain.c (asmbl): module can start with a digit
13495
13496 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13497
13498         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13499         * src/asm.c: fix pipe() for Mingw32
13500
13501 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13502
13503         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13504         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13505         make -V work again; --c1mode reads now from stdin
13506         * doc/sdccman.lyx: added --c1mode
13507         * support/Util/SDCCerr.c: new messages for c1 mode
13508         * support/Util/SDCCerr.h: new messages for c1 mode
13509         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13510
13511 2003-02-15    <johan AT balder>
13512
13513         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13514
13515 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13516
13517         * doc/sdccman.lyx: Environment variables, -o and other minor things
13518
13519 2003-02-14    <johan AT balder>
13520
13521         * src/xa51/main.c: before anyone really tries to use it :)
13522
13523         * Install doc's in share/sdcc/doc
13524         * removed some obsolete files
13525         * Do a proper make distclean and uninstall
13526         M Makefile.common.in
13527         R sdccbuild.sh
13528         M as/Makefile
13529         M device/include/Makefile.in
13530         M device/lib/Makefile.in
13531         M doc/sdccman.lyx
13532         M link/Makefile
13533         M sim/ucsim/doc/Makefile.in
13534         M src/clean.mk
13535         R src/avr/peeph.rul
13536         R src/xa51/peeph.rul
13537         M support/cpp2/Makefile.in
13538         M support/makebin/Makefile
13539
13540
13541 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13542
13543         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13544
13545 2003-02-10  Borut Razem <borut.razem AT siol.net>
13546
13547         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13548         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13549         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13550         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13551         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13552         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13553         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13554         src/z80/Makefile.bcc: Borland Makefile cleanup
13555         * as/z80/Makefile.bcc: Added Borland Makefile
13556         * support/cpp2/borland.h: Removed
13557
13558 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13559
13560         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13561         * src/SDCC.lex: new pragma NOIV
13562         * src/SDCCglobl.h: new pragma NOIV
13563         * src/SDCCmem.c: new pragma NOIV
13564
13565 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13566
13567         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13568
13569 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13570
13571         * src/SDCCmain.c: signal handling is switched off by --debug
13572         * doc/Makefile: small fix for install; use clean.mk again
13573         * doc/clean.mk: clean *.pdf and *.html too
13574
13575 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13576
13577         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13578         * device/lib/printfl.c: fix a ds390 bug by making it portable
13579         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13580         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13581         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13582         * debugger/mcs51/cmd.c: converted multi-line string literals
13583         * sim/ucsim/globals.cc: converted multi-line string literals
13584         * src/SDCCmain.c: introduced signal handler to remove temp files
13585         * doc/Makefile: small tweaks, implement clean
13586         * doc: removed generated files
13587
13588 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13589
13590         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13591         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13592         Address Record is not correctly generated for DS390."
13593
13594 2003-02-02  Borut Razem <borut.razem AT siol.net>
13595
13596         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13597         * as/mcs51/asm.h: fixed compilation with Borland C
13598         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13599         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13600         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13601         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13602         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13603         src/z80/Makefile.bcc: delete $(LIB) only if exist
13604         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13605
13606 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13607
13608         * device/include/malloc.h: introduced NULL
13609         * device/include/string.h: introduced NULL
13610         * device/include/stdlib.h: introduced NULL
13611         * device/lib/_memcpy.c: removed NULL
13612         * device/lib/_strcat.c: removed NULL
13613         * device/lib/_strchr.c: removed NULL
13614         * device/lib/_strcmp.c: removed NULL
13615         * device/lib/_strcpy.c: removed NULL
13616         * device/lib/_strcspn.c: removed NULL
13617         * device/lib/_strlen.c: removed NULL
13618         * device/lib/_strncat.c: removed NULL
13619         * device/lib/_strncmp.c: removed NULL
13620         * device/lib/_strncpy.c: removed NULL
13621         * device/lib/_strpbrk.c: removed NULL
13622         * device/lib/_strrchr.c: removed NULL
13623         * device/lib/_strspn.c: removed NULL
13624         * device/lib/_strstr.c: removed NULL
13625         * device/lib/_strtok.c: removed NULL
13626         * device/lib/malloc.c: removed NULL, include own header
13627
13628 2003-02-02    <johan AT balder>
13629
13630         * 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
13631         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13632         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13633         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13634         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13635         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13636
13637 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13638
13639         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13640         area 'DATA'"
13641
13642 2003-02-01    <johan AT balder>
13643
13644         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13645
13646 2003-01-31    <johan AT CP255758-A>
13647
13648         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13649
13650 2003-01-30    <johan AT balder>
13651
13652         * src/SDCCBBlock.c: automatic bug detection
13653         * src/SDCCicode.c: automatic bug detection
13654
13655 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13656
13657         * src/SDCCglobl.h:   now --xram-size 0 works
13658         * src/SDCCmain.c:    now --xram-size 0 works
13659
13660 2003-01-29    <johan AT balder>
13661
13662         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13663
13664 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13665
13666         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13667         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13668         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13669         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13670         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13671         * src/SDCCmain.c:    Added options --xram-size and --code-size
13672
13673 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13674
13675         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13676         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13677
13678 2003-01-27    <johan AT balder>
13679
13680         * src/SDCC.y: fixed bug #613764
13681
13682 2003-01-26    <johan AT balder>
13683
13684         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13685         * src/SDCCsymt.h: fixed bug #673374
13686         * src/SDCCglue.c: fixed bug #661910
13687         * src/SDCCast.c: fixed bug #458099 and 673374
13688
13689 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13690
13691         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13692         * as/mcs51/strcmpi.h: added
13693         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13694         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13695         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13696         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13697         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13698         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13699         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13700         * as/mcs51/Makefile.aslink: new module strcmpi
13701         * as/mcs51/Makefile.asx8051: new module strcmpi
13702         * as/mcs51/Makefil.bcc: new module strcmpi
13703         * as/mcs51/Makefile.in: new module strcmpi
13704         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13705
13706 2003-01-26    <johan AT balder>
13707
13708         * src/SDCCglue.c: reverted back to 1.124
13709         * src/SDCCast.c: reverted back to 1.156
13710         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13711
13712 2003-01-25    <johan AT balder>
13713
13714         * src/SDCCglue.c: A better fix for bug #661910
13715         * src/SDCCast.c: A better fix for bug #661910
13716         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13717
13718 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13719
13720         * src/Makefile.in: remove spawn.o
13721         * src/SDCCmain.c: remove spawn.h
13722         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13723         * src/spawn.c: removed
13724         * src/spawn.h: removed
13725         * support/regression/ports/ds390/spec.mk: link with -r
13726
13727 2003-01-24    <johan AT CP255758-A>
13728
13729         * src/ds390/gen.c (aopOp): fixed bug #667458
13730         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13731         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13732         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13733
13734 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13735
13736         * src/mcs51/peeph.def: better assembler identation by Frieder
13737         * src/mcs51/gen.c: better assembler identation by Frieder
13738
13739 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13740
13741         * as/z80/string.h: removed for gcc 3.2
13742         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13743         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13744
13745 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13746
13747         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13748         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13749         * support/regression/Makefile: separate temp files for ports
13750         * support/regression/generate-cases.py: separate temp files for ports
13751         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13752         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13753
13754 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13755
13756         * moved tinitalk to device/examples/ds390
13757
13758 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13759
13760         * as/mcs51/lkmem.c: rflag is for DS390
13761         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13762         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13763                          (linkEdit): move mem- and map-files the same way as ihx-files
13764         * src/z80/main.c (_setDefaultOptions): removed --generic
13765         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13766         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13767         * src/pic/glue.c (picglue): --c1mode works again
13768         * src/pic16/glue.c (pic16glue): --c1mode works again
13769         * src/asm.c (printCLine): fix #660034
13770
13771 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13772
13773         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13774         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13775         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13776         * as/mcs51/lkmem (summary): better fix for sp problem
13777         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13778         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13779         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13780                                               remove --stack-after-data
13781
13782 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13783
13784         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13785         * src/SDCCutil.c (join): ugly bug: missing '\0'
13786         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13787
13788 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13789
13790         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13791         * src/port.h: typo
13792         * src/pic/main.c (_asmCmd): gpasm supports -o
13793         * src/z80/main.c: more general macros
13794         * device/lib/Makefile.in: remove intermediate files
13795
13796 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13797
13798         * .version: Bumped version number to 2.3.3
13799         * src/SDCCBBlock.c: new option -o
13800         * src/SDCCglobl.h: new option -o
13801         * src/SDCCglue.c: new option -o
13802         * src/SDCCmain.c: new option -o
13803         * src/asm.c: new option -o
13804         * src/ds390/main.c: new option -o
13805         * src/pic/glue.c: new option -o
13806         * src/pic/pcode.c: new option -o
13807         * src/pic/ralloc.c: new option -o
13808         * src/pic16/glue.c: new option -o
13809         * src/pic16/pcode.c: new option -o
13810         * src/pic16/ralloc.c: new option -o
13811         * src/z80/main.c: new option -o
13812         * device/lib/Makefile.in: use -o
13813         * support/regression/ports/ds390/spec.mk: use -o
13814         * support/regression/ports/gbz80/spec.mk: use -o
13815         * support/regression/ports/mcs51/spec.mk: use -o
13816         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13817         * support/regression/ports/z80/spec.mk: use -o
13818         * support/regression/ports/ucz80/spec.mk: use -o
13819         * support/regression/ports/xa51/spec.mk: use -o
13820         * support/regression/fwk/lib/timeout.c: fix usage string
13821
13822 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13823         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13824
13825 2003-01-07    <johan AT balder>
13826
13827         * src/SDCCast.c (decorateType): fixed bug #600035
13828
13829 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13830         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13831         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13832         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13833         * src/pic/pcode.c: outcommented unused variable to remove warnings
13834         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13835
13836 2003-01-06    <karl AT turbobit.com>
13837         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13838    regression tests.
13839
13840 2003-01-06    <johan AT balder>
13841
13842         * src/SDCCicode.c: fixed array add
13843
13844 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13845         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13846         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13847
13848 2003-01-04    <johan AT balder>
13849
13850         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13851
13852 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13853         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13854
13855 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13856         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13857         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13858
13859 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13860         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13861
13862 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13863         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13864
13865 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13866         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13867
13868 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13869
13870     * in /sdcc/as/mcs51/ changed these files in order to create an
13871     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13872     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13873     following files to include the previous two files: aslink.dsp,
13874     Makefile.aslink, Makefile.bcc, and Makefile.in.
13875
13876     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13877     .adb instead of .cdb
13878
13879 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13880
13881         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13882         value from option --iram-size.
13883
13884 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13885
13886         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13887         dram[] array.
13888
13889 2002-09-18    <wiml AT hhhh.org>
13890
13891         * SDCClrange.h: exposed setFromRange() and setToRange()
13892         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13893           packRegsForAccUse() (bug 542397)
13894         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13895           multiple times and emitting the fetch operations more than once
13896           added aopGetUsesAcc() function to allow binary operators to
13897           fetch their operands in the correct order; made genMinus() emit
13898           compact code for X = LITERAL - Y
13899
13900 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13901         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13902         sprintf() in line 1267.
13903
13904 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13905         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13906         like ports.
13907
13908 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13909         Changes to aslink (All the changes are marked with 'JCF'):
13910
13911         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13912         summary().
13913
13914         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13915         area BSEG.  Also moves, if possible, the DATA area down into the internal
13916         ram so more space is available.
13917
13918         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13919         sflag.
13920
13921         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13922         not bytes.  Function summary() which creates a memory usage summary
13923         file with extension .mem.  Reports of overlaping stack and small stack
13924         size.  If the space for the stack is less than 16 bytes aslink trows a
13925         warning.
13926
13927         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13928         the 8051.  Option 'y' for memory summary output file.
13929
13930         Changes to sdcc (All the changes are marked with 'JCF'):
13931
13932         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13933
13934         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13935         overlaying area for it (uses RegBankUsed[4]).
13936
13937         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13938         bank zero as used by default.  By default aslink locates the stack
13939         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13940         the creation of the .mem file.  Delegates the allocation of data area
13941         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13942         the begining of the stack area to aslink.
13943
13944         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13945         glue() in SDCCglue.c creates an area for it.
13946
13947 2002-09-03  Borut Razem <borut.razem AT siol.net>
13948         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13949         sdcc/src/pic/glue.c:
13950         introduced atexit() handler for teporay files removal in case of
13951         errors, assertions, ...
13952
13953 2002-08-29  Borut Razem <borut.razem AT siol.net>
13954         * sdcc/support/cpp2/auto-host_vc_in.h:
13955         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13956         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13957         Maybe there is a similar problem with BORLANDC? It should be checked!
13958
13959         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13960         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13961         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13962         was not executed, and the compiler (cl) launched a warning:
13963         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13964
13965 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13966         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13967
13968 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13969         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13970
13971         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13972           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13973           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13974           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13975           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13976           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13977           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13978         - added Release configuration in VS projects
13979         - review of compiler an linker options
13980         - VC .exe files are generated in bin_vc directory, not to interfere
13981           with binaries generated from other projects (cygwin, mingw, bcc ...)
13982
13983         * sdcc/src/yacc.dsp: added
13984
13985         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13986         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13987         and insert the version number definitions from .version
13988
13989         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13990
13991         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13992         added - genarate auto-host.h using auto-host_vc_in.h as template
13993
13994         * sdcc/sdcc_vc.h,
13995         removed from CVS, generated automatically
13996
13997 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13998         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13999
14000 2002-08-11  Borut Razem <borut.razem AT siol.net>
14001         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14002
14003 2002-08-10  Borut Razem <borut.razem AT siol.net>
14004         * src/SDCCmain.c (main):
14005         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14006         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14007         The consequence was that some temporary files were not removed.
14008
14009         * src/SDCCglue.c:
14010         unification of code in functions tempfilename() and tempfile():
14011         function tempnam() is defined in Visual Studio 6.0 and .NET
14012
14013         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14014
14015         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14016           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14017         - removed compiler command line option /WX: Treats all warnings as errors
14018         - update a list of source files, included into the project
14019
14020         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14021           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14022         changed project type to Generic Project so that can be correcly converted to VS.NET project
14023
14024         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14025
14026         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14027
14028         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14029
14030         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14031         added return 0 statements after assert() to make compiler happy
14032
14033         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14034         added newline in the def file to keep MSC compiler satisfied
14035
14036         * sdcc/src/z80/gen.c:
14037         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14038           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14039         - solved MSC error in function aopDump()
14040
14041         * sdcc_vc.h: define PREFIX as "\\sdcc"
14042
14043 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14044         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14045
14046 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14047         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14048         - Rewrote the register banking algorithm.
14049         - Added pCode live-range analysis to registers (for now, only non-used and
14050         singly-used registers optimized away)
14051
14052         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14053
14054         * 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.
14055
14056 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14057         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14058
14059 2002-04-22  Michael Hope  <michaelh AT vroom>
14060
14061         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14062
14063         * configure.in (DD_COPT): Added include support required for gbdk.
14064
14065         * .version: Bumped version number just to increase it.
14066
14067         * src/SDCCmain.c: Added -nostdinc to the default options.
14068
14069 2002-04-15  Michael Hope  <michaelh AT vroom>
14070
14071         * device/lib/z80/printf.c (sprintf): Added.
14072
14073         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14074
14075         * src/z80/peeph.def: Added transpose redundent load rule.
14076
14077         * src/z80/main.c: Added force callee saves for jaune.
14078
14079         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14080
14081         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14082
14083 2002-03-28  Johan Knol  <johan AT balder>
14084
14085         * src/SDCCval.c: fixed bug #532436
14086
14087 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14088         * /src/port.h:
14089         Added "char *Processor" field to the port structure.
14090
14091         * /src/SDCCmain.c:
14092         Added -p option. Allows port dependent processor to be specified.
14093
14094         * all ports:
14095         Initialized the new field char *Processor field to NULL in all ports
14096
14097         * /src/pic/*:
14098         Compiler generated registers for interrupt context saving
14099         were not getting allocated.
14100
14101 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14102
14103         * /src/SDCCast.c:
14104         Fixed left shift. Will promote the left side of a left shift
14105         if a) left shifting more than size of operand or b) when assigned
14106         to something size > size of left side
14107
14108 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14109         * src/pic/*
14110         tons of changes. Register allocation has been
14111         rewritten. Added customization for the various PICs. Flow
14112         analysis is restructured. ...
14113
14114         * src/pic/device.h:
14115         Added
14116
14117         * src/pic/device.c:
14118         Added. device.c is a PIC port hack to accomodate variations
14119         in PIC devices.
14120
14121 2002-03-13  Michael Hope  <michaelh AT vroom>
14122
14123         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14124
14125 2002-03-04  johanknol  <johanknol AT manik>
14126
14127         * /src/SDCCval.c: fixed
14128
14129         const unsigned char arr[][2] = { { 0, 1 } };
14130         t18.c:1: error: Initializer element is not constant
14131
14132 2002-03-04  bela  <bela AT manik>
14133
14134         * /device/include/mcs51reg.h:
14135         ds89c420 register definition update
14136
14137 2002-03-03    <johan AT FRIJA>
14138
14139         * support/Util/SDCCerr.c: did something, but don't no why anymore
14140
14141         * support/regression/tests/bug-524691.c: made it a little less shy
14142
14143         * src/SDCCast.c (decorateType): fixed bug #524697
14144
14145         * src/SDCCast.c: made some lineno improvements
14146
14147         * src/SDCCval.c (getNelements): changed warning to error
14148
14149         * src/SDCCglue.c (printIvalArray): changed warning to error
14150
14151         * src/SDCCicode.c: fixed a warning for mingw
14152
14153         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14154
14155         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14156
14157 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14158
14159         * src/ds390/peeph.def:
14160         Added some more peephole rules
14161
14162         * src/ds390/gen.c: Various fixes & enhancements
14163
14164         * src/SDCClrange.c, src/SDCClrange.h:
14165         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14166
14167         * src/ds390/ralloc.c:
14168         various fixes & enhancements (ds390) specific
14169
14170         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14171         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14172         from rallocs.
14173
14174         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14175
14176 2002-03-02    <johan AT FRIJA>
14177
14178         * src/SDCCast.c (decorateType): fixed bug #524708
14179
14180         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14181
14182         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14183
14184 2002-03-01  Michael Hope  <michaelh AT vroom>
14185
14186         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14187
14188         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14189
14190 2002-03-01    <johan AT FRIJA>
14191
14192         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14193
14194         * src/SDCCast.c (decorateType): fixed bug #524209
14195
14196         * src/SDCCval.c (valNot): fixed bug #524195
14197
14198 2002-02-26    <johan AT balder>
14199
14200         * src/xa51/gen.c: fixed a warning
14201
14202         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14203
14204         * src/SDCCast.c (decorateType): fixed bug #522534
14205
14206 2002-02-23    <johan AT balder>
14207
14208         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14209
14210 2002-02-22    <johan AT balder>
14211
14212         * src/SDCCast.c: fixed bug #514865
14213
14214         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14215
14216 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14217
14218         * sdcc/src/SDCCloop.c:
14219         Previous fix was not good. basic blocks that have "break" or "return" are
14220         not really partof a loop , but live ranges used in these blocks should
14221         be live thru the entire loop, so set partOfLoop but don't add them to
14222         loop region
14223
14224 2002-02-21    <johan AT FRIJA>
14225
14226         * src/SDCCcse.c: fixed bug #514308
14227
14228 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14229
14230         * src/SDCCloop.c:
14231         Fixed BUG #519583. If a conditional block ended in a return/break
14232         statement inside a loop, it was not being considered part of the loop.
14233
14234         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14235
14236 2002-02-10  Karl Bongers <karl AT turbobit.com>
14237
14238         * debugger/*:
14239         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14240         with lots of comments and notes.
14241
14242         * device/examples/test2.c:
14243         Fix bug, "red" variable not being initialized(compiler complained).
14244
14245         * device/examples/Makefile, examples/test3.c:
14246         Add Makefile in device/examples folder, compiles test3.c
14247         for use as a multiple module SDCDB test case.
14248
14249         * sim/ucsim/cmd.src/cmdset.cc:
14250         Took out debug printfs in ucsim "next" command.
14251
14252         * sim/ucsim/xa.src:
14253         Karl and Johan start ucsim XA support.  Most dissassembly working,
14254         about 75% emulation done(plenty of work remaining).
14255
14256         * sim/ucsim/z80.src:
14257         Add Z80 support to ucsim, add test-ucz80 regression test,
14258         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14259         Notice z80 compiler fails on examples/test3.c/crc code.
14260
14261 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14262
14263         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14264         Added support for --parms-in-bank1
14265
14266         * src/ds390/peeph.def:
14267         added a few more peephole optimzations
14268
14269         * src/ds390/main.c:
14270         1) added __builtin_inp & __builtin_outp used to read in data of given length
14271            from a memory mapped port
14272         2) added __builtin_memcmp
14273         3) added __builtin_swapw swap bytes of a short
14274
14275         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14276         1) handle multiple send & receives from register bank1
14277         2) ralloc can now allocate DPTR1 to some liveRanges
14278
14279         * src/SDCCsymt.c, src/SDCCsymt.h:
14280         changes to handle multiple sends & receives
14281
14282         * src/SDCCptropt.h:
14283         added some pointer arithmetic optimization
14284
14285         * src/SDCCptropt.c:
14286         added some pointer arithmetic optimizations but not stable yet so not
14287         called from anywhere (will get this working shortly)
14288
14289         * src/SDCCopt.c: fixed for multiple sends & receives
14290
14291         * src/SDCCmain.c:
14292         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14293         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14294            set preprocessor defines (depending on options)
14295
14296         * src/SDCCicode.c, src/SDCCicode.h:
14297         changes made to handle multiple sends & receives
14298
14299         * src/SDCCglobl.h:
14300         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14301
14302         * src/SDCCcse.c, src/SDCCcse.h:
14303         added function findbackward def (to be used in upcoming optimization)
14304
14305         * src/SDCCcflow.c, src/SDCCcflow.h:
14306         added function returnAtEnd - to determine if a basic block terminates with
14307         a RETURN iCode
14308
14309         * src/SDCCast.c, src/SDCCast.h:
14310         added option parms-in-bank1
14311
14312         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14313         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14314         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14315         adjusted for --parms-in-bank1 option
14316
14317         * device/include/string.h:
14318         donot redefine "reentrant" keyword
14319
14320         * device/include/ds80c390.h: Added some more SFRs
14321
14322 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14323
14324         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14325
14326 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14327
14328         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14329
14330 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14331
14332         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14333
14334 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14335
14336         * Added --xram-movc option
14337
14338 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14339
14340         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14341
14342 2002-01-11  Johan Knol
14343
14344         * Added math lib of Jesus Calvino-Fraga
14345
14346 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14347
14348         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14349         * support/regression/Makefile: new target test-mcs51-stack-auto
14350         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14351
14352 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14353
14354         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14355
14356 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14357
14358         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14359
14360 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14361
14362         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14363
14364         * src/SDCCglue.h: add definition for printIvalChar()
14365
14366 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14367
14368         * src/SDCCast.c: fix #498138 by Johan
14369
14370         * src/SDCCglue.c: fix #498138 by Johan
14371
14372 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14373
14374         * support/regression/Makefile: fix clean
14375
14376         * support/regression/ports/ds390/support.c: fix transmission of last character
14377
14378 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14379
14380         * /sdcc/src/ds390/gen.c:
14381         a) improved computing address of stack variable
14382         b) took out some #if 0 code
14383         c) improved parmBytes adjustment
14384         d) improved genPlusIncr & genMinusIncr
14385         e) genCmp could generate bad code (when left assigned to DPTR)
14386         f) Fixed bug in hasInc
14387
14388         * /sdcc/src/ds390/ralloc.c:
14389         a) packRegsForSupport could mess up live information (Fixed)
14390         b) packRegsDPTRuse could be incorrect for left & right shift
14391
14392         * /sdcc/src/mcs51/ralloc.c:
14393         packRegsForSupport could mess up the live information (Fixed)
14394
14395         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14396
14397         * /sdcc/src/SDCCast.c:
14398         can reverse a loop even if function call is present as long
14399         as the loop control variable is local & is not passed as parameter
14400
14401 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14402
14403         * /sdcc/ChangeLog: *** empty log message ***
14404
14405         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14406         More builtin function additions for TININative
14407
14408         * /sdcc/src/ds390/ralloc.c:
14409         Had broken the regression testsuite
14410
14411         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14412
14413         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14414         Added funcattr hasStackParms will be set for reentrant functions when there
14415         are paramteres on the stack, this helps in minimizing frame pointer generation
14416         typeFromStr can handle function pointers now
14417
14418         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14419         *** empty log message ***
14420
14421 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14422
14423         * /src/ds390/gen.c, /src/ds390/main.c:
14424         More builtin function additions for TININative
14425
14426         * /src/ds390/ralloc.c:
14427         Had broken the regression testsuite
14428
14429         * /src/SDCCast.c: Fixed a bug in dumptree
14430
14431         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14432         Added funcattr hasStackParms will be set for reentrant functions when there
14433         are paramteres on the stack, this helps in minimizing frame pointer generation
14434         typeFromStr can handle function pointers now
14435
14436         * /doc/builtins.txt, /doc/TININative.txt:
14437         *** empty log message ***
14438
14439
14440 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14441
14442         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14443         ALPHA version for -mTININative
14444
14445         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14446         updated to reflect changes in the port structure
14447
14448         * /src/port.h:
14449         added function do_assemble (similar to do_link) if non-null this function
14450         will be called to do assembly (-mTININative) requires a multi command
14451         assembly
14452         added function genAssemblerEnd will be called to generate assembler Epilogue
14453
14454         * /src/SDCCsymt.c:
14455         added _JavaNative to debug info printing
14456
14457         * /src/SDCCmain.c: added option --tini-libid
14458         added port->do_assemble function (-mTININative) has a multi command assemble
14459
14460         * /src/SDCCglue.c: Disabled "constExpr" check
14461         added port->genAssemblerEnd function
14462
14463         * /src/SDCCglobl.h: Added option --tini-libid value
14464
14465         * /src/SDCCast.h:
14466         tookout optimizeCompare from the header (has no external references)
14467
14468         * /src/SDCCast.c: made one more function "static"
14469
14470 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14471
14472         * src/z80/mappings.i: Added z80asm support.
14473
14474         * src/z80/main.c: Added z80asm support on --asm=z80asm
14475
14476         * src/z80/gen.c: Fixed asm portability issues.
14477
14478         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14479
14480         * src/SDCCglue.c (printExterns): Added global/extern split.
14481
14482 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14483
14484         * support/regression/Makefile: added test for mcs51 model large
14485
14486         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14487
14488         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14489
14490 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14491
14492         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14493
14494 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14495
14496         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14497
14498         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14499
14500 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14501
14502         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14503
14504         * support/regression/tests/simplefloat.c: Port to mcs51.
14505
14506 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14507         * support/regression/tests/bug-485362.c: Added.
14508
14509         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14510
14511         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14512
14513         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14514
14515         * src/z80/gen.c (aopDump): Added a dump function.
14516
14517 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14518         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14519
14520         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14521
14522         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14523
14524         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14525
14526         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14527
14528         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14529
14530         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14531
14532         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14533
14534         * support/regression/ports/ds390/support.c: Use tinibios.
14535
14536         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14537
14538 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14539
14540         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14541         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14542
14543         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14544
14545         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14546
14547 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14548
14549         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14550
14551         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14552         (packRegsForIYUse): Created and optimised.
14553
14554 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14555
14556         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14557 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14558
14559         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14560
14561         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14562
14563         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14564
14565 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14566
14567         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14568
14569         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14570
14571 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14572
14573         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14574
14575         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14576
14577         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14578
14579 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14580
14581         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14582         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14583         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14584
14585         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14586
14587         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14588         (genNotFloat): Added.
14589         (genUminusFloat): Added.
14590
14591         * device/lib/z80/Makefile: Added floating pt stubs.
14592
14593         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14594
14595         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14596
14597         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14598
14599 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14600
14601         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14602
14603         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14604
14605         * sdcc/support/regression/Makefile: Add port ds390.
14606
14607         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14608
14609         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14610
14611         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14612
14613         * sdcc/support/regression/ports/ds390/support.c: Added.
14614
14615         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14616
14617         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14618
14619         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14620
14621 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14622
14623         * device/include/malloc.h: Added z80 and gbz80 support.
14624
14625         * device/lib/gbz80/heap.s: Added.
14626
14627         * device/lib/z80/heap.s: Added.
14628
14629         * device/lib/malloc.c: Added z80 and gbz80 support.
14630
14631         * support/regression/tests/malloc.c (testMalloc): Added.
14632
14633         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14634
14635         * support/regression/tests/bug-478094.c: Added.
14636
14637         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14638
14639 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14640
14641         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14642
14643         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14644
14645         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14646
14647         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14648
14649         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14650
14651 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14652
14653         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14654
14655 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14656
14657         * support/regression/tests/bug-477927.c: Added.
14658
14659         * src/z80/peeph.def: Added minor rules.
14660
14661         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14662
14663         * src/z80/peeph.def: Added jump optimisation modification.
14664
14665 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14666
14667         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14668
14669 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14670
14671         * support/regression/tests/funptrs.c: Added.
14672
14673 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14674
14675         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14676
14677 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14678
14679         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14680
14681         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14682
14683         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14684         (movLeft2ResultLong): Created.
14685
14686         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14687         (joinPushes): Added.  Joins two char pushes into a word push.
14688
14689 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14690
14691         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14692
14693         * support/makebin/Makefile (install): Added creation of dest dir.
14694
14695 2001-10-24 Karl Bongers <karl AT turbobit.com>
14696
14697         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14698
14699 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14700
14701         * src/z80/ralloc.c: Turned off faulty pack for one use.
14702
14703         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14704
14705         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14706
14707 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14708
14709         * support/regression/Makefile: Improved clean
14710
14711         * support/regression/ports/gbz80/spec.mk: Added clean
14712
14713         * support/regression/ports/host/spec.mk: Added clean
14714
14715         * support/regression/ports/z80/spec.mk: Added clean
14716
14717         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14718
14719         * support/regression/ports/mcs51/timeout.c: little improvements
14720
14721 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14722
14723         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14724
14725         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14726
14727         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14728
14729 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14730
14731         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14732
14733         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14734
14735 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14736         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14737
14738         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14739
14740         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14741
14742         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14743
14744         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14745
14746         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14747
14748         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14749
14750         * support/regression/tests/longor.c: Added.
14751
14752 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14753
14754         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14755
14756         * as/mcs51/aslink.h: define PATH_MAX
14757
14758         * as/mcs51/asm.h: define PATH_MAX
14759
14760         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14761
14762         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14763
14764         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14765
14766         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14767
14768         * src/SDCCglobl.h: define PATH_MAX
14769
14770         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14771
14772         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14773
14774 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14775
14776         * src/z80/gen.c (gencjneshort): Fixed
14777
14778         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14779
14780 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14781
14782         * support/regression/tests/bug-469671.c: Added.
14783
14784         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14785
14786 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14787
14788         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14789
14790         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14791
14792 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14793
14794         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14795
14796         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14797
14798         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14799
14800         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14801
14802         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14803
14804         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14805
14806         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14807
14808 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14809
14810         * 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.
14811
14812         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14813
14814         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14815
14816 2001-10-07    <johan AT FRIJA>
14817
14818         * device/lib/gets.c (gets): fixed the return value.
14819
14820 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14821         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14822
14823         * 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.
14824
14825         * 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.
14826
14827         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14828
14829         * src/pic/gen.c: Removed Safe_strdup.
14830
14831         * configure.in: Added option to enable libgc support.
14832
14833         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14834         (bitVectUnion): Optimised.
14835         (bitVectIntersect): Optimised.
14836         (bitVectBitsInCommon): Optimised.
14837         (bitVectCplAnd): Optimised.
14838
14839         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14840
14841 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14842
14843         * src/SDCCmain.c: distinguish between assembler debug and plain options
14844
14845         * src/avr/main.c:   remove standard assembler options
14846
14847         * src/ds390/main.c: remove standard assembler options
14848
14849         * src/mcs51/main.c: remove standard assembler options
14850
14851         * src/port.h: removed "PENDING" comment
14852
14853 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14854
14855         * src/device/lib/_mulint.c  : new, with assember functions
14856
14857         * src/device/lib/_mullong.c : new, with assember functions
14858
14859         * src/device/lib/_divuint.c : with assember functions
14860
14861         * src/device/lib/_divsint.c : with assember functions
14862
14863         * src/device/lib/_divulong.c: with assember functions
14864
14865         * src/device/lib/_divslong.c: with assember functions
14866
14867         * src/device/lib/_moduint.c : with assember functions
14868
14869         * src/device/lib/_modsint.c : with assember functions
14870
14871         * src/device/lib/_modulong.c: with assember functions
14872
14873         * src/device/lib/_modslong.c: with assember functions
14874
14875         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14876
14877         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14878
14879         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14880                                       replaced _mululong.c and _mulslong.c by _mullong.c
14881
14882 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14883
14884         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14885
14886 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14887
14888         * src/SDCCglue.c: test, if win32api is available for MINGW
14889
14890 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14891
14892         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14893         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14894         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14895         * support/regression/ports/host/spec.mk: removed GENERIC
14896         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14897         * support/regression/ports/z80/spec.mk: removed GENERIC
14898
14899 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14900
14901         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14902
14903         * support/regression/tests/bug-467035.c: Created.
14904
14905 2001-10-01    <johan AT FRIJA>
14906
14907         * src/SDCC.y: fixed bug #466586 part 1
14908
14909 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14910
14911         * SDCCicode.c: z80 has no generic pointers
14912         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14913
14914 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14915
14916         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14917
14918 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14919
14920         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14921
14922         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14923
14924 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14925
14926         * configure.in: Fixed up so that ucsim is only configured once.
14927
14928         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14929
14930         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14931         (getPathDifference): As above.
14932
14933         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14934
14935         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14936
14937 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14938         * .version: Updated to 2.3.1
14939
14940         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14941         Added copyright header.
14942
14943         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14944         (assemble): Added support for macro based assembler commands.
14945         (linkEdit): Added support for macro based linker commands.
14946         (preProcess): Changed the pre-processor to use macros.
14947         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14948         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14949
14950         * device/lib/z80/crt0.s: Added module name for debugging.
14951
14952 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14953
14954         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14955
14956         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14957
14958         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14959
14960         * src/Makefile.in: Added SDCCmacro and SDCCutil
14961
14962 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14963
14964         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14965
14966 2001-09-16    <johan AT FRIJA>
14967
14968         * 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.
14969
14970 2001-09-15    <johan AT FRIJA>
14971
14972         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14973         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14974
14975 2001-09-11    <johan AT FRIJA>
14976
14977         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14978
14979 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14980
14981         * support/regression/tests/bug-460444.c: Added test case.
14982
14983         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14984         (genCast): Added justification for all of the asserts.
14985
14986 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14987
14988         * support/regression/support.c: _xdata replaced by xdata
14989
14990         * support/regression/spec.mk: removed _generic
14991
14992 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14993
14994         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14995
14996         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14997         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14998
14999         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15000
15001         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15002
15003         * support/regression/tests/bug-460010.c: Added test case.
15004
15005         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15006
15007 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15008
15009         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15010
15011         * support/regression/testfwk.c: removed workaround for bug #436344
15012
15013         * support/regression/tests/bp.c: use less memory with mcs51
15014
15015         * support/regression/tests/bug-441448.c: use less memory
15016
15017         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15018
15019         * support/regression/collate-results.py: typo
15020
15021 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15022
15023         * support/regression/tests/fetchoverlap.c: Added new test case.
15024
15025         * support/regression/tests/bp.c: Added new test case.
15026
15027         * support/regression/tests/bug-448984.c: Added new test case.
15028
15029         * support/regression/tests/pow2shifts.c: Added new test case.
15030
15031         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15032         (genlshTwo): Fixed right shift for count > 8.
15033
15034         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15035
15036 2001-09-08    <johan AT FRIJA>
15037
15038         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15039
15040 2001-09-07    <johan AT FRIJA>
15041
15042         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15043
15044         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15045
15046 2001-09-06    <johan AT FRIJA>
15047
15048         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15049         * bernhard noted me at this: "() equals to (void)" (1.38)
15050
15051 2001-09-05    <johan AT FRIJA>
15052
15053         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15054
15055 2001-09-04    <johan AT FRIJA>
15056
15057         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15058
15059
15060 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15061
15062         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15063
15064 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15065
15066         * link/z80/aslink.h: Fixed path for PATH_MAX
15067
15068 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15069
15070         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15071
15072         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15073
15074         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15075
15076         * 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.
15077
15078 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15079
15080         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15081         (genCmp): Fixed up genCmp for the GB with longs.
15082
15083         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15084
15085         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15086
15087         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15088
15089         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15090
15091 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15092
15093         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15094
15095 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15096
15097         * 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.
15098
15099         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15100
15101 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15102
15103         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15104
15105         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15106
15107 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15108
15109   * sim/ucsim/configure:    little improvement of Cygwin-detection
15110   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15111   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15112   * support/regression/tests/bug-221100.c: small changes for mcs51
15113   * support/regression/tests/bug-221168.c: small changes for mcs51
15114   * support/regression/tests/bug-227710.c: small changes for mcs51
15115   * support/regression/tests/staticinit.c: small changes for mcs51
15116   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15117   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15118   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15119
15120 $Revision$