* support/scripts/listerr.c:
[fw/sdcc] / ChangeLog
1 2007-08-11 Borut Razem <borut.razem AT siol.net>
2
3         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
4           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
5           support/Util/SDCCerr.[ch] moved to src
6         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
7           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
8           device/examples/ds390/tinitalk/tinitalk.dsp,
9           device/examples/serialcomm/windows/serialcomm.dsp,
10           support/librarian/librarian.dsp:
11           removed linking of unused odbc32.lib and odbccp32.lib
12         * support/scripts/winres.h:
13           added for compilation with Visual C++ 2005 Express Edition
14
15 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
16
17         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
18           and CKCON1.
19
20 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
21
22         * sdccconf_in.h: update the endian test so that SPARC Solaris
23           does not throw syntax errors
24
25 2007-08-06 Borut Razem <borut.razem AT siol.net>
26
27         * doc/sdccman.lyx: removed two index entries which prevented the
28           generation of sdcc doc archive
29
30 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
31
32         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
33           instead of lyx 1.5.0.
34
35 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
36
37         * device/include/hc08/mc68hc908apxx.h: new header contributed by
38           Lucas Loizaga, with minor modifications. Thanks!
39
40 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
41
42         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
43           in sdcclib.
44
45 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
46
47         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
48           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
49           with acall/ajmp.
50
51 2007-07-22 Borut Razem <borut.razem AT siol.net>
52
53         * configure.in, configure: re-introduced .version
54         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
55           the version reverted to 2.7.0
56
57 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
58
59         * configure.in,
60         * doc/sdccman.lyx: bumped version to 2.7.3
61         * device/include/mcs51/compiler.h: fixed elif->else
62         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
63         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
64           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
65            enable accuse for bit operands
66         * src/SDCCmain.c (printVersionInfo),
67         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
68           environment descriptor
69         * src/SDCCutil.h: added getBuildEnvironment
70         * src/SDCCglue.c (initialComments): use getBuildEnvironment
71         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
72         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
73         * support/regression/tests/bug1348008.c,
74         * support/regression/tests/bug1496419.c,
75         * support/regression/tests/bug1503067.c,
76         * support/regression/tests/preproc.c: added empty tests
77
78 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
79
80         * support/regression/tests/bug1678803.c: new, added
81
82 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * as/link/aslink.h,
85         * as/link/hc08/lkihx.c,
86         * as/link/hc08/lkrloc.c,
87         * as/link/mcs51/lkihx.c,
88         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
89           ihxExtendedLinearAddress
90         * as/link/mcs51/lkrloc.c (relr),
91         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
92           acall/ajmp, see bug 830513
93
94 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
95
96         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
97           (cseBBlock): remember aggr2ptr has been used
98         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
99           (geniCodeAssign): fixed bug 868103
100         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
101           added operandSize prototype
102         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
103           (genDataPointerSet): use max of size of right and result,
104           (gencjne): added parameter useCarry for optimization,
105           (genCmpEq): use carry if appropriate,
106           (genXor): check if operand already in carry
107         * support/regression/tests/bug-868103.c: enabled test
108
109 2007-07-12 Raphael Neider <rneider AT web.de>
110
111         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
112
113 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
114
115         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
116           from Robert Larice, thanks
117         * support/regression/tests/bitopcse.c,
118         * support/regression/tests/bitvars.c,
119         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
120         * support/regression/tests/bug-927659.c: enabled test for z80
121         * support/regression/tests/bug1738367.c: added extra tests by Frieder
122         * support/regression/tests/bug1745717.c: new, added
123         * support/regression/tests/literalop.c,
124         * support/regression/tests/nullstring.c: removed storage definitions that
125           are now in testfwk.h
126
127 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
128
129         * device/include/stdbool.h: do not define __bool_true_false_are_defined
130           and bool for targets that do not fully support it.
131         * support/regression/tests/bug1546986.c,
132         * support/regression/tests/bug1723128.c,
133         * support/regression/tests/bug1734654.c,
134         * support/regression/tests/bug1738367.c,
135         * support/regression/tests/constantRange.c: only use bool if allowed
136
137 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
138
139         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
140           Larice, also handle function pointers
141         * support/regression/tests/bug1749275.c: new, added
142
143 2007-07-03 Borut Razem <borut.razem AT siol.net>
144
145         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
146           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
147           #1746528: SDCC should ignore ':' in inline assembler comments
148         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
149
150 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
151
152         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
153         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
154
155 2007-06-29 Borut Razem <borut.razem AT siol.net>
156
157         * src/SDCCmain.c: fixed bug
158           #1744746: SDCC #4867: broken option --xram-size
159
160 2007-06-28 Borut Razem <borut.razem AT siol.net>
161
162         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
163           find out the endianess of host machine for ucsim
164
165 2007-06-27 Borut Razem <borut.razem AT siol.net>
166
167         * support/regression/generate-cases.py: corrected the file name
168           in warning
169         * configure.in, configure, sdccconf_in.h: find out the endianess of
170           host machine
171         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
172           negative size
173
174 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
175
176         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
177
178 2007-06-26 Borut Razem <borut.razem AT siol.net>
179
180         * support/regression/generate-cases.py: display warning if function
181           list is empty; implemented more flexible rule for detection of
182           testing functions, allowing return type 'void' in the same line as
183           the function name in the function definition
184         * support/regression/tests/bug-1654060.c: corrected test
185         * support/librarian/sdcclib.c: fixed warning:
186           format '%s' expects type 'char *', but argument 2 has type 'int'
187
188 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
189
190         * support/librarian/sdcclib.c: Added feature Requests [1510635]
191           Multiple infiles for sdcclib.
192
193 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
194
195         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
196           bug 1731741
197
198 2007-06-18 Borut Razem <borut.razem AT siol.net>
199
200         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
201           how to handle comments, so they have to be removed by the
202           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
203         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
204           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
205           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
206           table driven option hadling
207
208 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
209
210         * src/SDCCast.c (decorateType),
211         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
212           iCode to ast level to fix bug 1738367
213         * support/regression/tests/bug1738367.c: new, added
214
215 2007-06-15 Raphael Neider <rneider AT web.de>
216
217         * src/pic16/devices.inc,
218         * device/lib/pic16/pics.all,
219         * device/include/pic16/pic18fregs.h,
220         * device/include/pic16/pic18f[24][45]20.h,
221         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
222           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
223         * device/lib/pic16/Makefile.in: faster cleanup
224
225 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
226
227         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
228
229 2007-06-13 Raphael Neider <rneider AT web.de>
230
231         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
232
233 2007-06-12 Raphael Neider <rneider AT web.de>
234
235         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
236           suppress bit defines if NO_BIT_DEFINES is #define'd
237         * device/include/pic/pic*.h: recreated all headers to include
238           conditional bit defines
239         * device/include/pic/pic16f886.h,
240         * device/include/pic/pic16f887.h: fixed based on newer .inc file
241         * device/include/pic/recreate.sh: script to recreate the complete
242           device library files based on the currently supported devices
243
244 2007-06-12 Borut Razem <borut.razem AT siol.net>
245
246         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
247           support/regression/Makefile.in, support/scripts/build.mak,
248           support/scripts/Makefile.snapshot:
249           use new svn URL scheme
250         * doc/sdccman.lyx: SDCC Wiki moved to
251           http://sdcc.wiki.sourceforge.net/
252
253 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
254
255         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
256         * support/regression/tests/bug1734654.c: added
257
258 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
259
260         * src/SDCCast.c (decorateType): optimized '?' for equal operands
261         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
262           with literal operands
263
264 2007-06-10 Borut Razem <borut.razem AT siol.net>
265
266         * as/link/z80/lklibr.c: fixed mingw build warning
267           lklibr.c:575: warning: implicit declaration of function 'tolower'
268         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
269           src/z80/main.c: move target specific options from src/SDCCmain.c
270           to src/<target>/main.c
271
272 2007-06-09 Borut Razem <borut.razem AT siol.net>
273
274         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
275           removed unused swap_sense; removed outBitCLong, replaced with outBitC
276         * support/regression/tests/bug-1294691.c: added
277
278 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
279
280         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
281           can also be static, fixes bug 1733438
282         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
283           have absolute address too
284           (computeType): added optimization for 'cond ? true : false'
285         * support/regression/tests/absolute.c: added test for static absolute var
286
287 2007-06-08 Raphael Neider <rneider AT web.de>
288
289         * src/regression/Makefile: suppress parallel builds, allow easy
290           switching between pic14/pic16 ports
291         * src/regression/picregs.h: added pic14/16 header file switch
292         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
293           inline.c,nestfor.c,string1.c}: include "picregs.h"
294
295 2007-06-07 Borut Razem <borut.razem AT siol.net>
296
297         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
298           permanent solution to suppress GCC 4.2.0 c++ warning:
299           deprecated conversion from string constant to `char *'
300           use 'const char *' where ever required
301         * support/regression/generate-cases.py: implemented more flexible rule
302           for detection of testing functions, allowing white-spaces surrounding
303           the function name and the 'void' parameter.
304         * support/regression/tests/constantRange.c,
305           support/regression/tests/scott-compare3.c: fixed failing regression
306           tests, uncovered by implementation of more flexible rule for detection
307           of testing functions
308
309 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
310
311         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
312
313 2007-06-04 Borut Razem <borut.razem AT siol.net>
314
315         * configure.in, configure, config_vc.awk: sdcc version number is now
316           stored in configure.in; removed .version
317         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
318           doc/INSTALL.txt: version bumped to 2.7.2
319         * sim/ucsim/configure.in, sim/ucsim/configure:
320           use "read" to read from .version
321
322 2007-06-03 Borut Razem <borut.razem AT siol.net>
323
324         * */Makefile.in: removed annoying warning:
325           Makefile:xx: Makefile.dep: No such file or directory
326
327 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
328
329         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
330           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
331         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
332         * src/SDCCast.c (resultTypePropagate): propagate for '!',
333           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
334           bugfix: only use newBoolLink for bit result type
335         * src/SDCCicode.c (geniCodeLogic): added param tree,
336           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
337           (geniCodeLogicAndOr): use IS_BIT,
338           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
339           (ast2iCode): added tree param to geniCodeLogic for comparisons
340         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
341         * support/regression/tests/bug1723128.c: added test NotZero
342
343 2007-06-01 Borut Razem <borut.razem AT siol.net>
344
345         * SDCPP synchronized with GCC CPP release version 4.2.0,
346           currently the latest release:
347         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
348           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
349           support/cpp2/cppdefault.h, support/cpp2/except.h,
350           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
351           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
352           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
353           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
354           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
355           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
356           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
357           support/cpp2/opts.h, support/cpp2/output.h,
358           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
359           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
360           support/cpp2/system.h, support/cpp2/version.c,
361           support/cpp2/Makefile.in: modified
362         * support/cpp2/opts-common.c: added
363         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
364         * device/lib/pic16/libdev/pic18f[24]5j10.c:
365           search for included source file in local directory
366         * sim/ucsim/configure, sim/ucsim/configure.in:
367           temporary solution to suppress GCC 4.2.0 c++ warning:
368           deprecated conversion from string constant to `char *'
369
370 2007-06-01 Raphael Neider <rneider AT web.de>
371
372         * device/lib/pic/libdev/pic12f683.c,
373         * device/include/pic/pic12f683.h: added GPIO bits
374
375 2007-06-01 Raphael Neider <rneider AT web.de>
376
377         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
378           quotation marks, clarified role of PIC14 vs. PIC16 ports
379         * src/pic16/devices.inc,
380         * device/include/pic16/pic18fregs.h,
381         * device/include/pic16/pic18f[24][45]j10.h,
382         * device/lib/pic16/pics.all,
383         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
384           18f24j10, 18f25j10, 18f44j10, and 18f45j10
385         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
386           for new devices as they are not yet supported by gputils
387
388 2007-05-31 Borut Razem <borut.razem AT siol.net>
389
390         * Small Device C Compiler 2.7.0 released
391         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
392           changed sdcc version to 2.7.1
393         * support/scripts/sdcc.nsi: added How to create WIN32 release
394           setup.exe package
395
396 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
397
398         * doc/sdccman.lyx: documented initialization and allocation of absolute
399           variables, bit parameter passing, the need for function pointers to be
400           reentrant and alpha quality support of inline and retrict
401
402 2007-05-26 Borut Razem <borut.razem AT siol.net>
403
404         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
405           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
406         * docs/knownbugs.html: updated
407
408 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
409
410         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
411           thanks Jan Waclawek
412         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
413           AOP_CRY and ruonly
414           (gencjneshort): optimized when left is AOP_DIR
415         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
416           initializing unions in a struct/array
417         * support/regression/fwk/include/testfwk.h: added defines for data, near
418           and far for host and z80
419         * support/regression/tests/bug1723128.c: new, added
420
421 2007-05-22 Borut Razem <borut.razem AT siol.net>
422
423         * doc/knownbugs.html: updated
424
425 2007-05-21 Raphael Neider <rneider AT web.de>
426
427         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
428           error message instead
429         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
430
431 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
432
433         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
434
435 2007-05-21 Raphael Neider <rneider AT web.de>
436
437         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
438           closes #1722392
439         * src/regression/gpsim_assert.h,
440         * src/regression/Makefile,
441         * src/regression/pcodeopt.c: regression test for the above fix
442
443 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
444
445         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
446           jumps to self, fixed bug 1717281
447
448 2007-05-10 Borut Razem <borut.razem AT siol.net>
449
450         * support/scripts/gen_known_bugs.pl: cosmetic fix
451         * doc/knownbugs.html: generated by gen_known_bugs.pl
452
453 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
454
455         * src/SDCCast.c (createFunction): also generate non-inlined version of
456           function for functions declared as "static inline"
457         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
458           function can be inlined after non-inlined version generated.
459
460 2007-05-10 Borut Razem <borut.razem AT siol.net>
461
462         * support/scripts/gen_known_bugs.pl: added script
463           which generates knownbugs.html
464
465 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
466
467         * doc/knownbugs.html: updated for release 2.7.0
468
469 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
470
471         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
472
473 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
474
475         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
476           (throughout): updated generating comments
477         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
478           (throughout): updated generating comments
479         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
480           rule instead of at the second, or it might skip lines when removing the
481           complete match
482         * support/regression/tests/bug1714204.c: changed test to foo
483
484 2007-05-08 Borut Razem <borut.razem AT siol.net>
485
486         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
487           thanks to SDCC Distributed Compile Farm members,
488           added Z80 and GBZ80 command line options
489         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
490
491 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
492
493         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
494         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
495         * support/regression/tests/longlit.c: modified to be tested at all and
496           to pass the actual test
497
498 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
499
500         * device/include/mcs51/uPSD33xx.h: Added.
501
502 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
503
504         * device/lib/_gptrput.c,
505         * device/lib/_gptrget.c: removed old code,
506          (_gptrgetWord),
507         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
508         * support/regression/tests/bug1714204.c: new, added
509
510 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
511
512         * support/regression/tests/regtrack.c: test was never executed
513           because of the regression test being picky about white spaces.
514         * device/lib/mcs51/crtclear.asm: added comment
515
516 2007-05-06 Raphael Neider <rneider AT web.de>
517
518         * device/lib/pic/Makefile.rules,
519         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
520           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
521
522 2007-05-06 Raphael Neider <rneider AT web.de>
523
524         * src/pic16/device.h,
525         * src/pic16/main.h,
526         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
527           _pic16_setDefaultOptions): removed/reordered command-line args
528         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
529           devices, regrouped command line args, environment variables),
530           clarified sone points, added sections on how to add devices to the
531           PIC14/PIC16 ports
532
533 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
534
535         * src/z80/peeph.def: fixed bug in rule 2
536
537 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
538
539         * src/port.h: added TARGET_MCS51_LIKE
540         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
541           take advantage of it too
542         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
543           (shiftR2Left2Result): Optimized: don't check shifting by 0
544         * src/z80/peeph-z80.def,
545         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
546           modifications, see patch 1700823
547         * src/mcs51/peep.c (): fixed bug 1712928
548         * support/regression/tests/bug1712928.c: new, added
549
550 2007-05-05 Borut Razem <borut.razem AT siol.net>
551
552         * device/lib/pic16/Makefile.common.in,
553           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
554           removed bash dependencies
555
556 2007-05-01 Borut Razem <borut.razem AT siol.net>
557
558         * src/SDCCicode.c:
559           fixed bug #1710507: --i-code-in-asm makes compile fail
560           all iCode comments are now one liners
561         * src/mcs51/gen.c: fixed memory leak
562
563 2007-05-01 Raphael Neider <rneider AT web.de>
564
565         * device/lib/pic/libdev/*.c
566         * device/include/pic/*.h: regenerated all device libs from updated
567           .inc files
568         * support/scripts/inc2h.pl: documented usage, now uses strict to
569           catch more bugs
570
571 2007-04-30 Borut Razem <borut.razem AT siol.net>
572
573         * doc/sdccman.lyx:
574           fixed bug #1669175: Problem with space in output paths
575           documented how to use paths with spaces for Windows users
576
577 2007-04-29 Borut Razem <borut.razem AT siol.net>
578
579         * Fixed svn:eol-style and svn:keywords properties
580         * src/SDCCval.c: fixed bug
581           #1592871: Segfault with "large" const arrays of characters
582           replaced recursion with iteration
583         * Removed svn:executable property from non-executable files
584
585 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
586
587         * src/mcs51/gen.c (genRet): fixed bug 1707003
588
589 2007-04-27 Raphael Neider <rneider AT web.de>
590
591         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
592           createReachingDefinitions,assignValnums,pic16_destructDF,
593           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
594           prevent NULL pointer dereferences
595         * device/lib/pic/libdev/pic16f886.c,
596         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
597           prevent building them, gputils do not really support them yet
598
599 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
600
601         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
602           helps printf_small. 32 bytes more __idata mem.
603
604 2007-04-27 Raphael Neider <rneider AT web.de>
605
606         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
607           return early when pb or pb->pcHead is NULL (patch #1708427)
608         * src/regression/empty.c,
609         * src/regression/Makefile: added test with empty functions
610         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
611
612 2007-04-27 Borut Razem <borut.razem AT siol.net>
613
614         * src/SDCCast.c: fixed feature request
615           #1547512: Redundant strings linked when using sizeof("abc")
616
617 2007-04-23 Borut Razem <borut.razem AT siol.net>
618
619         * doc/sdccman.lyx, src/SDCCmain.c:
620           peep-hole comments are generated only if --fverbose-asm option is
621           specified and --no-peep-comments is not, as proposed by Frieder.
622         * support/regression/Makefile.in: compile regression tests with
623           --fverbose-asm option so one can "grep" whether a new (or an old)
624           peephole is (still) applied; requested by Frieder.
625
626 2007-04-23 Kevin Buettner <kevin AT buettner.to>
627
628         * device/include/pic/pic16f886.h,
629         * device/include/pic/pic16f887.h,
630         * device/lib/pic/libdev/pic16f886.c,
631         * device/lib/pic/libdev/pic16f887.c,
632         * device/include/pic/pic14devices.txt,
633         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
634
635 2007-04-23 Kevin Buettner <kevin AT buettner.to>
636
637         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
638           fixes #1704666
639
640 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
641
642         * device/lib/_memset.c: assembler version for mcs51
643
644 2007-04-22 Borut Razem <borut.razem AT siol.net>
645
646         * support/scripts/listerr.c: program to create the list of errors and
647           warnings list from - added
648         * doc/sdccman.lyx: removed the note
649           "For list of warnings and corresponding codes, see err_warn.txt"
650         * src/SDCCsymt.c: fixed bug #1699804:
651           Bug with some uses of sizeof(static local array) (MCS51)
652         * support/regression/tests/bug-1699804.c: added
653
654 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
655
656         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
657           (main): added option -i,
658           (asmbl, case S_INCL): use search_path_fopen,
659           mostly from patch 1579668 by Peter Miller, thanks
660         * src/z80/main.c: fixed typo --callee-saves-bc
661         * device/include/mcs51/compiler.h: added sfrword for Tasking
662
663 2007-04-20 Borut Razem <borut.razem AT siol.net>
664
665         * src/z80/main.c: replaced reserved keyword asm with asmblr
666
667 2007-04-19 Borut Razem <borut.razem AT siol.net>
668
669         * src/port.h: use const pointers to strings
670         * src/SDCCargs.h: declared getStringArg() and getIntArg()
671         * src/pic16/main.c: include SDCCargs.h
672         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
673           const char, since the strings are dynamically allocated
674         * src/SDCCmain.c: options.code_seg and options.const_seg are
675           dynamically allocated; check port specific command line options
676           before the general ones
677         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
678
679 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
680
681         * device/include/ds400rom.h,
682         * device/lib/ds390/lcd390.c,
683         * device/lib/ds390/memcpyx.c,
684         * device/lib/ds390/rtc390.c,
685         * device/lib/ds400/ds400rom.c,
686         * device/lib/ds400/memcpyx.c,
687         * device/lib/hc08/_ret.c: more replacements of keywords with their
688           double underscore equivalents
689         * device/lib/ds390/Makefile.in,
690         * device/lib/ds400/Makefile.in,
691         * device/lib/gbz80/Makefile.in,
692         * device/lib/hc08/Makefile.in,
693         * device/lib/mcs51/Makefile.in,
694         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
695
696 2007-04-17 Borut Razem <borut.razem AT siol.net>
697
698         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
699           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
700           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
701           to --fverbose-asm, to be gcc'ish
702
703 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
704
705         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
706
707 2007-04-17 Borut Razem <borut.razem AT siol.net>
708
709         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
710         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
711           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
712           with their double underscore equivalent
713
714 2007-04-14 Borut Razem <borut.razem AT siol.net>
715
716         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
717           source"
718
719 2007-04-13 Borut Razem <borut.razem AT siol.net>
720
721         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
722           C99 standard
723         * device/examples/serialcomm/windows/serial.[ch],
724           device/examples/serialcomm/windows/test_serialcomm.cpp:
725           updated by Bela Torok
726         * device/examples/serialcomm/windows/serialcomm.dsw,
727           device/examples/serialcomm/windows/serialcomm.dsp: added
728
729 2007-04-13 Jan Waclawek <wek AT efton.sk>
730
731         * doc/sdccman.lyx: additions and changes at various places
732           (submitted as #1697136).
733           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
734
735 2007-04-10 Borut Razem <borut.razem AT siol.net>
736
737         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
738           LyX file format changed to 245
739         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
740           "FreeWare" replaced with "free open source"
741
742 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
743
744         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
745
746 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
747
748         * device/include/pic16/pic18fregs.h,
749         * device/lib/_bp.c,
750         * device/lib/_decdptr.c,
751         * device/lib/_divsint.c,
752         * device/lib/_divslong.c,
753         * device/lib/_divuint.c,
754         * device/lib/_divulong.c,
755         * device/lib/_fs2schar.c,
756         * device/lib/_fs2sint.c,
757         * device/lib/_fs2slong.c,
758         * device/lib/_fs2uchar.c,
759         * device/lib/_fs2uint.c,
760         * device/lib/_fs2ulong.c,
761         * device/lib/_fsadd.c,
762         * device/lib/_fscmp.c,
763         * device/lib/_fsdiv.c,
764         * device/lib/_fseq.c,
765         * device/lib/_fsget1arg.c,
766         * device/lib/_fsget2args.c,
767         * device/lib/_fsgt.c,
768         * device/lib/_fslt.c,
769         * device/lib/_fsmul.c,
770         * device/lib/_fsneq.c,
771         * device/lib/_fsnormalize.c,
772         * device/lib/_fsreturnval.c,
773         * device/lib/_fsrshift.c,
774         * device/lib/_fssub.c,
775         * device/lib/_fsswapargs.c,
776         * device/lib/_gptrget.c,
777         * device/lib/_gptrgetc.c,
778         * device/lib/_gptrput.c,
779         * device/lib/_logexpf.c,
780         * device/lib/_modsint.c,
781         * device/lib/_modslong.c,
782         * device/lib/_moduint.c,
783         * device/lib/_modulong.c,
784         * device/lib/_mulint.c,
785         * device/lib/_mullong.c,
786         * device/lib/_schar2fs.c,
787         * device/lib/_ser.c,
788         * device/lib/_setjmp.c,
789         * device/lib/_sint2fs.c,
790         * device/lib/_slong2fs.c,
791         * device/lib/_spx.c,
792         * device/lib/_uchar2fs.c,
793         * device/lib/_uint2fs.c,
794         * device/lib/_ulong2fs.c,
795         * device/lib/asincosf.c,
796         * device/lib/atanf.c,
797         * device/lib/calloc.c,
798         * device/lib/ds390/tinibios.c,
799         * device/lib/ds400/tinibios.c,
800         * device/lib/expf.c,
801         * device/lib/free.c,
802         * device/lib/hc08/_mulint.c,
803         * device/lib/logf.c,
804         * device/lib/malloc.c,
805         * device/lib/printf_fast.c,
806         * device/lib/printf_tiny.c,
807         * device/lib/printfl.c,
808         * device/lib/realloc.c,
809         * device/lib/ser_ir.c,
810         * device/lib/serial.c,
811         * support/regression/tests/libmullong.c: replaced all special keywords
812           with their double underscore equivalent
813         * support/regression/ports/mcs51-xstack-auto/spec.mk,
814         * device/lib/Makefile.in: compile libs with --std-c99 instead of
815           --std-sdcc99
816         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
817           (genRet): if the bit-symbol is ruonly it already is in the carry
818         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
819         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
820         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
821           type UCHAR if dest is not bit
822
823 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
824
825         * device/include/math.h,
826         * device/lib/cotf.c,
827         * device/lib/expf.c,
828         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
829
830 2007-04-01 Borut Razem <borut.razem AT siol.net>
831
832         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
833           fixed bug #1692042: input buffer overflow...scanner uses REJECT
834         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
835           gcc_unreachable() called internal_error()...
836
837 2007-03-30 Raphael Neider <rneider AT web.de>
838
839         * src/pic/ralloc.c (isData): suppress garbage debug output
840
841 2007-03-28 Borut Razem <borut.razem AT siol.net>
842
843         * doc/sdccman.lyx:
844           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
845           is developed, built and used worldwide, and the word "night" doesn't
846           make any sense.
847
848 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
849
850         * device/include/mcs51/C8051F360.h: new, added
851         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
852
853 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
854
855         * src/SDCC.y (declaration_specifiers, function_specifier),
856         * support/Util/SDCCerr.c,
857         * support/Util/SDCCerr.h,
858         * src/SDCCsymt.h,
859         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
860           inline keyword
861         * src/SDCCmem.c (deallocParms),
862         * src/SDCCast.c: support for function inlining, not quite complete
863         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
864           'restrict' qualifier
865
866 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
867
868         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
869           (saveRBank, unsaveRBank): don't save bits,
870           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
871         * support/regression/tests/bug1535242.c: new, added
872         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
873           thanks Alexey Shamrin <shamrin AT gmail.com>,
874           made assert.h header ANSI compliant (added a check for NDEBUG macro,
875           removed header guard)
876         * .version,
877         * sdcc.spec: bumped version to 2.6.5
878         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
879
880 2007-03-22 Borut Razem <borut.razem AT siol.net>
881
882         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
883           fixed bug #1653671: sdcdb integration into ddd is broken
884
885 2007-03-22 Raphael Neider <rneider AT web.de>
886
887         * src/pic/gen.c (popGetExternal): augmented to also create references
888           to external variables (not only labels),
889           (genCall): comment on plan to reduce PAGESEL overhead,
890           (genFunction, genEndFunction): also save/restore FSR around interrupt
891           handling code, removed lots of unused code
892           (genDivOneByte): release acquired temp register
893         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
894           of popGetExternal
895         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
896           for registers that need to be saved during interrupts (FSR, STATUS,
897           PCLATH; W needs special handling), currently only FSR is used
898
899 2007-03-22 Raphael Neider <rneider AT web.de>
900
901         * device/include/pic/pic14devices.txt: 16f688 has only one config word
902
903 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
904
905         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
906
907 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
908
909         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
910
911 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
912
913         * as/link/aslink.h: added LKOBJEXT
914         * as/link/hc08/link_hc08.dsp,
915         * as/link/hc08/Makefile.bcc,
916         * as/link/hc08/Makefile.in,
917         * as/link/mcs51/aslink.dsp,
918         * as/link/mcs51/Makefile.bcc,
919         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
920         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
921         * as/link/lkaomf51.c: merged and moved
922         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
923         * as/link/z80/lkdata.c,
924         * as/link/lkdata.c: merged and moved
925         * as/link/hc08/lkmain.c,
926         * as/link/mcs51/lkmain.c: cosmetic changes
927         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
928         * as/link/lklex.c: use LKOBJEXT
929         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
930           ANSI-fied functions, removed bubble-sorts
931         * as/link/z80/lksym.c           as/link/lksym.c: merged,
932           ANSI-fied functions
933         * as/link/z80/linkgbz80.dsp,
934         * as/link/z80/linkz80.dsp,
935         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
936           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
937         * as/link/z80/lkhead.c,
938         * as/link/z80/lklex.c: deleted
939         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
940         * as/link/z80/lkmain.c: added copyfile()
941
942 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
943
944         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
945
946 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
947
948         * device/lib/_strlen.c: assembler version for mcs51
949
950 2007-03-13 Raphael Neider <rneider AT web.de>
951
952         * device/include/pic16/pic18f2221.h,
953         * device/include/pic16/pic18f2321.h,
954         * device/include/pic16/pic18f2331.h,
955         * device/include/pic16/pic18f4221.h,
956         * device/include/pic16/pic18f4321.h,
957         * device/include/pic16/pic18f4331.h: fixed config byte location names
958         * support/scripts/inc2h-pic16.pl: removed debug output, emit
959           consistently named config byte locations
960
961 2007-03-13 Borut Razem <borut.razem AT siol.net>
962
963         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
964           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
965           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
966           as/link/z80/Makefile.in, as/z80/Makefile.in:
967           introduced LDFLAGS
968
969 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
970
971         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
972         * device/lib/printf_large.c: pointer was converted to generic
973         pointer for mcs51 models other than model-small (Maarten noticed)
974
975 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
976
977         * device/include/mcs51/ADuC84x.h: Added.
978
979 2007-03-10 Borut Razem <borut.razem AT siol.net>
980
981         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
982           fixed RFE #1624219: double backslashes in filenames;
983           functions hexEscape(), octalEscape() and copyStr() moved from
984           SDCCval.c to SDCCutil.c and made them glovbally available
985
986 2007-03-09 Borut Razem <borut.razem AT siol.net>
987
988         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
989           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
990           1673361: Missaligned comments in output files
991
992 2007-03-09 Raphael Neider <rneider AT web.de>
993
994         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
995
996 2007-03-09 Raphael Neider <rneider AT web.de>
997
998         * src/pic/gen.c,
999         * src/pic/glue.c,
1000         * src/pic/ralloc.c: suppress undesired debug output
1001         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1002
1003 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1004
1005         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1006
1007 2007-03-07 Borut Razem <borut.razem AT siol.net>
1008
1009         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1010           search include files in the current directory
1011
1012 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1013
1014         * src/SDCCglue.c (emitMaps, glue),
1015         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1016           absolute xdata
1017         * support/regression/tests/absolute.c: added xdata test
1018
1019 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1020
1021         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1022           added condition to macro, fixes bug 1666080
1023
1024 2007-03-02 Raphael Neider <rneider AT web.de>
1025
1026         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1027
1028 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1029
1030         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1031         be cleared. Unconditionally set __XPAGE
1032         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1033
1034 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1035
1036         * src/SDCCglobl.h,
1037         * src/SDCCmain.c,
1038         * src/mcs51/gen.c,
1039         * src/mcs51/rtrack.c,
1040         * src/ds390/gen.c,
1041         * doc/sdccman.lyx: added --no-gen-comments
1042         * src/mcs51/peeph.def: added 192.b, disabled 185
1043
1044 2007-02-25 Raphael Neider <rneider AT web.de>
1045
1046         * src/pic16/gen.c (genCast): fixed typo
1047         * device/lib/pic16/Makefile.subdir: only install existing files
1048         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1049
1050 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1051
1052         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1053         * device/lib/mcs51/crtclear.asm,
1054         * device/lib/mcs51/crtxclear.asm: renumbered labels
1055         * device/lib/mcs51/Makefile.in: added crtcall.asm
1056         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1057         * src/mcs51/gen.c (movc): removed,
1058           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1059             acc.x or psw.x),
1060           (toCarry, genSend, genRet): added function toCarry,
1061           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1062           (assignBit, genAssign, genCast): added function assignBit
1063         * src/mcs51/Makefile.bcc: added rtrack.c
1064         * src/mcs51/ralloc.h: made valueKnown a bitfield
1065         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1066           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1067           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1068         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1069         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1070           (_pop): only pop valid pairs, see gencjneshort,
1071           (gencjneshort): return pair that still needs to be popped, restructured,
1072           (gencjne, genCmpEq): call _pop
1073
1074 2007-02-23 Raphael Neider <rneider AT web.de>
1075
1076         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1077
1078 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1079
1080         * device/include/mcs51/P89LPC925.h: Added.
1081
1082 2007-02-18 Raphael Neider <rneider AT web.de>
1083
1084         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1085
1086 2007-02-17 Borut Razem <borut.razem AT siol.net>
1087
1088         * support/cpp2/directives.c, support/cpp2/version.c:
1089           synchronized with GCC CPP 4.1.2
1090
1091 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1092
1093         * src/mcs51/rtrack.h,
1094         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1095           by checking the strings passed by emitcode() to the assembler.
1096           Feel free to change. This in part addresses RFE #482179.
1097           Set environment variable SDCC_RTRACK to enable.
1098         * src/mcs51/gen.c: inserted hooks
1099         * src/mcs51/ralloc.h: added two members to struct regs
1100         * support/regression/tests/regtrack.c: added
1101
1102 2007-02-14 Borut Razem <borut.razem AT siol.net>
1103
1104         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1105         * Makefile.in: applied patch from Makefile related part of
1106           #1469393: Compiler does not initialize static data
1107
1108 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1109
1110         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1111           for better fix of bug 1273984, compiles pic16 rand.c
1112
1113 2007-02-12 Borut Razem <borut.razem AT siol.net>
1114
1115         * src/pic16/main.c: fixed pic16 standard library directory bug
1116
1117 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1118
1119         * src/hc08/gen.c (genSwap): fix swap regression test
1120
1121 2007-02-10 Borut Razem <borut.razem AT siol.net>
1122
1123         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1124           with same scope
1125         * support/regression/tests/bug-1654060.c: added regression test for
1126           #1654060
1127
1128 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1129
1130         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1131         bit moves in return statement
1132
1133 2007-02-09 Borut Razem <borut.razem AT siol.net>
1134
1135         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1136           syntax error
1137
1138 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1139
1140         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1141         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1142
1143 2007-02-07 Raphael Neider <rneider AT web.de>
1144
1145         * src/pic16/devices.inc,
1146         * device/include/pic16/pic18fregs.h,
1147         * device/include/pic16/pic18f[24][34]31.h,
1148         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1149         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1150         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1151
1152 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1153
1154         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1155           can this have lived here for so many years?
1156         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1157           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1158         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1159
1160 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1161
1162         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1163         appended by loop induction must be at the very end of the eBBlock
1164
1165 2007-02-05 Kevin Vigor
1166
1167         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1168
1169 2007-02-05 Borut Razem <borut.razem AT siol.net>
1170
1171         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1172           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1173
1174 2007-02-03 Borut Razem <borut.razem AT siol.net>
1175
1176         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1177           applied patch #1646602 option to set default signedness of char to
1178           unsigned, added -funsigned-char command line option,
1179           thanks to Gunther Jehle
1180         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1181           prompt for file deletion a few hundred times (especially the
1182           subversion files, which have ro permissions so it asks for
1183           confirmation), thanks to Simon McAuliffe;
1184           added {} + option to find in order to remove multiple files from a
1185           single rm commad
1186
1187 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1188
1189         * device/include/mcs51/SST89x5xRDx.h: Added.
1190
1191 2007-02-02 Raphael Neider <rneider AT web.de>
1192
1193         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1194         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1195
1196 2007-02-01 Raphael Neider <rneider AT web.de>
1197
1198         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1199           config words again
1200
1201 2007-01-31 Borut Razem <borut.razem AT siol.net>
1202
1203         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1204           if compiled with GCC. Thanks to Raphael Neider
1205
1206 2007-01-31 Raphael Neider <rneider AT web.de>
1207
1208         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1209             operand names, handles name and (name + n) for all n,
1210           (sameBank): restructured, also check bank allocation policy,
1211         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1212           (pic14_operandsAllocatedInSameBank): check whether to operands
1213             will be allocated into the same bank (i.e., section) to reduce
1214             BANKSEL overhead, queried from pcode.c:sameBank,
1215           (pic14printLocals): reintroduced clustering registers into a single
1216             section: all compiler generated symbols will now reside in one
1217             bank (per file), reducing BANKSEL overhead and code size,
1218           (showAllMemmaps): use local dbuf where possible
1219
1220 2007-01-29 Raphael Neider <rneider AT web.de>
1221
1222         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1223           (call_libraryfunc): retrieve/create symbol and mark as used,
1224           (genFunction): mark defined functions as non-extern and add again
1225            to code memmap for later output
1226         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1227           (pic14printLocals): reworked for new symbol emission,
1228           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1229           showAllMemmaps): reworked symbol output using dbufs, added handling
1230             of string literals (still incomplete),
1231           (picglue): removed symbol emission, moved into showAllMemmaps,
1232           (emitSymbolSet): new workhorse for symbol output,
1233           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1234
1235 2007-01-29 Borut Razem <borut.razem AT siol.net>
1236
1237         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1238           component contains the extension separator.
1239
1240 2007-01-28 Borut Razem <borut.razem AT siol.net>
1241
1242         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1243           on WIN32
1244         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1245           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1246           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1247           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1248           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1249           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1250           src/z80/gen.c, support/Util/MySystem.c:
1251           accept slash and backslash as directory separator on WIN32 and
1252           Cygwin ports
1253
1254 2007-01-28 Raphael Neider <rneider AT web.de>
1255
1256         * src/pic16/devices.inc,
1257         * device/include/pic16/pic18f[24][23]21.h,
1258         * device/include/pic16/pic18fregs.h,
1259         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1260         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1261         * device/lib/pic16/libio/adc.ignore,
1262         * device/lib/pic16/libio/i2c.ignore,
1263         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1264           family, as gputils do not yet support the devices
1265         * device/lib/pic16/Makefile.subdir: ignore errors on install
1266         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1267           headers and libraries from gputils .inc files
1268
1269 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1270
1271         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1272
1273 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1274
1275         * doc/sdccman.lyx: add printf benchmarks
1276
1277 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1278
1279         * device/lib/printf_fast.c: fix %c, char promoted to int
1280         * device/lib/printf_tiny.c: fix %c, char promoted to int
1281
1282 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1283
1284         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1285
1286 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1287
1288         * support/regression/tests/swap.c: 64 bit hosts failed
1289         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1290
1291 2007-01-25 Raphael Neider <rneider AT web.de>
1292
1293         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1294           based on absolute register address, patch by Alex Blond
1295
1296 2007-01-22 Raphael Neider <rneider AT web.de>
1297
1298         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1299           emitted, do not emit them again...
1300
1301 2007-01-22 Raphael Neider <rneider AT web.de>
1302
1303         * src/regression/bank1.c, src/regression/compare6.c,
1304           src/regression/add.c: cosmetic changes
1305         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1306         * src/pic/gen.c: fixed global zero and one,
1307           (aopForSym): removed unued code,
1308           (aopGet): assert aop is defined, check and use `index' of
1309             pCodeImmd operands (fixes #1630908),
1310         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1311           (register_reassign): prevent accidental register unification,
1312           (ReuseReg): cosmetic changes (also above)
1313         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1314           pic14emitStaticSeg): do not emit initialized data,
1315           (printIval*): replaced with working versions,
1316           (pic14createInterruptVect,picglue): use idata for initialized data,
1317             now init data should work in all modules (not only main()),
1318         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1319
1320 2007-01-21 Borut Razem <borut.razem AT siol.net>
1321
1322         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1323           use -fPIC or -fpic if they are supported and not ignored
1324         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1325         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1326
1327 2007-01-20 Borut Razem <borut.razem AT siol.net>
1328
1329         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1330           implemented RFE #1470316: allow "$" in variable names
1331
1332 2007-01-20 Raphael Neider <rneider AT web.de>
1333
1334         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1335
1336 2007-01-20 Raphael Neider <rneider AT web.de>
1337
1338         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1339         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1340         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1341         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1342           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1343         * device/lib/pic/libdev/pic*.c,
1344         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1345         * device/lib/pic/libdev/Makefile.in: show progress
1346
1347 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1348
1349         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1350         * support/scripts/sdcc_cygwin_mingw32,
1351         * support/scripts/sdcc_mingw32,
1352         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1353         conformance with autoconf 2.6
1354
1355 2007-01-19 Raphael Neider <rneider AT web.de>
1356
1357         * src/pic/device.c (register_map): fixed list construction
1358         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1359           (genMod): removed case for genModbits,
1360           (genModbits): removed as now unused/unimplemented
1361         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1362
1363 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1364
1365         * support/regression/tests/swap.c: added in response to #1638622
1366         * doc/sdccman.lyx: synced version, minor changes
1367
1368 2007-01-18 Borut Razem <borut.razem AT siol.net>
1369
1370         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1371           thanks to Gunther Jehle
1372         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1373         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1374           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1375           use filename in lineno instead.
1376         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1377           print the file name in ast_print()
1378
1379 2007-01-18 Borut Razem <borut.razem AT siol.net>
1380
1381         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1382           defined in MSVC
1383         * src/SDCC.lex: stringLiteral() returns const char pointer,
1384           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1385           fixed column counting
1386         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1387           accept const char pointer as parameter
1388         * src/SDCCdwarf2.c: corrected buffer size
1389
1390 2007-01-17 Borut Razem <borut.razem AT siol.net>
1391
1392         * support/Util/dbuf_string.c: fixed for amd64
1393
1394 2007-01-15 Borut Razem <borut.razem AT siol.net>
1395
1396         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1397           removed terminal symbol ELIPSIS, since it was never generated by the
1398           lexer and it was wrongly used in parameter_identifier_list rule
1399
1400 2007-01-15 Raphael Neider <rneider AT web.de>
1401
1402         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1403             code page and data banking description
1404         * src/pic/genarith.c,
1405         * src/pic/gen.h: removed bit arithmetic functions,
1406             updated exit(1) to exit(EXIT_FAILURE)
1407         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1408         * device/include/pic16/pic18f2455.h,
1409         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1410             TRISD and TRISE, fixed/added some bit names
1411         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1412         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1413             updated pic18f2455.{c,h} instead of duplicating them
1414
1415 2007-01-14 Borut Razem <borut.razem AT siol.net>
1416
1417         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1418           Cannot debug files that contain spaces in the path name
1419           by converting spaces in asm file name to underscores
1420
1421 2007-01-13 Borut Razem <borut.razem AT siol.net>
1422
1423         * doc/sdccman.lyx: fixed format errors
1424
1425 2007-01-10 Borut Razem <borut.razem AT siol.net>
1426
1427         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1428           codeseg/constseg #pragma fail
1429         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1430         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1431           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1432           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1433
1434 2007-01-09 Borut Razem <borut.razem AT siol.net>
1435
1436         * get rid of diagnistic.[ch], pretty-print.[ch],
1437           c-pretty-print.[ch], ... used just for error, warning, ...
1438           message formatting
1439         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1440           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1441           suppoprt/cpp2/pretty-print.[ch]:
1442           removed
1443         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1444           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1445           suppoprt/cpp2/sdcpp.dsp:
1446           changed
1447
1448 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1449
1450         * device/lib/printf_large.c (output_float): removed recursion,
1451           use smaller buffer on stack for mcs51,
1452           fixed bug printing 1.96
1453         * support/regression/tests/snprintf.c: added test
1454
1455 2007-01-07 Borut Razem <borut.razem AT siol.net>
1456
1457         * use dynamic memory buffers instead temporary files
1458         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1459           added
1460         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1461           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1462           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1463           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1464           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1465           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1466           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1467           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1468           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1469           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1470           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1471           support/Util/dbuf.c, support/Util/dbuf.h:
1472           modified
1473         * .version, sdcc.spec: bumped version to 2.6.4
1474
1475 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1476
1477         * src/port.h: added TARGET_Z80_LIKE macro
1478         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1479           output PSEG location if --xram-loc or --xstack-loc was used
1480         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1481
1482 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1483
1484         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1485         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1486         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1487         * sdcc.dsw: moved project files into subdir
1488         * as/hc08/as_hc08.dsp,
1489         * as/hc08/Makefile.bcc,
1490         * as/hc08/Makefile.in,
1491         * as/mcs51/Makefile.bcc,
1492         * as/mcs51/Makefile.in,
1493         * as/z80/Makefile.bcc,
1494         * as/z80/Makefile.in,
1495         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1496         * as/hc08/asm.h,
1497         * as/mcs51/asm.h,
1498         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1499         * as/hc08/asmain.c,
1500         * as/hc08/assym.c,
1501         * as/mcs51/asmain.c,
1502         * as/mcs51/assym.c,
1503         * as/z80/assym.c: removed include "strcmpi.h"
1504         * as/hc08/strcmpi.c,
1505         * as/hc08/strcmpi.h,
1506         * as/mcs51/strcmpi.c,
1507         * as/mcs51/strcmpi.h,
1508         * support/Util/strcmpi.c,
1509         * support/Util/strcmpi.h: removed files
1510         * as/strcmpi.c: added as_strncmpi()
1511
1512 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1513
1514         * sdcc.dsw: Added some dependencies on project config.dsp
1515
1516 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1517
1518         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1519           with [di]ram_start to fix a regresion
1520
1521 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1522
1523         * configure.in: added missing mcs51 in status output
1524         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1525         directory
1526         * debugger/mcs51/clean.mk (distclean): remove config.h
1527         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1528         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1529         options.h, s-options-h and options.c
1530         * support/cpp2/clean.mk: unused, removed
1531         * Makefile.common.in,
1532         * main_in.mk,
1533         * as/Makefile.in,
1534         * as/hc08/Makefile.in,
1535         * as/hc08/clean.mk,
1536         * as/mcs51/Makefile.in,
1537         * as/mcs51/clean.mk,
1538         * as/z80/clean.mk,
1539         * as/z80/conf.mk,
1540         * as/z80/Makefile.in,
1541         * as/z80/clean.mk,
1542         * as/link/Makefile.in,
1543         * as/link/hc08/Makefile.in,
1544         * as/link/hc08/clean.mk,
1545         * as/link/mcs51/Makefile.in,
1546         * as/link/mcs51/clean.mk,
1547         * as/link/z80/Makefile.in,
1548         * as/link/z80/clean.mk,
1549         * as/link/z80/conf.mk,
1550         * debugger/mcs51/Makefile.in,
1551         * debugger/mcs51/clean.mk,
1552         * device/include/Makefile.in,
1553         * device/lib/Makefile.in,
1554         * device/lib/mcs51/Makefile.in,
1555         * device/lib/pic/Makefile.in,
1556         * device/lib/pic/Makefile.common.in,
1557         * device/lib/pic/Makefile.subdir,
1558         * device/lib/pic/Makefile.rules,
1559         * device/lib/pic16/libio/Makefile.in,
1560         * device/lib/pic16/Makefile.subdir,
1561         * device/lib/pic16/libdev/Makefile.in,
1562         * device/lib/pic16/Makefile.rules,
1563         * device/lib/pic16/Makefile.common.in,
1564         * sim/ucsim/avr.src/Makefile.in,
1565         * sim/ucsim/main_in.mk,
1566         * sim/ucsim/cmd.src/Makefile.in,
1567         * sim/ucsim/doc/Makefile.in,
1568         * sim/ucsim/gui.src/Makefile.in,
1569         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1570         * sim/ucsim/gui.src/serio.src/Makefile.in,
1571         * sim/ucsim/hc08.src/Makefile.in,
1572         * sim/ucsim/libltdl/Makefile.in,
1573         * sim/ucsim/s51.src/Makefile.in,
1574         * sim/ucsim/sim.src/Makefile.in,
1575         * sim/ucsim/sim.src/conf.mk,
1576         * sim/ucsim/xa.src/Makefile.in,
1577         * sim/ucsim/z80.src/Makefile.in,
1578         * src/Makefile.in,
1579         * src/clean.mk,
1580         * src/port.mk,
1581         * support/cpp2/Makefile.in,
1582         * support/librarian/Makefile.in,
1583         * support/librarian/clean.mk,
1584         * support/makebin/Makefile.in,
1585         * support/makebin/clean.mk,
1586         * support/packihx/Makefile.in,
1587         * support/regression/Makefile.in,
1588         * support/regression/ports/ds390/spec.mk,
1589         * support/regression/ports/gbz80/spec.mk,
1590         * support/regression/ports/hc08/spec.mk,
1591         * support/regression/ports/mcs51/spec.mk,
1592         * support/regression/ports/mcs51-large/spec.mk,
1593         * support/regression/ports/mcs51-medium/spec.mk,
1594         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1595         * support/regression/ports/pic14/spec.mk,
1596         * support/regression/ports/pic16/spec.mk,
1597         * support/regression/ports/mcs51-stack-auto/spec.mk,
1598         * support/regression/ports/ucz80/spec.mk,
1599         * support/regression/ports/xa51/spec.mk,
1600         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1601         adding a slash after $(top_builddir) and/or adding @datarootdir@
1602         * configure.in,
1603         * debugger/mcs51/configure.in,
1604         * device/lib/pic/configure.in,
1605         * device/lib/pic16/configure.in,
1606         * sim/ucsim/configure.in,
1607         * support/cpp2/configure.in,
1608         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1609         * configure,
1610         * debugger/mcs51/configure,
1611         * device/lib/pic/configure,
1612         * device/lib/pic16/configure,
1613         * sim/ucsim/configure,
1614         * support/cpp2/configure,
1615         * support/packihx/configure: generated with autoconf 2.60
1616
1617 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1618
1619         * as/link/hc08/lkihx.c (newArea),
1620         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1621
1622 2007-01-02 Borut Razem <borut.razem AT siol.net>
1623
1624         * doc/sdccman.lyx: documented #pragma sdcc_hash
1625         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1626           initialized to 0
1627         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1628
1629 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1630
1631         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1632         empty 'while'-loop to work correctly, see regression test 'while.c'
1633         * support/regression/tests/while.c: added
1634
1635 2007-01-01 Borut Razem <borut.razem AT siol.net>
1636
1637         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1638           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1639           support/cpp2/libcpp/sdcpp.c:
1640           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1641         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1642         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1643
1644 2006-12-31 Borut Razem <borut.razem AT siol.net>
1645
1646         * SDCPP synchronized with GCC CPP release version 4.1.1,
1647           currently the latest release:
1648         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1649           support/cpp2/libcpp/include/cpp-id-data.h
1650           support/cpp2/libiberty/fopen_unlocked.c
1651           support/cpp2/libiberty/md5.c
1652           support/cpp2/md5.h
1653           support/cpp2/opt-functions.awk
1654           support/cpp2/opt-gather.awk
1655           support/cpp2/optc-gen.awk
1656           support/cpp2/opth-gen.awk:
1657           added
1658         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1659           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1660           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1661           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1662           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1663           support/cpp2/diagnostic.h, support/cpp2/except.h,
1664           support/cpp2/hwint.h, support/cpp2/input.h,
1665           support/cpp2/intl.h, support/cpp2/move-if-change,
1666           support/cpp2/opts.c, support/cpp2/opts.h,
1667           support/cpp2/output.h, support/cpp2/prefix.c,
1668           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1669           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1670           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1671           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1672           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1673           support/cpp2/version.c:
1674           modified
1675         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1676           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1677           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1678           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1679           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1680           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1681           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1682           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1683           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1684           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1685           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1686           moved
1687         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1688           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1689           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1690           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1691           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1692           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1693           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1694           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1695           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1696           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1697           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1698           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1699           support/cpp2/system.h:
1700           deleted / moved
1701
1702 2006-12-31 Borut Razem <borut.razem AT siol.net>
1703
1704         * configure.in, configure: fixed bug #1538756: configure dies if bison
1705           and flex are not installed, 2nd try
1706
1707 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1708
1709         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1710         400.x for better code in RFE 899102
1711
1712 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1713
1714         * src/SDCCpeeph.c (deadMove),
1715         * src/port.h,
1716         * src/mcs51/peep.h: renamed 'op' by 'reg'
1717         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1718         (scan4op): small change for removeDeadMove(), added support for
1719         'callee saves' and/or PACLL function calls,
1720         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1721         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1722         left in new dispatcher mcs51DeadMove()
1723         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1724         removeDeadMove()
1725         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1726
1727 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1728
1729         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1730           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1731
1732 2006-12-30 Borut Razem <borut.razem AT siol.net>
1733
1734         * support/cpp2/spacs.h: deleted from svn
1735         * configure.in, configure: fixed bug #1538756: configure dies if bison
1736           and flex are not installed
1737
1738 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1739
1740         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1741           with this z80 passes printf float test when enabled
1742         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1743
1744 2006-12-28 Borut Razem <borut.razem AT siol.net>
1745
1746         * support/cpp2/config.in, support/cpp2/configure.in,
1747           support/cpp2/configure, support/cpp2/Makefile.in:
1748           fix for the solaris build
1749
1750 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1751
1752         * src/SDCC.y (type_specifier2, pointer),
1753         * src/SDCCsymt.h,
1754         * src/SDCCsymt.c (mergeSpec, checkSClass),
1755         * support/Util/SDCCerr.c,
1756         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1757         * support/valdiag/valdiag.py: Allow test cases to specify
1758           required language standard
1759         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1760         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1761
1762 2006-12-27 Borut Razem <borut.razem AT siol.net>
1763
1764         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1765         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1766           mbchar removed
1767         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1768           fixed for borland C
1769         * support/cpp2/libiberty/Makefile.bcc: updated
1770         * src/pic16/main.c: fixed #pragma udata handling
1771         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1772
1773 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1774
1775         * src/SDCCpeeph.c: made labelHashEntry global,
1776         made pcDistance, FBYNAME static,
1777         (pcDistance): made static, use isComment and isLabel,
1778         (deadMove): added,
1779         (getLabelRef): added, extracted from labelRefCount(),
1780         (labelRefCount): use new getLabelRef(),
1781         (callFuncByName): made static, added deadMove,
1782         use isComment and isLabel,
1783         (newPeepRule): made static, set isLabel,
1784         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1785         labels from peephole rules,
1786         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1787         when isComment or isLabel is set
1788         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1789         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1790         to make them global
1791         * src/mcs51/peep.h: added
1792         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1793         * src/port.h: added peep->deadMove to port structure
1794         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1795         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1796         deadMove, finally removed no. 1 and 2
1797         * src/mcs51/gen.c,
1798         * src/pic/gen.c,
1799         * src/z80/gen.c,
1800         * src/z80/ralloc.c,
1801         * src/pic16/gen.c,
1802         * src/ds390/gen.c,
1803         * src/hc08/gen.c: mark lines with isComment or isLabel
1804         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1805         * .version,
1806         * sdcc.spec: bumped version to 2.6.3
1807
1808 2006-12-26 Borut Razem <borut.razem AT siol.net>
1809
1810         * support/cpp2/Makefile.in: added dependency on options.h
1811         * configure: regenerated
1812         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1813         * support/cpp2/Makefile.in: added vasprintf.c
1814
1815 2006-12-25 Borut Razem <borut.razem AT siol.net>
1816
1817         * SDCPP synchronized with GCC CPP release version 3.4.6,
1818           the latest release before 4.x:
1819         * support/cpp2/Makefile.in, support/cpp2/config.h,
1820           support/cpp2/configure, support/cpp2/configure.in,
1821           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1822           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1823           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1824           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1825           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1826           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1827           support/cpp2/cpptrad.c, support/cpp2/except.h,
1828           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1829           support/cpp2/hwint.h, support/cpp2/intl.h,
1830           support/cpp2/line-map.c, support/cpp2/line-map.h,
1831           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1832           support/cpp2/output.h, support/cpp2/prefix.c,
1833           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1834           support/cpp2/system.h, support/cpp2/version.c:
1835           modified
1836         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1837           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1838           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1839           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1840           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1841           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1842           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1843           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1844           support/cpp2/move-if-change, support/cpp2/opts.c,
1845           support/cpp2/opts.h, support/cpp2/opts.sh,
1846           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1847           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1848           support/cpp2/win32, support/cpp2/win32/dirent.c,
1849           support/cpp2/win32/dirent.h:
1850           added
1851         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1852         * support/cpp2/sdcpp.h: renamed from sdcc.h
1853         * sdcppinit.c: deleted
1854
1855 2006-12-23 Borut Razem <borut.razem AT siol.net>
1856
1857         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1858           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1859           preproc.c: an other try to fix bug #982435: introduced
1860           -pedantic-parse-number command line option and pedantic_parse_number
1861           pragma
1862
1863 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1864
1865         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1866            BSEG handling,
1867           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1868            corrected overlayed areax addresses, warn about memory overlaps
1869         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1870         * src/avr/main.c,
1871         * src/ds390/main.c,
1872         * src/hc08/main.c,
1873         * src/mcs51/main.c,
1874         * src/pic16/main.c,
1875         * src/pic/main.c,
1876         * src/xa51/main.c,
1877         * src/z80/main.c,
1878         * src/port.h: added xabs_name and iabs_name
1879         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1880           (glue, emitMaps): create and emit maps d_abs and i_abs
1881         * src/SDCCglue.h: cosmetic changes
1882         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1883         * src/SDCCmem.h,
1884         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1885           (allocDefault): put absolute, initialized globals in them
1886         * support/regression/tests/absolute.c: added absolute bdata test
1887         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1888
1889 2006-12-20 Borut Razem <borut.razem AT siol.net>
1890
1891         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1892         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1893           added regression test for bug #982435
1894
1895 2006-12-18 Borut Razem <borut.razem AT siol.net>
1896
1897         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1898         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1899           small cosmetic changes
1900         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1901         * support/regression/tests/bug-1351710.c: added regression test
1902
1903 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1904
1905         * doc/sdccman.lyx: added the long missed iCode table
1906           "<where is figure II?>", added links to wiki
1907
1908 2006-12-17 Borut Razem <borut.razem AT siol.net>
1909
1910         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1911           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1912           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1913           unified table driven pragma handling, pragma argument type checking
1914         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1915           current one - version 1.1.3
1916         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1917
1918 2006-12-13 Raphael Neider <rneider AT web.de>
1919
1920         * src/pic/device.h: removed AssignedMemory structure and macros
1921         * src/pic/device.c: removed global finalMapping (linker assigns
1922             memory locations),
1923           (register_map): add SFRs to remembered memRanges
1924           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1925           assignFixedRegisters,assignRelocatableRegisters): removed,
1926           (setMaxRAM,validAddress): adapted accordingly,
1927           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1928             reasonably sized sharebanks,
1929         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1930           (allDefsOutOfRange): removed unused code,
1931         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1932             handling
1933         * src/pic/pcode.c (register_reassign): removed recursion warning,
1934             fired far too often,
1935         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1936             to use existing pic14_stringInSet() to avoid duplicate symbols,
1937             tidied up the code a bit,
1938           (pic14printLocals): added in symmetry to printExterns, replaces
1939             writeUsedRegs more or less,
1940           (picglue): call new pic14_printLocals(),
1941         * device/include/pic/pic*.h: removed #pragma memmap directives,
1942             information gathered from include/pic/pic14devices.txt
1943         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1944
1945 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1946
1947         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1948
1949 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1950
1951         * device/include/mcs51/cc2430.h: fixed missing ';'
1952
1953 2006-12-10 Raphael Neider <rneider AT web.de>
1954
1955         * device/lib/pic16/libc/stdio/vfprintf.c,
1956         * device/lib/pic16/libc/stdio/printf_small.c,
1957         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1958           char arguments, as char varargs are cast to int by the caller,
1959           hopefully fixes #1604915 (other device libraries are still affected)
1960
1961 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1962
1963         * src/mcs51/ralloc.c (packRegsForAssign),
1964         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1965
1966 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1967
1968         * device/include/malloc.h: removed init_dynamic_memory
1969         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1970           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1971         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1972         * device/lib/libsdcc.lib,
1973         * device/lib/Makefile.in,
1974         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1975         * doc/sdccman.lyx: documented use of new _heap.c
1976         * support/regression/tests/malloc.c: removed init_dynamic_memory
1977         * src/cdbFile.c(spacesToUnderscores): new function,
1978           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1979           1068030
1980         * device/include/tinibios.h: removed defines for putchar and getchar
1981         * device/lib/ds390/Makefile.in: added putchar.c
1982         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1983
1984 2006-12-09 Borut Razem <borut.razem AT siol.net>
1985
1986         * support/cpp2/sdcc.h: prevent multiple inclusion
1987         * support/cpp2/options.h: deleted
1988
1989 2006-12-08 Borut Razem <borut.razem AT siol.net>
1990
1991         * support/cpp2/sdcc.h: removed x*alloc() macros
1992         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1993         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1994           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1995         * support/cpp2/system.h: moved #include "sdcc.h"
1996         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1997           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1998           added
1999         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2000           -funsigned-char options
2001         * support/cpp2/sdcppmain.c: fixed bug 1611411
2002
2003 2006-12-07 Borut Razem <borut.razem AT siol.net>
2004
2005         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2006           directive
2007
2008 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2009
2010         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2011         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2012         * doc/sdccman.lyx,
2013         * .version: bumped to 2.6.2 because a) it's been a while
2014           b) the linker sources have moved c) the preprocessor is upgraded
2015
2016 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2017
2018         * support/regression/tests/snprintf.c: some checks
2019         * lib/src/printf_large.c: %bc: read char instead of int from stack
2020
2021 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2022
2023         * device/include/mcs51/cc2430.h: inserted _XPAGE
2024
2025 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2026
2027         * device/include/mcs51/cc2430.h: added
2028
2029 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2030
2031         * device/include/asm/default/features.h,
2032         * device/include/asm/ds390/features.h,
2033         * device/include/mcs51/at89s53.h,
2034         * device/include/ser.h,
2035         * device/include/ser_ir.h,
2036         * device/include/serial.h: changed keywords to double underscore variants,
2037           fixes bug 1590261 some more, thanks Steven Borley
2038
2039 2006-12-01 Raphael Neider <rneider AT web.de>
2040
2041         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2042           but emit warning (recursion is not supported for pic14)
2043
2044 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2045
2046         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2047         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2048
2049 2006-11-30 Raphael Neider <rneider AT web.de>
2050
2051         * src/pic/device.c (dump_sfr): always emit symbols
2052         * src/pic/glue.c (pic14printPublics): fixed typo
2053
2054 2006-11-30 Raphael Neider <rneider AT web.de>
2055
2056         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2057           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2058           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2059            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2060            a sharebank, use a non-shared bank for the stack if none available
2061         * src/pic/device.h (struct memRange): added linked list next field,
2062           added prototypes for above functions
2063         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2064           (typeRegWithIdx): accept fixed and unfixed stack registers
2065         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2066           the stack, handle shared and banked stack (except for WSAVE),
2067           (insertBankSel): removed useless optimization (will never fire),
2068           (FixRegisterBanking): added optimization for devices with only one
2069           possibly aliased bank of memory, like 16f84
2070         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2071           devices have no SHAREBANK in the linker script
2072         * device/include/pic/pic14devices.txt: documented memmap
2073         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2074
2075 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2076
2077         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2078           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2079           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2080           genhc08Code): switched most of the D (debug) macros to DD (detailed
2081           debug) macros to better control clutter in the generated .asm file.
2082         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2083           genRightShift): fixed bug with non-constant bit shift stored to
2084           a volatile result (SF Open Discussion forum thread #1616749).
2085           Single byte case is not yet optimized.
2086
2087 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2088
2089         * device/include/asm/mcs51/features.h,
2090         * device/include/malloc.h,
2091         * device/include/stdio.h: changed keywords to double underscore variants,
2092           fixes bug 1590261
2093
2094 2006-11-27 Borut Razem <borut.razem AT siol.net>
2095
2096         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2097           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2098           support/cpp2/output.h, support/cpp2/cppinit.c,
2099           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2100           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2101           support/cpp2/cppdefault.c, support/cpp2/system.h,
2102           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2103           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2104           support/cpp2/prefix.c, support/cpp2/except.h,
2105           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2106           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2107           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2108           support/cpp2/version.c, support/cpp2/cppmain.c,
2109           support/cpp2/version.h, support/cpp2/hashtable.c,
2110           support/cpp2/cpperror.c:
2111           synchronized with GCC CPP release version 3.3.6,
2112           the latest where cppmain.c still exists.
2113         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2114           support/cpp2/sdcppinit.c: added
2115
2116 2006-11-27 Borut Razem <borut.razem AT siol.net>
2117
2118         * support/cpp2/cpplex.c:
2119           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2120           synchronization
2121         * support/cpp2/cpplib.c: removed definitions of unused variables
2122
2123 2006-11-26 Borut Razem <borut.razem AT siol.net>
2124
2125         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2126           since they are redefined by macros in support/cpp2/sdcc.h
2127         * support/cpp2/sdcc.h: x*alloc macro redefinition
2128
2129 2006-11-25 Borut Razem <borut.razem AT siol.net>
2130
2131         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2132           support/cpp2/configure, support/cpp2/Makefile.in,
2133           support/cpp2/cppfiles.c, support/cpp2/output.h,
2134           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2135           support/cpp2/config.h, support/cpp2/cpplib.h,
2136           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2137           support/cpp2/cppdefault.c, support/cpp2/config.in,
2138           support/cpp2/system.h, support/cpp2/cpplex.c,
2139           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2140           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2141           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2142           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2143           support/cpp2/configure.in, support/cpp2/intl.h,
2144           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2145           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2146           support/cpp2/version.c, support/cpp2/cppmain.c,
2147           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2148           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2149           support/cpp2/cpperror.c,
2150           support/cpp2/libiberty/safe-ctype.c,
2151           support/cpp2/libiberty/safe-ctype.h,
2152           support/cpp2/libiberty/splay-tree.c,
2153           support/cpp2/libiberty/obstack.c,
2154           support/cpp2/libiberty/lbasename.c,
2155           support/cpp2/libiberty/splay-tree.h,
2156           support/cpp2/libiberty/obstack.h:
2157           synchronized with GCC CPP release version 3.2.3,
2158           the latest before integration of cpp into gcc
2159         * support/cpp2/except.h, support/cpp2/line-map.c,
2160           support/cpp2/line-map.h,
2161           support/cpp2/libiberty/hex.c,
2162           support/cpp2/libiberty/concat.c,
2163           support/cpp2/libiberty/filenames.h: added
2164         * support/cpp2/intl.c: deleted
2165
2166 2006-11-24 Borut Razem <borut.razem AT siol.net>
2167
2168         * src/SDCC.y: enabled compilation of empty source file
2169         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2170           "ISO C forbids an empty source file"
2171         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2172           if all the code is ifdefed out.
2173
2174 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2175
2176         * src/hc08/gen.c (genPcall): fix for bug #1601032
2177
2178 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2179
2180         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2181         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2182         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2183         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2184         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2185         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2186         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2187         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2188         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2189         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2190         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2191         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2192         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2193         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2194         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2195           Renamed to all upper case as per the standard set by SiLabs
2196
2197 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2198
2199         * device/include/mcs51/C8051F520.h: new, added
2200         * device/include/mcs51/compiler.h: added link about predefined macros
2201
2202 2006-11-23 Raphael Neider <rneider AT web.de>
2203
2204         * src/regression/Makefile: add -L path to fresh library
2205         * src/regression/simulate: emphasize FAILED output
2206         * src/regression/create_stc: output _failures from gpsim
2207         * src/regression/compare4.c,
2208         * src/regression/rotate6.c: fixed char literals,
2209           all compile, all run =8-D
2210
2211         * src/pic/pcode.h: added isPCASMDIR macro
2212         * src/pic/gen.c (genAnd): fixed bit offset
2213         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2214           packBits): unified register numbering schemes,
2215           (newReg): do not insert stack registers into hash table,
2216           (initStack): unpinned pseudo stack, simplified,
2217           (typeRegWithIdx): fixed retrieval of stack registers,
2218         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2219           (pCodeReplace): removed invalid assertion,
2220           (insertPCodeInstruction): fixed newly added labels,
2221           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2222           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2223           DumpFlow): removed unsed (broken?) code,
2224           (insertBankSel): prevent STATUS from being BANKSELed,
2225           (FixRegisterBanking): rewritten from scratch, implemented generic
2226             optimizations (suppress BANKSELs to same register and to registers
2227             present in all banks),
2228           (AnalyzeBanking): update flow after BANKSELection
2229
2230         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2231             sharebank, let linker place it, mark STKxx symbols as emitted
2232
2233 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2234
2235         * src/regression/arrays.c,
2236         * src/regression/bank1.c,
2237         * src/regression/bool2.c,
2238         * src/regression/compare7.c,
2239         * src/regression/compare8.c,
2240         * src/regression/compare9.c,
2241         * src/regression/compare10.c,
2242         * src/regression/configword.c,
2243         * src/regression/for.c,
2244         * src/regression/mult1.c,
2245         * src/regression/pointer1.c,
2246         * src/regression/rotate6.c,
2247         * src/regression/string1.c,
2248         * src/regression/struct1.c,
2249         * src/regression/Makefile: make PIC14 regression tests run again
2250           (3 fail, 6 won't compile)
2251
2252 2006-11-21 Raphael Neider <rneider AT web.de>
2253
2254         * device/include/pic16/pic18f4550.h,
2255         * device/include/pic16/pic18f4455.h,
2256         * device/lib/pic16/libdev/pic18f4550.c,
2257         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2258         * configure.in: removed superfluous closing bracket
2259
2260 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2261
2262         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2263           always positive.
2264
2265 2006-11-21 Raphael Neider <rneider AT web.de>
2266
2267         * src/pic/device.{c,h}: added pic14_getPIC()
2268         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2269           (genAnd): added PIC code for one case, fixes #1597044
2270         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2271           SFRs that are present in all banks (e.g., STATUS)
2272
2273 2006-11-20 Raphael Neider <rneider AT web.de>
2274
2275         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2276           INCFSZ/INCFSZW and declared them as changing Z bit,
2277           (insertPCodeInstruction): correctly invert the above instructions,
2278           fixes #1599333,
2279           (DoBankSelect): don't panic on po_immediates
2280
2281 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2282
2283         * as/link/aslink.h,
2284         * as/link/mcs51/lkihx.c (newArea),
2285         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2286         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2287
2288 2006-11-11 Raphael Neider <rneider AT web.de>
2289
2290         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2291           bitfield symbols, fixes #1579535 (once more...).
2292
2293 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2294
2295         * support/regression/generate-cases.py,
2296         * support/regression/fwk/include/testfwk.h,
2297         * support/regression/fwk/lib/testfwk.c: used code pointers,
2298           (about 50kByte less code generated for mcs51)
2299
2300 2006-11-06 Borut Razem <borut.razem AT siol.net>
2301
2302         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2303           debugger/mcs51/configure: fixed failed check because the function
2304           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2305           who submitted the patch for gpsim.
2306         * debugger/mcs51/configure.in: removed the result message
2307         * debugger/mcs51/Makefile.in: fixed the config.status warning
2308           "... seems to ignore the --datarootdir setting"
2309
2310 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2311
2312         * device/include/mcs51/c8051f020.h,
2313         * device/include/mcs51/c8051f040.h,
2314         * device/include/mcs51/c8051f060.h,
2315         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2316         * src/z80/gen.c (gencjneshort),
2317         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2318
2319 2006-10-31 Borut Razem <borut.razem AT siol.net>
2320
2321         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2322           debugger/mcs51/configure: get readline version
2323
2324 2006-10-30 Borut Razem <borut.razem AT siol.net>
2325
2326         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2327         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2328           debugger/mcs51/configure: locate readline even when cross compiling
2329         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2330
2331 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2332
2333         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2334           serial port.
2335
2336 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2337
2338         * device/include/malloc.h,
2339         * device/lib/calloc.c,
2340         * device/lib/free.c,
2341         * device/lib/malloc.c,
2342         * device/lib/realloc.c: moved definition of struct into sources
2343         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2344
2345 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2346
2347         * as/asx8051.dsp: corrected output directories
2348         * as/link/hc08: new directory for hc08 linker
2349         * as/hc08/aslink.h,             as/link/aslink.h,
2350         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2351         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2352         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2353         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2354         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2355         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2356         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2357         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2358         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2359         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2360         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2361         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2362         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2363         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2364         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2365         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2366         * as/link/hc08/conf.mk,
2367         * configure,
2368         * configure.in,
2369         * Makefile.in,
2370         * sdcc.dsw: moved hc08 linker to as/link/hc08
2371         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2372         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2373         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2374         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2375         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2376         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2377         * as/link/mcs51/aslink.dsp,
2378         * as/link/mcs51/Makefile.in: factored out the common files
2379         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2380         * as/clean.mk: extra cleaning common files
2381         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2382         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2383         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2384
2385 2006-10-29 Raphael Neider <rneider AT web.de>
2386
2387         * src/pic/ralloc.c (newReg): create aliases for registers with
2388           multiple names to fix #1579535 and #1584001,
2389           (regWithIdx,dirregWithName): resolve aliases on lookup
2390         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2391           bankselect
2392         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2393           to prevent build errors on small devices
2394
2395 2006-10-28 Raphael Neider <rneider AT web.de>
2396
2397         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2398           assumption within interrupt handlers, fixes #1584940
2399         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2400           "emitted" to avoid emitting them again in udata
2401
2402 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2403
2404         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2405         Removed.
2406
2407 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2408
2409         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2410         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2411         on/off CR to CRLF conversion.
2412
2413 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2414
2415         * doc/sdccman.lyx: updated IRQ section
2416
2417 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2418
2419         * device/lib/serial_io.c: removed
2420         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2421         replacements for serial_io.c
2422
2423 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2424
2425         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2426
2427 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2428
2429         * device/lib/serial_io.c: Default putchar() and getchar() for
2430           mcs51 uses serial port.
2431
2432 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2433
2434         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2435
2436 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2437
2438         * support/regression/ports/mcs51/support.c: smaller
2439         _sdcc_external_startup()
2440         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2441
2442 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2443
2444         * device/lib/gbz80/crt0.s,
2445         * device/lib/gbz80/crt0_rle.s,
2446         * device/lib/gbz80/div.s,
2447         * device/lib/gbz80/fstubs.s,
2448         * device/lib/gbz80/heap.s,
2449         * device/lib/gbz80/mul.s,
2450         * device/lib/gbz80/putchar.s,
2451         * device/lib/gbz80/stubs.s,
2452         * device/lib/z80/crt0.s,
2453         * device/lib/z80/crt0_rle.s,
2454         * device/lib/z80/div.s,
2455         * device/lib/z80/fstubs.s,
2456         * device/lib/z80/heap.s,
2457         * device/lib/z80/mul.s,
2458         * device/lib/z80/putchar.s,
2459         * device/lib/z80/stubs.s: reverted, I was mistaken
2460
2461 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2462
2463         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2464         * support/regression/ports/mcs51/support.c: removed race
2465         condition on TI in _putchar allowing to use serial port mode 0
2466
2467 2006-10-20 Borut Razem <borut.razem AT siol.net>
2468
2469         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2470
2471 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2472
2473         * device/lib/gbz80/crt0.s,
2474         * device/lib/gbz80/crt0_rle.s,
2475         * device/lib/gbz80/div.s,
2476         * device/lib/gbz80/fstubs.s,
2477         * device/lib/gbz80/heap.s,
2478         * device/lib/gbz80/mul.s,
2479         * device/lib/gbz80/putchar.s,
2480         * device/lib/gbz80/stubs.s,
2481         * device/lib/z80/crt0.s,
2482         * device/lib/z80/crt0_rle.s,
2483         * device/lib/z80/div.s,
2484         * device/lib/z80/fstubs.s,
2485         * device/lib/z80/heap.s,
2486         * device/lib/z80/mul.s,
2487         * device/lib/z80/putchar.s,
2488         * device/lib/z80/stubs.s: removed all leading underscores from area names
2489
2490 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2491
2492         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2493           regression tests are not waiting in the simulator for simulated
2494           transmission of debug output
2495
2496 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2497
2498         * device/lib/printf_large.c: slightly smaller
2499         * doc/sdccman.lyx: do not use spaces within html links
2500
2501 2006-10-16 Borut Razem <borut.razem AT siol.net>
2502
2503         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2504           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2505           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2506           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2507           debugger/mcs51/configure:
2508           [ 1185668 ] add gnu readline support to sdcdb - enabled
2509
2510 2006-10-16 Raphael Neider <rneider AT web.de>
2511
2512         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2513           fixes #1577882, removes close to all banking optimizations
2514
2515 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2516
2517         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2518           variables in code memory
2519         * support/regression/tests/absolute.c: added test for this
2520
2521 2006-10-15 Raphael Neider <rneider AT web.de>
2522
2523         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2524           devices,
2525           (BankSelect): emit BANKSEL before touching linker-placed regs,
2526           fixes #1570934
2527
2528 2006-10-10 Raphael Neider <rneider AT web.de>
2529
2530         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2531         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2532         * src/pic/main.c (_pic14_parseOptions),
2533         * src/pic/main.h: mostly reverted to previous state, now use results
2534             from SDCCmain.c's argument parsing
2535
2536 2006-10-10 Borut Razem <borut.razem AT siol.net>
2537
2538         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2539           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2540           [ 1185668 ] add gnu readline support to sdcdb -
2541           prepared for READLINE, not enabled yet,
2542           thanks to <tal.bav AT gmail.com>
2543
2544 2006-10-10 Raphael Neider <rneider AT web.de>
2545
2546         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2547         * src/pic16/devices.inc,
2548         * device/include/pic16 (pic18f[24]620.h),
2549         * device/include/pic18fregs.h,
2550         * device/lib/pic16/pics.all,
2551         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2552             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2553             Gary Plumbridge and Anton Strobl
2554
2555 2006-10-10 Raphael Neider <rneider AT web.de>
2556
2557         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2558           --stack-siz=NUM options to configure the argument passing stack
2559         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2560         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2561           (pic14_getSharebankSize): obey --stack-siz=NUM,
2562           (pic14_getSharebankAddress): obey --stack-loc=NUM
2563
2564 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2565
2566         * doc/sdccman.lyx: added to the manual
2567         * doc/figures/ddd_example.png: added (neither pdflatex nor
2568         most browsers seem to like the .eps file)
2569
2570 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2571
2572         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2573         to /tmp and /var/tmp acc. LSB
2574         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2575         RESULT_TYPE_IFX
2576         * support/regression/tests/onebyte.c: added test
2577
2578 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2579
2580         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2581
2582 2006-10-05 Borut Razem <borut.razem AT siol.net>
2583
2584         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2585           thanks to dfulab:
2586           - sdcc.dsw: changed property eol-style to CRLF
2587           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2588
2589 2006-10-04 Raphael Neider <rneider AT web.de>
2590
2591         * device/include/pic/{pic16f84.h,pic16f84a.h},
2592         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2593           from patch #1522504, thanks to Robas Teodor
2594
2595 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2596
2597         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2598           fixes bug 1566015
2599
2600 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2601
2602         * src/pic16/glue.c (pic16emitMaps),
2603         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2604         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2605         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2606         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2607           Philipp Krause
2608         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2609         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2610
2611 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2612
2613         * support/librarian/sdcclib.c: Added option -l.
2614         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2615           usage totals.
2616         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2617           using Windows command prompt.
2618
2619 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2620
2621         * device/lib/libsdcc.lib: added module rand
2622         * src/ds390/ralloc.c (rematStr),
2623         * src/hc08/ralloc.c (rematStr),
2624         * src/mcs51/ralloc.c (rematStr),
2625         * src/z80/ralloc.c (rematStr): made output more consistent
2626         * src/mcs51/gen.c: cosmetic changes
2627
2628 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * src/port.h: added mem.cabs_name to PORT
2631         * src/ds390/main.c,
2632         * src/hc08/main.c,
2633         * src/mcs51/main.c,
2634         * src/pic16/main.c,
2635         * src/pic/main.c,
2636         * src/xa51/main.c,
2637         * src/z80/main.c: added cabs_name initializers
2638         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2639           constants
2640           (emitMaps): emit absolutes in code memory into cabs_name
2641         * src/SDCCmem.c,
2642         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2643         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2644         * support/regression/fwk/include/testfwk.h: added define for at
2645         * support/regression/tests/absolute.c: added, new
2646
2647 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2648
2649         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2650           optimizations, see also patch 887161 by Stas Sergeev
2651         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2652           to be necessary anymore,
2653           (102, 103, 104, 127): renamed all occurances of bp to _bp
2654
2655 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2656
2657         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2658           thanks Weston T. Schmidt for patch 1555221
2659         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2660         * src/SDCCicode.c(geniCodeMultiply): small optimization
2661
2662 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2663
2664         * device/include/stdlib.h: added rand prototypes
2665         * device/lib/rand.c: new, added
2666         * device/lib/Makefile.in: added rand.c
2667         * src/z80/peeph.def,
2668         * src/z80/peeph-gbz80.def,
2669         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2670
2671 2006-09-20 Raphael Neider <rneider AT web.de>
2672
2673         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2674
2675 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2676
2677         * as/link/aslink.h: cosmetic changes
2678         * as/link/mcs51/Makefile.in,
2679         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2680
2681 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2682
2683         * as/link/aslink.h,
2684         * as/link/mcs51/aslink.h,
2685         * as/link/z80/aslink.h: merged and moved to as/link/
2686         * as/link/lkstore.c,
2687         * as/link/mcs51/lkstore.c: moved to as/link/
2688         * as/link/clean.mk: remove *.o
2689         * as/link/mcs51/alloc.h: deleted
2690         * as/link/mcs51/lkarea.c: added lnksect prototype
2691         * as/link/mcs51/lkdata.c,
2692         * as/link/mcs51/lklex.c,
2693         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2694         * as/link/mcs51/lkmem.c,
2695         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2696         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2697         * as/link/mcs51/aslink.dsp,
2698         * as/link/mcs51/Makefile.aslink,
2699         * as/link/mcs51/Makefile.bcc,
2700         * as/link/mcs51/Makefile.in: updated for moved files
2701         * as/link/z80/lkarea.c,
2702         * as/link/z80/lkhead.c,
2703         * as/link/z80/lklex.c,
2704         * as/link/z80/lklibr.c,
2705         * as/link/z80/lklist.c,
2706         * as/link/z80/lkmain.c,
2707         * as/link/z80/lkrloc.c,
2708         * as/link/z80/lksym.c: synced with mcs51
2709         * as/link/z80/lkdata.c,
2710         * as/link/z80/lkeval.c,
2711         * as/link/z80/lkihx.c,
2712         * as/link/z80/lks19.c: cosmetic changes
2713         * as/link/z80/Makefile.in,
2714         * as/link/z80/linkgbz80.dsp,
2715         * as/link/z80/linkz80.dsp: updated for moved files
2716
2717 2006-09-16 Borut Razem <borut.razem AT siol.net>
2718
2719         * debugger/mcs51/sdcdb.c: partially fixed
2720           [ 1203664 ] sdcdb fails to open files w. two "." periods
2721         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2722           debugger/mcs51/symtab.h: fixed indenting
2723         * configure.in, configure: up to date with latest Maarten's changes
2724
2725 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2726
2727         as/link/mcs51
2728         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2729         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2730         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2731         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2732         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2733         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2734         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2735         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2736         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2737         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2738         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2739         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2740         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2741         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2742         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2743         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2744         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2745         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2746         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2747         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2748         as/link/mcs51/alloc.h,
2749         as/link/mcs51/clean.mk,
2750         as/link/mcs51/conf.mk,
2751         as/link/mcs51/Makefile.bcc,
2752         as/link/mcs51/Makefile.in,
2753         as/link/mcs51/readme.390,
2754         as/link/mcs51/strcmpi.c,
2755         as/link/mcs51/strcmpi.h,
2756         as/mcs51/clean.mk,
2757         as/mcs51/Makefile.bcc,
2758         as/mcs51/Makefile.in,
2759         configure,
2760         Makefile.in,
2761         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2762
2763 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2764
2765         * as/link,
2766         * as/link/Makefile.in,
2767         * as/link/z80/linkgbz80.dsp,
2768         * as/link/z80/linkz80.dsp,
2769         * configure,
2770         * link,
2771         * link/clean.mk,
2772         * link/Makefile.in,
2773         * link/README,
2774         * link/z80,
2775         * link/z80/aslink.h,
2776         * link/z80/clean.mk,
2777         * link/z80/conf.mk,
2778         * link/z80/linkgbz80.dsp,
2779         * link/z80/linkz80.dsp,
2780         * link/z80/lkarea.c,
2781         * link/z80/lkdata.c,
2782         * link/z80/lkeval.c,
2783         * link/z80/lkgb.c,
2784         * link/z80/lkgg.c,
2785         * link/z80/lkhead.c,
2786         * link/z80/lkihx.c,
2787         * link/z80/lklex.c,
2788         * link/z80/lklibr.c,
2789         * link/z80/lklist.c,
2790         * link/z80/lkmain.c,
2791         * link/z80/lkrloc.c,
2792         * link/z80/lks19.c,
2793         * link/z80/lksym.c,
2794         * link/z80/Makefile.in,
2795         * Makefile.in,
2796         * sdcc.dsw: moved link/ to as/link/
2797
2798 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2799
2800         * as/mcs51/i51mch.c (machine): fixed warning
2801
2802 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2803
2804         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2805
2806 2006-09-09 Borut Razem <borut.razem AT siol.net>
2807
2808         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2809           sdcdb WIN32 native port
2810         * src/clean.mk: fixed
2811
2812 2006-09-08 Borut Razem <borut.razem AT siol.net>
2813
2814         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2815
2816 2006-09-08 Raphael Neider <rneider AT web.de>
2817
2818         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2819         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2820             to gplink to disable processor mismatch warning and to allow
2821             the use of devices with only aliased (shared) memory banks,
2822           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2823
2824 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2825
2826         * doc/sdccman.lyx: Some re-formating plus example on using
2827           #pragma preproc_asm +/-
2828
2829 2006-09-07 Borut Razem <borut.razem AT siol.net>
2830
2831         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2832           section
2833
2834 2006-09-06 Borut Razem <borut.razem AT siol.net>
2835
2836         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2837           line at sdcc.nsi:153
2838         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2839
2840 2006-09-05 Borut Razem <borut.razem AT siol.net>
2841
2842         * configure.in, configure: support for winsock2
2843         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2844           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2845           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2846           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2847           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2848
2849 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2850
2851         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2852           and OP_DEFS
2853         * support/regression/tests/bug1551947.c: new, added
2854         * src/SDCCsymt.h: strings are char* not byte*
2855
2856 2006-09-05 Raphael Neider <rneider AT web.de>
2857
2858         * device/lib/pic16/libdev/pic18f4550.c,
2859           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2860             declarations/definitions from patch #1520949
2861
2862 2006-09-05 Raphael Neider <rneider AT web.de>
2863
2864         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2865           byte-aligned bitfields, fixes #1539278
2866
2867 2006-09-05 Raphael Neider <rneider AT web.de>
2868
2869         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2870           fixes #1544120
2871
2872 2006-09-04 Borut Razem <borut.razem AT siol.net>
2873
2874         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2875         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2876           -mno-cygwin is a part of the compiler name
2877         * support/scripts/sdcc_mingw32: don't disable ucsim
2878
2879 2006-09-03 Borut Razem <borut.razem AT siol.net>
2880
2881         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2882         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2883
2884 2006-09-03 Raphael Neider <rneider AT web.de>
2885
2886         * src/pic/ralloc.c,
2887         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2888           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2889           fixes #1550049
2890
2891 2006-09-01 Borut Razem <borut.razem AT siol.net>
2892
2893         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2894           to make ppc-osx happy
2895
2896 2006-08-31 Borut Razem <borut.razem AT siol.net>
2897
2898         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2899         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2900         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2901         * support/regression/ports/ds390/spec.mk,
2902           support/regression/ports/mcs51/spec.mk,
2903           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2904           To run regression tests in mingw environment:
2905           make DEV_NULL=NUL CC=gcc
2906
2907 2006-08-30 Borut Razem <borut.razem AT siol.net>
2908
2909         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2910           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2911           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2912           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2913           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2914           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2915           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2916           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2917           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2918           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2919           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2920           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2921           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2922           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2923           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2924           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2925           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2926           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2927           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2928           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2929           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2930           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2931           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2932           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2933           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2934           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2935           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2936           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2937           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2938           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2939           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2940           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2941           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2942           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2943           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2944           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2945           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2946           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2947           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2948           ucsim WIN32 native port
2949
2950 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2951
2952         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2953
2954 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2955
2956         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2957         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2958
2959 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2960
2961         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2962         * support/regression/tests/bug1546986.c: new, added
2963         * as/mcs51/.cvsignore,
2964         * debugger/mcs51/.cvsignore,
2965         * src/.cvsignore: deleted
2966
2967 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2968
2969         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2970           definitions)
2971
2972 2006-08-20 Borut Razem <borut.razem AT siol.net>
2973
2974         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2975           removed cl_listen_console::match(), cl_console::match(),
2976           restructured cl_commander::proc_input()
2977
2978 2006-08-16 Borut Razem <borut.razem AT siol.net>
2979
2980         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2981           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2982           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2983
2984 2006-08-14 Borut Razem <borut.razem AT siol.net>
2985
2986         * support/regression/Makefile.in,
2987           support/regression/ports/pic14/gpsim.cmd,
2988           support/regression/ports/pic14/spec.mk,
2989           support/regression/ports/pic14/support.c:
2990           added pic14 regression test
2991
2992 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2993
2994         * as/doc/asxhtm.html: documented changed ABS behaviour
2995         * as/doc/README: fixed some typos
2996
2997 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2998
2999         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3000           not defined on host
3001
3002 2006-08-12 Borut Razem <borut.razem AT siol.net>
3003
3004         * support/regression/fwk/include/testfwk.h,
3005           support/regression/fwk/lib/testfwk.c,
3006           support/regression/generate-cases.py,
3007           support/regression/Makefile.in:
3008           regression test framework does not depend on function pointers and
3009           variable arguments
3010
3011 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3012
3013         * device/include/stddef.h: c temporary hack to fix bug 1518273
3014
3015 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3016
3017         * device/include/mcs51/cc2510fx.h: added
3018         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3019           to projects.
3020
3021 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3022
3023         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3024         * as/z80/Makefile.in: added strcmpi.c
3025         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3026         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3027
3028 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3029
3030         * device/lib/gbz80/asm_strings.s,
3031         * device/lib/gbz80/crt0_rle.s,
3032         * device/lib/gbz80/div.s,
3033         * device/lib/gbz80/mul.s,
3034         * device/lib/gbz80/shift.s,
3035         * device/lib/z80/asm_strings.s,
3036         * device/lib/z80/crt0_rle.s,
3037         * device/lib/z80/div.s,
3038         * device/lib/z80/mul.s,
3039         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3040           flags which are all upper case
3041
3042 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3043
3044         * as/z80/asm.h: made CASE_SENSITIVE 1
3045         * link/z80/aslink.h: made CASE_SENSITIVE 1
3046         * src/z80/gen.c (throughout): made all conditionals upper case
3047         * support/regression/tests/bug1503067.c: new
3048
3049 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3050
3051         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3052           (shiftIntoPair): added case 2 for PAIR_IY,
3053           (setupToPreserveCarry): replaced parameters with iCode and check if
3054            PAIR_DE is in use to fix bug 1399290,
3055           (genPlus, genMinus): updated call to setupToPreserveCarry
3056         * support/regression/tests/bug1399290.c: new
3057
3058 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3059
3060         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3061         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3062         * src/ds390/gen.c (shiftRLong),
3063         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3064         * src/mcs51/gen.c (sameReg): changed to sameByte,
3065           (xch_a_aopGet): new,
3066           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3067            shiftRLong): fixed bug 1533966
3068         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3069           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3070         * support/regression/Makefile.in: disabled z80, enabled ucz80
3071         * support/regression/tests/float_trans.c: enabled test for z80 and host
3072         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3073
3074 2006-08-01 Borut Razem <borut.razem AT siol.net>
3075
3076         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3077           comparison is always false due to limited range of data type
3078           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3079
3080 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3081
3082         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3083         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3084         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3085         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3086
3087 2006-07-31 Borut Razem <borut.razem AT siol.net>
3088
3089         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3090           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3091           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3092           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3093           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3094           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3095           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3096           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3097           enable ucsim mingw compilation. Serial port is disabled,
3098           since it uses termios.h API, which is not available on native
3099           WIN32
3100
3101 2006-07-31 Borut Razem <borut.razem AT siol.net>
3102
3103         * Small Device C Compiler 2.6.0 released
3104         * support/scripts/sdcc.nsi: added FULL_DOC option
3105         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3106
3107 2006-07-28 Borut Razem <borut.razem AT siol.net>
3108
3109         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3110         * doc/INSTALL.txt: updated
3111
3112 2006-07-27 Borut Razem <borut.razem AT siol.net>
3113
3114         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3115           device/lib/pic/libdev/Makefile.in: fixed bug
3116           [ 1438354 ] pic libsdcc: distclean doesn't work
3117         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3118           device/lib/pic16/libio/Makefile.in: fixed bug
3119           [ 1438344 ] pic16 lib: clean doesn't work properly
3120         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3121
3122 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3123
3124         * device/lib/pic/libsdcc/fsdiv.c,
3125         * device/lib/pic/libsdcc/fsmul.c,
3126         * device/lib/pic16/libsdcc/float/fsdiv.c,
3127         * device/lib/pic16/libsdcc/float/fsmul.c,
3128         * device/lib/_fsdiv.c,
3129         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3130         * support/regression/tests/bug1520966.c: added
3131         * doc/knownbugs.html: removed [ 1520966 ] from the list
3132
3133 2006-07-25 Borut Razem <borut.razem AT siol.net>
3134
3135         * configure.in, configure, sdccconf_in.h: fixed bug
3136           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3137         * doc/knownbugs.html: removed [ 1519095 ] from the list
3138
3139 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3140
3141         * doc/knownbugs.html: added, contains list of known bugs at release
3142         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3143
3144 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3145
3146         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3147           function registers and corrected defaults with additional warning
3148         * device/lib/malloc.c: cosmetic changes
3149         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3150         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3151           (fillGaps): and used it
3152
3153 2006-07-20 Raphael Neider <rneider AT web.de>
3154
3155         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3156           output unless SDCCPICDEBUG is set
3157         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3158           output if SILENT is set
3159
3160 2006-07-11 Borut Razem <borut.razem AT siol.net>
3161
3162         * doc/README.txt: updated
3163
3164 2006-07-10 Borut Razem <borut.razem AT siol.net>
3165
3166         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3167           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3168           in WIN32 installation
3169         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3170           release candidate 1
3171
3172 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3173
3174         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3175         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3176
3177 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3178
3179         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3180
3181 2006-07-06 Borut Razem <borut.razem AT siol.net>
3182
3183         * support/regression/tests/bitfields.c:
3184           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3185         * support/regression/tests/constantRange.c:
3186           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3187
3188 2006-07-04 Borut Razem <borut.razem AT siol.net>
3189
3190         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3191           src/port.mk,
3192           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3193           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3194           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3195           reverted changes from 2006-07-03
3196         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3197         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3198           added CPPFLAGS, used by the host port
3199
3200 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3201
3202         * support/regression/valdiag/tests/switch.c,
3203         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3204         * support/regression/tests/libmullong.c: fixed for host
3205         * support/regression/ports/host/spec.mk: disable all warnings for host,
3206         SDCC runs with --less-pedantic too
3207
3208 2006-07-03 Borut Razem <borut.razem AT siol.net>
3209
3210         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3211           defined CPPFLAGS
3212         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3213         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3214           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3215           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3216           include ../port.mk
3217         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3218           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3219           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3220           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3221
3222 2006-07-02 Raphael Neider <rneider AT web.de>
3223
3224         * src/pic16/devices.inc,
3225         * device/include/pic16/pic18fregs.h,
3226         * device/include/pic16/pic18f4550.h,
3227         * device/lib/pic16/pics.all,
3228         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3229
3230 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3231
3232         * as/hc08/lkaomf51.c (OutputName),
3233         * as/mcs51/lkaomf51.c (OutputName),
3234         * as/z80/asmain.c (asmbl),
3235         * src/ds390/main.c (asmLineNodeFromLineNode),
3236         * src/hc08/ralloc.c (hc08_assignRegisters),
3237         * src/mcs51/main.c (asmLineNodeFromLineNode),
3238         * src/xa51/ralloc.c (checkRegMask),
3239         * src/xa51/gen.c (emitcode),
3240         * src/z80/gen.c (_emit2),
3241         * src/SDCCast.c (searchLitOp),
3242         * src/SDCCglobl.h,
3243         * support/packihx/packihx.c,
3244         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3245         * src/ds390/gen.c (aopPutUsesAcc),
3246         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3247         * support/regression/tests/libmullong.c (mullong_wrapper),
3248         * src/SDCCsymt.c (powof2),
3249         * src/SDCCast.c,
3250         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3251         * src/SDCCsymt.h: added TYPE_TARGET_*
3252         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3253         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3254         SDCCast because 1) header problems 2) this is the right place
3255         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3256         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3257         prototype
3258
3259 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3260
3261         * src/SDCCicode.h: removed buggy semicolon in unused macro
3262         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3263         search for previous definiton of auto symbols too,
3264         (findPrevUse): fixed logic of emitWarnings
3265
3266 2006-06-26 Raphael Neider <rneider AT web.de>
3267
3268         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3269           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3270
3271 2006-06-25 Raphael Neider <rneider AT web.de>
3272
3273         * device/lib/pic/libm: NEW, added math library functions
3274         * device/lib/pic/libsdcc: NEW; added float support functions
3275         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3276         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3277           NEW, added math related headers
3278         * device/include/asm/pic/features.h: NEW
3279         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3280           (popGet): allow larger offsets for AOP_PCODE,
3281           (genDataPointerSet): handle literals explicitly, more debug output,
3282           (genAssign): fixed for float using aopLiteral ;-)
3283         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3284           GOTO initialisation routine
3285         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3286           flag on registers, fixes #1469043 (local variables do not work)
3287         * src/pic/main.c (_pic14_do_link),
3288         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3289           available
3290
3291 2006-06-25 Borut Razem <borut.razem AT siol.net>
3292
3293         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3294           characters printed (not including the trailing '\0' used to end
3295           output to strings). Problem detected in regression test bug-927659.c.
3296           NOTE: printf() family functions should return int instead
3297           unsigned int!
3298         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3299           specifier are printed as themselves
3300         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3301           support flags, width and precision specifiers
3302
3303 2006-06-24 Borut Razem <borut.razem AT siol.net>
3304
3305         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3306           to the list of sdcc tagrets not supporting bit type
3307         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3308           testfor pic16 due to bug:
3309           [ 1511794 ] pic16: regression test bug-895992.c fails
3310
3311 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3312
3313         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3314         * src/SDCCglue.c (initPointer), fixed bug 1496419
3315         * support/regression/tests/bug1496419.c: new, added
3316
3317 2006-06-22 Borut Razem <borut.razem AT siol.net>
3318
3319         * support/regression/ports/pic16/support.c: use gpsim usart module from
3320           libgpsim_modules library
3321
3322 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3323
3324         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3325         IP0H to IPH0.
3326
3327 2006-06-19 Raphael Neider <rneider AT web.de>
3328
3329         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3330         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3331           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3332           (pic14printExterns,pic14printPublics,pic16printPublics,
3333           pic16_printExterns): use new functions to emit symbols
3334           (picglue,pic16glue): emit publics before emitting externs
3335         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3336           locally defined functions to avoid bug #1443651
3337         * support/regression/tests/bug-716242.c: removed pic16 workaround
3338         * support/regression/ports/pic16/spec.mk: ignore errors during build
3339
3340 2006-06-19 Raphael Neider <rneider AT web.de>
3341
3342         * src/pic/glue.h: added pic14aopLiteral prototype
3343         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3344         * src/pic/gen.c: removed stdint.h dependency
3345           (aopGet): use Safe_strdup()
3346           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3347           (genDataPointerSet): use pic14aopLiteral()
3348         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3349           for pic16; thanks to Bernhard and Maarten
3350
3351 2006-06-18 Borut Razem <borut.razem AT siol.net>
3352
3353         * support/regression/tests/structflexarray.c: flexible array members
3354           not supported by gcc < 3
3355         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3356           GUI tool by default
3357         * src/pic/gen.c: don't include [p]strdin.h on solaris
3358         * support/Util/pstdint.h: addad svn attributes
3359         * support/regression/tests/constantRange.c,
3360           support/regression/tests/rotate.c: include inttypes.h instead
3361           stdint.h on solaris, addad svn attributes
3362
3363 2006-06-18 Raphael Neider <rneider AT web.de>
3364
3365         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3366           int for PIC16
3367         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3368           (pic16_genMinusBits): simplified sign-extension
3369           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3370             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3371             adjusted to correctly handle mixed-signed operands, disabled
3372             now unused multiplciation routines
3373         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3374           (assignResultValue): added argument denoting the size of the result
3375             as returned by the function (fixes upcasts in assigning from
3376             function calls: char foo(); int i = foo();)
3377           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3378             function result to assignResultValue
3379           (genMult): disabled inlined multiplication code
3380           (genDiv): augmented to also handle the modulus operator, fixed to
3381             handle mixed-signed operands correctly
3382           (genMod): simply call genDiv, disabled unused code
3383           (genAssign): fixed missing (sign-)extension on result
3384         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3385             valid char operands, allow signed operands for native code, added
3386             division and modulo operator handling
3387         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3388
3389         As a consequence, onebyte.c (if split into two files) and muldiv.c
3390         pass regression tests.
3391
3392 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3393
3394         * doc/Makefile.in: two runs of makeindex seem needed to get
3395         correct page references in the index of sdccman.pdf
3396         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3397
3398 2006-06-17 Borut Razem <borut.razem AT siol.net>
3399
3400         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3401
3402 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3403
3404         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3405         mentioned ec2drv and paulmon
3406
3407 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3408
3409         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3410           consecutive abs areas
3411           (find_empty_space, allocate_space): added map to handle codemap or
3412            xdatamap,
3413           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3414            absolute idata and xdata
3415         * as/mcs51/lkmem.c (summary2): updated legend
3416
3417 2006-06-16 Raphael Neider <rneider AT web.de>
3418
3419         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3420
3421 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3422
3423         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3424           1208515
3425         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3426
3427 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3428
3429         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3430         value of generic pointers,
3431         * src/avr/main.c,
3432           src/ds390/main.c,
3433           src/hc08/main.c,
3434           src/izt/i186.c,
3435           src/izt/tlcs900h.c,
3436           src/mcs51/main.c,
3437           src/pic/main.c,
3438           src/pic16/main.c,
3439           src/xa51/main.c,
3440           src/z80/main.c: PORT structure, added elements for gp_tags field,
3441         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3442         fields in the PORT structure of each port,
3443         * src/SDCCast.c (decorateType): allow processing of generic pointers
3444         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3445         S_FIXED symbols
3446
3447 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3448
3449         * link/z80/lkgb.c,
3450         * link/z80/lkgg.c,
3451         * src/pic16/gen.c,
3452         * src/pic16/main.c,
3453         * src/pic16/pcode.c,
3454         * src/pic/main.c,
3455         * src/pic/pcoderegs.c,
3456         * src/SDCCicode.c,
3457         * src/SDCCmain.c,
3458         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3459           bug 1504689 on minGW
3460
3461 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3462
3463         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3464
3465 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3466
3467         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3468
3469 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3470
3471         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3472           for optimization
3473
3474 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3475
3476         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3477         to a char variable. Fixed bug #1504211
3478         * device/include/pic16/adc.h,
3479         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3480         and fixed bug #1364390
3481
3482 2006-06-10 Borut Razem <borut.razem AT siol.net>
3483
3484         * CVSROOT: removed the CVS left-over
3485
3486 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3487
3488         * as/hc08/asmain.c (asexit),
3489         * as/hc08/lkmain.c (lkexit),
3490         * as/mcs51/asmain.c (asexit),
3491         * as/mcs51/lkmain.c (lkexit),
3492         * src/SDCCglue.c (DEFSETFUNC),
3493         * src/SDCCmain.c (linkEdit, assemble),
3494         * support/librarian/sdcclib.c (AddRel),
3495           replaced unlink() by standard C remove()
3496         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3497         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3498           gatherImplicitVariables): new, added to fix bug 608752,
3499           (createFunction): added gatherImplicitVariables()
3500         * src/SDCCast.h: added createRMW prototype
3501         * src/SDCCsymt.h (struct symbol): added infertype
3502         * support/regression/tests/bug608752.c: new, added
3503
3504 2006-06-10 Raphael Neider <rneider AT web.de>
3505
3506         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3507           multibyte dummy reads (fixes #1503234)
3508
3509 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3510
3511         * device/include/mcs51/compiler.h: new, added header file to enable
3512           creating common sfr definition header files for different compilers
3513
3514 2006-06-05 Raphael Neider <rneider AT web.de>
3515
3516         * src/pic16/{pcode.h,genarith.c}:
3517           introduced pCodeOp combining any two pCodeOps (previously only
3518           two register operands could be combined), removed pcop2 from
3519           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3520         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3521         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3522           rewritten to use new PO_TWO_OPS
3523         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3524         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3525           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3526           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3527           (pic16_get_op): embraced return arg to allow #define return(x),
3528             added new case for combined opcodes
3529           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3530           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3531            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3532
3533 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3534
3535         * src/SDCCval.c (checkConstantRange): added
3536         * src/SDCCval.h: added checkConstantRange
3537         * support/Util/SDCCerr.c,
3538         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3539         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3540         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3541         * src/SDCCast.c (decorateType): added checkConstantRange,
3542         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3543         can be emitted with the correct always true/false warning,
3544         added optimization for double '!';
3545         result of decorateType() must be assigned back to the tree, because
3546         decorateType() can change the tree
3547         * src/SDCCicode.c (geniCodeLogic),
3548         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3549         (checkConstantRange): removed, it was only a fragment which never
3550         emitted a warning
3551         * src/SDCCsymt.c (computeType): fixed promotion for
3552         "-1 < (unsigned bit) b"
3553         * src/pic/ralloc.c (packRegsForAssign),
3554         * src/pic16/ralloc.c (packRegsForAssign),
3555         * src/hc08/ralloc.c (packRegsForAssign),
3556         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3557         from mcs51
3558         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3559         * support/regression/tests/constantRange.c: added
3560         * support/valdiag/tests/constantRange.c: added
3561         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3562
3563 2006-06-02 Borut Razem <borut.razem AT siol.net>
3564
3565         * support/regression/ports/pic16/support.c: increase stack size
3566           to 255 bytes
3567         * support/regression/Makefile.in: sort tests by name so that the
3568           resutlts can be compared on different machines / platforms
3569
3570 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3571
3572         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3573         * src/ds390/gen.c (emitLabel): new, added,
3574           (genDjnz): fixed stack overflow bug,
3575           (throughout): cosmetic changes to sync with mcs51/gen.c,
3576           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3577         * src/mcs51/gen.c (genEndFunction): small optimization,
3578           (throughout): cosmetic changes to sync with ds390/gen.c
3579
3580 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3581
3582         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3583           (_print_format): fixed printing pointers
3584         * src/mcs51/gen.c (emitLabel, movb): new, added,
3585           (genAssign): small optimization,
3586           (genDjnz): fixed stack overflow bug,
3587           (throughout): replaced sprintf with SNPRINTF,
3588           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3589           replaced emitcode("mov", "b,...") with MOVB(...),
3590           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3591           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3592         * src/mcs51/peeph.def: added rules 140 and 264
3593         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3594           so they may get optimized into registers
3595
3596 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3597
3598         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3599           immediately when encountered,
3600           (printUsage): always use stderr even on windows
3601
3602 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3603
3604         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3605         (processParms): fixed bug #1247551
3606         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3607         parseCmdLine, main): print '--version' to stdout,
3608         print 'help' to stdout if --help is given,
3609         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3610         arguments are given; fixed --help
3611
3612 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3613
3614         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3615         * support/regression/tests/bug-1493710.c: added
3616
3617 2006-05-27 Borut Razem <borut.razem AT siol.net>
3618
3619         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3620           static instead auto
3621         * support/regression/ports/pic16/support.c: increase stack size
3622           from default 64 bytes to 128 bytes
3623         * support/regression/tests/staticinit.c,
3624           support/regression/tests/float.c: regression tests fully enabled
3625           for pic16 port by putting the initialized data arrays into the code
3626           section
3627         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3628           This was changed by mistake in the previous version.
3629
3630 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3631
3632         * src/pic16/gen.c (genFunction, genEndFunction): some
3633         beautifications, fixed bug with falsely restoring FSR2 in large
3634         stack model, thanks to Beau E. Cox for reporting the bug
3635
3636 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3637
3638         * debugger/mcs51/break.c,
3639         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3640           use %p to print pointers, made address variables unsigned
3641         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3642         * debugger/mcs51/symtab.c (parseSymbol): must return something
3643         * src/mcs51/gen.c (aopForSym): small optimization,
3644            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3645           (freeAsmop): added missing break,
3646           (aopPut): removed parameter bvolatile, determine it inside the function,
3647           (saveRegisters, unsaveRegisters): small optimization,
3648           (genIpush): removed pointless check,
3649           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3650           replaced sprintf with SNPRINTF,
3651           replaced strcpy with strncpyz,
3652           updated aopPut calls,
3653           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3654         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3655
3656 2006-05-24 Borut Razem <borut.razem AT siol.net>
3657
3658         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3659           modification of test for the pic16 port, put the array to the code
3660           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3661
3662 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3663
3664         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3665         * support/Util/pstdint.h: added
3666
3667 2006-05-22 Borut Razem <borut.razem AT siol.net>
3668
3669         * src/regression/Makefile: removed bool2.c test, added -q linker option
3670         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3671           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3672           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3673           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3674           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3675           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3676           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3677           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3678           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3679
3680 2006-05-22 Raphael Neider <rneider AT web.de>
3681
3682         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3683           bug #1492360 (problematic due to generic pointers, see code)
3684
3685 2006-05-22 Borut Razem <borut.razem AT siol.net>
3686
3687         * support/regression/ports/pic16/specs.mk: removed stack size linker
3688           directive
3689         * support/regression/tests/array.c,
3690           support/regression/tests/bitopcse.c,
3691           support/regression/tests/bug-908454.c,
3692           support/regression/tests/malloc.c: modified for pic16 regression test
3693         * support/regression/tests/bitfields.c:
3694           pic16 - excluded bitfileds of size > 8
3695         * support/regression/tests/bp.c: pic16 - reduced data size
3696         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3697         * support/regression/tests/bug-460010.c:
3698           pic16 - used the absolute address the fits in memory
3699         * support/regression/tests/bug-716242.c:
3700           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3701         * support/regression/tests/float.c:
3702           pic16 - excluded - data size too big
3703         * support/regression/tests/onebyte.c:
3704           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3705         * support/regression/tests/shifts.c:
3706           pic16 - function names probably have to differ in first X characters
3707           (gpasm limitation?)
3708         * support/regression/tests/staticinit.c:
3709           pic16 - excluded some tests due error: no target memory available for
3710           section ".idata"
3711
3712 2006-05-22 Borut Razem <borut.razem AT siol.net>
3713
3714         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3715           second try. Thanks Stas Sergeev once more.
3716
3717 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3718
3719         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3720           (genLeftShift, genRightShift): fixed bug 1491627
3721         * src/hc08/peeph.def (rules 7, 8.x): added
3722         * support/regression/tests/shifts.c (ShiftLeftByParam,
3723           ShiftRightByParam, testShiftByParam): added to test variable shifting
3724
3725 2006-05-20 Raphael Neider <rneider AT web.de>
3726
3727         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3728         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3729           (allocReg): add only new registers to dynAllocRegs,
3730           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3731             #1489055, #1445850, and probably #1483693
3732
3733 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3734
3735         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3736         bug in for-loop that didn't emit the last of CONFIG and ID registers
3737
3738 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3739
3740         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3741           with offset
3742         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3743           1489016, 1434401 and 1490124
3744         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3745           1489016, 1434401 and 1490124
3746
3747 2006-05-17 Borut Razem <borut.razem AT siol.net>
3748
3749         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3750           thanks Stas Sergeev
3751
3752 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3753
3754         * device/include/mcs51/P89c51RD2.h,
3755         * device/include/mcs51/P89LPC901.h,
3756         * device/include/mcs51/P89LPC922.h,
3757         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3758
3759 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3760
3761         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3762         to fix missing stack pragma in compiled binary object file,
3763
3764 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3765
3766         * support/packihx/configure.in,
3767         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3768         determine sizeof basic types even while cross compiling
3769
3770 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3771
3772         * src/avr/gen.c (aopop),
3773         * src/ds390/gen.c (aopOp),
3774         * src/hc08/gen.c (aopOp),
3775         * src/mcs51/gen.c (aopop),
3776         * src/pic16/gen.c (pic16_aopOp),
3777         * src/pic/gen.c (aopOp),
3778         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3779         if size of operand is smaller than spill location
3780
3781 2006-05-12 Borut Razem <borut.razem AT siol.net>
3782
3783         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3784           have to have CR/LF line endings even if they are checked out on *nix
3785           or on WIN32 in cygwin binmode
3786
3787 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3788
3789         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3790         * device/include/ds80c390.h: added sfr16 definitions
3791         * src/ds390/gen.c,
3792         * src/ds390/gen.h,
3793         * src/ds390/main.c,
3794         * src/ds390/ralloc.c,
3795         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3796           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3797           bit returning functions
3798         * support/regression/tests/sfr16.c: enabled test on ds390
3799
3800 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3801
3802         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3803         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3804
3805 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3806
3807         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3808         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3809           (cl_address_space constructor): removed expensive initialization,
3810           (cl_address_space::get_cell): extended for late initialization,
3811           (cl_address_space::*): use late initialization,
3812           (cl_address_decoder::activate): removed expensive initialization,
3813           This reduced regression test running time by 25%
3814
3815 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3816
3817         * packihx/,
3818         * configure.in,
3819         * configure,
3820         * sdcc.dsw,
3821         * Makefile.bcc,
3822         * Makefile.in,
3823         * support/packihx/Makefile.in,
3824         * support/packihx/clean.mk,
3825         * support/packihx/Makefile.bcc,
3826         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3827
3828 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3829
3830         * src/SDCCval.c (valNot): fix for regression test failure
3831           of not.c on big endian hosts
3832
3833 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3834
3835         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3836
3837 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3838
3839         * device/lib/mcs51/Makefile.in: changed string comparison operator
3840           to = for POSIX compliance; == is bash extension
3841
3842 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3843
3844         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3845           kosmonaut_pirx
3846
3847 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3848
3849         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3850         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3851         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3852         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3853         bug report #1478657,
3854
3855 2006-05-05 Borut Razem <borut.razem AT siol.net>
3856
3857         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3858           making the html
3859
3860 2006-05-02 Borut Razem <borut.razem AT siol.net>
3861
3862         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3863           create *.ind, which made make to fail if invoked with -j 2
3864
3865 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3866
3867         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3868           Hubert Sack for patch 1479782
3869
3870 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3871
3872         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3873
3874 2006-05-01 Raphael Neider <rneider AT web.de>
3875
3876         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3877           (create_pic): store only prefix-free device name,
3878           (init_pic): check for device names with "16" prefix,
3879           (list_valid_pics),
3880         * src/pic/device.h (struct PIC_device),
3881         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3882             stored device name,
3883         * device/include/pic/pic12f{635,675,629,683}.h,
3884         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3885         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3886         * device/include/pic/pic16f505.h,
3887         * device/lib/pic/libdev/pic16f505.c: removed
3888         * device/include/pic/pic14devices.txt: added support for pic12f
3889             devices, removed unsupported non 16-bit devices
3890             [above changes provided by patch from Zik Saleeba]
3891         * src/pic/*, src/pic16/*, device/include/pic16/*,
3892           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3893
3894 2006-05-01 Borut Razem <borut.razem AT siol.net>
3895
3896         * configure.in, configure, doc/Makefile.in:
3897           sync with nightly build makefile - latex, dvipdf and dvips
3898           not needed any more
3899
3900 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3901
3902         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3903         in the library source
3904
3905 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3906
3907         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3908
3909 2006-04-28 Raphael Neider <rneider AT web.de>
3910
3911         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3912         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3913           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3914         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3915
3916 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3917
3918         * device/lib/pic/libdev/Makefile.in,
3919         * device/lib/hc08/Makefile.in,
3920         * device/lib/gbz80/Makefile.in,
3921         * device/lib/z80/Makefile.in,
3922         * device/lib/ds390/Makefile.in,
3923         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3924         thanks to Borut for the bug report
3925         * configure.in,
3926         * configure: always create doc/Makefile independent from --enable-doc
3927         * Makefile.in: always install from directory doc independent from
3928         --enable-doc
3929         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3930         removed
3931         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3932         * doc/Makefile.in: install *.txt if present
3933         * device/include/Makefile.in (install): added installation of pic/*.inc
3934         and pic/*.txt files again, they were erroneously removed
3935
3936 2006-04-28 Raphael Neider <rneider AT web.de>
3937
3938         * src/pic/{gen.c,main.h,pcode.c},
3939         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3940             concerning signedness with casts
3941
3942 2006-04-28 Raphael Neider <rneider AT web.de>
3943
3944         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3945             definition of an interrupt handler,
3946         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3947             interrupt handler stuff from picglue() to separate routine,
3948           (picglue): enabled definition of intr handlers in files w/o main()
3949
3950 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3951
3952         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3953           compilation with MSVC 2005 Express Edition (VC8)
3954
3955 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3956
3957         * device/lib/Makefile: fixed build of gbz80 lib
3958
3959 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3960
3961         * support/regression/tests/bug-460010.c,
3962         * support/regression/tests/bug-524691.c,
3963         * support/regression/tests/bug-716242.c: removed conditional defines
3964           that are already in testfwk.h
3965
3966 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3967
3968         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3969           (AccAXRsh1): added, shift right by 1,
3970           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3971            AccAXLrl1
3972         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3973
3974 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3975
3976         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3977         remove cast to same type
3978         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3979         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3980         * as/z80/Makefile,
3981         * link/z80/Makefile: removed, they have moved to
3982         Makefile.in files
3983         * configure,
3984         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3985         * install-sh: fix bug #1204398 by setting umask 0022
3986         * device/lib/Makefile: separate build of z80 and gbz80 lib
3987
3988 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3989
3990         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3991         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3992
3993         One basic decision: e.g. src/clean.mk includes further files. In order
3994         to make this work there are two solutions:
3995         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3996           run configure on them. This way they can use
3997           'include $(srcdir)/port-clean.mk'
3998         - always include clean.mk by the Makefile at the same level. To avoid
3999           that `make clean` tries to include and build Makefile.dep the
4000           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4001           implemented, because now even `make uninstall` doesn't create
4002           Makefile.in. clean.mk could be eliminated by pasting it in
4003           Makefile.in.
4004
4005         * debugger/mcs51/Makefile.in: build own objects from library sources
4006         (SLIB, SDCC) in current directory
4007
4008         * configure, configure.in: renamed --disable-device-lib-build in
4009         --disable-device-lib; added --enable-doc, the required tools are
4010         searched by configure; added result message; the toolchain for the
4011         belonging ports are now only built, if the port is enabled.
4012
4013         * support/regression/*: all output is written in directory gen, because
4014         the fwk and ports directories don't livet in the build tree using vpath
4015
4016         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4017         --disable-device-lib, added --enable-doc, added section VPATH
4018
4019         * sim/ucsim/configure.in,
4020         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4021         z80 are enabled by default
4022
4023 2006-04-24 Raphael Neider <rneider AT web.de>
4024
4025         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4026             to config word, "pic14_"-prefixed some extern functions
4027           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4028             config word has been found
4029         * src/pic/device.h: added prototypes
4030         * src/pic/pcode.c: added "pic14_"-prefix where needed
4031         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4032             fixup
4033         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4034             words,
4035           (pic14emitRegularMap): ignore config words,
4036           (pic14createInterruptVect): moved generating __config directives away
4037           (picglue): have __config directives emitted
4038
4039 2006-04-24 Borut Razem <borut.razem AT siol.net>
4040
4041         * doc/Makefile: sync with nightly build makefile
4042
4043 2006-04-24 Raphael Neider <rneider AT web.de>
4044
4045         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4046             registers that have not been assigned proper liveranges,
4047             fixes #1469504 and #1474602,
4048           (pCodeRegOptimizeRegUsage): fixed typo in comment
4049
4050 2006-04-24 Borut Razem <borut.razem AT siol.net>
4051
4052         * device/examples/main8051.c: deleted - it was removed from CVS
4053           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4054           after the transition to Subversion
4055         * src/SDCCalloc.h: deleted - it was removed  from CVS
4056           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4057           after the transition to Subversion
4058         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4059           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4060           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4061           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4062
4063 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4064
4065         * as/asx8051.dsp: added mcs51/strcmpi.h
4066         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4067         * as/hc08/aslink.h: updated lnksect prototype
4068         * as/hc08/asm.h,
4069         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4070         * as/hc08/asmain.c,
4071         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4072           (newdot): handle A_ABS
4073         * as/hc08/asout.c,
4074         * as/mcs51/asout.c (outarea): output address
4075         * as/hc08/lkaomf51.c,
4076         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4077         * as/hc08/m08pst.c,
4078         * as/mcs51/i51pst.c,
4079         * as/z80/z80pst.c: "ABS" is not A_OVR
4080         * as/hc08/lkarea.c (newarea): read a_addr,
4081           (lnkarea): added codemap array, sort absolute areas to the front,
4082            combine all GSINITx/GSFINAL,
4083           (find_empty_space, allocate_space): new functions,
4084           (lnksect): return next address, handle absolute sections
4085         * as/mcs51/lkarea.c (newarea): read a_addr,
4086           lnksect2 prototype changed,
4087           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4088           (find_empty_space, allocate_space): new, factored out of lnksect2,
4089           (lnksect2): return next address, handle absolute sections
4090         * as/hc08/lkhead.c,
4091         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4092         * as/hc08/lklibr.c (addfile, fndsym),
4093         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4094           index out of range and detect both '\' and '/'
4095         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4096         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4097           regression tests (ds390 cannot return bool yet)
4098         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4099           document critical interrupts on z80, document changed SDCC define
4100         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4101           (_a390_mapping): added .org directive
4102         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4103           (genMultOneByte): fixed warnings
4104         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4105           ones
4106         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4107         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4108           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4109         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4110         * src/pic16/main.c: removed newReg prototype
4111         * src/pic16/pcode.c,
4112         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4113           warnings
4114         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4115           ones
4116         * src/pic16/ralloc.c
4117         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4118           to fix warnings
4119         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4120           from short to PIC_OPTYPE
4121         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4122         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4123           optype from short to PIC_OPTYPE
4124         * src/port.h: made int_size unsigned to fix warnings
4125         * src/SDCC.y: fixed warning on MSVC
4126         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4127         * src/SDCCopt.c (convertToFcall): fixed warnings
4128         * src/SDCCsymt.h: removed double prototype for genSymName
4129         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4130           offset int to fix warnings
4131
4132 2006-04-22 Borut Razem <borut.razem AT siol.net>
4133
4134         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4135           references to CVS replaced with Subversion
4136
4137 2006-04-21 Borut Razem <borut.razem AT siol.net>
4138
4139         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4140           references to CVS replaced with Subversion
4141
4142 2006-04-19 Borut Razem <borut.razem AT siol.net>
4143
4144         * src/version.awk: adapted for svn
4145         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4146           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4147           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4148           /binutils-avr/etc/*.vi, *.jin: removed all properties
4149           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4150
4151 2006-04-19 Borut Razem <borut.razem AT siol.net>
4152
4153         * CVS to Subversion migration completed
4154
4155 2006-04-18 Borut Razem <borut.razem AT siol.net>
4156
4157         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4158           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4159
4160 2006-04-17 Borut Razem <borut.razem AT siol.net>
4161
4162         * device/include/Makefile.in: added pic/*.inc to the installation
4163
4164 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4165
4166         * support/regression/collate-results.py: fixed output in case of
4167         a valdiag error
4168         * support/regression/generate-cases.py: fixed splitting of pathnames
4169         with dots
4170         * as/hc08/lklibr.c (addfile),
4171         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4172
4173 2006-04-11 Raphael Neider <rneider AT web.de>
4174
4175         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4176         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4177         * src/pic16/pcode.c (assignValnums): fixed #1460578
4178
4179 2006-04-11 Raphael Neider <rneider AT web.de>
4180
4181         * device/lib/pic/libdev/*.c,
4182         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4183           fixes #1468739, enables compilation in --std-c99 mode
4184         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4185
4186 2006-04-11 Raphael Neider <rneider AT web.de>
4187
4188         * src/pic/device.c (find_device): removed debug output
4189           (list_valid_pics): enabled verbose listing of supported devices
4190         * device/include/stdbool.h: define bool as char for pic14/16 as well
4191
4192 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4193
4194         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4195
4196 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4197
4198         * .version: bumped version to 2.5.6
4199         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4200
4201 2006-04-06 Raphael Neider <rneider AT web.de>
4202
4203         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4204         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4205         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4206           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4207             pic14_constructAbsMap
4208           (pic14printPublics): declare absolute global symbols as global
4209           (pic14createInterruptVect),
4210         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4211           (newReg): assume new registers unused, use correct name in
4212             hashtable (reg->name instead of name), more debugLog output
4213         * src/pic/device.h (PIC_device): added fields for verbose output
4214         * src/pic/device.c: moved device definition to pic14devices.txt,
4215             added routines for runtime parsing of pic14devices.txt,
4216             added support for second config word
4217         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4218           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4219           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4220           (_pic14_parseOptions): moved pCodeInitRegisters here
4221           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4222         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4223           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4224             handling the pseudo stack
4225         * device/lib/Makefile.in: ignore failures in objects-pic16,
4226         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4227         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4228         * device/lib/pic/Makefile.subdir,
4229         * device/lib/pic16/Makefile.subdir: improved clean rules
4230         * device/lib/pic/libdev/: NEW, pic14 device libraries
4231         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4232         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4233         * device/include/Makefile.in: create subdir and install pic14 headers
4234         * device/include/pic/p16f_common.inc: removed unused declarations
4235         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4236             PICs from inc2h.pl v1.6,
4237             replaced BIT_AT macros with struct declarations
4238         * device/include/pic/pic14devices.txt: definition of supported devices,
4239             all above improvements contributed by Zik Saleeba, thanks
4240         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4241         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4242             headers
4243
4244 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4245
4246         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4247         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4248           thanks to Charles Olds
4249
4250 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4251
4252         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4253
4254 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4255
4256         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4257         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4258         * support/regression/bug1464657.c: added, new test
4259
4260 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4261
4262         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4263           version number
4264
4265 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4266
4267         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4268           --no-peep and --peep-file <file> are used don't use default rules but
4269           do use the <file>
4270
4271 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4272
4273         * src/mcs51/gen.c (genCall): fixed bug 1457608
4274
4275 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4276
4277         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4278         changes seem to cause (trigger?) problems with the build system.
4279
4280 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4281
4282         * src/SDCCpeeph.c (operandsLiteral): new, added,
4283           (callFuncByName): inserted operandsLiteral
4284         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4285
4286 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4287
4288         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4289         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4290
4291 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4292
4293         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4294           implemented patch 1120823 Thanks to Willy De la Court (normal
4295           interrupts need an interrupt number now if they are made critical),
4296           and enabled nesting of critical functions though not for gbz80
4297           (genCritical, genEndCritical): added functions
4298           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4299         * src/z80/mappings.i: added "ei" to all mappings
4300
4301 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4302
4303         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4304         submitted by the Debian SDCC maintainer Aurelien Jarno:
4305         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4306         archive with gcc 4.1 on mips and wrote the patch"
4307
4308 2006-03-16 Raphael Neider <rneider AT web.de>
4309
4310         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4311           the left operand is shorter than the result (c* = lit-c* + int),
4312           fixes bug #1450796
4313         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4314           OP_SYMBOL
4315
4316 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4317
4318         * src/.version: increased version number to 2.5.5
4319         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4320         linking is done manually in pic16 port's _linkEdit,
4321         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4322         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4323         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4324         allocate asmop as AOP_ACC,
4325         (aopForRemat): added parameter 'bool result' in function declaration,
4326         (pic16_aopGet): return AOP_ACC when accessing WREG,
4327         (pic16_popGetTempReg): minor modification,
4328         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4329         'pic16_allocWithIdx',
4330         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4331         calling function in absolute addresses,
4332         (genAssign): take into account AOP_ACC asmop,
4333         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4334         * src/pic16/pcoderegs.c: some debug functions and lines added,
4335         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4336         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4337         register too,
4338         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4339         call to allocReg, not by manually allocating a new one,
4340         (pic16_assignRegisters): now before going through the register
4341         allocating functions mark all registers as free. This eliminates some
4342         side effects resulting from peephole parser done earlier in the backbone
4343
4344 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4345
4346         * src/SDCCicode.c (geniCodeLogic),
4347         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4348
4349 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4350
4351         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4352           (genSend): bugfix, do not allocate and free twice,
4353           (shiftRLong): handle partially overlapping aops
4354         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4355
4356 2006-03-08 Borut Razem <borut.razem AT siol.net>
4357
4358         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4359           for pic16
4360
4361 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4362
4363         * support/regression/tests/bug1409955.c: new, added
4364         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4365         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4366           (aopForSym, aopOp): increment asmop.allocated if reused,
4367           (freeAsmop): decrement asmop.allocated and check for zero instead of
4368           using asmop.freed,
4369           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4370           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4371            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4372            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4373            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4374            genSignedRightShift, genRightShift, genDataPointerGet,
4375            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4376            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4377             in reverse order from allocation,
4378           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4379             added swappedLR to keep track
4380         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4381           pdata & code for GCC, z80, gbz80 & hc08
4382         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4383
4384 2006-03-08 Raphael Neider <rneider AT web.de>
4385
4386         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4387
4388 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4391         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4392         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4393
4394 2006-03-06 Borut Razem <borut.razem AT siol.net>
4395
4396         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4397           made the linker quiet
4398
4399 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4400
4401         * src/pic16/gen.c (genPcall): fixed bug #1443644
4402         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4403         which dumps before the function entry point a data byte which represents
4404         the number of the local variables used by the specified function, added
4405         'xinst' for initial support for Extended Instruction Support,
4406         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4407         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4408         port->fun_prefix anymore (may change later),
4409         (genFunction, genEndFunction): do not store/restore local registers for
4410         _main (this should take care the --main-return command line option in
4411         the future),
4412         (genOr): removed some legacy pic-port instructions,
4413         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4414         performing operations with SFR's causes data to be written more than
4415         once to each SFR. Perhaps SFRs should be handled in special cases...
4416         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4417         pcode.h
4418         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4419         into account for stack starting position,
4420         (struct OPTIONS pic16_optionsTable): added command line argument
4421         --extended or -y for Extended Instruction Support,
4422         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4423         (deassignLRs): *** perhaps the most important change, old 'for' code
4424         (commented out for reference), didn't account for some registers which
4425         were left marked 'not free' after a pointer operation. The change
4426         reduces register usage a lot in some cases
4427
4428 2006-03-04 Borut Razem <borut.razem AT siol.net>
4429
4430         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4431           _clean
4432         * support/regression/tests/bug-524697.c: decreased array size for
4433           mcs51 to fit into the internal RAM
4434         * support/regression/Makefile.in: a little bit more verbose
4435
4436 2006-03-03 Borut Razem <borut.razem AT siol.net>
4437
4438         * support/regression/fwk/lib/testfwk.c,
4439           support/regression/fwk/include/testfwk.h: introduced function
4440           _prints(), nonrecursive _printn(), call _initEmu() from main()
4441         * support/regression/ports/gbz80/support.asm,
4442           support/regression/ports/ucz80/support.asm,
4443           support/regression/ports/z80/support.asm,
4444           support/regression/ports/ds390/support.c,
4445           support/regression/ports/hc08/support.c,
4446           support/regression/ports/host/support.c,
4447           support/regression/ports/mcs51/support.c,
4448           support/regression/ports/xa51/support.c: added empty _initEmu()
4449           function
4450         * support/regression/ports/pic16/gpsim.cmd,
4451           support/regression/ports/pic16/spec.mk,
4452           support/regression/ports/pic16/support.c,
4453           support/regression/Makefile.in: added pic16 regression test
4454
4455 2006-03-01 Raphael Neider <rneider AT web.de>
4456
4457         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4458           genConstPointerGet): use safe way of generating MOVFF to cover
4459             literals as well as registers, fixes bug #1440527
4460         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4461             dereference
4462           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4463             more correctly, fixes bug #1232186
4464           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4465         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4466             gplink guess the correct processor in more cases, applied patch
4467             from Till Riedel attached to and fixing bug #1436552
4468
4469 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4470
4471         * support/regression/tests/array.c: added, contains check for #1434401
4472         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4473
4474 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4475
4476         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4477         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4478         * device/include/mcs51/c8051f326.h,
4479         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4480         * device/include/mcs51/c8051f000.h,
4481         * device/include/mcs51/c8051f018.h,
4482         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4483           PCON_IDLE,PCON_STOP and added sfr16 definitions
4484
4485 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4486
4487         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4488           genGetWord): fixed bug 1409955
4489
4490 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4491
4492         * device/include/hc08/mc68hc908gp32.h,
4493         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4494
4495 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4496
4497         * src/SDCCast.c (constExprValue): return NULL if not a value
4498         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4499         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4500         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4501
4502 2006-02-13 Borut Razem <borut.razem AT siol.net>
4503
4504         * src/regression/ptrarg.c: added, fails due to bug #1430967
4505         * src/regression/Makefile: ptrarg.c added, ...
4506
4507 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4508
4509         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4510         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4511
4512 2006-02-11 Borut Razem <borut.razem AT siol.net>
4513
4514         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4515           print "Processor: xxx" message to stdout only if --verbose
4516
4517 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4518
4519         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4520         * support/regression/tests/bug1426356.c: added
4521         * support/regression/tests/bitfields.c: removed 2 tests
4522
4523 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4524
4525         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4526         * device/include/mcs51/c8051f330.h,
4527         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4528           PCON_IDLE,PCON_STOP and added sfr16 definitions
4529         * device/lib/_divsint.c,
4530         * device/lib/_divuint.c,
4531         * device/lib/_divulong.c,
4532         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4533           register bank bug for small stackauto
4534
4535 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4536
4537         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4538
4539 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4540
4541         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4542         * all.dsp: corrected several bin paths
4543         * device/include/mcs51/c8051f120.h,
4544         * device/include/mcs51/c8051f300.h,
4545         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4546           to PCON_IDLE,PCON_STOP
4547         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4548         * device/lib/printf_large.c (output_float): fixed bug 1388703
4549         * support/regression/tests/bug1057979.c: added test for bug 1388703
4550
4551 2006-02-08 Raphael Neider <rneider AT web.de>
4552
4553         * src/pic/pcode.c (pciTRIS): fixed typo,
4554           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4555           (LinkFlow): fixed handling of flows that end in a call,
4556           (ReuseReg): perform safety check earlier
4557         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4558             to work with flows at the beginning of a pBlock,
4559             fixes #1426557 (Symbol not previously defined),
4560           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4561             usage information
4562           (RemoveUnusedRegisters): update register usage info
4563         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4564             created, reuse existing ones instead
4565         * src/pic/gen.c (genPcall): fixed #1424719
4566
4567 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4568
4569         * link/z80/lkmain.c,
4570         * link/z80/lklex.c,
4571         * link/z80/lkdata.c,
4572         * link/z80/aslink.h: fixed build on current cygwin:
4573         replaced getline() by lk_getline()
4574
4575 2006-02-01 Borut Razem <borut.razem AT siol.net>
4576
4577         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4578           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4579           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4580           src/regression/bool1.c, src/regression/bool2.c,
4581           src/regression/bool3.c, src/regression/call1.c,
4582           src/regression/compare.c, src/regression/compare10.c,
4583           src/regression/compare2.c, src/regression/compare3.c,
4584           src/regression/compare4.c, src/regression/compare5.c,
4585           src/regression/compare6.c, src/regression/compare7.c,
4586           src/regression/compare8.c, src/regression/compare9.c,
4587           src/regression/configword.c, src/regression/for.c,
4588           src/regression/inline.c, src/regression/mult1.c,
4589           src/regression/nestfor.c, src/regression/or1.c,
4590           src/regression/pointer1.c, src/regression/ptrfunc.c,
4591           src/regression/rotate1.c, src/regression/rotate2.c,
4592           src/regression/rotate3.c, src/regression/rotate4.c,
4593           src/regression/rotate5.c, src/regression/rotate6.c,
4594           src/regression/rotate7.c, src/regression/string1.c,
4595           src/regression/struct1.c, src/regression/sub.c,
4596           src/regression/sub2.c, src/regression/switch1.c,
4597           src/regression/while.c, src/regression/xor.c,
4598           src/regression/create_stc, src/regression/simulate,
4599           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4600           regression tests
4601         * src/regression/gpsim_assert.h: added
4602
4603 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4604
4605         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4606         ((void (code *) (void)) 0) ();
4607         * as/hc08/aslex.c,
4608         * as/hc08/aslink.h,
4609         * as/hc08/asm.h,
4610         * as/hc08/asmain.c,
4611         * as/hc08/lkdata.c,
4612         * as/hc08/lklex.c,
4613         * as/hc08/lkmain.c,
4614         * as/mcs51/aslex.c,
4615         * as/mcs51/aslink.h,
4616         * as/mcs51/asm.h,
4617         * as/mcs51/asmain.c,
4618         * as/mcs51/lkdata.c,
4619         * as/mcs51/lklex.c,
4620         * as/mcs51/lkmain.c,
4621         * as/z80/aslex.c,
4622         * as/z80/asm.h,
4623         * as/z80/asmain.c: fixed build on current cygwin:
4624         replaced getline() by as_getline()
4625
4626 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4627
4628         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4629         declarator in the symbol chain
4630         * src/SDCCsymt.h,
4631         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4632         parameter list for function pointers
4633         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4634         * support/regression/tests/bug-716242.c: added
4635
4636 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4637
4638         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4639         offset if possible
4640         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4641
4642 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4643
4644         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4645         inifinitely recurseable, added static
4646         * support/regression/tests/bug-1408066.c: added
4647
4648 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4649
4650         * src/SDCCicode.h,
4651         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4652         renamed, added possibility to create "postLoopLbl"-labels
4653         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4654         newiTempLoopHeaderLabel
4655         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4656         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4657         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4658         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4659         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4660         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4661         (basicInduction): fixed bug #136564, made static,
4662         (loopInduction): changed parameter of basicInduction, made static,
4663         (addPostLoopBlock): added
4664         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4665         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4666         findLoopEndSeq
4667         * support/regression/tests/bug-136564.c: added
4668         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4669         --std-sdcc99 to LIBSDCCFLAGS
4670
4671 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4672
4673         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4674         while loop
4675         * support/regression/tests/bug-1406131.c: added
4676
4677 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4678
4679         * src/SDCCast.c (decorateType): fix promotion of unary minus
4680         * src/SDCCsymt.c (computeType): beautified
4681         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4682         (valUnaryPM, valComplement): fix sign and promotion,
4683         (valNot): ANSI: result type is int (SDCC: unsigned char)
4684         * support/regression/tests/uminus.c: speedup by removing superflous
4685         test case 'int'
4686         * support/regression/tests/onebyte.c: added promotion and signedness
4687         tests for unary minus
4688         * support/regressions/tests/bug-477927.c: disable warning about
4689         uninitialized variables
4690         * support/regression/tests/not.c: added
4691
4692 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4693
4694         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4695         * src/mcs51/gen.c (gen51Code): show final register usage after
4696         fillGaps in asm with --i-code-in-asm
4697         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4698         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4699         incUsed, rliveClear, adjustIChain): made static,
4700         (setFromRange): excluded because it's unused,
4701         (findPrevUseSym, markWholeLoop): added,
4702         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4703         through all branches of predecessors enables sdcc to emit the warning
4704         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4705         (rlivePoint): made static, added parameter emitWarnings which is only
4706         true during the first run out of two,
4707         (findRecursiveSucc, findRecursivePred): removed,
4708         (computeLiveRanges): made static, added parameter emitWarnings,
4709         (dumpIcRlive): added for debugging only
4710         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4711         removed prototype of setFromRange()
4712         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4713         in call of computeLiveRanges()
4714         * support/regression/tests/bug-895992.c: added
4715         * support/regression/tests/bug-971834.c: added
4716         * support/valdiag/tests/bug-895992.c: added
4717         * support/valdiag/tests/bug-971834.c: added
4718
4719 2005-12-18 Raphael Neider <rneider AT web.de>
4720
4721         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4722           (genUnpackBits): improved code for direct operands,
4723           (genPackBits): improved code for literal assignment to bitfields
4724             and for direct destination operands (no FSR indirection),
4725             prevented redundant AND, fixes #1362800,
4726           (AccLsh): added parameter to disable masking of the result
4727         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4728           skip instructions with side-effects (like incfsz),
4729           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4730         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4731         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4732           fixes #1375263
4733
4734 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4735
4736         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4737         volatile variables as spill location
4738
4739 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4740
4741         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4742         replacing literals
4743         * support/regression/tests/bug-1376320.c: added
4744
4745 2005-12-08 Raphael Neider <rneider AT web.de>
4746
4747         * src/pic/device.c: renamed is_shared to pic14_is_shared
4748         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4749         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4750           (is_valid_identifier): added for above workaround
4751
4752 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4753
4754         * device/lib/Makefile.in: fixed to enable port-specific-objects
4755         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4756           char, thanks Hubert Sack
4757         * doc/sdccman.lyx: documented --xstack-loc,
4758           elaborated a bit more on interrupts and pitfalls,
4759           removed "setjmp/longjmp unsupported",
4760           documented some unsupported C99 features
4761         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4762         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4763           if, thanks Hubert Sack
4764         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4765         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4766           make make_library
4767         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4768           regression tests can report resource usage (rfe 700441)
4769         * support/regression/collate-results.py: report resource usage
4770         * support/regression/ports/ds390/spec.mk,
4771         * support/regression/ports/hc08/spec.mk,
4772         * support/regression/ports/mcs51/spec.mk,
4773         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4774         * support/regression/ports/ds390/uCsim.cmd,
4775         * support/regression/ports/hc08/uCsim.cmd,
4776         * support/regression/ports/mcs51/uCsim.cmd,
4777         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4778         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4779           library, use the default one
4780         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4781           building the library
4782
4783 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4784
4785         * config.dsp: added dependency on .version and configure_vc.awk
4786         * device/include/setjmp.h: updated for --stack-auto and --xstack
4787         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4788         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4789         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4790         * device/lib/libsdcc.lib: added _setjmp
4791         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4792           (decorateType): fixed bug 1372851,
4793           (optimizeGetHbit): fixed warning
4794         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4795           array initialisation
4796         * support/regression/tests/bug1057979.c: added test for bug 1358192
4797         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4798
4799 2005-12-03 Borut Razem <borut.razem AT siol.net>
4800
4801         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4802           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4803
4804 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4805
4806         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4807         createIval): implement symbol independant "flexible array member",
4808         (createIvalCharPtr): implemented flexible array initialisation with a
4809         string
4810         * src/SDCCsymt.c (copyStruct): removed,
4811         (getSize): fixed misleading comment,
4812         (getAllocSize): removed, the additional allocation size is now in
4813         sym->flexArrayLength,
4814         (checkStructFlexArray): new, syntax checks for flexible array members,
4815         (compStructSize): added syntax checks for "flexible array members"
4816         (copyStruct): removed,
4817         (copyLinkChain): removed inefficient fix for bug 770487
4818         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4819         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4820         symbol->flexArrayLength
4821         * src/SDCCerr.c,
4822         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4823         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4824         * support/regression/tests/structflexarray.c: added
4825         * support/valdiag/tests/structflexiblearray.c: added
4826
4827 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4828
4829         * src/SDCCast.c (decorateType): fixed bug 1368489
4830         * support/Util/SDCCerr.c,
4831         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4832
4833 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4834
4835         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4836           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4837
4838 2005-11-27 Borut Razem <borut.razem AT siol.net>
4839
4840         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4841           support/cpp2/mkdeps.h: added command line option
4842           -obj-ext=<extension> to SDCPP to define object file externion, used
4843           for generation of make dependencies (-M)
4844         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4845
4846 2005-11-26 Borut Razem <borut.razem AT siol.net>
4847
4848         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4849           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4850           added pic and pic16 libraries
4851
4852 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4853
4854         * device/include/float.h: Corrected typo in prototype of __fsgt
4855
4856 2005-11-25 Borut Razem <borut.razem AT siol.net>
4857
4858         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4859           added creation of model-mcs51-stack-auto libraries
4860
4861 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4862
4863         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4864         and fields-list too
4865         * src/SDCCast.c (createIvalArray): removed obsolete comment
4866
4867 2005-11-24 Borut Razem <borut.razem AT siol.net>
4868
4869         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4870           added missing device/lib/mcs51/crt*.asm sources
4871
4872 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4873
4874         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4875
4876 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4877
4878         * device/lib/_fs2schar.c,
4879         * device/lib/_fs2sint.c,
4880         * device/lib/_fs2slong.c: optimized inline asm
4881
4882 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4883
4884         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4885           Better handling of floats between -1.0 and 0.0.
4886
4887 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4888
4889         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4890           (the missing "if"s prohibited removal of redundant labels)
4891
4892 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4893
4894         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4895           Properly convert floats between -1.0 and 0.0 to long, int, and char
4896           types (max integer value of negative floats tends to zero).
4897         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4898           Removed changes made so to work properly with floats between
4899           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4900           and _fs2char.c
4901
4902 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4903
4904         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4905         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4906         (genCast) cosmetic change
4907         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4908         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4909         from mcs51
4910         * support/regression/tests/bitfields (testSignedBitfields): added
4911
4912 2005-11-18 Borut Razem <borut.razem AT siol.net>
4913
4914         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4915         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4916           introduced SILENT option to make building of pic16 libraries less
4917
4918 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4919
4920         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4921           Now they work properly with floats between -1.0 and 0.0
4922         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4923
4924 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4925
4926         * src/SDCCicode.c (printOperand): added missing else
4927
4928 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4929
4930         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4931         reformatted for better readability
4932         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4933         signed bitfields
4934
4935 2005-11-17 Borut Razem <borut.razem AT siol.net>
4936
4937         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4938           introduced SILENT option to make building of pic16 libraries less
4939           verbose - used for nightly snapshot build
4940         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4941           available on Win32 platforms.
4942         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4943           medium, large, pic and pic16
4944
4945 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4946
4947         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4948           printf("%f"...) sets fraction to zero.
4949
4950 2005-11-16 Raphael Neider <rneider AT web.de>
4951
4952         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4953           fixes #1357221
4954         * src/pic/gen.c (genIfx): implemented for CARRY bit
4955         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4956           to generic pointers, fixes #1357332,
4957           (pic16_movLit2f): NEW,
4958           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4959
4960 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4961
4962         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4963
4964 2005-11-11 Raphael Neider <rneider AT web.de>
4965
4966         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4967         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4968           compute pointer's type from operand,
4969           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4970           improved single bit reads, fixes bug #1353379
4971
4972 2005-11-09 Borut Razem <borut.razem AT siol.net>
4973
4974         * support/scripts/sdcc.nsi: added lib/pic to the package
4975
4976 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4977
4978         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4979
4980 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4981
4982         * support/regression/tests/bug1348008.c: added
4983         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4984         * support/regression/tests/bug1337835.c: updated comment
4985
4986 2005-11-06 Borut Razem <borut.razem AT siol.net>
4987
4988         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4989           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4990           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4991           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4992           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4993           dynamic construction of cl_error_class and derivates - 2.nd try
4994
4995 2005-11-05 Borut Razem <borut.razem AT siol.net>
4996
4997         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4998           bug, which caused Bus Errors on sparc solaris
4999
5000 2005-11-04 Borut Razem <borut.razem AT siol.net>
5001
5002         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5003           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5004           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5005           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5006           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5007           and derivates to resolve the initialization problem on OSX
5008
5009 2005-11-02 Borut Razem <borut.razem AT siol.net>
5010
5011         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5012           corrected typo - #include <winsock2.h>
5013
5014 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5015
5016         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5017           (_asxxxx_mapping): added org directive for future enhancements
5018
5019 2005-11-01 Borut Razem <borut.razem AT siol.net>
5020
5021         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5022           enabled sockets on WIN32
5023         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5024
5025 2005-10-31 Borut Razem <borut.razem AT siol.net>
5026
5027         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5028           WIN32 backslash path delimiters should be escaped when used in C strings
5029         * support/regression/tests/bitfields.c: exclude failing assertions for
5030           __CYGWIN32__ and __MINGW32__ hosts
5031
5032 2005-10-30 Borut Razem <borut.razem AT siol.net>
5033
5034         * src/SDCCutil.c: corrected double comparison typo
5035
5036 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5037
5038         * device/lib/medium/Makefile: added for new memory model medium
5039         * device/include/asm/mcs51/features.h: updated for medium/pdata
5040         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5041           added Multiply & Accumulate sbit's and MAC0_PAGE define
5042         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5043         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5044         * device/lib/_mullong.c: update for medium model
5045         * device/lib/incl.mk: added medium model
5046         * doc/sdccman.lyx: documented medium model
5047         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5048         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5049         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5050         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5051           (allocParms): set SCLS and OCLS to pdata for medium model
5052         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5053           for pdata,
5054           (powof2): return <0 if not power of 2
5055         * src/avr/gen.c (genBitWise): use updated powof2
5056         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5057           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5058           (shiftLLeftOrResult): use B if necessary
5059         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5060         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5061         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5062         * support/regression/Makefile.in: added test-mcs51-medium
5063         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5064
5065 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5066
5067         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5068         specifier unsigned
5069         * device/lib/time.c (mktime): fixed bug 1334315
5070
5071 2005-10-28 Raphael Neider <rneider AT web.de>
5072
5073         * device/include/pic/p16f_common.inc: added common declarations
5074         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5075
5076 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5077
5078         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5079           (aopPutUsesAcc): added to predict accumulator use,
5080           (assignResultValue): save acc if necessary,
5081           (genMinusDec): store result if indirectly addressed,
5082           (genDivOneByte):  save acc if necessary,
5083           (movLeft2Result): bugfix if left already in acc,
5084           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5085             attention to accumulator use (esp. pdata),
5086           (genReceive): receive pdata correctly
5087         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5088         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5089
5090 2005-10-27 Raphael Neider <rneider AT web.de>
5091
5092         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5093
5094 2005-10-27 Raphael Neider <rneider AT web.de>
5095
5096         * .version: changed version to 2.5.4
5097         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5098         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5099           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5100             arithmetics support routines
5101         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5102         * device/lib/Makefile.in: also create installdir for pic
5103
5104         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5105           pic14 port as well
5106         * src/pic/device.c (dump_sfr): rewritten to delegate register
5107           placement to the linker (use `extern sym' rather than sym EQU addr),
5108           (validAddress): fixed to check last specified address
5109         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5110           (popGetLit): truncate literal value to 8 bit,
5111           (popGet): moved assert to more appropriate place
5112           (popGetExternal): create pCode operand from and mark the according
5113             symbol as being `extern'
5114           (popGetAddr): added sanity check on immediate's offset, provide
5115             GPOINTER tag on demand
5116           (aopPut): fixed for immediates,
5117           (mov2w_op): move operand's address or contents to WREG (depending on
5118             operand type), safer variant of mov2w,
5119           (movwf,call_libraryfunc): NEW, handy abbreviations,
5120           (get_argument_pcop,get_return_val_pcop,pass_argument,
5121           get_returnvalue): interface for accessing function parameters and
5122             return values,
5123           (assignResultValuei,genRet): use new parameter/return value interface
5124           (pic14_getDataSize): back to old version handling generic pointers,
5125           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5126             provided implementation and/or fixed old one,
5127           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5128             calls, removed legacy 8051 reference code
5129           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5130           (loadSignToC): NEW, move the operands sign bit to CARRY,
5131           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5132             genRightShiftSigned, accepts negative shift counts,
5133           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5134           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5135             generic pointers, __data pointers and __code pointers,
5136           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5137             and signed bitfields, limit bitfields to 8 bit,
5138           (genDataPointerGet): fixed number of bytes read,
5139           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5140           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5141             pointers to constant data are no longer assumed to point to __code
5142             space, removed invalid pointer types,
5143           (bitpatternFromVal): retrieve the PICs representation of an integer
5144             or float literal,
5145           (genDataPointerSet): fixed assigning to po_immediate operands,
5146           (genGenPointerSet): implemented as library call,
5147           (genIfx): fixed incorrect condition,
5148           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5149             provide GPOINTER tag according to destination's storage class,
5150           (genCast): added code to handle casting to generic pointers, added
5151             sign-/zero extension of the result
5152           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5153         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5154         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5155           extend the result
5156         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5157           address/register resides in the shared banks
5158           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5159             put all variables into separate sections (have the linker arrange
5160             them)
5161           (picglue): put init code and interrupt handlers in separate sections
5162         * src/pic/main.c: added port specific options table, modified to PORT
5163           structure to make GPOINTERs 3 byte, added pic14_options
5164           (_pic14_do_link): private linking routine (update paths to libraries,
5165             add libsdcc.lib by default)
5166         * src/pic/main.h: declare pic14_options
5167         * src/pic/pcode.c: fixed instructions i/o relations,
5168           (RegCond): reverted to correct version,
5169           (newpCodeOpLit): truncate literals to 8 bit,
5170           (genericPrint): added debug output,
5171           (getRegFromInstruction): fixed for various operand types, simplified
5172           (BuildFlow): fixed broken handling of isntructions with labels
5173           (LinkFlow): start at last instruction in flow (skip trailing comments),
5174             pass the flow on to the next instruction after CALL
5175           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5176           (insertPCodeInstruction): fixed inserting after a skip instruction,
5177           (DoBankSelect): fixed for labeled instructions
5178           (OptimizepBlock): honor --nopeep switch
5179           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5180         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5181         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5182           (pCodeOptime2pCodes): allow disabling this optimization via
5183             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5184             but is still buggy), started implementation of a dataflow based
5185             pCode optimization (CSE + dead code elimination)
5186           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5187         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5188           names are independant of the stack location and therefore portable across
5189           devices
5190
5191 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5192
5193         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5194           (selectSpil): fixed bug 1337835 by not spilling bit variables
5195         * support/regression/tests/bug1337835.c: added test for this bug
5196         * src/mcs51/peeph.def: restart after rule 3.c,
5197           addded rules 263.x to optimize loading constants
5198
5199 2005-10-26 Raphael Neider <rneider AT web.de>
5200
5201         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5202         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5203           (genAssign): emit warning when casting literals to generic pointer
5204             type, also applies when taking the address of a fixed variable,
5205           (genCast): improved casting to generic pointers
5206         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5207           extern variables, added verbose error message
5208         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5209
5210 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5211
5212         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5213         carry must be complemented too
5214         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5215         could be emitted by genMinus
5216         * src/SDCCval.c (constVal): fixed bug 1305065
5217
5218 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5219
5220         * src/SDCCast.c (addCast): added promotion for bit variables
5221         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5222         promotion casts + optimisation
5223         (optimizeGetWord): fix warning 'i' might be used uninitialized
5224         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5225         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5226
5227 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5228
5229         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5230         all chars are promoted to int; promotion should be handled in SDCCast.c
5231
5232 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5233
5234         * device/lib/_strcmp.c: Fixed bug 1326457
5235
5236 2005-10-11 Raphael Neider <rneider AT web.de>
5237
5238         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5239         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5240
5241 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5242
5243         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5244         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5245
5246 2005-10-04 Raphael Neider <rneider AT web.de>
5247
5248         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5249           device/lib/pic16/pics.all: added pic18f1320
5250         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5251
5252 2005-09-30 Raphael Neider <rneider AT web.de>
5253
5254         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5255         * src/pic16/devices.inc: NEW, provides device descriptions
5256         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5257
5258 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5259
5260         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5261           GETHBIT
5262
5263 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5264
5265         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5266           documented Any Order Bit, Higher Order Byte and Higher Order Word
5267         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5268         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5269           (optimizeGetAbit): new, to get any bit, not only the high bit,
5270           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5271           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5272           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5273           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5274             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5275             GETABIT, GETBYTE, GETWORD: decorate them,
5276           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5277           (ast_print): added GETABIT, GETBYTE, GETWORD
5278         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5279         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5280           (geniCodeBinary): new generic binary icode,
5281           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5282         * src/port.h: updated comment for PORT.hasExtBitOp
5283         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5284           (genGetByte): new, to get a single byte,
5285           (genGetWord): new, to get a word from a long,
5286           (gen51Code): added GETABIT, GETBYTE, GETWORD
5287         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5288
5289 2005-09-23 Raphael Neider <rneider AT web.de>
5290
5291         * configure.in, configure: have device/lib/pic configured
5292         * device/lib/Makefile.in: added model-pic14
5293         * device/lib/clean.mk: added pic/ to clean rule
5294         * device/lib/pic: added rudimentary pic14 library providing support
5295           functions for multiplication/division/generic pointer access
5296         * src/SDCCopt.c (convilong): mark support functions as extern
5297           for pic14 port as well
5298         * src/pic/gen.c (genMult): added assertions,
5299           (genpic14Code): emit warning on unhandled iCodes
5300         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5301         * src/pic/pcode.c (pCodeOpCopy),
5302         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5303           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5304           SFR_REGISTER}), made safe for future extensions
5305         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5306           instructions even if preceeded by SKIP instructions (also remove
5307           them); removed unused code
5308         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5309           prevents leaving parts of the structure uninitialized after copying
5310
5311 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5312
5313         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5314           ago by me
5315         * support/regression/tests/addsub.c: added test for the bug
5316
5317 2005-09-21 Raphael Neider <rneider AT web.de>
5318
5319         * device/include/pic16/pic18f1220.h,
5320           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5321         * device/lib/pic16/Makefile.rules: added missing opening paren
5322         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5323           are provided in genutils.c,
5324           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5325           operand/result sizes,
5326           (genCmp): assert on NULL pointers first, then check deref'ed values
5327         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5328           result size
5329
5330 2005-09-18 Raphael Neider <rneider AT web.de>
5331
5332         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5333           as these are now unused,
5334           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5335         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5336           local, avoids uninitialized pointer dereference on r->name
5337         * src/pic16/ralloc.c (newReg): fixed indentation
5338
5339 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5340
5341         * src/SDCCval.c (constVal): fixed bug 730366
5342         * support/Util/SDCCerr.c,
5343         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5344
5345 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5346
5347         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5348
5349 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5350
5351         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5352
5353 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5354
5355         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5356           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5357         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5358           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5359         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5360         * packihx/packihx.c (hexDigit): made c unsigned char
5361         * as/mcs51/lklibr.c (fndsym),
5362         * link/z80/lkgb.c (gb),
5363         * link/z80/lklibr.c (fndsym),
5364         * link/z80/lkrloc.c (relr),
5365         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5366         * src/SDCC.lex (checkCurrFile, process_pragma),
5367         * src/SDCCglue.c (spacesToUnderscores),
5368         * src/SDCCmain.c (setParseWithComma, processFile),
5369         * src/asm.c (tvsprintf, printCLine),
5370         * src/avr/gen.c (emitcode, aopPut),
5371         * src/ds390/gen.c (emitcode),
5372         * src/hc08/gen.c (emitcode, emitinline),
5373         * src/mcs51/gen.c (emitcode, genInline),
5374         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5375           tokenizeLineNode),
5376         * src/pic/ralloc.c (debugLog),
5377         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5378           tokenizeLineNode),
5379         * src/pic16/ralloc.c (debugLog),
5380         * src/z80/main.c (_process_pragma):
5381            made all ctype.h function calls safe
5382         * src/SDCCopt.c: include math.h for fabs
5383         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5384           and used them throughout the code to make ctype.h function calls safe
5385         * src/ds390/main.c (asmLineNodeFromLineNode),
5386         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5387         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5388            unsigned char*
5389         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5390           (newpCodeAsmDir): made ctype.h function calls safe
5391         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5392           pic16_emitcode):  made lbp unsigned char*
5393         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5394           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5395         * src/xa51/gen.c (emitcode),
5396         * src/z80/gen.c (_emit2): made lbp unsigned char*
5397         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5398            char*
5399
5400 2005-09-05 Raphael Neider <rneider AT web.de>
5401
5402         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5403           access bank splitpoint
5404
5405 2005-09-05 Raphael Neider <rneider AT web.de>
5406
5407         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5408
5409 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5410
5411         * .version: changed to version 2.5.3
5412         * doc/sdccman.lyx: changed version to 2.5.3,
5413           documented --codeseg and --constseg and pragma codeseg and constseg,
5414           documented bit parameters (reentrant) and bit returning
5415         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5416            currFunc->recvSize, but is this ok for all ports?
5417           (ast2iCode): result of ~ on unsigned char must be cast to int for
5418            bool to work
5419         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5420           function pointers in bit space
5421         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5422           (processFuncArgs): call port.reg_parm() with reentrancy info
5423         * src/port.h,
5424         * src/avr/main.c,
5425         * src/ds390/main.c,
5426         * src/hc08/main.c,
5427         * src/pic/main.c,
5428         * src/pic16/main.c,
5429         * src/xa51/main.c,
5430         * src/z80/main.c: port.reg_parm prototype extended with
5431           "bool reentrant" parameter
5432         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5433           options.stackAuto for allocating bit register parameters
5434         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5435           (genSend): set BitBankUsed if it is,
5436           (selectRegBank): factored out of genCall for use in genPcall,
5437           (genCall): removed redundant dtype assignmen, use selectRegBank,
5438           (genPcall): handle returning in Carry properly, save in F0 if needed,
5439           (genReceive): handle bit register parameters
5440         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5441           (mcs51_assignRegisters): enable bit registers for all reentrant
5442            functions and don't set BitBankUsed unconditionally
5443         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5444         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5445         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5446
5447 2005-08-27 Borut Razem <borut.razem AT siol.net>
5448
5449         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5450         ppc-osx (Darwin) does not support -u option. It seems that it is
5451         supported only on Linux - GNU cp
5452
5453 2005-08-25 Borut Razem <borut.razem AT siol.net>
5454
5455         * sim/ucsim/gui.src/serio.src/Makefile.in,
5456           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5457           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5458           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5459           install and strip, since the strip at /usr/ccs/bin should be used
5460           on solaris
5461
5462 2005-08-24 Borut Razem <borut.razem AT siol.net>
5463
5464         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5465
5466 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5467
5468         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5469         ffffffffu
5470
5471 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5472
5473         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5474         * as/mcs51/lkmain.c (link_main): fixed warning
5475         * device/include/stdbool.h: ds390 has no advanced bit support yet
5476         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5477         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5478         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5479           and updated their macros
5480         * src/SDCCval.c (constVal): updated comment for renamed b_long
5481
5482 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5483
5484         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5485         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5486           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5487           (oprio): set priority for '['
5488         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5489            and adb_24_bit
5490         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5491         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5492         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5493         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5494           added overlayable BIT_BANK area
5495         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5496           (summary2): explain 'T' in legenda
5497         * as/mcs51/lkrloc.c: replaced old K&R style,
5498           (relr): added R_BIT processing,
5499           (errmsg): added "Bit-addressable relocation error",
5500           (adb_bit): added for converting from byte- to bit-addressable space,
5501           (adb_24_bit): added for converting from byte- to bit-addressable space
5502         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5503            used in reentrant functions now even as return value
5504         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5505         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5506           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5507         * src/SDCCglobl.h: added indicator BitBankUsed
5508         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5509            the bit registers b0-b7
5510         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5511           (geniCodeCast): fixed bug 1263853,
5512           (geniCodeLogicAndOr): put result in bool or char,
5513           (geniCodeReceive): added parameter func for accessing the return type,
5514           (geniCodeFunctionBody): pass func to geniCodeReceive
5515         * src/SDCCmain.c: added indicator BitBankUsed
5516         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5517         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5518           (checkSClass): don't put automatic bool/bit on stack,
5519           (checkFunction): removed check on function cannot return bit
5520         * src/SDCCsymt.h: added newBoolLink prototype
5521         * src/mcs51/gen.c (rb1regs): added bit registers,
5522           (movc): created for assigning to carry,
5523           (pushReg, popReg): created for pushing registers,
5524           (sameRegs): check both AOP_REG and AOP_CRY types,
5525           (aopOp): handle bit registers,
5526           (aopPut): optimization no self-assign,
5527           (saveRegisters): push reg->base (bits) only once for bit registers,
5528            and use pushReg,
5529           (unsaveRegisters): pop reg->base only once and use popReg,
5530           (assignResultValue): added parameter func and return in carry for bits,
5531           (genIpush): optimization no reload in A if not changed,
5532           (genSend): bit parameters in reentrant functions are passed in bit
5533            registers by first assigning to bits in B, then save registers and
5534            copy B to bits,
5535           (genCall): handle returning in Carry properly, save it in F0 if needed,
5536           (genPcall): updated assignResultValue call, this is not safe yet for bit
5537            returning function !!!
5538           (genFunction): don't generate equ's for bit registers and use pushReg,
5539           (genEndFunction): take care of bit returning functions and use popReg,
5540           (genRet): return bit in Carry,
5541           (genIfx): optimize bit registers and other directly addressable bits,
5542           (genReceive): updated assignResultValue call
5543         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5544           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5545            registers when using stack-auto
5546         * src/mcs51/ralloc.c (_G): added allBitregs,
5547           (regs8051): added the bit registers,
5548           (createStackSpil): use macro IS_BIT,
5549           (getRegBit): added to allocate a bit register, else spill,
5550           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5551           (updateRegUsage): factored out to ease stepping while debugging,
5552           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5553            also allocate bit registers,
5554           (fillGaps): handle bit registers,
5555           (findAllBitregs): added to create bit vector with all bit registers,
5556           (mcs51_allBitregs): returns this bit vector,
5557           (mcs51_assignRegisters): when using stack-auto use bit registers for
5558            passing parameters and creating local variables
5559         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5560
5561 2005-08-22 Borut Razem <borut.razem AT siol.net>
5562
5563         * device/lib/Makefile.in: replaced find option -or with -o
5564           to make it run on solaris
5565
5566 2005-08-22 Raphael Neider <rneider AT web.de>
5567
5568         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5569           fixes #1265442 (crash on Solaris)
5570
5571 2005-08-20 Borut Razem <borut.razem AT siol.net>
5572
5573         * configure, configure.in: added tests for libsocket and libnsl libraries,
5574           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5575           from support/regression/Makefile.in
5576         * support/regression/Makefile.in: added
5577         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5578         * sim/ucsim/libtool: regenerated on sparc-solaris
5579         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5580           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5581           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5582           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5583           sparc-solaris, which doesn't use GNU ld linker
5584         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5585         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5586
5587 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5588
5589         * src/mcs51/peeph.def: updated comments
5590
5591 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5592
5593         * device/lib/_gptrget.c,
5594         * device/lib/_gptrput.c: slightly shorter
5595         * doc/sdccman.lyx: incremented version
5596         * src/mcs51/peeph.def: moved peephole comments to the line of first
5597           change to better keep line correlation, reanimated 186.e
5598         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5599
5600 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5601
5602         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5603           David Saxton with quotes around file name.
5604
5605 2005-08-15 Borut Razem <borut.razem AT siol.net>
5606
5607         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5608           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5609           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5610           make tests run on x86_64 platform
5611
5612 2005-08-13 Raphael Neider <rneider AT web.de>
5613
5614         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5615           as it might be executed DURING a build (parallel make is wonderful)
5616
5617 2005-08-13 Raphael Neider <rneider AT web.de>
5618
5619         * device/lib/Makefile.in (port-specific-objects-pic16):
5620           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5621         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5622           dependency
5623         * device/lib/pic16/Makefile.rules: build subdirs before creating
5624           the library, removed builddir rule, create $(builddir) early in
5625           recurse rule, use empty recurse rule for leaf directories
5626         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5627           mkdir errors (race condition), removed duplicate suffix "hex"
5628           from clean rules
5629         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5630         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5631           prevents mkdir -p from aborting on Alpha
5632
5633 2005-08-12 Raphael Neider <rneider AT web.de>
5634
5635         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5636           db-statements in order to allow for arrays of pointers in code
5637           sections to be placed without interspersed 0-padding, fixes
5638           bug #1256215
5639         * (emitStatistics): fixed division by zero for pic18f1220
5640         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5641           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5642         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5643         * (pic16_pCodeConstString): keep track of already emitted string
5644           literals to prevent "duplicate definitions of symbol _str_NR"
5645         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5646           debug message
5647         * device/lib/Makefile.in: ignore failing PIC16 library builds
5648         * device/lib/pic16/Makefile: do not build if gputils are missing
5649         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5650
5651 2005-08-10 Raphael Neider <rneider AT web.de>
5652
5653         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5654           my last commit)
5655
5656 2005-08-10 Raphael Neider <rneider AT web.de>
5657
5658         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5659           Rokas' patch to add the new fixed point type "__fixed16x16"
5660         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5661           functions for __fixed16x16 arithmetics
5662         * device/lib/pic16: reimplemented the build system to support
5663           a separate build directory, better handling of libio (create
5664           the library in a separate subdir for each architecture) and
5665           easier configuration (centralized in Makefile.common)
5666
5667 2005-08-07 Raphael Neider <rneider AT web.de>
5668
5669         * src/pic16/gen.c (genrshTwo): fixed sign extension
5670         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5671         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5672           added T0CONbits
5673         * device/include/pic16/pic18f4220.h: NEW, header for
5674           pic18f4220 and pic18f4320
5675         * device/include/pic16/pic18fregs.h: added new devices,
5676           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5677         * device/include/pic16/signal.h: resolved name clashes
5678           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5679           to also allow testing for interrupt enable bits, added
5680           comments on how to use the macros
5681         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5682         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5683           register definitions for the devices
5684         * device/lib/pic16/pics.all: added new devices
5685         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5686           allocated memory
5687         * device/lib/pic16/libc/stdlib/memfree: do not count
5688           the block header as free memory
5689         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5690           simplified and added missing end-of-blocklist-marker
5691           (reported by Peter Onion, fixes #1252814)
5692         * (_mergeHeapBlock): fixed loop condition
5693         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5694           len==0, restructured code
5695         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5696           up a bit, reduced bitfield accesses, prevent endless loops
5697           in case of heap corruption
5698         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5699           "unreferenced arguments/must return a value" warnings
5700         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5701           replaced BAUDREG with SPBRG
5702         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5703           device/lib/pic16/debug/gstack/gstack.c: replaced
5704           _naked, _asm, _endasm with __naked, __asm, __endasm
5705
5706 2005-08-05 Raphael Neider <rneider AT web.de>
5707
5708         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5709           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5710
5711 2005-08-05 Borut Razem <borut.razem AT siol.net>
5712
5713         * device/lib/Makefile.in: added missing ';'
5714         * configure: removed ^M characters
5715
5716 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5717
5718         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5719           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5720           License
5721
5722 2005-08-04 Borut Razem <borut.razem AT siol.net>
5723
5724         * configure.in: pic16 libraries build 2nd try - enable running
5725           configure in device/lib/pic16
5726         * configure: regenerated from configure.in
5727         * device/lib/Makefile.in: create $(PORT)/bin directory
5728
5729 2005-08-03 Raphael Neider <rneider AT web.de>
5730
5731         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5732           to get/set values via pointers
5733         * (genUnpackBits,genPackBits): changed detection of
5734           ptr->bitfield vs. sym.bitfield, fixed access via generic
5735           pointers, removed dead (wrong) code for multibyte bitfields
5736         * (genNearPointerGet, genGenPointerGet): removed useless code,
5737           fixed bitfield detection, fixes #1250594
5738         * (genNearPointerSet): removed useless code
5739         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5740           and introduced macro pic16_emitpcode that conditionally emits
5741           the origin of the following pCode (useful for debugging SDCC)
5742         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5743         * (createDefmap): fixed handling of LFSR for --optimize-df
5744
5745 2005-08-02 Borut Razem <borut.razem AT siol.net>
5746
5747         * device/lib/Makefile.in: pic16 libraries build enabled since
5748           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5749
5750 2005-08-02 Raphael Neider <rneider AT web.de>
5751
5752         * src/pic16/gen.c (genPackBits): removed deprecated warning
5753         * (genGenPointerSet): fixed bitfield detection
5754
5755 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5756
5757         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5758
5759 2005-07-31 Raphael Neider <rneider AT web.de>
5760
5761         * device/lib/pic16/libdev/pic18f458.c,
5762           device/include/pic16/pic18f458.h: added missing T0CONbits
5763
5764 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5765
5766         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5767
5768 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5769
5770         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5771
5772 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5773
5774         * device/include/mcs51/at89c51ed2.h: added.
5775
5776 2005-07-23 Raphael Neider <rneider AT web.de>
5777
5778         * src/pic/gen.h: added emitpcode macro for debugging
5779         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5780           and replace by macro adding debug information on demand
5781         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5782         * (gencjne): tried to fix; replaced with correct (slower) code
5783         * (gen{Unp,P}ackBits): fixed single bit access
5784         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5785         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5786           previous instruction
5787         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5788           register has to be handled with care (forbidding movement
5789           of assignments/uses, removing assignments completely, ...)
5790         * (pCodeOptime2pCodes): make use of regIsSpecial
5791         * added lots of debugging output (commented out)
5792         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5793           from being reused as result UNLESS it is known to work
5794
5795 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5796
5797         * support/Util/dbuf.h: include <stddef.h> for size_t
5798         * .version: changed to version 2.5.2
5799
5800 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5801
5802         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5803
5804 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5805
5806         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5807           (genModOneByte): removed needless psha/pula
5808
5809 2005-07-22 Raphael Neider <rneider AT web.de>
5810
5811         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5812           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5813         * src/pic/gen.c (resolveIfx): do not "invent" labels
5814         * (genSkipc): changed to positive logic
5815         * (genSkipCond): removed as no longer needed
5816         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5817           backport from PIC16
5818         * (genLeftShift): check operands are in different registers
5819         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5820           INCF does not update CARRY...
5821         * src/pic/main.c: fixed _linkCmd
5822         * src/pic/pcode.c (unlinkpCode): added inactive code
5823         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5824           alive (do not assign result and operand overlapping registers)
5825
5826 2005-07-22 Raphael Neider <rneider AT web.de>
5827
5828         * src/pic/device.c (dump_sfr): replaced register declaration with
5829           call to emitSymbolToFile() to avoid duplicate symbols
5830         * (assignRelocatableRegisters): do not declare external symbols
5831         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5832           right (take size of type, not etype)
5833         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5834         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5835         * (packRegsForAccUse): disabled assignment of WREG as
5836           the result reg to prevent occurence of just fixed #1235003,
5837           fixes #1242954
5838         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5839           symbols (avoids duplicate symbols in .asm file)
5840         * (pic14emitRegularMap): use emitSymbolToFile()
5841         * src/pic/gen.c (aopOp): fixed spillLocation handling
5842         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5843         * (genDataPointerSet): removed unneccessary variables/output
5844
5845 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5846
5847         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5848         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5849
5850 2005-07-21 Raphael Neider <rneider AT web.de>
5851
5852         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5853           architecture cannot handle them efficiently, fixes bug #1235003
5854         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5855           check for empty sets before using them (fixes bug #1232190)
5856
5857 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5858
5859         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5860           (lnksect2): generate warnings for memory overlap
5861         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5862           constseg to set the name of these segments so you can instruct the linker
5863           to place them in banks
5864         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5865         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5866           added code_seg and const_seg to options
5867         * src/SDCCglue.c (emitMaps): use options.const_seg,
5868           (createInterruptVect): put interrupt vectors in segment HOME,
5869           (glue): put HOME before static segment and put the main glue in HOME,
5870           (glue): use options.code_seg
5871         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5872         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5873           these segments so you can instruct the linker to place them in banks
5874           (linkEdit): use code_loc for HOME segment which should be the first
5875           segment in code memory now
5876         * src/SDCCmem.c: fixed more stuff like bug 1238386
5877         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5878           (changePointer): don't change function pointers to code pointers for
5879           banked functions,
5880           (compareType): added exceptional check for banked function pointers
5881         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5882         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5883           after static in code memory
5884         * src/mcs51/gen.c: added aopLiteralLong prototype,
5885           (aopForSym): use getSize for functions,
5886           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5887           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5888           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5889           the segment,
5890           (genPcall): use call for literal function pointers and generate banked
5891           calls over the one trampoline so there's only one place for the user to
5892           modify according to his/hers hardware,
5893           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5894           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5895         * src/mcs51/main.c: added keyword banked,
5896           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5897         * support/Util/SDCCerr.c,
5898         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5899           needed for passing the bank and address to the trampoline
5900         * device/lib/mcs51/crtbank.asm: added for bankswitching
5901         * device/lib/mcs51/Makefile: added crtbank
5902
5903 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5904
5905         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5906           for fields at offset 0 of a struct or union as reported
5907           on 2005-07-07 in the developer mailing list.
5908
5909 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5910
5911         * src/SDCCmem.c: fixed bug 1238386
5912
5913 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5914
5915         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5916           (patch #1144962), added peephole 300, enabled 259.x
5917         * doc/sdccman.lyx: removed screenshot and provided link instead
5918
5919 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5920
5921         * doc/sdccman.lyx: added section about debugging with ddd
5922         * doc/figures/ddd_example.eps: screenshot of debugging session
5923
5924 2005-07-04 Raphael Neider <rneider AT web.de>
5925
5926         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5927           like CODE pointers, fixes #1115683
5928         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5929           call, fixes bugs #1232211, #1228110,
5930           fixed wrong casts to pCodeFlow from pCodeInstructions
5931
5932 2005-07-04 Raphael Neider <rneider AT web.de>
5933
5934         * src/pic/gen.c (popGet): changed assert to allow for
5935           bit operands
5936         * (popGetAddr): changed signature to provide
5937           an additional index, patched all call sites
5938         * (genCmpEq): handle literal-like operands correctly
5939         * (genAddrOf): added sanity checks on __code/__data pointers
5940         * (genAssign): added handling of symbols from __code section
5941         * (gencjne): do not generate code for comparisons whose result
5942           is neither stored nor used, fixes bug #1171114
5943         * (AccLsh, AccRsh): operate on operand instead of WREG
5944         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5945           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5946           by known count
5947         * rewrote complete shift-by-literal logic, commented unused
5948           functions out
5949         * (genConstPointerGet): get multiple bytes (if result size > 1),
5950           fixed handling of non-immediate addresses
5951         * (genPointerGet): handle CODE pointers like CONST pointers
5952         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5953         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5954           operand is to be treated as a literal or not
5955         * (mov2w,genPcall,genCmpEq),
5956           src/pic/genarith.c: use aop_isLitLike() to decide between
5957           literal/register contents
5958         * (addSign): added missing offset
5959         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5960           only emit comment in debug-mode,
5961           use {aop,op}_isLitLike throughout the file
5962         * src/pic/glue.c: fix initializers for pointers (work in progress)
5963         * src/pic/pcode.c (get_op): honor index on _const symbols
5964         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5965         * (dumppBlock): added pCode size estimation
5966         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5967           check for IS_SYMOP before OP_SYMBOL'ing
5968         * fixed indentation, compacted switch-statements
5969         * (allocReg): find free register and allocate it instead of
5970           allocating new registers all the time
5971         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5972           registers as its operands (necessary only for multibyte GETs)
5973
5974 2005-07-01 Raphael Neider <rneider AT web.de>
5975
5976         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5977           debugging .asm-output macros FENTRY + FEXIT
5978         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5979           way... I wonder...
5980         * (emitpComment): NEW, printf to pCode
5981         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5982           offset handling
5983         * (popGetAddr): NEW, variant of popGet to access an immediates
5984           high(er) bytes instead of the n'th byte of memory they reference,
5985           replaced popGet with popGetAddr where neccessary
5986         * (genDataPointerGet): reactivated and fixed implementation
5987         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5988           accesses
5989         * (genDataPointerSet): fixed multibyte assignments
5990         * (genpic14Code): fixed --i-code-in-asm handling
5991         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5992         * (genPlus): fixed index-out-of-bounds error
5993         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5994         * src/pic/ralloc.c: added debugging output macro FENTRY2
5995         * (spillThis): fixed indentation, enbraced for-body for clarity
5996         * (rematStr): commented out as now unused
5997         * (regTypeNum): commented out special spill case (overwrites
5998           arbitrary values)
5999         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6000
6001 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6002
6003         * doc/sdccman.lyx: documented sfr16/sfr32,
6004           added example for using storage class with function pointers
6005         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6006
6007 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6008
6009         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6010         * device/lib/_itoa.c,
6011         * device/lib/_ltoa.c: optimized codesize
6012         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6013           but don't know how to suppress the double warning.
6014         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6015         * support/Util/SDCCerr.c,
6016         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6017
6018 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6019
6020         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6021           fixed old K&R prototypes
6022         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6023         * device/lib/_gptrget.c,
6024         * device/lib/_gptrgetc.c,
6025         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6026           also new versions for small generic pointers and banked generic pointers
6027         * src/port.h: added const_name
6028         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6029         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6030         * src/SDCCcse.c (findPrevIc): check all associative operators
6031         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6032         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6033         * src/SDCCmem.c: updated comments,
6034           set far-space to 0 for pdata, results in optimized code
6035         * src/SDCCmem.h: added macro CONST_NAME
6036         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6037           moving the info into the highest bits, see also gptrget/gptrput
6038         * src/src.dsp: added sdcc.ico to project files
6039         * src/avr/gen.c (genCast): fixed bug 0x%d
6040         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6041         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6042           relation between ptr_type and DCL_TYPE,
6043           (genCast): fixed bug 0x%d
6044         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6045           (CODE)" for const_name
6046         * src/hc08/gen.c (genCast): fixed bug 0x%d
6047         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6048           (hc08_port): added "CONST (CODE)" for const_name
6049         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6050           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6051           between ptr_type and DCL_TYPE,
6052           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6053           operand* and took AOP() inside function so sfr-ness can be checked,
6054           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6055           new prototype,
6056           (genFunction, genEndFunction): optimized stack setup,
6057           (genMinus): optimized for literals with ending zeroes (in bytes),
6058           (genCast): fixed bug 0x%d
6059         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6060           (mcs51_port): added "CONST (CODE)" for const_name
6061         * src/mcs51/peeph.def: made rule 226 more generic
6062         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6063         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6064         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6065         * src/z80/main.c (z80_port): added NULL for const_name,
6066           (gbz80_port): added NULL for const_name
6067         * support/regression/tests/bug663539.c,
6068         * support/regression/tests/sfr16.c: new tests
6069
6070 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6071
6072         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6073
6074 2005-06-24 Raphael Neider <rneider AT web.de>
6075
6076         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6077           corrected typos...
6078         * device/include/pic16/signal.h: added USBIF
6079           and SIG_USB
6080
6081 2005-06-24 Raphael Neider <rneider AT web.de>
6082
6083         * device/lib/pic16/libdev/pic18f2455.c,
6084           device/include/pic16/pic18f2455.h: NEW
6085         * device/include/pic16/pic18fregs.h,
6086           device/lib/pic16/pics.all,
6087           src/pic16/device.c: added 18f2455
6088         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6089           device/include/pic16/{pic18f[68][567].h,usart.h}:
6090           replaced MULTIPLE_USARTS define with more relaible
6091           compatibility sfrs (for USART access)
6092
6093 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6094
6095         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6096           and the output asm file line is printed on two lines.
6097
6098 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6099
6100         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6101           BGT, BLE, BHI, and BLS instructions
6102         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6103           genCmpEq): removed
6104         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6105           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6106           fixes bug #1216342
6107         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6108
6109 2005-06-15 Raphael Neider <rneider AT web.de>
6110
6111         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6112         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6113         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6114           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6115           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6116
6117 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6118
6119         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6120           Marcel Telka in bug #1215704
6121
6122 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6123
6124         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6125           located in shared memory bank.
6126
6127 2005-05-31 Raphael Neider <rneider AT web.de>
6128
6129         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6130           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6131           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6132
6133 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6134
6135         * device/lib/_strncpy.c: fixed the fix
6136
6137 2005-05-26 Raphael Neider <rneider AT web.de>
6138
6139         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6140           initializers with \0, bug #1208187
6141         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6142           intializers with \0, bug #1208187
6143
6144 2005-05-26 Raphael Neider <rneider AT web.de>
6145
6146         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6147           initializers with \0, bug #1208187
6148         * src/pic16/main.c (_process_pragma): added sanity checks
6149           for stack position and size, emit warnings when appropriate
6150
6151 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6152
6153         * device/lib/_strncpy.c: fixed not filling with \0
6154
6155 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6156
6157         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6158           createFunction),
6159         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6160           compound_statement),
6161         * src/SDCCsymt.h,
6162         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6163
6164 2005-05-24 Raphael Neider <rneider AT web.de>
6165
6166         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6167
6168 2005-05-24 Raphael Neider <rneider AT web.de>
6169
6170         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6171           TRISE definitions, closes bug #1162453
6172
6173 2005-05-22 Raphael Neider <rneider AT web.de>
6174
6175         * src/pic16/main.c (_process_pragma): check for missing
6176           arguments to pragmas code and udata
6177         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6178           consistency fixes to match other headers (thanks to Jim Paris)
6179         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6180
6181 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6182
6183         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6184
6185 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6186
6187         * support/regression/tests/bug1198642.c: new test
6188         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6189         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6190         * support/scripts/resource.h,
6191         * support/scripts/resource.rc,
6192         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6193         * support/scripts/sdcc.ico: added 32x32 icon
6194
6195 2005-05-18 Raphael Neider <rneider AT web.de>
6196
6197         * device/lib/pic16/libdev/pic18f*.c,
6198         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6199           keywords to "__sfr" and "__at (X)"
6200         * device/include/pic16/pic18fregs.h: added pic18f4520
6201         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6202           #1203088 (MPLAB compatibility)
6203
6204 2005-05-17 Raphael Neider <rneider AT web.de>
6205
6206         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6207         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6208         * device/lib/pic16/pics.all: added new devices
6209         * src/pic16/device.c: added support for pic18f4520
6210
6211 2005-05-16 Raphael Neider <rneider AT web.de>
6212         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6213         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6214         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6215           convenience function for bit access
6216
6217 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6218
6219         * device/lib/printf_large.c: fixed bug 1193299
6220         * support/regression/tests/bug1057979.c: added test %3.3s
6221
6222 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6223
6224         * device/include/mcs51/8051.h,
6225         * device/include/mcs51/8052.h: made parseable with lint
6226         * device/include/mcs51/lint.h: added include file for (sp)lint
6227         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6228         * doc/cdbfileformat.lyx,
6229         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6230
6231 2005-05-14 Raphael Neider <rneider AT web.de>
6232
6233         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6234         * device/lib/pic16/libc/stdlib/itoa.c (new)
6235         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6236         * device/lib/pic16/libio/Makefile: exclude subdir according to
6237           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6238         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6239         * src/pic16/gen.c (genFunction): prevent annoying warning
6240         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6241           nameclashes on BeOS
6242         * support/cpp2/cppmain.c (cpp_output_string): new
6243         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6244           fixes bug 1116802
6245
6246 2005-05-13 Borut Razem <borut.razem AT siol.net>
6247
6248         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6249
6250 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6251
6252         * .version: changed to version 2.5.1; back to bleeding edge development
6253
6254 2005-05-11 Borut Razem <borut.razem AT siol.net>
6255
6256         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6257           generate PDF version 1.3 documents
6258
6259 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6260
6261         * .version: changed to version 2.5.0
6262
6263 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6264
6265         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6266
6267 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6268
6269         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6270         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6271         well as many smaller updates.
6272         * .version: changed to version 2.5.0-pre1
6273
6274 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6275
6276         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6277
6278 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6279
6280         * support/regression/tests/bug1185672.c: added
6281         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6282           bug 1185672
6283         * src/mcs51/gen.c (genCall): added comments, made it look safer
6284         * src/mcs51/gen.c (genEndFunction): simplified
6285
6286 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6287
6288         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6289
6290 2005-04-14 Borut Razem <borut.razem AT siol.net>
6291
6292         * fixed bug 1045046 - SIGSEGV with really simple code?:
6293           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6294           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6295
6296 2005-04-14 Borut Razem <borut.razem AT siol.net>
6297
6298         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6299           src/pic16/device.h: temporarily disabled experimental #inline pragma
6300           for 2.5.0 release
6301
6302 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6303
6304         * device/include/z80/stdio.h,
6305         * device/include/z80/string.h: removed these highly incomplete files so
6306           SDCC can use the default ones in device/include/
6307
6308 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6309
6310         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6311         gcc warning.
6312         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6313         fix sdcpp warnings.
6314
6315 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6316
6317         * device/include/malloc.h: removed redundant __reentrant prototypes
6318         * device/lib/_mullong.c: added working xstack variant in asm (C version
6319           doesn't pass regression tests)
6320         * device/lib/bpx.c: used __data and made bpx char for mcs51
6321         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6322           (createFunction): fixed bug with xstackPtr
6323         * src/SDCCcse.c: corrected comments
6324         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6325           (killDeadCode, eBBlockFromiCode): removed unused code
6326         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6327           corrected comments
6328         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6329           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6330           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6331           (genModOneByte): fixed warning in MSVC
6332         * src/mcs51/main.c (): added comments
6333         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6334
6335 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6336
6337         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6338
6339 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6340
6341         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6342
6343 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6344
6345         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6346         characters arrays of larger size than the declared one.
6347
6348 2005-04-10 Borut Razem <borut.razem AT siol.net>
6349
6350         * src/pic/gen.c (genInline),
6351           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6352           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6353           (findNextInstruction), (findPrevInstruction),
6354           (findInstructionUsingLabel),
6355           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6356         * src/pic/pcode.c (findLabel): added missing '\n'
6357         * src/src.dsp: added SDCCdwarf2.c to the project
6358
6359 2005-04-09 Borut Razem <borut.razem AT siol.net>
6360
6361         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6362
6363 2005-04-08 Raphael Neider <rneider AT web.de>
6364
6365         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6366           into the chain after a given one) and mergeDefmapSymbols (combine
6367           defmap entries for each symbol per pcode)
6368         * (createDefmap): have defmap entries merged in the end
6369         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6370           a symbol before replacing one access type's symbol, merge symbols in
6371           the end (replacement symbol might already have an entry)
6372         * (assignValnums): keep reference to written WREG intact
6373
6374 2005-04-08 Raphael Neider <rneider AT web.de>
6375
6376         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6377           Alpha)
6378
6379 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6380
6381         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6382         bytes
6383
6384 2005-04-07 Raphael Neider <rneider AT web.de>
6385
6386         * device/include/pic16/usart.h: added compatibility defines for
6387           devices with more than one USART
6388         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6389
6390 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6391
6392         * device/lib/Makefile.in: updated for port specific include
6393
6394 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6395
6396         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6397
6398 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6399
6400         * device/include/8051.h,
6401         * device/include/8052.h,
6402         * device/include/at89S8252.h,
6403         * device/include/at89c55.h,
6404         * device/include/at89x051.h,
6405         * device/include/at89x51.h,
6406         * device/include/at89x52.h,
6407         * device/include/mcs51reg.h,
6408         * device/include/reg51.h,
6409         * device/include/reg764.h,
6410         * device/include/regc515c.h,
6411         * device/include/sab80515.h: (re)moved these 12 files
6412         * device/include/mcs51/8051.h,
6413         * device/include/mcs51/8052.h,
6414         * device/include/mcs51/at89S8252.h,
6415         * device/include/mcs51/at89c55.h,
6416         * device/include/mcs51/at89x051.h,
6417         * device/include/mcs51/at89x51.h,
6418         * device/include/mcs51/at89x52.h,
6419         * device/include/mcs51/mcs51reg.h,
6420         * device/include/mcs51/reg51.h,
6421         * device/include/mcs51/reg764.h,
6422         * device/include/mcs51/regc515c.h,
6423         * device/include/mcs51/sab80515.h: and added them here
6424
6425 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6426
6427         * device/include/stdarg.h: changed SDCC specific keywords to double
6428           underlined form.
6429         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6430           mcs51 and ds390.
6431         * device/include/hc08/mc68hc908gp32.h,
6432         * device/include/hc08/mc68hc908jb8.h,
6433         * device/include/hc08/mc68hc908jkjl.h,
6434         * device/include/hc08/mc68hc908qy.h: fixed comments
6435         * device/include/mcs51/README: updated
6436         * device/include/mcs51/c8051f120.h: added PINRSF
6437         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6438         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6439           amidst code. Also inline is not supported.
6440
6441 2005-04-06 Raphael Neider <rneider AT web.de>
6442
6443         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6444         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6445           callers stack/frame pointers
6446
6447 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6448
6449         * device/include/pic16/usart.h: added, missing in previous commit,
6450         * device/include/pic16/adc.h: fixed typo,
6451         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6452         commit,
6453         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6454         <p18fxxx.inc>
6455         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6456         uninitialized because a bug appears with gplink
6457         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6458         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6459         complains for unrecognised option
6460
6461 2005-04-05 Raphael Neider <rneider AT web.de>
6462
6463         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6464           structs as well (using memcpy)
6465         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6466           on ISRs (GOTO has no label)
6467         * src/pic16/device.h: added OF_OPTIMIZE_DF
6468         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6469           new data flow analysis/optimization
6470         * src/pic16/pcode.c: added (prototypes for and implementation of)
6471           dataflow analysis functions, fixed pCodeInstructions' inCond and
6472           outCond values, made RCALL a branch instruction
6473         * (pic16_unlinkpCode): keep C line if possible
6474         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6475           C line moved if possible
6476         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6477         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6478           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6479         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6480           new flow)
6481         * (pic16_getJumptabpCode): NEW, needed in...
6482         * (LinkFlow): fixed handling of jumptables, calls and conditional
6483           branches
6484         * (pic16_InsertCommentAfter): NEW
6485         * (pic16_pCodeReplace): made verbose and flow preserving
6486         * (AnalyzeFlow): added call to data flow analysis
6487         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6488         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6489         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6490
6491 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6492
6493         * src/SDCCast.c (decorateType): fixed bug #1105626
6494
6495 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6496
6497         * device/include/asm/pic16/features.h,
6498         * pic18f*.h headers,
6499         * device/include/pic16/adc.h,
6500         * device/include/pic16/delay.h,
6501         * device/include/pic16/i2c.h,
6502         * device/include/pic16/malloc.h,
6503         * device/include/pic16/stdio.h,
6504         * device/include/pic16/stdlib.h,
6505         * device/include/pic16/string.h,
6506         * device/lib/pic16/libc/stdio/printf_tiny.c,
6507         * device/lib/pic16/libc/stdio/printf_small.c,
6508         * device/lib/pic16/libc/stdio/strmgpsim.c,
6509         * device/lib/pic16/libc/stdio/strmmssp.c,
6510         * device/lib/pic16/libc/stdio/strmusart.c,
6511         * device/lib/pic16/libc/stdio/vfprintf.c,
6512         * device/lib/pic16/libc/stdlib/ltoa.c,
6513         * device/lib/pic16/libc/stdlib/putchar.c,
6514         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6515         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6516         * device/lib/pic16/libc/stdlib/memchrram.c,
6517         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6518         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6519         * device/lib/pic16/libio/adc/adcbusy.c,
6520         * device/lib/pic16/libio/adc/adcread.c,
6521         * device/lib/pic16/libio/adc/adcsetch.c,
6522         * device/lib/pic16/libio/usart/ubaud.c,
6523         * device/lib/pic16/libio/usart/ubusy.c,
6524         * device/lib/pic16/libio/usart/udrdy.c,
6525         * device/lib/pic16/libio/usart/uopen.c,
6526         * device/lib/pic16/libio/usart/uputc.c,
6527         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6528         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6529         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6530         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6531         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6532         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6533         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6534         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6535         specific keywords to double underlined form,
6536         * device/lib/pic16/libc/Makefile.rules,
6537         * device/lib/pic16/libsdcc/Makefile.rules,
6538         * device/lib/pic16/libm/Makefile,
6539         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6540         to compile with C standard set in Makefile.common
6541         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6542         rand.c and crc.c in compilation process,
6543         * device/lib/pic16/libsdcc/int/divuint.c,
6544         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6545         `c' from signed to unsigned,
6546         * device/lib/pic16/startup/crt0.c,
6547         * device/lib/pic16/startup/crt0i.c,
6548         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6549         keywords to double underlined form, bug fixes in _do_cinit function
6550         which prevented the correct initialization of the .idata segment,
6551         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6552         core to enter a infinite loop
6553         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6554
6555 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6556
6557         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6558
6559 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6560
6561         * device/include/Makefile.in: add support for hc08 subdirectory
6562         * device/include/hc08/: new subdirectory
6563         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6564         Lucas Loizaga, thanks!
6565         * device/include/hc08/mc68hc908qy.h,
6566         * device/include/hc08/mc68hc908gp32.h,
6567         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6568         their own directory. Changed internal macro names to use the compiler
6569         reserved namespace. Changed SDCC specific keywords to double
6570         underlined form.
6571         * device/include/math.h,
6572         * device/include/malloc.h,
6573         * device/include/stdarg.h,
6574         * device/include/stdbool.h
6575         * device/include/string.h,
6576         * device/include/tinibios.h,
6577         * device/include/ds400rom.h,
6578         * device/include/8051.h,
6579         * device/include/8052.h,
6580         * device/include/80c51xa.h,
6581         * device/include/at89c55.h,
6582         * device/include/at89S8252.h,
6583         * device/include/at89x51.h,
6584         * device/include/at89x52.h,
6585         * device/include/ds80c390.h,
6586         * device/include/reg764.h,
6587         * device/include/regc515c.h,
6588         * device/include/sab80515.h,
6589         * device/include/mcs51/c8051f000.h,
6590         * device/include/mcs51/c8051f018.h,
6591         * device/include/mcs51/c8051f020.h,
6592         * device/include/mcs51/c8051f040.h,
6593         * device/include/mcs51/c8051f060.h,
6594         * device/include/mcs51/c8051f120.h,
6595         * device/include/mcs51/c8051f300.h,
6596         * device/include/mcs51/c8051f310.h,
6597         * device/include/mcs51/c8051f320.h,
6598         * device/include/mcs51/c8051f330.h,
6599         * device/include/mcs51/c8051f350.h,
6600         * device/include/z180.h: Changed SDCC specific keywords to double
6601         underlined form.
6602
6603 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6604
6605         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6606         18F4455,
6607         * (pic16_assignConfigWordValue): disable testing of configuration
6608         register value with config mask,
6609         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6610         function with port->fun_prefix,
6611         * (genFunction): when generating a naked interrupt function never
6612         create an absolute segment placed in interrupt vector address, place
6613         the actual interrupt function at IVA instead, when an interrupt
6614         function is generated with unspecified interrupt then do not create
6615         the absolute section,
6616         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6617         code for generating a call to generic pointer get/put function with
6618         a call to function pic16_callGenericPointer(),
6619         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6620         the call to the generic pointer get/put functions with prefixing the
6621         function name with port->fun_prefix,
6622         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6623         * src/pic16/main.c (_process_pragma): prefix function with
6624         port->fun_prefix,
6625         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6626         calling assembler, old 18Fxxxx macro is deprecated,
6627         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6628         PC_ASMDIR in while condition,
6629         * (findInstruction): add PC_ASMDIR in while condition,
6630         * (buildCallTree): prefix main with port->fun_prefix,
6631         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6632         identifier for variable with banked access in instructions BTFSS,
6633         BTFSC, BCF, BSF, BTG
6634         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6635         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6636         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6637         perform optimization when enviroment variable NO_REG_OPT is set,
6638         * (insideLRBlock): NEW, return 1 if register is inside an
6639         INF_LOCALREGS block,
6640         * (RemoveRegFromLRBlock): remove a register that is completely
6641         eliminated by register optimization, but it is still left in local
6642         register store/restore in/from stack block,
6643         * (Remove2pcodes): after removing register, check to see if it
6644         should be removed from local register store/restore in/from stack
6645         block,
6646         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6647         DUMMY_READ_VOLATILE,
6648
6649         * device/include/pic16/adc.h: minor prototype modifications and
6650         update,
6651         * device/include/pic16/malloc.h: added GPL notice various
6652         modifications,
6653         * device/include/pic16/stdint.h: NEW, standard header for ints
6654         * device/include/pic16/delay.h: NEW, header for delay functions,
6655         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6656         delay1mtcy,
6657         * device/include/pic16/signal.h: NEW, header providing helper macros
6658         for implementing signal handlers,
6659         * device/include/pic16/stdio.h: added prototypes for functions,
6660         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6661         prototypes for stdin and stdout, added macro PUTCHAR to
6662         automatically implement putchar function prototype,
6663         * device/include/pic16/usart.h: modified and updated USART library,
6664         * device/lib/pic16/libio/adc/,
6665         * device/lib/pic16/libio/i2c: some modifications to improve library
6666         performance,
6667         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6668         family of functions,
6669         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6670         family of functions and other sources,
6671         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6672         of the PIC18Fxx[28] devices,
6673         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6674         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6675         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6676         _do_cinit function, because the previous failed when local variables
6677         where not placed in the same memory bank,
6678         * device/lib/pic16/libsdcc/char/: various modifications to improve
6679         library performance,
6680         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6681         information on the new functions of the c library and more...
6682
6683 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6684
6685         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6686
6687 2005-03-26 Raphael Neider <rneider AT web.de>
6688
6689         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6690           if condition == CARRY)
6691         * (genCmp): adapted to new genSkipc semantics
6692         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6693           on rIfx (genCmp was broken)
6694
6695 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6696
6697         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6698         * src/z80/main.c (_keywords[]),
6699         * src/SDCCglobal.h (struct options),
6700         * src/SDCC.y,
6701         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6702         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6703         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6704         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6705         always available in leading double underscore form. The C99 support is
6706         mostly missing, but it's a start.
6707         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6708         reserved identifier "__data".
6709
6710 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6711
6712         * src/mcs51/peeph.def: fixed bug 1170013
6713
6714 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6715
6716         * device/include/mcs51reg.h: fixed bug 842007
6717
6718 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6719
6720         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6721         last time.
6722
6723 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6724
6725         * src/port.h (struct PORT),
6726         * src/avr/ralloc.c (avr_assignRegisters),
6727         * src/avr/main.c,
6728         * src/ds390/ralloc.c (ds390_assignRegisters),
6729         * src/ds390/main.c,
6730         * src/hc08/ralloc.c (hc08_assignRegisters),
6731         * src/hc08/main.c,
6732         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6733         * src/mcs51/main.c,
6734         * src/pic/ralloc.c (pic14_assignRegisters),
6735         * src/pic/main.c,
6736         * src/pic16/ralloc.c (pic16_assignRegisters),
6737         * src/pic16/main.c,
6738         * src/xa51/ralloc.c (xa51_assignRegisters),
6739         * src/xa51/main.c,
6740         * src/z80/ralloc.c (z80_assignRegisters),
6741         * src/z80/ralloc.h,
6742         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6743         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6744         * src/SDCCcse.h,
6745         * src/SDCCdflow.c (computeDataFlow),
6746         * src/SDCCdflow.h,
6747         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6748         * src/SDCCloop.h,
6749         * src/SDCCcflow.c (*),
6750         * src/SDCCcflow.h,
6751         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6752         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6753         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6754         immedDom() returning wrong block; probably fixes bug #1160833)
6755
6756 2005-03-20 Borut Razem <borut.razem AT siol.net>
6757
6758         * support/scripts/inc2h.pl: WIN32 port
6759
6760 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6761
6762         * device/lib/makefile.in: added abs.c and labs.c
6763
6764 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6765
6766         * device/include/stdint.h: added
6767         * device/lib/abs.c: added
6768         * device/lib/labs.c: added
6769         * device/include/stdlib.h: added abs() and labs() prototypes
6770         * device/lib/libsdcc.lib: added abs and labs
6771         * device/include/float.h,
6772         * device/lib/_fsmul.c,
6773         * device/lib/printf_fast.c,
6774         * device/lib/printf_tiny.c: updated comments
6775
6776 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6777
6778         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6779         bug #1164313
6780
6781 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6782
6783         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6784         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6785
6786 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6787
6788         * device/lib/printf_large.c: removed inline assembly for portability and
6789           readability. Use printf_fast if speed or size are more important.
6790         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6791         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6792
6793 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6794
6795         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6796         prevent compiler warning
6797
6798 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6799
6800         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6801         moved to level 0 and declared as static. Also they are explicit
6802         placed in access bank. This was necessery because some times they
6803         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6804         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6805         optimizations. Currently only compare to unsigned char is implemented,
6806         * src/pic16/gen.c: added fReturnIdx array,
6807         * (struct resolvedIfx) is moved to gen.h and made public,
6808         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6809         * (aopForSym): added an optimization to directly store in stack of
6810         the operand of a SEND iCode,
6811         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6812         but as registers instead (AOP_REG) using the fReturnIdx array,
6813         * (pic16_freeAsmop): remove the freed register from the
6814         _G.sregsAlloc field,
6815         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6816         a compare of 'WREG',
6817         * (pic16_popGetTempRegCond): changed function prototype, now
6818         function takes also a bitVector argument v which holds the current
6819         set of registers that are allocated for stack access by aopForSym,
6820         registers allocated in aopForSym for accessing stack symbols are not
6821         any more part of the functions usedRegs field,
6822         * (genCall): some times aopOp is called for a stack variable to be
6823         send, aopForSym might perform the push, if this is true make sure
6824         that genCall doesn't push the variable twice by testing _G.resDirect,
6825         * (genFunction): changed testing for unspecified interrupt number
6826         from 256 to INTNO_UNSPEC,
6827         * modified selection scheme of frame pointer generation. Previously
6828         if function did use local registers a frame pointer was generated,
6829         now a frame pointer is generated only if function has arguments
6830         (that need PLUSW2 register access), or has stack arguments, or the
6831         compiler is not instructed to omit the frame pointer,
6832         * (genEndFunction): before restoring local registers that were saved
6833         in the function preamble, also restore the registers that *might*
6834         have been allocated for stack access,
6835         * (genRet): removed some old comments,
6836         * (genCmp, the active (RN's) version): added a call to the
6837         pic16_genCmp_special function to perform the compare with a more
6838         robust and optimized way,
6839         * (genInline): a feature has been added in inline code generation,
6840         which allows a wildcard variable substitution when writing inline
6841         assembly. Code is incomplete and experimental therefore undocumented,
6842         * (genCast): changed order of aopOp for result and right to allow
6843         aopForSym to directly load the result if possible,
6844         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6845         perform an optimized compare on some selected special occasions,
6846         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6847         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6848         generate an IVT any more,
6849         * src/pic16/main.c (pic16_optionsTable): added command line option
6850         --optimize-cmp,
6851         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6852         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6853         macros,
6854         * src/pic16/NOTES: Raphael Neider added in list of active developers
6855         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6856         jumptable_end to prevent bug #,
6857         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6858         inCond and outCond fields,
6859         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6860         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6861         turn off register spilling,
6862         * (packRegsForOneUse): synced with other ports' versions although it
6863         is not used currently,
6864         * (pic16_packRegisters): added an optimization while reading
6865         structure bitfields, some registers may be saved (malloc code is
6866         decreased by 80 bytes)
6867
6868 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6869
6870         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6871         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6872         this can be optimized more?
6873
6874 2005-03-10 Raphael Neider <rneider AT web.de>
6875
6876         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6877           genNearPointerGet): (hopefully) fixed access to bitfields via
6878           pointers (p->bitN = x; and x = p->bitN; failed)
6879
6880 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6881
6882         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6883
6884 2005-03-09 Raphael Neider <rneider AT web.de>
6885
6886         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6887
6888 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6889
6890         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6891         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6892           (regTypeNum): set REG_BIT type if necessary
6893         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6894         * support/regression/tests/critical.c: check bug 1144613
6895
6896 2005-03-02 Raphael Neider <rneider AT web.de>
6897
6898         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6899
6900 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6901
6902         * src/avr/ralloc.c (serialRegAssign),
6903         * src/ds390/ralloc.c (serialRegAssign),
6904         * src/hc08/ralloc.c (serialRegAssign),
6905         * src/mcs51/ralloc.c (serialRegAssign),
6906         * src/pic/ralloc.c (serialRegAssign),
6907         * src/pic16/ralloc.c (serialRegAssign),
6908         * src/xa51/ralloc.c (serialRegAssign),
6909         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6910
6911 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6912
6913         * src/SDCCast.c (decorateType): fixed bug 1124787
6914
6915 2005-02-20 Hubert Sack <sack AT digiplan.de>
6916         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6917
6918         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6919         patch #1121755
6920
6921 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6922
6923         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6924         to keep the correct label reference count when adding/removing references
6925         to labels. A peephole file using this is appended to patch #1144962.
6926
6927 2005-02-14 Raphael Neider <rneider AT web.de>
6928
6929         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6930         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6931         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6932           retrievals of result operand's value on assignment
6933
6934 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6935
6936         * device/include/pic16/string.h: modified prototype for memccpy()
6937         to memccpy(void *, void *, char, size_t)
6938         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6939         check whether to omit frame pointer or not,
6940         * (genInline): convert all occurences of "\n" to LF in inline
6941         assembler blocks, this helps formatting the inline text,
6942         * (pic16_loadFSR0): modified prototype,
6943         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6944         removed some 8051 legacy code,
6945         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6946         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6947         before allocating temporary registers in functions,
6948
6949 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6950
6951         * support/regression/tests/bitvars.c: corrected the "fix"
6952
6953 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6954
6955         * support/regression/tests/bitvars.c,
6956         * support/regression/tests/bitwise.c,
6957         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6958
6959 2005-02-10 Raphael Neider <rneider AT web.de>
6960
6961         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6962           different size for Alpha
6963         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6964
6965 2005-02-09 Raphael Neider <rneider AT web.de>
6966
6967         * src/SDCC.lex(doPragma) : save and restore warning options as well
6968           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6969         * have #pragma less_pedantic set the errorlevel to WARNING
6970           (fixes #1117001)
6971         * (cloneOptimize) : fixed wrong malloc's size
6972         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6973           facilitate correct handling of #pragma (save|restore)
6974
6975 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6976
6977         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6978
6979 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6980
6981         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6982
6983 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6984
6985         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6986
6987 2005-02-02 Raphael Neider <rneider AT web.de>
6988
6989         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6990         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6991         * (pic16_storeForReturn): fixed to allow returning function pointers
6992         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6993         * device/include/pic16/{stddef.h,stdbool.h}: added
6994
6995 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6996
6997         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6998
6999 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7000
7001         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7002         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7003          appeared to be required
7004
7005 2005-01-31 Borut Razem <borut.razem AT siol.net>
7006
7007         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7008           include/mcs51 and include/z80 directories to the package
7009
7010 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7011
7012         * src/hc08/gen.c (genFunction): fixed bug #1112752
7013
7014 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7015
7016         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7017
7018 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7019
7020         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7021
7022 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7023
7024         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7025
7026 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7027
7028         * device/include/c8051fxxx.h: removed these 6 files
7029         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7030
7031 2005-01-26 Raphael Neider <rneider AT web.de>
7032
7033         * src/pic16/gen.c (genAssign): fixed assignment from longs
7034           in codespace (were cut to three bytes)
7035         * (genDummyRead): implemented (except for CODESPACE...),
7036           fixed bug #1108575
7037         * src/pic16/glue.c (emitStatistics): beautified
7038         * device/lib/pic16/libm/Makefile: added include path
7039
7040 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7041
7042         * src/z80/gen.c (aopPut): fixed bug #1103902
7043
7044 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7045
7046         * device/lib/expf.c: fixed bug #1095792
7047
7048 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7049
7050         * device/lib/pic16/libm: added Math library sources
7051
7052 2005-01-24 Raphael Neider <rneider AT web.de>
7053
7054         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7055           to enable upcast to pCodeOpReg2 (there is no type tag to
7056           differenciate the two and pic16_popGet2p cast into PCOR2)
7057         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7058           (sizeof(sectNames) changed to sizeof(sectName))
7059           Both patches fix segfaults under MinGW.
7060
7061 2005-01-23 Raphael Neider <rneider AT web.de>
7062
7063         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7064           Safe_[mc]?alloc()'ed variables
7065         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7066           of (byte sized) temporaries (assign them to WREG for now)
7067         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7068           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7069           this might fix SIGSEGVs on MinGW...
7070         * src/SDCCopt.c (killDeadCode): restored original behaviour
7071           (volatile operands might get thrown away though)
7072
7073 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7074
7075         * src/pic16/gen.c: fixed bug #1106975,
7076         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7077         pointer update, INTCON is saved, global interrupts are disabled and
7078         restored after updateing TOS.
7079         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7080         * added function attribute 'shadowregs' to take advantage of shadow
7081         registers,
7082         * added function attribute 'wparam' as an alternative to the wparam
7083         pragma,
7084         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7085         user declares a non-ISR function as 'shadowregs',
7086         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7087
7088 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7089
7090         * .version: bumped version number to 2.4.8
7091         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7092         pic16 port,
7093         * device/lib/pic16/libio/i2c/: I2C module support library,
7094         * device/include/pic16/i2c.h: I2C support library header,
7095         * device/lib/pic16/libc/stdio/: standard IO support sources,
7096         * (printf_small.c): printf_small() source, supports float print,
7097         * (printf_tiny.c): printf_tiny() source, does not support floats,
7098         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7099         enable global optimizations for entire library source, other
7100         Makefiles in the source tree are also modified to reflect this,
7101         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7102         function,
7103         * doc/sdccman.lyx: updated to reflect new changes,
7104         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7105         sym->onStack if-case,
7106         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7107         sbit, idata, _idata, xdata, _xdata,
7108         * added pragma library, to link an external library, (see doc),
7109         * removed command line options, --pomit-config-words, --pomit-ivt,
7110         --pleave-reset-vector,
7111         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7112         when calling assembler to reflect memory model used, also define
7113         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7114         reflect stack model used,
7115         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7116         on stack return NULL,
7117
7118 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7119
7120         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7121           of the operands is volatile. Fixes #1020220
7122
7123 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7124
7125         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7126         * (OptimizeRegUsage): make sure that there is really no other flow where
7127           the first pCode is used
7128
7129 2005-01-22 Raphael Neider <rneider AT web.de>
7130
7131         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7132           to fix #1106967 (pCode->seq are not set up correctly)
7133
7134 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7135
7136         * src/SDCCglue.c (glue): make sure code area is declared before the
7137         static initialization area.
7138
7139 2005-01-21 Raphael Neider <rneider AT web.de>
7140
7141         * device/lib/Makefile.in: fixed test for pic16 install dir
7142         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7143           optimizations
7144         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7145           added --optimize-goto compiler switch and pragma wparam documentation
7146         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7147         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7148           and PRODH closing bug #1071770 (peephole optimizer)
7149
7150 2005-01-19 Raphael Neider <rneider AT web.de>
7151
7152         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7153           cmdLine buffers (used when calling sdcpp...) are large enough
7154           (MAX_PATH=256 truncates arguments leading to system halts when
7155           used in MinGW...)
7156         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7157         * (genUminus): rewritten to for efficiency
7158         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7159           used uninitialized in some cases)
7160         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7161           copy the third byte from the int -- now assumes 0x80 (data memory)
7162         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7163           operands (genAddLit expects the iCode's operands to swapped as
7164           well), fixed leftover bytes (crashed for short left operands)
7165         * (pic16_genMinusDec): performance improvements, removed false
7166           PIC14 emitSKPNCs
7167         * (pic16_genMinus): fixed to cope with differently sized operands
7168         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7169           for --obanksel > 1
7170         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7171         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7172           new banksel optimization
7173         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7174           analysis for temporary registers (segfaults...)
7175         * src/pic16/peeph.def: added rule
7176
7177 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7178
7179         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7180         which converts a float number to its ASCII representation
7181         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7182         functions to convert the fractional and integer part of a float to ASCII,
7183         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7184         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7185         ram
7186         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7187         _STATMEM macros,
7188         * device/include/pic16/adc.h: added GPL info,
7189         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7190         a pCodeOp as tested operand,
7191         * (genNearPointerGet): optimized bit testing, does not use
7192         intermediate register for bit value, test directly instead with
7193         BTFSS, BTFSC, works only for single bits,
7194         * (genpic16Code): dump the name of the iCode in the asm,
7195         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7196         renamed to pic16_decodeOp,
7197         * (serialRegAssign): do not allocate a temporary register for iCode
7198         sequences that test a single bit for 1/0
7199
7200 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7201
7202         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7203         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7204         access stack and frame pointers. They are initially assigned to
7205         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7206         accessing SFRs. Updated all occurences of modification of stack or
7207         frame pointer in gen.c and pcode.c,
7208         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7209         assigning of a literal value to pointers,
7210         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7211         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7212         selected
7213
7214 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7215
7216         * doc/sdccman.lyx: update documentation about stack pragma, added
7217         some info for stack memory models
7218
7219 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7220
7221         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7222
7223 2005-01-08 Raphael Neider <rneider AT web.de>
7224
7225         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7226           udata sections to fix bug #1097823
7227
7228 2005-01-05 Raphael Neider <rneider AT web.de>
7229
7230         * src/pic16/gen.c (genGenericShift): added handling of differently
7231           sized left operand and result
7232
7233 2005-01-04 Raphael Neider <rneider AT web.de>
7234
7235         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7236         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7237           to hold the condition bit)
7238         * added new version of genCmp (old code available via #define)
7239         * added new version of genShiftLeft/genShiftRight in a generic
7240           way, now supports shifting by negative values
7241         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7242           shiftCount (expected by genGenericShift)
7243         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7244         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7245           dump
7246         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7247           is an invalid literal too...)
7248
7249 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7250
7251         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7252         from Raphael Neider,
7253         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7254         for 8-bit literals. This fixes some literal operands which are sign
7255         extended to 16-bits ints when instruction needs only 8-bits.
7256
7257 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7258
7259         * device/lib/logf.c: added mcs51 assembly version
7260         * device/lib/expf.c: added mcs51 assembly version
7261         * device/lib/_logexpf.c: new shared asm code for expf and logf
7262         * device/include/math.h: add defines for assembly math library
7263         * device/lib/Makefile.in: build new _logexpf.c
7264         * device/lib/libfloat.lib: use new _logexpf.c
7265
7266 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7267
7268         * src/pic/device.c
7269         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7270           device types which have less than 0x7f registers.
7271
7272 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7273
7274         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7275
7276 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7277
7278         * device/lib/printf_fast.c: only build on supported arch.
7279         * device/lib/printf_tiny.c: only build on supported arch.
7280         * device/lib/printf_fast_f.c: only build if asm float lib
7281         * device/lib/_fsget1arg.c: only build if asm float lib
7282         * device/lib/_fsget2args.c: only build if asm float lib
7283         * device/lib/_fsnormalize.c: only build if asm float lib
7284         * device/lib/_fsreturnval.c: only build if asm float lib
7285         * device/lib/_fsrshift.c: only build if asm float lib
7286         * device/lib/_fsswapargs.c: only build if asm float lib
7287         * device/include/stdio.h: don't provide print_fast,
7288           print_fast_f, print_tiny prototypes if --xstack used
7289
7290 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7291
7292         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7293         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7294           to the SOURCES
7295
7296 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7297
7298         * device/lib/printf_fast_f.c: same as printf_fast, but
7299           with floating point enabled
7300         * device/lib/printf_fast.c: minor tweaks
7301         * device/include/stdio.h: add printf_fast_f
7302
7303 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7304
7305         * src/SDCCmain.c: make --float-reent default for mcs51
7306         * device/lib/_fsadd.c: added mcs51 assembly version
7307         * device/lib/_fssub.c: added mcs51 assembly version
7308         * device/lib/_fsmul.c: added mcs51 assembly version
7309         * device/lib/_fsdiv.c: added mcs51 assembly version
7310         * device/lib/_fseq.c: added mcs51 assembly version
7311         * device/lib/_fsneq.c: added mcs51 assembly version
7312         * device/lib/_fsgt.c: added mcs51 assembly version
7313         * device/lib/_fslt.c: added mcs51 assembly version
7314         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7315         * device/lib/Makefile.in: add _fscmp to build
7316         * device/lib/libfloat.lib: add _fscmp to build
7317
7318 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7319
7320         * device/lib/_fs2slong.c: added mcs51 assembly version
7321         * device/lib/_fs2sint.c: added mcs51 assembly version
7322         * device/lib/_fs2schar.c: added mcs51 assembly version
7323         * device/lib/_fs2ulong.c: added mcs51 assembly version
7324         * device/lib/_fs2uint.c: added mcs51 assembly version
7325         * device/lib/_fs2uchar.c: added mcs51 assembly version
7326         * device/lib/_slong2fs.c: added mcs51 assembly version
7327         * device/lib/_sint2fs.c: added mcs51 assembly version
7328         * device/lib/_schar2fs.c: added mcs51 assembly version
7329         * device/lib/_ulong2fs.c: added mcs51 assembly version
7330         * device/lib/_uint2fs.c: added mcs51 assembly version
7331         * device/lib/_uchar2fs.c: added mcs51 assembly version
7332         * device/include/float.h: added #define to select asm vs c
7333
7334 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7335
7336         * device/lib/printf_fast.c: improvements to float output
7337         * device/include/float.h: add defines for assembly float library
7338         * device/lib/_fsget1arg.c: receive 1 float arg
7339         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7340         * device/lib/_fsnormalize.c: normalize a float
7341         * device/lib/_fsreturnval.c: return float, various helper routines
7342         * device/lib/_fsrshift.c: right shift a float's mantissa
7343         * device/lib/_fsswapargs.c: swap 2 floats
7344         * device/lib/Makefile.in: build these 6 new files for mcs51
7345         * device/lib/libfloat.lib: add these 6 files to the library
7346
7347 2004-12-26 Borut Razem <borut.razem AT siol.net>
7348
7349         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7350           built by gcc 3.4.2
7351
7352 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7353
7354         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7355           and fully reentrant and register bank neutral.
7356         * device/lib/printf_fast.c: added float (not enabled by default),
7357           added compact/slower integer (also not enabled by default),
7358           improved size/speed of fast integer code, other minor changes
7359         * device/include/stdio.h, device/lib/Makefile.in,
7360           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7361
7362 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7363
7364         * src/pic16/pcode.c: declaring variables other than at the start of a
7365           block is not supported in C by VC6.
7366
7367 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7368
7369         * applied a previous patch from Raphael Neider that wasn't included
7370         in the previous commits, which fixes infinite loops within jumptable
7371         improvements,
7372         * made some fixes that previous patches introduced
7373
7374 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7375
7376         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7377         that fixes an issue with AOP_PCODE asmop's offset,
7378         * (pic16_popCopyReg): update instance field too,
7379         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7380         function of pic port,
7381         * (genCmp, genAnd, genAssign),
7382         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7383
7384 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7385
7386         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7387         variables initial values to idata section,
7388         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7389         variables in some functions. This utilizes parmBytes field of iCode
7390         structure to hold the offset of the variable in stack. (might be
7391         able to use the stack field too?)
7392         * applied patch from Raphael Neider # ### , # ###
7393         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7394         variable initial values in idata section,
7395         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7396         for static variables with initial value
7397         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7398         applied fix in while loop from Raphael Neider.
7399
7400 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7401
7402         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7403         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7404         * src/ds390/ralloc.c (serialRegAssign): spill bits
7405         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7406         * support/Util/SDCCerr.c,
7407         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7408         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7409         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7410
7411 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7412
7413         * device/include/sdcc-lib.h: inserted LGPL, added includes
7414           asm/ds390/features.h and asm/mcs51/features.h
7415         * device/include/asm/default/features.h,
7416         * device/include/asm/gbz80/features.h,
7417         * device/include/asm/z80/features.h: added empty _AUTOMEM
7418           and _STATMEM
7419         * device/include/asm/ds390/features.h,
7420         * device/include/asm/mcs51/features.h: added files with defines for
7421           _AUTOMEM and _STATMEM indicating automatic and static storage class
7422         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7423         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7424         * src/SDCCicode.c (geniCodeCast),
7425         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7426         * src/SDCCloop.c (loopInduction): removed unused variable lr
7427         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7428           to convertToFcall to include char modulo (RFE 1065037), added check
7429           if left operand is unsigned and use abs of literal value
7430         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7431           as it doesn't work after conversion from peephole.def to peephole.rul
7432         * src/mcs51/gen.c (toBoolean): added check for size,
7433           (genModOneByte): optimized code for signed char modulo a literal
7434           power of 2 (thanks to Hubert Sack),
7435           (genRRC): removed unnecessary "clr c",
7436           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7437         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7438           jump optimization,
7439           swapped rules 256.c and 256.d,
7440           extended 256.d by using new multiple checks (thanks Erik),
7441           added rules 256.e and 256.f,
7442           updated rule 261.a and 261.b to new generated code
7443         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7444
7445 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7446
7447         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7448           induction related bugs, including first part of bug #1074377
7449
7450 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7451
7452         * applied patch from bug-report #1076292,
7453         * applied patches for genAnd and Goto-optimizations for Raphael
7454         Neider,
7455         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7456         dump a less iCode information,
7457         * src/pic16/device.h (pic16_options_t): added field debgen,
7458         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7459         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7460         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7461         puclic,
7462         * (various functions): added macros FENTRY and FENTRY2 to functions,
7463         to emit function prologue,
7464         * (various functions): fixed indentation,
7465         * (genNearPointerGet): fixed loading of FSR0,
7466         * (genPackBits): applied patch from Raphael Neider to fix updating
7467         of FSR0 and touching only the modified bits,
7468         * src/pic16/genarith.c (various functions): added macros FENTRY to
7469         emit function prologue in comments,
7470         * src/pic16/pcode.h: added functions debugf2, debugf3,
7471         * src/pic16/ralloc.c: partial fix for packForPush caused
7472         segmentation fault,
7473
7474 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7475
7476         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7477           <stsp AT users.sourceforge.net> with reversed byte order
7478         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7479
7480 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7481
7482         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7483           bug #1074377
7484         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7485         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7486
7487 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7488
7489         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7490
7491 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7492
7493         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7494           conditions,
7495           (setFromConditionArgs): friendly operand parser for peephole rules,
7496           (operandBaseName, operandsNotRelated): new peephole condition
7497           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7498           architecture specific register naming into account, handles n-way
7499           comparisons, and supports quoted literals
7500         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7501
7502 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7503
7504         * src/mcs51/peeph.def: fixed bug #1076940
7505
7506 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7507
7508         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7509
7510 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7511
7512         Adding support for replacing ljmps with sjmps in jumptables
7513         generated for switch statements. For now you need to set the
7514         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7515         Now 4 algorithms for mcs51 jumptable generation are used:
7516         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7517         addresses loaded pc-relative for up to 112 cases and stack-pushing
7518         target addresses loaded with offset from dptr for up to 256 cases.
7519
7520         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7521         * src/mcs51/main.c: adapted constants for switch table generation
7522         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7523
7524 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7525
7526         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7527         * support/regression/tests/bug1057979.c: added test for bug 1073386
7528
7529 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7530
7531         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7532         compilers
7533
7534 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7535
7536         * src/pic16/device.h,
7537         * src/pic16/genarith.c,
7538         * src/pic16/glue.c,
7539         * src/pic16/main.c,
7540         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7541
7542 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7543
7544         Large cummulative patch for pic16 port.
7545         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7546         to call when a stack overflow occurs,
7547         * (malloc.h): added CVS Id tag,
7548         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7549         variable,
7550         * added libc directory. The current version of LibC contains string
7551         functions, ctype functions and macros and some functions of the
7552         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7553         be extensively tested in the future. Standard disclaimer here.
7554         Library is not automatically build yet. But one can build it by
7555         invoking 'make' inside the libc directory.
7556         * added ADC library under libio. Preliminary version yet.
7557
7558         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7559         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7560         aopForRemat() now and not by pic16_aopOp(),
7561         * (pic16_popGetTempReg): removed warning messgae when allocating
7562         temporary registers, its a buggy feature and will be removed,
7563         * (pic16_popGet): set register instance field in AOP_CRY,
7564         * (pic16_outBitC): fixed for results in size greater than 1,
7565         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7566         * (pic16_storeForReturn): optimized return of 0,
7567         * (genCmp): experimental code for new genCmp which uses PIC18's
7568         special compare&skip instructions. Initial tests fail some times
7569         with variables grater than 1 byte in size, so new code is disabled,
7570         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7571         a single bit,
7572         * (genCast): began a fix to optimize the casting of a bit to another
7573         bit, now assigning a bitfield to another bitfield will fail, sorry,
7574         * src/pic16/main.c: disabled the use of lr-support feature,
7575         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7576         * added some function prototypes, added function _debugf prototype,
7577         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7578         bits with offset (case PO_GPR_BIT),
7579         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7580         command line,
7581         * (isBankInstruction): modified to return 0 for no banking instruction,
7582         and 1 for banking instruction,
7583         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7584         caused stop processing pCodes after a inline assembly block,
7585         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7586         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7587         registers when it shouldn't,
7588         * src/pic16/ralloc.c (allocReg): add preliminary support for
7589         supporting a limited set of temporary registers,
7590
7591 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7592
7593         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7594           genDataPointerSet): ensure assignments always copy in MSB to LSB
7595           order,
7596           (loadRegFromAop): recognize CLRH optimization,
7597           (genFunction): optimize RECEIVE iCodes in reentrant functions
7598
7599 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7600
7601         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7602           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7603           selected.
7604         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7605         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7606           contiguous with data
7607
7608 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7609
7610         * device/lib/_gptrget.c (_gptrget),
7611         * device/lib/_gptrgetc.c (_gptrgetc),
7612         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7613           instead of sjmp to ret
7614         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7615           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7616
7617 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7618
7619         * .version: bumped version to 2.4.7
7620         * device/lib/_gptrget.c (_gptrget): is now _naked
7621         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7622         * device/lib/_gptrput.c (_gptrput): is now _naked
7623         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7624           (createFunction): fixed xstack
7625         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7626         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7627           or bit either,
7628           (geniCodeCritical): store original interrupt state in an iTemp bit
7629           var unless stack-auto
7630         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7631         * src/SDCCmain.c (setIncludePath): added include/target to search path
7632         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7633         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7634           prototype,
7635           (processFuncArgs): put bit vars in bit area
7636         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7637           unsaveRBank): fixed xstack,
7638           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7639           (genFunction, genEndFunction): fixed xstack,
7640           (genAssign): optimization don't walk backwards through mem
7641         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7642         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7643         * support/regression/Makefile: also make library (for stack-auto) when
7644           making "all" and added "test-mcs51-xstack-auto"
7645         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7646         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7647         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7648         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7649         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7650           make-library by MAKE_LIBRARY
7651         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7652           regression tests for xstack
7653         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7654         * support/regression/tests/critical.c: test for critical on mcs51
7655
7656 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7657
7658         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7659           built version of sdcc instead of installed version
7660
7661 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7662
7663         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7664         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7665           vprintf.c now
7666         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7667         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7668           WARNING: remove device/lib/build/z80/printf.o by hand when
7669           updating from previous build!
7670         * device/lib/z80/printf.c: updated comment
7671         * support/regression/tests/bug1057979.c: test all ports now
7672         * support/regression/tests/bug1065458.c: file added
7673
7674 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7675
7676         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7677           *_start and *_end symbols for static functions
7678
7679 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7680
7681         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7682           and search crt0.o in all library paths,
7683           (setIncludePath): proper handling of --nostdinc,
7684           (setLibPath): proper handling of --nostdlib
7685         * support/regression/Makefile,
7686         * support/regression/ports/ds390/spec.mk,
7687         * support/regression/ports/gbz80/spec.mk,
7688         * support/regression/ports/hc08/spec.mk,
7689         * support/regression/ports/mcs51/spec.mk,
7690         * support/regression/ports/mcs51-large/spec.mk,
7691         * support/regression/ports/mcs51-stack-auto/spec.mk,
7692         * support/regression/ports/z80/spec.mk: use include and lib files from
7693           built version of sdcc instead of installed version
7694         * doc/sdccman.lyx: fixed typo in --nostdinc
7695
7696 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7697
7698         * src/pic/pcode.c,
7699         * src/pic/device.c,
7700         * src/pic/ralloc.c,
7701         * src/pic/gen.c : added support to generate code for struct bit fields.
7702
7703 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7704
7705         * as/xa51/xa_version.h,
7706         * device/include/errno.h,
7707         * device/include/regc515c.h,
7708         * device/lib/_itoa.c,
7709         * device/lib/_ltoa.c,
7710         * device/lib/ser_ir_cts_rts.c,
7711         * sim/ucsim/xa.src/glob.cc,
7712         * sim/ucsim/xa.src/inst_gen.cc,
7713         * sim/ucsim/xa.src/xa_bit.cc,
7714         * sim/ucsim/xa.src/xa_sfr.cc,
7715         * sim/ucsim/z80.src/inst_dd.cc,
7716         * sim/ucsim/z80.src/inst_fdcb.cc,
7717         * support/scripts/keil2sdcc.pl,
7718         * src/pic16/pic16.dsp,
7719         * src/pic16/pic16a.dsp: corrected cvs line endings
7720         * device/lib/printf_large.c: fixed bug 1057979
7721         * src/pic16/gen.c: fixed non-C standard code
7722         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7723         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7724         * support/regression/ports/mcs51/support.c: reload T1 asap
7725         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7726           pdata use and clear idata startup behaviour
7727         * support/regression/tests/bug1057979.c: added
7728
7729 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7730
7731         * device/examples/ds390/ow390/ad26.h,
7732         * device/examples/ds390/ow390/cnt1d.h,
7733         * device/examples/ds390/ow390/crcutil.c,
7734         * device/examples/ds390/ow390/ownet.h,
7735         * device/examples/ds390/ow390/owsesu.c,
7736         * device/examples/ds390/ow390/swt12.h,
7737         * device/examples/ds390/ow390/swtoper.c,
7738         * device/examples/ds390/ow390/temp10.h,
7739         * device/examples/ds390/ow390/thermodl.c,
7740         * device/examples/ds390/tinitalk/tinitalk.dsp,
7741         * device/examples/ds390/tinitalk/tinitalk.dsw,
7742         * device/examples/mcs51/clock/hw.h,
7743         * device/examples/mcs51/simple2/go.bat,
7744         * device/examples/serialcomm/windows/serial.h,
7745         * device/examples/xa51/dummy.c,
7746         * device/examples/xa51/hello.c,
7747         * device/include/80c51xa.h,
7748         * device/include/at89x051.h: corrected cvs line endings
7749
7750 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7751
7752         * src/pic16/main.c (options): added command line --gstack, to trace
7753         stack over/under flows,
7754         * added pragma 'wparam' to allow passing first byte of function
7755         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7756         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7757         call to __gstack_test function and sets up the symbol as extern,
7758         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7759         * popaop): added call to pic16_testStackOverflow,
7760         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7761         wparamList list,
7762         * (genCall, genPcall): now all parameters are passed via stack
7763         except in functions that are pass to wparam pragma in which WREG is
7764         used too,
7765         * (genPcall): REENTRANT flag is checked to see if variable prototype
7766         contains reentrant keyword, don't call a non-reentrant function, via
7767         a reentrant function pointer or vice versa, functions are never
7768         passed via WREG,
7769         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7770         D.Winkler,
7771         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7772         SIGSEGV when accessing a NULL register stucture,
7773         * (pic16_printGPointerType): modified to handle UPPER modifier for
7774         function initializers, changed prototype of function to simpler one,
7775         * (pic16_printIvalFuncPtr): check to see if function is already
7776         added in externs list,
7777         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7778         optimized a move from W to SFR with a move to the same register
7779         later after a CALL,
7780         * device/lib/pic16/debug: NEW directory, contains debug features
7781         which are enabled when linking with libdebug.lib, currently command
7782         line option --gstack enables stack pointer tracing for over/under
7783         flow, corresponding sources are in debug/gstack
7784
7785 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7786
7787         * doc/sdccman.lyx: updated SDCC version,
7788         * (PIC16 port): update list of command line options,
7789         * src/pic16/device.h (structure pic16_options_t): added field gstack
7790         to enable stack overflow tracing on push/pops,
7791         * src/pic16/device.c (statistics structure): added statistics
7792         structure,
7793         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7794         pic16_dump_int_registers): increase statistics counters for each
7795         * variable which is encountered
7796         * (pic16_dump_usection): emit each .udata variable to its own udata
7797         section,
7798         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7799         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7800         parameters via stack, otherwise use old scheme,
7801         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7802         assembler output file,
7803         * src/pic16/main.c: added command line options --gstack to enable
7804         push/pop tracing for stack overflow,
7805         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7806         instructions): added size of each instruction,
7807         * (pic16_countInstruction): estimate size of instructions in
7808         the_pFile list, inline assembly blocks are not counted,
7809         * (pic16_FixRegisterBanking): trace previous register usage, when
7810         banksel optimizations is greater than 0, don't emit a redudant
7811         banksel directive,
7812
7813 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7814
7815         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7816         * src/pic16/ralloc.c : applied same fix for pic16.
7817         * src/pic/gen.c : tidied it up a little.
7818
7819 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7820
7821         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7822         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7823
7824 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825
7826         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7827
7828 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7829
7830         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7831         non-reentrant function __modsint in the interrupt function (thus
7832         corrupting math operations during serial I/O)
7833         * device/lib/ser_ir.c: as above, changed buffersize
7834         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7835         256.c,d for zeroing
7836         * doc/Makefile: added option -t for rsync
7837
7838 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7839
7840         * src/SDCCast.h (struct ast),
7841         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7842
7843 2004-10-20 Borut Razem <borut.razem AT siol.net>
7844
7845         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7846         package
7847
7848 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7849
7850         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7851         makefile targets,
7852         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7853         support functions to replace long sequences of MOVFF's from access
7854         bank registers to stack and vice versa,
7855         * src/pic16/device.h: added new field opt_flags, where optimization
7856         flags can be set to enable certain features,
7857         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7858         * pBlock, (genFunction, genEndFunction): surroung loop for
7859         saving/loading used registers in stack with PC_INFO pCodes,
7860         INF_LREGS. Code in between can then be optimized by pCode optimizer
7861         to support function calls,
7862         * (genDataPointerSet): fixed bug which loaded float fields in
7863         structures with corrupt data,
7864         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7865         in a standard way debug info on stderr. Feature used for developing
7866         and debugging only,
7867         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7868         obsolete chunks of code,
7869         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7870         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7871         * pic16/src/pcode.c (pic16_newpCodeInfo,
7872         * (pic16_newpCodeOpLocalRegs),
7873         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7874         feature,
7875         * (pic16_pCodeConstString): printing of the initial value of a
7876         symbol as a comment is inhibited since parsing was already done by
7877         copyStr and output is corrupt,
7878         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7879
7880 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7881
7882         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7883
7884 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7885
7886         * as/mcs51/lkarea.c: removed old K&R style,
7887           (lnksect): changed check on boundary error,
7888           (lnksect2): changed check on boundary error,
7889           (lnksect2): extend XSTK to end of page if size = 1
7890         * as/mcs51/lkmain.c: removed old K&R style,
7891           (Areas51): create l_IRAM symbol
7892         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7893         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7894           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7895         * device/lib/_mullong.c: added version to be compiled with xstack
7896         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7897         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7898         * device/lib/mcs51/crtxstack.asm: fixed comment
7899         * src/SDCCglue.c: maxInterrupts defaults to 0,
7900           (emitMaps): added pdata,
7901           (createInterruptVect): (re)moved default,
7902           (glue): added pdata,
7903           (glue): moved __start__xstack to XSTK with default size 1
7904         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7905           and options.float_rent when options.stackAuto is set,
7906           (linkEdit): only write XDATA_NAME if provided on command line
7907         * src/SDCCmem.h,
7908         * src/SDCCmem.c: added pdata
7909         * src/port.h: added pdata_name to PORT
7910         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7911           (saveRegisters, unsaveRegisters): removed usage of B,
7912           (genMinus): fixed accumulator clash,
7913           (genJumpTab): added comment, this needs another look
7914         * src/mcs51/gen.c: added check for "B in use" paranoia,
7915           added pushB() and popB()
7916         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7917           chance
7918         * src/avr/main.c,
7919         * src/ds390/main.c,
7920         * src/hc08/main.c,
7921         * src/mcs51/main.c,
7922         * src/pic/main.c,
7923         * src/pic16/main.c,
7924         * src/xa51/main.c,
7925         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7926           added PSEG (PAG,XDATA) or NULL to port specifier
7927         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7928         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7929           (_mcs51_genInitStartup): removed __start__xstack equ,
7930           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7931         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7932         * src/z80/gen.c (_rleAppend): fixed warnings
7933         * support/regression/tests/zeropad.c: added pdata test
7934         * .version: bumped to 2.4.6
7935
7936 2004-10-17 Borut Razem <borut.razem AT siol.net>
7937
7938         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7939         as a part of nightly build
7940
7941 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7942
7943         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7944         WREG holds the first byte function parameters,
7945         * (aopForSym): take special case for symbols which are in FARSPACE
7946         but in CODESPACE too,
7947         * (assignResultValue): modified to take into account _G.useWreg,
7948         * (genCall): don't use wreg for parameter passing when function is
7949         declared as reentrant, too, added optimization INCF to stack
7950         pointer when stack parameter count is 1,
7951         * (genFunction, genEndFunction): refurnished and fixed to not using
7952         wreg for passing parameters when function has varargs or is
7953         reentrant, fixed bug with symbol name compare for generating
7954         functions in absolute address,
7955         * (pic16_storeForReturn): refurnished,
7956         * (genCmp): began writing a new version of the function, not ready
7957         yet, therefore it is disabled,
7958         * (genAssign): do not read code memory when assigning a function to
7959         a pointer function,
7960         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7961         array of characters, not pointer,
7962         * (pic16initialComments): in debug mode emit an .ident directive for
7963         the assembler,
7964         * (_process_pragma): emit a new warning type (internal to pic16)
7965         when setting stack to default length, emit a similar warning when
7966         placing a function at absolute address and address is not word aligned
7967         * (_pic16_parseOptions): added 'return TRUE' statement,
7968         * (_pic16_linkEdit): if compiling a source, then add the source's
7969         file object, first in the list of objects to link,
7970
7971 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7972
7973         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7974         * src/pic/main.c : removed VC warning.
7975         * src/pic/gen.c : changed comment.
7976
7977 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7978
7979         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7980         reference to a deprecated symbol _GPTRREG was causing failure to
7981         link. Thanks G. M. Gallant for the info.
7982
7983 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7984
7985         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7986         comments for Bugs item #954788.
7987
7988 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7989
7990         * src/pic16/device.c (pic16_dump_gsection,
7991         * pic16_groupRegistersInSection): handle symbols declared to be in
7992         access bank differently,
7993         * src/pic16/gen.c (struct _G): added field resDirect,
7994         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7995         send values read from stack directly to result and don't allocate
7996         temporary values,
7997         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7998         same registers,
7999         * (pic16_sameRegsOfs): NEW,
8000         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8001         free because they were not allocated from temporary pool,
8002         * pic16_popRegFromString): workaround to fix a problem with
8003         allocating variables twice or never,
8004         * (genGenPointerGet): using PRODL instead of FSR0H,
8005         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8006         instead of FSR0H,
8007         * (genAssign): take advantage of the _G.resDirect flag,
8008         * (genCast): around line 11844, use mov2f instead of directly
8009         MOVFF'ing between operands to account for literal values,
8010         * src/pic16/genutils.c: some new debug functions for gpsim have been
8011         added,
8012         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8013         float with integer part only,
8014         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8015         place variables in access bank
8016         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8017         updated sources to reflect recent changes in gen.c
8018
8019 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8020
8021         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8022         sources that searched for headers in installation path, now the
8023         device/include/pic16 is used,
8024         * src/pic16/glue.c (pic16glue),
8025         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8026         .line directives if not in debug mode, this suppresses assembler's
8027         warnings for ignored directives
8028
8029 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8030
8031         * src/port.h: made reset_regparms prototype void parameter explicit.
8032         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8033         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8034         * doc/sdccman.lyx: documented warning disabling and how to use
8035           printf_large to make it print floats.
8036         * device/include/stdbool.h: NEW
8037         * device/lib/_atof.c,
8038         * device/lib/_divuint.c,
8039         * device/lib/_divulong.c,
8040         * device/lib/expf.c,
8041         * device/lib/printf_large.c,
8042         * device/lib/sincosf.c,
8043         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8044         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8045           a completely reentrant lib.
8046
8047 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8048
8049         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8050         * device/include/pic16/stdio.h: fixed bug with colon
8051
8052 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8053
8054         * device/include/pic16/stdio.h,
8055         * device/include/pic16/stdlib.h,
8056         * device/include/pic16/math.h: NEW
8057         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8058         declared as _naked to reduce overhead
8059         * device/lib/Makefile.in (target port-specific-objects-pic16):
8060         changed * to *.* so to ignore the CVS directory,
8061         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8062         stacked variables back in stack,
8063         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8064         corruption
8065
8066 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8067
8068         * .version: bumped version number to 2.4.5
8069         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8070         * support/Util/SDCCerr.c (messages structure): added entry for
8071         W_POSSBUG2
8072
8073         Large cumulative patch for pic16 port and libraries.
8074         * device/include/pic16/sdcc-lib.h,
8075         * device/include/pic16/stdarg.h,
8076         * device/include/asm/pic16/features.h,
8077         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8078         * device/include/pic16/float.h: changes reentrant keyword with
8079         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8080         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8081         updated target build-libraries to include objects from gptr,
8082         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8083         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8084         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8085         all function headings,
8086         * src/SDCCmain.c: added global parameter userIncDirsSet,
8087         * (parseCmdLine): when option -I is encountered add directory to
8088         userIncDirsSet too,
8089         * src/version.awk: added space between control and long,
8090         * src/pic16/NOTES: added some notes for the port,
8091         * src/pic16/gen.c: added prototype for mov2fp function,
8092         * (fReturnpic16[]): properly named return value registers,
8093         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8094         * (aopForSym): added code to handle symbols with onStack flag set,
8095         symbols onStack are allocated PTRSIZE bytes,
8096         * (aopFreeAsmop): handles special case where asmops are stack objects,
8097         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8098         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8099         added argument lock to trace flaws in allocating temporary registers
8100         when developing port,
8101         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8102         * (pic16_popRegFromString): reenabled allocating a direct register
8103         from string,
8104         * (assignResultValue): various beautifications,
8105         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8106         referenced function argument,
8107         * (genIpush): reenabled to allow stacked arguments, handles only
8108         ic->parmPush iCodes,
8109         * (genCall, genPcall): major changes to allow for variable argument
8110         functions, fixed a bug with falsely restoring stack pointer after
8111         returning from call,
8112         * (genFunction): pending code for critical function,
8113         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8114         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8115         * (genNearPointerGet): fixed bug with indirect reading, was always
8116         reading from INDF0
8117         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8118         pointers,
8119         * (genAddrOf): rewrote code to take address of a stacked function parameter
8120         * (genCast): fixed casting to generic pointer type,
8121         * src/pic16/gen.h: added AOP_STA,
8122         * (struct asmop): added field stk,
8123         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8124         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8125         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8126         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8127         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8128         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8129         generic pointers,
8130         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8131         and library paths,
8132         * (pic16_port structure): generic pointer size is set to 3,
8133         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8134         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8135         compiler warning,
8136         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8137         operand is an iTemp,
8138
8139 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8140
8141         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8142         * debugger/mcs51/simi.c: addapt new syntax of s51
8143
8144 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8145
8146         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8147         * src/pic16/pcode.c: commented out some calls to free() in order to
8148         fix bug #989576,
8149
8150 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8151
8152         * src/SDCCicode.h,
8153         * src/SDCCicode.c (isiCodeInFunctionCall),
8154         * src/avr/ralloc.c (selectSpil),
8155         * src/pic/ralloc.c (selectSpil),
8156         * src/pic16/ralloc.c (selectSpil),
8157         * src/ds390/ralloc.c (selectSpil),
8158         * src/hc08/ralloc.c (selectSpil),
8159         * src/xa51/ralloc.c (selectSpil),
8160         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8161         stack in the middle of a function call sequence (fixes bug #1020268)
8162         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8163         costs associated with the minimum switch case.
8164
8165 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8166
8167         * src/SDCC.lex: fixed bug #1030549
8168
8169 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8170
8171         * src/SDCCcse.h (struct cseDef),
8172         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8173         over a function call if the CSE is derived from a symbol whose
8174         address has been taken (fixes bug #1029883)
8175         * support/regression/tests/bug-1029883: a new regression test for
8176         this bug
8177
8178 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8179
8180         * src/hc08/gen.c (emitinline): fixed bug #1029778
8181         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8182         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8183         and starts toward RFE #905167)
8184
8185 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8186
8187         * src/pic16/gen.c (mov2f): New function to move an operand to
8188         another without considering if it is a literal or a register,
8189         * (pic16_sameRegs): don't check if they are both AOP_REG,
8190         * (AccRsh): removed andmask=0 lines,
8191         * (genLeftShift): duplicated to be improved in future versions,
8192         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8193         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8194         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8195         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8196         * (insertBankSwitch): fixed inserting banksel directives algorithm
8197         for instructions that follow a skip instruction, this fixes a report
8198         for broken subtraction code generation,
8199         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8200         iCode is a left op, just in case result and right share the same
8201         registers
8202
8203 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8204
8205         * src/hc08/main.c,
8206         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8207         preservation of HX
8208         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8209         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8210         on 2004-09-12; it was buggy
8211
8212 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8213
8214         * src/SDCCsymt.h: removed RESULT_CHECK
8215         * src/SDCCast.c,
8216         * src/SDCCglue.c,
8217         * src/SDCCval.c,
8218         * src/pic/glue.c,
8219         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8220
8221 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8222
8223         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8224         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8225         configuration values no more rejected by compiler, they are assigned
8226         to configuration registers with a warning message instead,
8227         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8228         the for-loop so last conf register is emitted too,
8229         * (_pic16_initPaths): link library libsdcc.lib by default,
8230         * (_hasNativeMulFor): modified test for multiplication according to
8231         Raphael Neider's remarks. Integer multiplication is also done with
8232         support functions,
8233         * device/include/pic16/pic18fregs.h: corrected type error in while
8234         testing and including 18f6720 header file
8235
8236 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8237
8238         * src/pic16/device.h (pic16_options): removed field use_crt,
8239         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8240         until an optimization to handle single bits is added,
8241         * (pic16_loadFSR0): moved before genUnpackBits,
8242         * (genAnd): some white lines removed,
8243         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8244         leave_reset flags in pic16_options when using crt modules,
8245
8246 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8247
8248         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8249           for bugs 898889 & 979599. Also used some safer print instructions.
8250
8251 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8252
8253         * src/pic16/device.h (pic16_options_t): added field use_crt,
8254         crt_name, no_crt,
8255         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8256         catch a probable future bug,
8257         * src/pic16/gen.c: aopIdx function commented out,
8258         * (genAssign): commented out old code which used aopIdx,
8259         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8260         code, added if conditionals to take into account the --use-crt
8261         command line options,
8262         * src/pic16/main.c (pic16_optionsTable): added new command line
8263         options, --use-crt= and --no-crt,
8264         * (_pic16_linkEdit): now the proper crt object is added in the
8265         linker command line except than when --no-crt is specified,
8266         * src/pic16/pcode.c,
8267         * src/pic16/pcode.h: added some structures and functions for a new
8268         optimization scheme to compansate for instruction overhead between
8269         same iCodes, this scheme is currently under development and is not
8270         working in any way,
8271         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8272         to && operator,
8273         * device/lib/pic16/startup/crt0i.c,
8274         * device/lib/pic16/startup/crt0iz.c: added global char variable
8275         __uflags to force the generation of an idata section
8276
8277 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8278
8279         * doc/Makefile,
8280         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8281         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8282
8283 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8284
8285         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8286         Frieder) and clarified the default code optimization mode
8287
8288 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8289
8290         * src/SDCC.lex (doPragma, process_pragma),
8291         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8292         "opt_code_size", and "opt_code_balanced"
8293         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8294         regrouped options by category, added support for category headers
8295         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8296         and "--opt-code-size"
8297         * doc/sdccman.lyx: documented these new options and pragmas
8298         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8299         preference into account
8300
8301 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8302
8303         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8304           geniCodePreDec): Fixed bug 904237 by generating a warning
8305         * src/SDCCerr.h,
8306         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8307
8308 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8309
8310         * src/pic/device.c : When no max ram set validate full memory range.
8311         * src/pic/pcode.c,
8312         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8313
8314 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8315
8316         * device/lib/_gptrget.c,
8317         * device/lib/_gptrput.c: updated comment
8318         * device/lib/calloc.c,
8319         * device/lib/free.c,
8320         * device/lib/malloc.c,
8321         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8322         * src/SDCCcse.c (cseBBlock),
8323         * src/SDCCicode.c (printOperand, geniCodeArray),
8324         * src/SDCCicode.h (struct operand): fixed bug 868103
8325         * support/regression/tests/bug-868103.c: added
8326         * src/SDCCast.c (searchLitOp),
8327         * src/SDCCcse.h (struct cseDef),
8328         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8329         * src/SDCCicode.h (struct operand),
8330         * src/SDCCsymt.h (struct sym_link),
8331         * src/avr/gen.c (hasInc),
8332         * src/ds390/gen.c (hasInc),
8333         * src/hc08/gen.c (genPlusIncr, hasInc),
8334         * src/mcs51/gen.c (hasInc),
8335         * src/pic16/glue.c (pic16_printIvalChar),
8336         * src/pic16/ralloc.c (regWithIdx),
8337         * src/xa51/gen.c (hasInc) : removed warnings
8338         * src/SDCCast.c (createBlock): added comment ???
8339         * src/hc08/ralloc.c: updated comments
8340
8341 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8342
8343         * doc/sdccman.lyx: updated section on switch statements, added
8344         section about semaphore locking
8345         * doc/Makefile: added option -info for latex2html
8346         * device/lib/_gptrget.c,
8347         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8348
8349 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8350
8351         * src/pic/device.h,
8352         * src/pic/device.c,
8353         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8354          maxram is less than 0x100.
8355
8356 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8357
8358         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8359
8360 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8361
8362         * src/port.h,
8363         * src/mcs51/main.c,
8364         * src/ds390/main.c,
8365         * src/z80/main.c,
8366         * src/hc08/main.c,
8367         * src/pic/main.c,
8368         * src/pic16/main.c,
8369         * src/avr/main.c,
8370         * src/xa51/main.c
8371         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8372         a jump table is the best form for a switch statement, including
8373         automatic insertion of missing cases to make the case range
8374         continuous. Developed in collaboration with Frieder Ferlemann.
8375
8376 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8377
8378         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8379         accumulator result if it needs sign extension
8380
8381 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8382
8383         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8384
8385 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8386
8387         * device/lib/gbz80/printf.c,
8388         * device/lib/z80/printf.c: removed define for NULL
8389
8390 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8391
8392         * as/xa51/xa_link.c,
8393         * device/examples/ds390/ow390/ad26.c,
8394         * device/examples/ds390/ow390/cnt1d.c,
8395         * device/examples/ds390/ow390/counter.c,
8396         * device/examples/ds390/ow390/ds2480.h,
8397         * device/examples/ds390/ow390/ds2480ut.c,
8398         * device/examples/ds390/ow390/findtype.c,
8399         * device/examples/ds390/ow390/gethumd.c,
8400         * device/examples/ds390/ow390/owllu.c,
8401         * device/examples/ds390/ow390/ownetu.c,
8402         * device/examples/ds390/ow390/swt12.c,
8403         * device/examples/ds390/ow390/swtloop.c,
8404         * device/examples/ds390/ow390/temp.c,
8405         * device/examples/ds390/ow390/temp10.c,
8406         * device/examples/ds390/ow390/thermo21.c,
8407         * device/examples/ds390/ow390/tinilnk.c,
8408         * device/examples/ds390/ow390/tstfind.c,
8409         * device/examples/serialcomm/windows/serial.cpp,
8410         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8411         * device/include/reg51.h: fixed line endings for cvs
8412
8413 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8414
8415         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8416         packRegsForAccUse, packRegisters): new accumulator register
8417         packing algorithm
8418         * support/regression/ports/hc08/support.c (_putchar): suppress
8419         warning of unused variable
8420         * src/SDCCicode.c: added SWAP entry to codeTable
8421
8422 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8423
8424         * device/lib/sprintf.c: forgot to add this file before previous commit
8425
8426 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8427
8428         * src/pic16/gen.c (genPackBits): added operand right in function
8429         parameters, load result directly if p_type is POINTER (that is
8430         called by genNearPointerSet)
8431         * (genUnPackBits): added operand left in function parameters,
8432         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8433         FSR0 if accessing bitfields,
8434
8435 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8436
8437         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8438           _print_format; updated printf, sprintf, vsprintf
8439         * device/include/asm/default/features.h: corrected comment/define
8440         * device/lib/Makefile.in: added sprintf.c
8441         * device/lib/libsdcc.lib: added sprintf module
8442         * device/lib/printf_large.c,
8443         * device/lib/vprintf.c,
8444         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8445           into these 3 files
8446         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8447         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8448         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8449           hc08 test
8450         * support/regression/tests/zeropad.c: define idata as data for hc08
8451
8452 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8453
8454         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8455         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8456         labels are referenced at least once (even if a reference is not found)
8457         * src/hc08/gen.c (emitcode): set isComment flag for comments
8458         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8459         loads), rules 6a..6b (optimize jumps to return)
8460
8461 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8462
8463         * device/lib/acosf.c (acosf),
8464         * device/lib/asinf.c (asinf),
8465         * device/lib/atanf.c (atanf),
8466         * device/lib/ceilf.c (ceilf),
8467         * device/lib/cosf.c (cosf),
8468         * device/lib/coshf.c (coshf),
8469         * device/lib/cotf.c (cotf),
8470         * device/lib/fabsf.c (fabsf),
8471         * device/lib/floorf.c (floorf),
8472         * device/lib/log10f.c (log10f),
8473         * device/lib/logf.c (logf),
8474         * device/lib/sinf.c (sinf),
8475         * device/lib/sinhf.c (sinhf),
8476         * device/lib/sqrtf.c (sqrtf),
8477         * device/lib/tanf.c (tanf),
8478         * device/lib/tanhf.c (tanhf),
8479         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8480         replaced all instances of "reentrant" in the library functions
8481         defined in math.h with this macro.
8482         * support/regression/tests/float_trans.c: reenabled test for hc08
8483
8484 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8485
8486         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8487         erroneously deleted
8488
8489 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8490
8491         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8492         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8493         multi-byte volatile operands are used
8494         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8495         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8496         initialization to area GSINIT0 so that it would always precede
8497         any static initializers in GSINIT
8498         * support/regression/tests/zeropad.c: fixed idata define for hc08
8499         * support/regression/tests/bug-927659.c,
8500         * support/regression/tests/float_trans.c: disabled tests for hc08
8501         pending missing library routines
8502         * .version: increased version number to 2.4.4 - hc08 port now passes
8503         regression tests
8504
8505
8506 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8507
8508         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8509         * Makefile.common.in,
8510         * as/Makefile,
8511         * as/hc08/Makefile.in,
8512         * as/mcs51/Makefile.in,
8513         * as/z80/Makefile.in,
8514         * debugger/mcs51/Makefile.in,
8515         * device/include/Makefile.in,
8516         * device/lib/Makefile.in,
8517         * doc/Makefile,
8518         * link/Makefile,
8519         * link/z80/Makefile.in,
8520         * packihx/Makefile.in,
8521         * sim/ucsim/main_in.mk,
8522         * sim/ucsim/avr.src/Makefile.in,
8523         * sim/ucsim/doc/Makefile.in,
8524         * sim/ucsim/gui.src/serio.src/Makefile.in,
8525         * sim/ucsim/hc08.src/Makefile.in,
8526         * sim/ucsim/s51.src/Makefile.in,
8527         * sim/ucsim/xa.src/Makefile.in,
8528         * sim/ucsim/z80.src/Makefile.in,
8529         * src/Makefile.in,
8530         * support/cpp2/Makefile.in,
8531         * support/librarian/Makefile,
8532         * support/makebin/Makefile: added DESTDIR to the install path proposed
8533         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8534         * doc/sdccman.lyx: added DESTDIR documentation
8535
8536 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8537
8538         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8539         instruction for interrupt handlers, use fast returns when returning
8540         from high priority interrupts
8541
8542 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8543
8544         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8545         code generation
8546         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8547         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8548         bugs, ported much of Bernhard's code from mcs51
8549         * src/mcs51/gen.c (genSend),
8550         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8551         than one when calling a reentrant function
8552         * device/lib/_mullong.c: defined an alternate struct layout for big
8553         endian ports (hc08)
8554
8555 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8556
8557         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8558         test
8559
8560 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8561
8562         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8563         are sane and complete before asking the port its prefered parameter
8564         passing method (fixes bug #1017633)
8565         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8566         and _ret3
8567
8568 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8569
8570         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8571         problem in bitfields >= 8 bits.
8572
8573 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8574
8575         * src/SDCCsymt.c: undid changes that were not meant to be committed
8576
8577 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8578
8579         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8580
8581 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8582
8583         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8584           copied and wrong bit got inverted
8585
8586 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8587
8588         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8589         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8590         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8591         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8592         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8593         assignments to bitfields at known addresses
8594         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8595         reads from bitfields at known addresses
8596         * src/hc08/ralloc.c (packRegisters),
8597         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8598         genhc08Code): optimize pointer get values used as conditionals
8599         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8600         and branch
8601
8602 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8603
8604         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8605         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8606         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8607         as conditionals
8608
8609 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8610
8611         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8612
8613 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8614
8615         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8616         related problems
8617
8618 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8619
8620         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8621
8622 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8623
8624         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8625         mcs51 port
8626
8627 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8628
8629         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8630
8631 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8632
8633         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8634         cases use more compact code.
8635
8636 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8637
8638         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8639
8640 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8641
8642         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8643
8644 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8645
8646         * src/SDCCsymt.h,
8647         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8648         parameter of changePointer() from symbol* to sym_link*
8649         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8650         * src/SDCCsymt.c (compareType): void* type is castable to other
8651         pointers, but not necesarily an exact match.
8652         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8653         is no longer blindly treated as an exact match.
8654         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8655
8656 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8657
8658         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8659
8660 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8661
8662         * src/pic/gen.c,
8663         * src/pic/pcode.c,
8664         * src/pic/ralloc.h,
8665         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8666
8667 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8668
8669         * src/pic/device.c,
8670         * src/pic/device.h,
8671         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8672
8673 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8674
8675         * src/mcs51/gen.c (emitcode): fixed bug #992819
8676
8677 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8678
8679         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8680           there's no need to make it worse
8681
8682 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8683
8684         * src/mcs51/ralloc.c (deassignLR),
8685         * src/ds390/ralloc.c (deassignLR),
8686         * src/hc08/ralloc.c (deassignLR),
8687         * src/z80/ralloc.c (deassignLR),
8688         * src/pic/ralloc.c (deassignLR),
8689         * src/pic16/ralloc.c (deassignLR),
8690         * src/avr/ralloc.c (deassignLR),
8691         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8692         rlivePoint): fixed another part of bug #971834
8693
8694 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8695
8696         * src/z80/main.c: enabled "critical" keyword
8697         * src/z80/mappings.i,
8698         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8699         functions (fixes bug #979646)
8700         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8701
8702 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8703
8704         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8705           such as c:\mydir.
8706
8707 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8708
8709         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8710           doesn't disable too much optimizations
8711
8712 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8713
8714         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8715
8716 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8717
8718         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8719
8720 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8721
8722         * src/pic/gen.c tidied up tabs
8723         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8724         * src/pic/main.c tidied up tabs
8725         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8726         * src/pic/pcoderegs.c tidied up tabs
8727         * src/pic/ralloc.c tidied up tabs
8728
8729 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8730
8731         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8732         to S_FIXED for pic16 port and when symbol is not in level 0,
8733         allocate for S_REGISTER storage class and pic16 port, too,
8734         * src/pic16/device.h: prototype for checkSym,
8735         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8736         * (pic16_assignConfigWordValue): test the value and the mask to
8737         validate that the value is suitable for the configuration word,
8738         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8739         collect extern declared symbols, don't emit symbol twice, check
8740         first if symbol is in publics set first,
8741         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8742         * added command line '--fstack' which enables an experimental
8743         feature for stack access, too buggy to be used yet...
8744         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8745         * (pic16_allocDirReg): when register has storage class S_REGISTER
8746         allocate in pic16_dynAccessRegs,
8747         * device/include/pic16/pic18f????.h: modified configuration word
8748         naming convention, words started as CONFIG0H but should be CONFIG1H
8749
8750 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8751
8752         * device/include/mcs51reg.h: fixed bug 970993
8753
8754 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8755
8756         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8757         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8758         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8759         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8760         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8761         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8762           error/warning numbers,
8763           added function setWarningDisabled()
8764         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8765         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8766           _memcmp.c _memmove.c calloc.c realloc.c free.c
8767         * support/regression/tests/malloc.c: added tests for new functionality
8768         * support/regression/tests/zeropad.c: added tests for truncated initializers
8769           and initialized char arrays starting with '\x0'
8770         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8771
8772 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8773
8774         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8775
8776 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8777
8778         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8779         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8780         peephole 177.e. Thanks to anonymous
8781
8782 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8783
8784         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8785         function isn't used in the source but referenced as a
8786         variable initializer then declare it as extern in .asm file
8787
8788 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8789
8790         * .version: increased version number to 2.4.3
8791
8792         Adding version extension according to ChangeLog CVS revision
8793         * src/Makefile.in (target all): added dependency 'version.h'
8794         * (rule version.h): added rule to create version.h from ChangeLog,
8795         * (rule dep): added dependency version.h,
8796         * src/version.awk: AWK script to create version.h
8797         * src/SDCCdwarf2.c (dwWriteModule),
8798         * src/SDCCglue.c (initialComments),
8799         * src/SDCCmain.c (printVersionInfo): modified to write after
8800         version string the version extension number,
8801         * src/SDCCutil.c: included "version.h"
8802         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8803         number,
8804         * src/SDCCutil.h: added prototype for getBuildNumber
8805
8806         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8807         includeDirsSet, too,
8808         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8809         const char [] is found in function prototype...
8810
8811         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8812         moving to WREG with source is already in WREG,
8813         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8814         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8815         * (aopForSym): stack'ed symbols are partially supported, added
8816         if-clause to support symbols in FARSPACE,
8817         * (sameRegs): added test for AOP_ACC to see if registers are same,
8818         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8819         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8820         * (pic16_popRegFromString): will not allocate a new register if it
8821         doesn't find one by name, bug may have introduced...
8822         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8823         * (genIpush): revived to use pic16 port's stack,
8824         * (genAddrOf): added incomplete case for stack'ed operand,
8825         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8826         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8827         can handle multibyte operands,
8828         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8829         * (pic16initialComments): added message for MPLAB compatibility
8830         mode enabled,
8831         * src/pic16/main.h: prototype for pic16_mplab_comp,
8832         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8833         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8834         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8835         because of increased complexity of procedure,
8836         * (_process_pragma): stack pragma changed to format 'stack pos len',
8837         emit symbol '_stack_end' to conform with gplink,
8838         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8839         to search for register,
8840         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8841         PO_GPR_REGISTER,
8842         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8843         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8844         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8845         case for PO_GPR_REGISTER,
8846         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8847         dies, the new era is ahead !...
8848         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8849         pic16_dynInternalRegs,
8850         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8851         * (pic16_allocDirReg): minor optimizations and bug fixes,
8852         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8853
8854         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8855         load stack and frame pointer with address of 'stack_end' symbol
8856
8857 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8858
8859         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8860         without source code but only variable initializers
8861
8862 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8863
8864         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8865         external are not declared as extern to reduce overhead while linking
8866
8867 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8868
8869         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8870
8871 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8872
8873         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8874           Yee Keat for the patch
8875         * src/SDCCast.c (decorateType): fixed bug #979599
8876         * src/ds390/gen.h: removed local fReturnSizeDS390
8877         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8878         * src/ds390/gen.c (genAnd, genOr, genXor),
8879         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8880
8881 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8882
8883         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8884         add relFilesSet to $3, manipulate $2 to handle linking of object
8885         files without source files in command line,
8886         * device/include/pic16 (all headers): added ID location macros,
8887         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8888         entries for ID location bytes,
8889         * (pic16_assignIdByteValue): NEW,
8890         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8891         added field dumpcalltree to pic16_options_t,
8892         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8893         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8894         emitting rFalseIfx label after check_carry label,
8895         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8896         pic16_emitDIRegs), NEW
8897         * (pic16glue): dump .calltree file when option --calltree found,
8898         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8899         * (_pic16_genAssemblerPreamble): emit ID locations after
8900         configuration registers,
8901         * (pic16_linkCmd): modifications of the link command,
8902         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8903         * (pic16_pCodeInitRegisters): don't init stack registers,
8904         * (pic16_findPrevInstruction): fixed bug,
8905         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8906         bug with immediate registers,
8907         * (buildCallTree): traces stack push and pop,
8908         * (pct2): dump also stack usage for each function,
8909         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8910         * (pic16_allocDirReg): various modifications,
8911         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8912         fixed to 1,
8913
8914 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8915
8916         * src/pic16/pcode.c: removed buggy double colon
8917
8918 2004-07-01 Borut Razem <borut.razem AT siol.net>
8919
8920         * support/scripts/sdcc.nsi: added include/pic16 to setup
8921
8922 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8923
8924         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8925         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8926         target 'clean',
8927         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8928         specific command line arguments. Also added sample lkr script
8929         for placing a variable at a specific memory bank.
8930         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8931         at a specific memory bank,
8932         * (pic16_dump_isection): fixed bug which caused string literals to
8933         be omitted when dumping idata section,
8934         * (pic16_groupRegistersInSection): added code to handle registers
8935         in specific memory banks,
8936         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8937         public, all references are renamed too,
8938         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8939         AOP_DPTR2,
8940         * (pic16_storeForReturn): added case to handle when dest is WREG,
8941         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8942         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8943         pic16_rel_udata, check to see if that register is marked as being
8944         a member of a specific memory bank,
8945         * (pic16_printIvalCharPtr): added code to add string literals either
8946         to code or the idata sections,
8947         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8948         also accept the 'udata' pragma,
8949         * src/pic16/main.h: new structure types sectName and sectSym
8950         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8951         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8952         * (pic16_findPrevInstruction): fixed, it returned nothing,
8953         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8954         instruction combinations,
8955         * (pic16_FixRegisterBanking): heavily reorganised,
8956         * (pic16_AnalyzeBanking): if generating banksel directives is
8957         disabled, then don't call FixRegisterBanking at all,
8958         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8959         completely removed,
8960         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8961
8962 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8963
8964         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8965         Phuah Yee Keat <yk.phuah AT nestac.com>
8966
8967 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8968
8969         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8970         correctly the IVT even if it is relocated to some other location
8971
8972 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8973
8974         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8975         * device/include/pic16/pic18f2220.h: NEW,
8976         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8977         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8978         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8979         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8980         nodefaultlibs, ivt_loc is the location of the interrupt vector
8981         table, and nodefaultlibs signs that default libraries should not be
8982         linked in link stage,
8983         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8984         according to --ivt-loc argument,
8985         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8986         when pragma stack is found,
8987
8988 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8989
8990         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8991         256 (range check), 257 (do while), 258.a-f (bit banging
8992         f.e. on 3-wire SPI bus)
8993
8994 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995
8996         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8997         variables used exclusively within a loop
8998
8999 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9000
9001         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9002
9003 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9004
9005         * src/SDCClrange.c (computeClash): fixed bug #971834
9006
9007 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9008
9009         * src/mcs51/gen.c (genCmp): fixed bug #975903
9010         * src/hc08/gen.c (operandsEqu),
9011         * src/ds390/gen.c (operandsEqu),
9012         * src/z80/gen.c (operandsEqu),
9013         * src/pic/gen.c (operandsEqu),
9014         * src/pic16/gen.c (operandsEqu),
9015         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9016         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9017
9018 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9019
9020         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9021
9022 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9023
9024         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9025         default case in switch statement,
9026         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9027         to eliminate problem with initialisation of pointers, but problem
9028         still exists,
9029         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9030         * (emitStaticSegment): removed various lines emitting debug info,
9031         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9032         added processor registers for utilizing EEPROM,
9033         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9034         configurable and set 8
9035
9036 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9037
9038         * .version: increased version number to 2.4.2,
9039
9040         Cumulative patch for pic16 port
9041         * src/pic16/device.c: changed scheme to dump initial values for
9042         variables in idata segment, all print_idata* functions were removed,
9043         now the pic16_printIval* will be called,
9044         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9045         * _pic16_printPointerType, pic16_printPointerType,
9046         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9047         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9048         NEW, similar to the respective functions in SDCCglue.c,
9049         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9050         way, emitting hex bytes,
9051         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9052
9053 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9054
9055         * src/avr/ralloc.c (serialRegAssign),
9056         * src/xa51/ralloc.c (serialRegAssign),
9057         * src/pic/ralloc.c (serialRegAssign),
9058         * src/pic16/ralloc.c (serialRegAssign),
9059         * src/hc08/ralloc.c (serialRegAssign),
9060         * src/z80/ralloc.c (serialRegAssign),
9061         * src/ds390/ralloc.c (serialRegAssign),
9062         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9063
9064 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9065
9066         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9067         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9068
9069 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9070
9071         Cumulative patch for pic16 port:
9072         * src/pic16/device.h (typedef PIC16_device) modified fields for
9073         defining microcontrollers,
9074         * src/pic16/device.c: added new info for all devices in Pics16 array,
9075         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9076         to be optimised out by the pCode optimiser,
9077         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9078         specially, bug reported by G.M. Gallant,
9079         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9080         as force'd so that cannot be optimised out by pCode optimiser,
9081         * src/pic16/pcode.c,
9082         * src/pic16/pcodepeeph.c,
9083         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9084         they are disabled by default, but can be enabled explicit with
9085         command argument --denable-peeps, for testing,
9086         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9087         --pomit-ivt in COMPILE_FLAGS
9088
9089 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9090
9091         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9092           compilation on MSVC
9093
9094 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9095
9096         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9097
9098 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9099
9100         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9101         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9102
9103 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9104
9105         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9106         would only assign 0x300001 register.
9107
9108 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9109
9110         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9111         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9112
9113 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9114
9115         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9116         for ds80c400
9117         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9118         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9119         added peephole 254 (left shift), 255 (jump table)
9120
9121 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9122
9123         * device/lib/Makefile.in: removed comment line with model-pic16,
9124         * (target port-specific-objects-pic16): the libraries and objects
9125         are copied to the build directory form the device/lib/pic16/bin
9126         directory
9127
9128         Cumulative patch concerning pic16 port:
9129         * library directory has been re-organized,
9130         * added support for PIC18F1220,
9131         * added headers and library sources for chips 18f1220,18f6520,
9132         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9133
9134         * configuration registers setting has changed, now each supported
9135         device has a complete description of the registers it uses,
9136         * all initialisations are moved to idata sections, these section
9137         can be absolute or relocatable,
9138         * fixed initialisation of codespace variables,
9139         * fixed warning about PCLATU and gpsim,
9140         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9141         * (genAssign): use table reads when assigning from variables in codespace,
9142         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9143         char/int variables placed in codespace,
9144         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9145         registers set in .asm file, no need for --pomit-config-words anymore,
9146         * (pic16glue): some 8051 legacy segments are commented out
9147         (to be removed completely),
9148         * added support for alternative assembler and linker with --asm=
9149         and --link= command line arguments,
9150         * peepholes are disabled automatically in the port, no need to
9151         specify on command line,
9152         * port supports natively char/int/long multiplication, but converts
9153         all divisions to support functions,
9154         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9155         to the file set in variable $2,
9156         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9157         strings in ASCII format and not in hex,
9158         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9159         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9160         allocate proper register if iCodes aren't temporary,
9161
9162 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9163
9164         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9165
9166 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9167
9168         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9169         is commented out
9170
9171 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9172
9173         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9174         computed address is reused
9175         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9176         multi-byte bitfields
9177
9178 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9179
9180         * src/z80/gen.c: (genArrayInit): must check for pointers too
9181
9182 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9183
9184         * support/regression/tests/zeropad.c: never meant to commit the
9185           nestedstruct test: removed, added check for GCC version
9186
9187 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9188
9189         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9190         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9191         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9192           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9193           bugs 928906 and 954082 half-empty initializers
9194         * src/SDCCsymt.h,
9195         * src/SDCCsymt.c (getAllocSize): added for above fix
9196         * src/z80/gen.c (genArrayInit): fixed bug 741044
9197         * support/regression/tests/zeropad.c: added tests
9198
9199 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9200
9201         * src/pic16/device.c (pic16_dump_section): corrected bug which
9202         caused some symbols of the libraries to be misplaced
9203
9204 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9205
9206         * src/pic16/glue.c,
9207         * src/pic16/ralloc.h,
9208         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9209         to fix conflict with pic port
9210
9211 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9212
9213         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9214         externs configuration variables,
9215         * src/pic16/ralloc.h,
9216         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9217         prototype in header, commented out some debug messages
9218
9219 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9220
9221         * src/pic16/glue.c,
9222         * src/pic16/main.c,
9223         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9224         for gpasm COFF object generation. Thanks to D. Hawkins for
9225         his patch info
9226
9227 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9228
9229         * src/ds390/main.c,
9230         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9231         Brock for spotting this)
9232         * src/ds390/gen.c (genEndFunction),
9233         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9234         interrupt handler and critical. Disable push/pop optimizations when
9235         peephole optimizations disabled.
9236
9237 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9238
9239         Updated pic16 library sources and headers.
9240         * device/lib/pic16/pic18f*/ ,
9241         * device/include/pic16/*.h: modified to handle structured SFR
9242         definitions
9243
9244 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9245
9246         * src/port.h (PORT structure): added hook initPaths, now each
9247         port can declare its own default search paths,
9248         which can been seen with the --print-search-dirs option,
9249         see pic16 port for example,
9250         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9251         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9252         * (doPrintSearchDirs): NEW, replaces in a central manner the
9253         printing of search dirs which was split in set*Paths functions,
9254         * (main): added call to port->initPaths and doPrintSearchDirs,
9255         * src/avr/main.c,
9256         * src/ds390/main.c,
9257         * src/hc08/main.c,
9258         * src/izt/i186.c,
9259         * src/izt/tlcs900h.c,
9260         * src/mcs51/main.c,
9261         * src/pic/main.c,
9262         * src/pic16/main.c: modified port structures to reflect addition of
9263         initPaths hook,
9264
9265         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9266         * (pic16_dump_section): for registers in same address reserve memory once,
9267         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9268         to no_banksel,
9269         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9270         result is greater in size than right or left,
9271         * (pic16_genUMult8X8_8): there are some cases where the result can
9272         be 16 bits size, so handle these,
9273         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9274         * (pic16_outBitC): modified to emit pcodes,
9275         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9276         or not,
9277         * (genDivOneByte): implemented algorithm to divide 8-bits,
9278         * (genCmp): uncommented goto, but issues still exist,
9279         * (genAnd): fixed a bug with variables >8bits,
9280         * (genPackBits): optimization added that uses BCF/BSF to change a
9281         single bit,
9282         * (genAssign): fixed bug when assigning floating point literals,
9283         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9284         __sdcc_gsinit_startup label,
9285         * src/pic16/main.c (_pic16_init): removed search directory
9286         initialisations,
9287         * (_pic16_initPaths): NEW, used to initialise search directories,
9288         * (_hasNativeMulFor): support functions for all except char/int
9289         multiplication, and char division,
9290         * (PIC16_port struct): modified entry for native mul support,
9291         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9292         no_banksel option,
9293         * (buildCallTree): call to register_usage is ifdef'ed out,
9294
9295 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9296
9297         * device/include/string.h: applied Stas Sergeev's patch to make this
9298         header file compatible with the preprocessor -Wundef option
9299         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9300         failure (fixes bug #941458)
9301
9302 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9303
9304         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9305         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9306         that the variable, not the function, should be static
9307         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9308         to be consistent with non-literal case
9309
9310 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9311
9312         * src/SDCCast.c (isConformingBody): fixed bug #949967
9313         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9314         convilong): fixed bug #952086
9315
9316 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317
9318         * src/SDCCmem.c (allocVariables): fixed bug #955321
9319
9320 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * src/hc08/main.c (_hc08_genAssemblerEnd),
9323         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9324         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9325         completely eliminated the use of a temporary file
9326         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9327         when more than one file linked
9328         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9329
9330 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9331
9332         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9333         which fixes bug #543481
9334         * support/regression/tests/bug-751703.c: fixed comments left from a
9335         cut and paste error
9336         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9337         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9338         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9339         scopes
9340         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9341         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9342         are now changed to underscores in moduleName
9343
9344 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9345
9346         * as/mcs51/lkmem.c: better fix for bug #954173
9347
9348 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9349         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9350
9351         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9352         * device/include/c8051f000.h,
9353         * device/include/c8051f120.h,
9354         * device/include/c8051f300.h,
9355         * device/include/c8051f310.h,
9356         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9357         PWM16) and detab'ed
9358
9359 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9360
9361         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9362         and mailing lists, doc'ed --no-peep-comments, removed reference
9363         to knoppix (newest version has no LyX/LaTeX), other minor changes
9364         * src/SDCCglue.c (glue): save 2 bytes stack space with
9365         option --main-return. The ljmp could probably be avoided too
9366
9367 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9368
9369         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9370
9371 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9372
9373         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9374         * src/SDCCopt.c (isLocalWithoutDef),
9375         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9376         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9377         (credit to Maarten Brock for patch #949363, on which this is based)
9378         * support/regression/tests/bug-751703.c: some test cases of extern used
9379         within inner scopes.
9380
9381 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9382
9383         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9384         SPEC_STRUCT
9385         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9386         struct definitions
9387         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9388         dwWriteLabel): fix to create valid debugger symbols even when
9389         the module name has non-alphanumeric symbols in it
9390         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9391         when a variable's allocation has been optimized away
9392
9393
9394 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9395
9396         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9397         * src/hc08/main.c,
9398         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9399         * src/mcs51/main.c,
9400         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9401         * src/ds390/main.c,
9402         * src/z80/gen.c (z80_emitDebuggerSymbol),
9403         * src/z80/main.c,
9404         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9405         * src/pic/main.c,
9406         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9407         * src/pic16/main.c,
9408         * src/avr/gen.c (avr_emitDebuggerSymbol),
9409         * src/avr/main.c,
9410         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9411         * src/xa51/main.c,
9412         * src/SDCCdebug.c (emitDebuggerSymbol),
9413         * src/SDCCdebug.h,
9414         * src/port.h: added a debugger struct to the port struct. Added a
9415         callback for defining debugger symbols
9416
9417         * src/SDCCast.c (createLabel),
9418         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9419         with isitmp = 1
9420         * src/SDCCicode.h,
9421         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9422         iCode back to the ast for the function
9423
9424         * src/hc08/ralloc.c (hc08_assignRegisters),
9425         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9426         unneeded fields from the regs struct.
9427         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9428         pushReg() & pullReg() functions instead of emitcode()
9429
9430         * src/hc08/gen.c (genLabel, genhc08Code),
9431         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9432
9433         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9434         debugger hooks
9435
9436         * src/hc08/gen.c (genEndFunction, genhc08Code),
9437         * src/hc08/gen.h,
9438         * src/mcs51/gen.c (genEndFunction, gen51Code),
9439         * src/mcs51/gen.h,
9440         * src/ds390/gen.c (genEndFunction, gen390Code),
9441         * src/ds390/gen.h,
9442         * src/z80/gen.c (genEndFunction, genZ80Code),
9443         * src/z80/gen.h,
9444         * src/z80/z80.h,
9445         * src/pic/gen.c (genEndFunction, genpic14Code),
9446         * src/pic/gen.h,
9447         * src/pic16/gen.c (genEndFunction, genpic16Code),
9448         * src/pic16/gen.h,
9449         * src/avr/gen.c (genEndFunction, genAVRCode),
9450         * src/avr/gen.h,
9451         * src/xa51/gen.c (genEndFunction, genXA51Code),
9452         * src/xa51/gen.h,
9453         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9454         specific code to cdbFile.c and out of the backend code generators
9455
9456         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9457         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9458         starting address is now 0
9459
9460         * as/hc08/asm.h,
9461         * as/hc08/m08pst.c,
9462         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9463         assembler directive for DWARF support
9464         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9465
9466         * src/src.dsp,
9467         * src/Makefile.in,
9468         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9469
9470 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9471
9472         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9473         and inappropriate peephole optimization in jump tables
9474
9475 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9476
9477         * as/hc08/m08pst.c,
9478         * src/SDCCglue.c: sdccopt works for the hc08 port now
9479
9480 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9481
9482         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9483
9484 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9485
9486         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9487
9488 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9489
9490         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9491         rules
9492         * src/SDCCmain.c,
9493         * src/SDCCglobl.h,
9494         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9495         comments from the peephole optimizer replacement rules
9496         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9497         symbols
9498         * src/SDCCcse.c (updateSpillLocation),
9499         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9500         equivalents
9501         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9502         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9503         objects far pointers
9504
9505 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9506
9507         * src/SDCCsymt.h: a missing part of my last change
9508         * src/pic/ralloc.c (regTypeNum),
9509         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9510
9511 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9512
9513         * src/SDCCicode.h,
9514         * src/SDCCicode.c (aggrToPtrDclType),
9515         * src/SDCCptropt.h,
9516         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9517         ptrPseudoSymConvert),
9518         * src/pic/ralloc.c (regTypeNum),
9519         * src/pic16/ralloc.c (regTypeNum),
9520         * src/hc08/ralloc.c (regTypeNum),
9521         * src/ds390/ralloc.c (regTypeNum),
9522         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9523         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9524
9525 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9526
9527         * link/z80/lkmain.c (afile),
9528         * as/hc08/lkmain.c (afile),
9529         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9530         prevent a pointer problem when a filename has no directory and
9531         no extension specified.
9532
9533 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9534
9535         * link/z80/lkmain.c (afile): allow periods in directory names
9536         * link/z80/lkmain.c (afile),
9537         * as/mcs51/lkmain.c (afile),
9538         * as/hc08/lkmain.c (afile): allow linker script file to have an
9539         extension other than ".lnk"
9540         * link/z80/lklex.c (getfid),
9541         * link/z80/lkmain.c (parse),
9542         * as/mcs51/lklex.c (getfid),
9543         * as/mcs51/lkmain.c (parse),
9544         * as/hc08/lklex.c (getfid),
9545         * as/hc08/lkmain.c (parse): Support comments in the linker script
9546         file on lines by themselves and after filenames
9547
9548 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9549
9550         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9551
9552 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9553
9554         * src/z80/peeph-z80.def: removed some peephole rules that don't
9555         work with multibyte arithmetic (fixed bug #937126)
9556         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9557         to registers and not global variables
9558         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9559         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9560         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9561         checking for assignments not internally generated (fixed bug #931895)
9562         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9563         structure member (fixed bug #930072)
9564
9565 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9566
9567         * src/SDCCmain.c (linkEdit),
9568         * src/hc08/main.c (_hc08_parseOptions),
9569         * as/hc08/Makefile.in,
9570         * as/hc08/aslink.h,
9571         * as/hc08/asm.h,
9572         * as/hc08/m08pst.c,
9573         * as/hc08/lkrloc.c (relr, rele),
9574         * as/hc08/lkarea.c (lnkarea)
9575         * as/hc08/lkmain.c (afile, parse),
9576         * as/hc08/lkelf.c: support for ELF output
9577         * as/hc08/lks19.c (s19),
9578         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9579
9580 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9581
9582         * as/mcs51/lkihx.c: Fixed bug #899105.
9583
9584 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9585
9586         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9587         .dsp files from Unix to DOS.
9588
9589 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9590
9591         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9592         function pointers; we have been compliant for several months now.
9593         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9594         change that was accidently commented out
9595         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9596         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9597         bug #922319
9598
9599 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9600
9601         * src/hc08/gen.c: output of all of the internal debugging information
9602         is now controlled by the D() macro; it is disabled by default
9603
9604 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9605
9606         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9607         harder to keep the same registers during a CAST iCode
9608         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9609         long via int can be done in a single cast, if the signedness is
9610         correct.
9611         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9612         putchar() in tinibios.c in ds390's library
9613
9614 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9615
9616         * src/SDCCast.c (decorateType): fixed bug #898889,
9617         cast result of a literal complement too
9618         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9619         fixed check for bitfields
9620
9621 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9622
9623         * src/SDCCicode.c (geniCodeLogic): made it static,
9624         (geniCodeLogicAndOr): added in order to fix bug #905492,
9625         (ast2iCode): fixed bug #905492
9626         * support/regression/tests/bug-905492.c: added
9627         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9628         (processParms): fixed bug #927659: don't copy parms, this will clear
9629         decorated flag
9630         * support/regression/tests/bug-927659.c: added
9631
9632 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9633
9634         * src/SDCCast.c (addCast): don't cast float to char
9635         * device/lib/libsdcc.lib: added _memmove
9636
9637 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9638
9639         * device/lib/large/Makefile: fixed parallel execution by
9640         replacing `make` by `$(MAKE)`
9641
9642 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9643
9644         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9645         offsets (fixes bug #923936)
9646
9647 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9648
9649         * device/lib/small/Makefile: fixed parallel execution by
9650         replacing `make` by `$(MAKE)`
9651
9652 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9653
9654         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9655
9656 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9657
9658         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9659         * src/regression/Makefile: Regression test was not running.
9660
9661 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9662
9663         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9664         complement if possible
9665         * src/SDCCval.c (valComplement),
9666         * src/SDCCicode.c (operandOperation): fixed complement of literal
9667         * support/regression/tests/onebyte.c (testComplement): added
9668
9669 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9670
9671         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9672         return an optimized tree; actually replace actParm with the new tree
9673         * src/SDCCast.h: added some parantheses to remove side effects
9674         * support/regression/tests/bug-920866.c
9675
9676 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9677         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9678         Bit operands were not being handled properly in the pic14 port.
9679         (now src/regression/add.c passes again).
9680
9681 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9682
9683         * src/SDCC.y (labeled_statement): case and default no longer require
9684         a following statement (RFE #893037)
9685
9686 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9687
9688         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9689         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9690         disabled (fixes bug #916294)
9691         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9692         "mov a,acc"; patch provided by Lenny Story
9693         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9694
9695 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9696
9697         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9698         functions
9699         * src/ds390/gen.c (genFunction, genEndFunction),
9700         * src/ds390/ralloc.c (ds390_assignRegisters),
9701         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9702         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9703         pushed if there are parameters passed on the stack. Also, a cleaner
9704         way to decide if r0/r1 should be pushed/popped. (Together they fix
9705         bug #918693)
9706
9707 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9708
9709         * doc/sdccman.lyx,
9710         * device/lib/mcs51/crtpagesfr.asm,
9711         * device/lib/mcs51/crtxinit.asm,
9712         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9713         to avoid confusion with Si Lab's SFRPAGE register.
9714
9715 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9716
9717         * src/SDCCglue.c (emitMaps): allow public sfr variables
9718         * src/SDCCglue.c (initialComments): include compiler build date
9719         with compiler version and put the timestamp of the generated
9720         assembly file on a serperate line to be less confusing.
9721         * src/port.h: added genInitStartup hook
9722         * src/avr/main.c,
9723         * src/ds390/main.c,
9724         * src/hc08/main.c,
9725         * src/pic/main.c,
9726         * src/pic16/main.c,
9727         * src/xa51/main.c,
9728         * src/z80/main.c: genInitStartup initialize as NULL (default to
9729         historical behaviour)
9730         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9731         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9732         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9733         library instead of hard coding it into the compiler.
9734         * support/regression/ports/mcs51-stack-auto/spec.mk,
9735         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9736         * device/lib/mcs51/Makefile,
9737         * device/lib/small/Makefile,
9738         * device/lib/large/Makefile,
9739         * device/lib/mcs51/crtpagesfr.asm,
9740         * device/lib/mcs51/crtstart.asm,
9741         * device/lib/mcs51/crtxclear.asm,
9742         * device/lib/mcs51/crtxinit.asm,
9743         * device/lib/mcs51/crtclear.asm,
9744         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9745         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9746         and into user configurable files.
9747         * device/lib/clean.mk: clean mcs51 directory too
9748         * support/regression/tests/longlit.c: added static to T1 declaration
9749         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9750         accesses in the initialization code
9751
9752 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9753
9754         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9755         OSCTRIMVAL as noted in bug #916008
9756
9757 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9758
9759         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9760         in loops with multiple exits (reported as incorrect registers
9761         used by Martin Helmling in Sdcc-user list)
9762
9763 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9764
9765         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9766         made ds390 register extensions look less like error messages
9767
9768 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9769
9770         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9771         reported by Adam Wozniak in Sdcc-user list
9772
9773 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9774
9775         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9776         arithmetic optimizations, added debug output
9777
9778 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9779
9780         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9781         * sdcc.spec: updated and split sdcc into 3 rpms
9782         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9783         needed for literals of LEFT_OP and '+'
9784         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9785         introduced RESULT_TYPE_NOPROM
9786         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9787         left shift
9788         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9789         limited promotion to int only for '*'
9790         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9791
9792 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9793
9794         * src/pic16/gen.c (genSkip),
9795         (genc16bit2lit), (gencjneshort): commented out
9796         (is_LitOp): new helper function, checks operand type
9797         (genCmpEq): rewritten
9798
9799 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9800
9801         * support/regression/tests/bug-908454.c: added
9802
9803 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9804
9805         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9806         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9807         (geniCodeCast): cosmetic, don't preserve bit storage class
9808         (geniCodeLeftShift): added promotion
9809         (geniCodeLogic): fixed regression
9810         * src/SDCCsymt.c (computeTypeOr): accept bits too
9811         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9812
9813 2004-03-07  Borut Razem <borut.razem AT siol.net>
9814
9815         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9816
9817 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9818
9819         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9820         version of pic16_genPackRegisters which does not check if ic is a
9821         CAST operator,
9822         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9823         function cause string1.c regression test fails
9824
9825 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9826
9827         * sim/ucsim/configure.in,
9828         * sim/ucsim/configure,
9829         * sim/ucsim/doc/Makefile.in: use docdir
9830         * src/SDCC.y: fixed sbit atrributes
9831         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9832         * src/SDCCast.c (decorateType): |^& need special promotion handling
9833         * src/SDCCast.h,
9834         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9835         * src/SDCCsymt.h (computeType),
9836         * src/SDCCicode.c: computeType() needs op
9837         * src/SDCCsymt.c (checkTypeSanity),
9838         * doc/sddman.lyx: "plain" bitfields are unsigned
9839         * src/SDCCsymt.c (computeTypeOr): added
9840         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9841         |^& ops
9842         * src/SDCCval.c (val*): computeType() needs op
9843         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9844         * support/regression/tests/onebyte.c: added tests for |^&
9845
9846 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9847
9848         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9849         for writing icode into asm output.
9850
9851 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9852
9853         * src/pic16/device.c: added some debug lines enabled
9854         with macro DEBUG_CHECK,
9855         * src/pic16/genarith.c: more debug in genPlus,
9856         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9857         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9858         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9859         * (aopForSym): onStack symbols are re-placed in data memspace,
9860         and onStack flag is cleared,
9861         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9862         copy temporary pcodeop,
9863         * (genPcall): added warning for not updating PCLATU,
9864         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9865         always true for pic16 port,
9866         * (genMultOneWord): NEW, supports integer multiplication,
9867         * (genMult): modified to call genMultOneWord,
9868         * (ifxForOp): added warning when return NULL,
9869         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9870         flag is set before call to operandFromSymbol for implicit
9871         added structures,
9872         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9873         options.intlong_rent are set by default,
9874         * (_hasNativeMulFor): modified to allow port generation of integer
9875         multiplication,
9876         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9877         set regtype to REG_SFR for all registers, restricting seting the
9878         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9879
9880 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9881
9882         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9883         more than 500 times in the regression tests
9884
9885 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9886
9887         * support/Util/SDCCerr.h,
9888         * support/Util/SDCCerr.c,
9889         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9890         enumerator_list),
9891         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9892         for symbol conflicts.
9893         * support/valdiags/tests/enum.c,
9894         * support/valdiags/tests/tentdecl.c,
9895         * support/valdiags/tests/struct.c: expect possible error messages
9896         referring to original symbol definitions.
9897         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9898         * src/SDCCsymt.h,
9899         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9900
9901 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9902
9903         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9904
9905 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9906
9907         * src/pic16/ralloc.c (newReg): fixed bug #908929
9908
9909 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9910
9911         * src/ds390/gen.c: added missing #include "main.h"
9912
9913 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9914
9915         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9916         checking if symbol is already in set,
9917         * src/pic16/device.h: prototype for checkAddSym,
9918         * src/pic16/gen.c: (_G): added entry interruptvector,
9919         * (assignResultValue): removed some commented out lines,
9920         * (genFunction): check for ISR via sym->type, absolute section for
9921         interrupt code is created via a new pBlock, the goto instruction is
9922         placed now correctly at the interrupt vector position, changed all
9923         references from ivec to _G.interruptvector,
9924         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9925         is the interrupt is a high priority one, same for return from ISR,
9926         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9927         externs to calls of checkAddSym,
9928         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9929         pic16_pcode_verbose flag is set,
9930         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9931         * src/pic16/pcoderegs.c: message about how many registers are saved
9932         will only be emitted if pic16_pcode_verbose flag is set,
9933
9934 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9935
9936         * src/ds390/ralloc.h,
9937         * src/ds390/ralloc.c (ds390_regWithIdx),
9938         * src/ds390/gen.c (emitcode),
9939         * src/ds390/main.h,
9940         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9941         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9942         ds390operandCompare, getRegsRead, getRegsWritten,
9943         initializeAsmLineNode): customized instruction size calculation for
9944         ds390, started basis for some register optimizations
9945         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9946         corresponding assembly output
9947         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9948         missing push/pop of r0/r1. Optimized push/pops
9949
9950 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9951
9952         * src/mcs51/main.c (instructionSize): fixed ACALL size
9953         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9954
9955 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9956
9957         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9958         the sorting of rlist with NULL elements
9959         * (print_idataType, print_idata): NEW to create idata sections
9960         * src/pic16/device.h: idataSymSet new variable
9961         * src/pic16/gen.c (genFunction): fixed some bugs in string
9962         comparing, improved the absolute section creation for ISRs,
9963         added FSR0L/FSR0H in registers that are saved in an ISR,
9964         * (genInline): fixed the processing of inline snippets,
9965         now they undergo no process by the peephole optimizer
9966         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9967         are placed in idataSymSet,
9968         * (pic16emitStaticSeg): extern symbols are added in externs,
9969         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9970         switching when aboslute variables are placed in access bank memory
9971         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9972         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9973         commented out with #if,
9974         * (pic16_packRegisters): reintroduce the check for CAST because some
9975         symbols are not correctly handled,
9976         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9977         pCodeInstruction instead of pCode,
9978         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9979         pCodeAsmDir definition,
9980         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9981         directive, then the argument directive is emitted without the leading
9982         tab, hack for inline labels which must be in the first column,
9983         * (compareLabel,pic16_findNextInstruction),
9984         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9985         * (insertBankSwitch): modified for the new pCodeAsmDir,
9986
9987 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9988         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9989
9990         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9991         instance,
9992         * (pushSide): commented out with #if,
9993         * (assignResultValue): fixed some typos in saving
9994         registers,
9995         * (genPcall): FIXED and sync'ed with genCall,
9996         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9997         * (genNearPointerGet): fixed to handle some more cases,
9998         implementation scheme via table reads,
9999         * (genConstPointerGet): modified to access code memory correct,
10000         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10001         and improved to handle some cases
10002         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10003         instead of "RETLW" for init data
10004         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10005         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10006         variables are placed in access bank memory (<0x80 and >=0xf80),
10007         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10008         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10009         TBLWT_POSTDEC,TBLWT_PREINC
10010         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10011         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10012         directives
10013         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10014         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10015         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10016         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10017
10018 2004-02-29  Borut Razem <borut.razem AT siol.net>
10019
10020         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10021         support/Util/findme.h, support/Util/system.h: enhance binary relative
10022         search for lib and include by using findProgramPath()
10023
10024 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10025
10026         * src/SDCCpeeph.h,
10027         * src/SDCCpeeph.c (pcDistance),
10028         * src/port.h,
10029         * src/mcs51/ralloc.h,
10030         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10031         * src/mcs51/main.h,
10032         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10033         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10034         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10035         size calculation port specific, started basis for some register
10036         optimizations
10037         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10038         missing push/pop of r0/r1. Optimized push/pops
10039         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10040         * device/lib/_modsint.c (_modsint),
10041         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10042         and stack version so regression tests pass
10043
10044 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10045
10046         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10047         * src/SDCCast.c (decorateType): catch another small optimization
10048         with '?' operator
10049         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10050         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10051         modified to finally use computeType() all over SDCC,
10052         see Feature Request #877103
10053         * src/SDCCval.h: cosmetic
10054         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10055         valCompare(); regression tested in muldiv.c
10056         * support/regression/tests/muldiv.c (testMod): mod sign follows
10057         dividend only
10058
10059 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10060
10061         * src/SDCCast.c (decorateType): fixed bug #902362
10062         * doc/INSTALL.txt: fixed install instructions for win32
10063
10064 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10065
10066         * device/include/Makefile.in (install): fixed by replacing spaces
10067         by tabs
10068         * doc/README.txt,
10069         * doc/INSTALL.txt: updated for release
10070         * doc/sdccman.lyx: added warning for --xstack being buggy
10071
10072 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10073
10074         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10075         to eliminate build warnings.
10076         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10077
10078 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10079            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10080
10081         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10082         removed -penable-stack, added comment for stack pragma, added
10083         warning for not initializing the stack/frame registers, removed
10084         comment at interrupts section
10085
10086         Stack is made permanent, there is no ability to disable stack usage.
10087         * src/pic16/device.h,
10088         * src/pic16/device.c: removed all references to USE_STACK macro,
10089         * src/pic16/device.c (pic16_dump_section): when no elements in
10090         rlist, free rlist before return,
10091         * (pic16_dump_int_registers): NEW, internal registers are a new set
10092         of general purpose registers reused by each function,
10093         * (checkAddReg): returns 1 if registers is added to set,
10094         * (pic16_groupRegistersInSection): when a registers is of type
10095         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10096         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10097         SRCASECMP macro is moved here from device.c
10098         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10099         PO_PCLATU, PO_PRODL, PO_PRODH,
10100         * (pic16_pCodeOpType, genMinus,
10101         changed compares to "a" register, with AOP_ACC,
10102         * (pic16_genPlus): fixed some bugs and indented properly,
10103         * (pic16_addSign): changed size to size+offset in the MOVWF
10104         instruction,
10105         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10106         multiply 8-bit operand by literal, result is 8-bit,
10107         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10108         multiply 2 8-bit operand, result is 8-bit,
10109         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10110         genUMult8X*_16,
10111         * src/pic16/gen.c: changed accUse to contain WREG only,
10112         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10113         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10114         true, do not use immediate addressing any more unless sym is a
10115         pointer in codespace,
10116         * (aopForRemat): do not use immediate addressing when symbol not in
10117         codespace and when symbol's address is requested,
10118         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10119         accUse size (= 1),
10120         * (aopGet): added case for AOP_ACC and don't return "accumulator
10121         bug" but WREG instead,
10122         * (popGetTempReg): pushes contents of temporary register in stack,
10123         * (popReleaseTempReg): pops contents of temporary register from
10124         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10125         * (pic16_popGet): separated case AOP_ACC to return register WREG
10126         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10127         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10128         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10129         the use of immediate pointers to certain cases only.
10130
10131         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10132         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10133         * (assignResultValue, genCall, genRet): modified to use the new
10134         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10135         genPcall is still broken,
10136         * (genFunction): added code to create 'A' type pBlocks when
10137         interrupt functions are generated, code not extensively tested yet,
10138         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10139         * (genEndFunction): modified so ISRs pop stored registers from stack,
10140         * (genMultOneByte): cleanup,
10141         * (AccRsh): added flag andmask, to and result with appropriate mask,
10142         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10143         * (genDataPointerGet): fixed and reenabled its use,
10144         * (genNearDataPointerGet): bugs fixed,
10145         * (genDataPointerSet): bugs fixed,
10146         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10147         pic16_DumpSymbol, pic16_DumpOp,
10148         * src/pic16/genutils.h: function prototypes for the above functions,
10149         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10150         pointers,
10151         * (pic16emitRegularMap): many many many improvements, but needs a
10152         major cleanup,
10153         * src/pic16/main.c: enable_stack in pic16_options is removed,
10154         * (_pic16_parseOptions): removed command line options -penable-stack,
10155         * (_process_pragma): emit stack symbol only when stack pragma is
10156         processed,
10157         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10158         redirected to FSR0L/FSR0H pair,
10159         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10160         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10161         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10162         for immediates,
10163         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10164         * (dumpPicOptype): NEW,
10165         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10166         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10167         with movff instruction,
10168         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10169         added pic16_int_regs, some packRegsFor* functions are commented out,
10170         because produce errors,
10171         * src/pic16/NOTES: minor modifications
10172
10173 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10174
10175         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10176         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10177         --pack-iram.
10178         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10179         * as/mcs51/lkaomf51.c: fixed bug #895763
10180
10181 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10182
10183         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10184
10185 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10186
10187         * doc/sdccman.lyx: added details about the HC08 storage classes and
10188         interrupts, fixed the register usage info for z80 & gbz80
10189
10190 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10191
10192         * doc/sdccman.lyx: added more pic16 port documentation
10193         * device/include/pic16/: added header pic18fregs.h
10194
10195 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10196
10197         * doc/sdccman.lyx: added Vangelis' contribution
10198
10199 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10200
10201         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10202         extend to the next CALL or PCALL, not just to the next CALL.
10203
10204 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10205
10206         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10207
10208 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10209
10210         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10211         bug #895752 and a better fix for bug #716790
10212
10213 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10214
10215         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10216
10217 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10218
10219         * doc/sdccman.lyx: minor changes, minor changed
10220
10221 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10222
10223         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10224         which can't handle SDCC_NEWONEBYTEOPS,
10225         (geniCodeMultiply): removed conversion from mult to shift for pic14
10226         and pic16
10227
10228 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10229
10230         * src/hc08/gen.h,
10231         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10232         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10233         thus fixing bug #895406
10234
10235 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10236
10237         * device/lib/_modsint.c,
10238         * device/lib/_modslong.c: sign follows divisor only
10239         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10240         signs or signedness can be ignored
10241         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10242         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10243         added optimization for IFX,
10244         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10245         arguments;
10246         reenabled optimization for IFX, which was removed on 2004-01-11
10247         * src/SDCCast.h: added return type IFX
10248         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10249         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10250         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10251         SDCC_OLDONEBYTEOPS selects the old behaviour
10252         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10253         changed again and commented promotion rule
10254         * src/SDCCval.c (valDiv): promotion no longer necessary
10255         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10256         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10257         rewritten
10258         * support/regression/tests/onebyte.c: added
10259
10260 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10261
10262         * gen.c (genInline): reverted to old code for assemnling inline
10263         code because of bug reported James Chadd
10264
10265 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10266
10267         * ralloc.h: missing declarations from previous patch,
10268         seems that patch for ralloc.h was never applied, fixed
10269
10270 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10271            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10272
10273         * pcode.c,
10274         * pcode.h,
10275         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10276         indirect addressing. Marked FSR0 as deprecated
10277         * gen.c (pointerCode): commented out, not needed now
10278         (pic16_popGet2p): new MOVFF helper function
10279         (genGenPointerGet),
10280         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10281         (shiftRLong): removed duplicate debugging info
10282
10283 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10284
10285         * src/ds390/gen.c (genNearPointerGet),
10286         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10287         optimization with bits, but not bitfields.
10288         * src/ds390/ralloc.c (packRegisters),
10289         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10290
10291 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10292
10293         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10294
10295 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10296
10297         * src/SDCCsymt.h,
10298         * src/SDCCicode.c (operandFromSymbol),
10299         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10300         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10301         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10302         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10303         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10304         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10305         bug #892038
10306         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10307         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10308         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10309         * src/SDCCsymt.c (newSymbol),
10310         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10311         enumerator_list),
10312         * src/SDCCval.h,
10313         * src/SDCCval.c (newiList): fixed bug #885705
10314
10315 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10316
10317         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10318         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10319
10320 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10321
10322         * device/include/c8051f120.h,
10323         * device/include/c8051f300.h,
10324         * device/include/c8051f310.h: added/updated header files for Silicon
10325         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10326         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10327         in new section Submitting patches
10328
10329 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10330
10331         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10332         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10333         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10334         genGenPointerSet),
10335         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10336         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10337         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10338         genGenPointerSet),
10339         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10340         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10341         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10342         genGenPointerSet),
10343         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10344         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10345         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10346         genGenPointerSet): fixed bug #892400
10347         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10348         to eliminate build warnings.
10349         * src/SDCCast.c (processParms),
10350         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10351         fixed bug 751859
10352         * support/valdiag/valdiag.py: added GCC to the list of defines active
10353         when compiling with gcc
10354
10355 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10356
10357         * support/Util/SDCCerr.h,
10358         * support/Util/SDCCerr.c,
10359         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10360         with an incomplete type (fixed bug #883734)
10361         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10362
10363 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10364
10365         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10366
10367 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/SDCCast.c (decorateType),
10370         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10371         function pointer implementation
10372         * support/regression/tests/funptrs.c: added tests to verify both forms
10373         of function pointers work correctly. Added tests to verify parameters
10374         are passed in the correct order.
10375
10376 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10377
10378         * device.c (regCompare): registers are sorted by ascending
10379         address and increasing size,
10380         * main.c (_pic16_finaliseOptions): removed the declaration
10381         of compiler macro MCU. Now a macro of the format pic18fxxxx
10382         will be defined from the command line
10383
10384 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10385             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10386
10387         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10388         PCOP_RLCF was overwritten!
10389         * gen.c (genSkip): commented out calls to pic16_emitcode,
10390         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10391         * (genlshTwo),
10392         * (genRRC): added debugging info,
10393         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10394         overwritten while shifting,
10395         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10396         overwritten while shifting,
10397         * (AccLsh),
10398         * (AccRsh),
10399         * (shiftLLeftOrResult),
10400         * (shiftRLeftOrResult),
10401         * (shiftRLong),
10402         * (shiftLLong): Implemented with pic16_emitpcode
10403         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10404         * (genLeftShift): Fixed bug, operand for shift by variable always
10405         was "and"ed with 0x0f,
10406         * (genLeftShiftLiteral),
10407         * (genrshTwo),
10408         * (genRightShiftLiteral): added debugging info,
10409         * (genrshFour): added comment,
10410         * (genRightShift): determined signedness from operand "left"
10411         instead of "result"
10412
10413 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10414
10415         * src/SDCCicode.c (geniCodeParms),
10416         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10417         function pointers, fixed function pointer bugs #861242 and #861896
10418
10419 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10420
10421         * device/include/c8051f000.h,
10422         * device/include/c8051f120.h,
10423         * device/include/c8051f300.h: added header files for Silicon
10424         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10425
10426 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10427
10428         * src/SDCCast.c (processParams): added new type flow and restructured
10429         (gatherAutoInit): added new type flow
10430         (addCast): cosmetic changes
10431         (getLeftResultType): added new type flow for array indices, patch
10432         provided by Stas, see FR #877103
10433         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10434         array index patch by Stas
10435         * src/SDCCast.h: added prototype getResultTypeFromType()
10436         * src/SDCCval.h,
10437         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10438         * src/pic/glue.c (pic14emitStaticSeg),
10439         * src/pic16/glue.c (pic16emitStaticSeg),
10440         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10441         for initialization of symbols
10442         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10443         * support/Util/SDCCerr.h:
10444         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10445         * .version: bumped version number to 2.3.8
10446         * device/include/Makefile.in (install),
10447         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10448         avoid warnings
10449
10450 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10451
10452         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10453         Slade Rich fixed an optimization bug
10454         * src/pic/pcodepeep.c,
10455         * src/pic/pcoderegs.c
10456         * doc/Makefile (install): added test for directory
10457
10458 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10459
10460         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10461         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10462         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10463         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10464         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10465         * as/mcs51/asexpr.c (term),
10466         * as/hc08/asexpr.c (term): fixed bug #887146
10467
10468 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10469
10470         * src/z80/gen.c (genMult): handle single byte result product
10471         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10472         DUMMY_READ_VOLATILE (fixed bug #886367)
10473
10474 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10475
10476         * support/regression/tests/libmullong.c: fixed logic, on little endian
10477         hosts we ended without a mullong_wrapper()
10478
10479 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10480
10481         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10482         virus/worm forged address usage.
10483
10484 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10485
10486         Fixed promotion, it should be done on AST level:
10487         * src/SDCCast.c (addCast): added promotion to int
10488         (decorateType): updated call to upCast()
10489         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10490         usualUnaryConversions()
10491
10492 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10493
10494         * support/regression/tests/literalop.c (mulWrapper): Added a
10495         wrapper to remove integer overflow warnings.
10496
10497         * support/regression/tests/float_trans.c: Made work on host.
10498
10499         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10500         location of sz80.
10501
10502         * support/regression/generate-cases.py (main): Changed from inline
10503         to a main method.
10504
10505         * doc/Makefile (install): Changed to depth first to get rid of
10506         missing directory install warning.
10507
10508         * as/Makefile (install-doc): Made work on Mac.
10509
10510 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10511
10512         * src/SDCCast.c: added an additional type flow in decorateType() of
10513         opposite direction, see feature request #860006; it's enabled at runtime
10514         by setting the environment variable SDCC_NEWTYPEFLOW
10515         * src/SDCCast.h: changed prototype of decorateType()
10516         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10517         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10518         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10519         see feature request #877103
10520         * src/SDCCval.c: updated call of decorateType()
10521         (valBitwise): fixed bug #882876
10522         (valMinus): added promotion
10523         (valLogicAndOr): result is unsigned
10524         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10525         * src/SDCCsymt.c (computeType),
10526         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10527         must not cause an unsigned operation
10528         * src/pic/glue (pic14emitRegularMap),
10529         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10530
10531 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10532
10533         * src/pic/pcode.c (PCodeID): commented out left over debug code
10534
10535 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10536
10537         * support/valdiag/tests/overflow.c: added shift tests
10538         * src/pic/device.c,
10539         * src/pic/gen.c,
10540         * src/pic/gen.h,
10541         * src/pic/glue.c,
10542         * src/pic/main.c,
10543         * src/pic/pcode.c,
10544         * src/pic/pcode.h,
10545         * src/pic/pcodepeep.c,
10546         * src/pic/pcoderegs.c,
10547         * src/pic/ralloc.c,
10548         * src/pic/ralloc.h: applied patch from Slade Rich;
10549         added support for multiple code pages and multiple RAM banks on the
10550         PIC 14 port. The ASM files now no longer simply assume all the
10551         code / RAM are in the same page / bank. This means the linker can
10552         safely allocate code/RAM of separate ASM files to different pages/banks.
10553         * doc/sdccman.lyx: added Slade's tips
10554         * src/mcs51/peeph.def: fixed bug #880768
10555
10556 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10557
10558         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10559         * src/SDCCast.c (decorateType): fixed bug #880197
10560
10561 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10562
10563         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10564         getopt.h.
10565
10566         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10567         strtof is not part of C89 and isn't included with Mac OS X.
10568
10569 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10570
10571         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10572         shiftL2Left2Result): fixed bug #879326
10573         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10574         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10575         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10576         address fetch for clr instruction
10577         * device/lib/hc08/_mulint.c: created optimized assembly version
10578         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10579
10580 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10581
10582         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10583         proposed in FR #877103
10584
10585 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10586
10587         * src/SDCCval.c (cheapestVal): added missing checks
10588         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10589         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10590
10591 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10592
10593         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10594         equal operands
10595
10596 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10597
10598         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10599         loaded with the linker search paths (-L arguments) and the libraries
10600         to be linked with the current source (-l arguments). Changes
10601         currently will affect only the pic16 port.
10602         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10603         include path the port specific paths and port specific libraries,
10604         * gplink command now contains the $3 argument,
10605         * src/pic16/device.h,
10606         * src/pic16/device.c,: structure PIC_device is made public and
10607         renamed to PIC16_device, the same for variable Pics which is renamed
10608         to Pics16. Updated all references to them.
10609         * src/pic16/glue.c (pic16glue): corrected bug with code
10610         initialization which bypassed the variable initializations block.
10611
10612         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10613         COMPILE_FLAGS and added the --nostdinc option
10614
10615 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10616
10617         * device/include/mc68hc908jb8.h: Register defs for another member
10618         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10619
10620 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10621
10622         Documenting changes from previous commits.
10623         * configure.in (version 1.56),
10624         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10625         when generating output files to configure the pic16 library,
10626         but now I've commented it out, since gputils aren't installed in the
10627         SF compile farm, so library won't compile
10628
10629         * device/lib/Makefile.in (version 1.56): initially I've added in
10630         target 'all' the prerequestive 'model-pic16' so it compiled the
10631         pic16 library, but now I've commented it out for the same reasons
10632         above,
10633         * added targets 'model-pic16' and 'objects-pic16' to compile the
10634         library
10635         * added target 'port-specific-objects-pic16' to handle the
10636         generated libraries and copy them into the build/ directory
10637         * added target 'clean-intermediate-pic16' to clean intermediate
10638         files into pic16 directory
10639         * in target 'installdirs' added line to create directory pic16 in
10640         the installation path
10641
10642         * device/include/Makefile.in (version 1.11): in target 'install'
10643         added lines to copy all header files to installation path,
10644         * in target 'installdirs' added line create directory for pic16
10645         headers in the installation path
10646
10647 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10648
10649         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10650          a function call
10651
10652 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10653
10654         * configure,
10655         * device/lib/configure.in,
10656         * device/lib/configure: fixed for autoconf 2.57
10657
10658 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10659
10660         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10661         option so that it actually works. Made it specific to the z80, since
10662         the gbz80 doesn't have these kinds of I/O ports.
10663
10664 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10665
10666         * device/include/z180.h,
10667         * device/lib/_memcpy.c,
10668         * device/lib/_memmove.c,
10669         * device/lib/_mulint.c,
10670         * device/lib/ser_ir.c,
10671         * device/lib/ser_ir_cts_rts.c,
10672         * device/lib/_strcmp.c,
10673         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10674         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10675         portmode; added deprecation warning for bank= and protmode= forms.
10676         Also, guard against buffer overflow.
10677         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10678
10679 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10680
10681         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10682         changed interrupt vector table generation to only emit declared vectors.
10683         * device/include/Makefile.in: added missing backslash
10684         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10685
10686 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10687
10688         Mainly changes to support compilation of the device libraries
10689         * src/pic16/device.c: stack is allocated via symbol and not
10690         via literal number. The symbol is placed in the corresponding
10691         position of the data ram
10692         * (pic16_dump_section): relocatable and absolute uninitialized
10693         data are now emitted in sorted order to reduce section naming,
10694         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10695         weren't marked as being in the access bank,
10696
10697 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10698
10699         Added portion of GNU PIC Library under the directory
10700         device/include/pic16 and device/lib/pic16. These files
10701         contain the declarations of SFRs for the PIC18Fxx2 devices.
10702         The directory is initialized via configure from toplevel.
10703
10704 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10705
10706         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10707         the spilllocations to be compared correctly
10708
10709 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10710
10711         * src/SDCCast.c (decorateType): fixed bug introduced today
10712
10713 2004-01-12  Borut Razem <borut.razem AT siol.net>
10714
10715         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10716         doc/sdccman.lyx: upper case pragmas are deprecated
10717
10718 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10719
10720         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10721         in simpler and even better code
10722
10723 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10724
10725         * src/SDCCicode.c (operandOperation): fixed bug #874819
10726         * src/SDCCast.c (decorateType): fixed
10727         char foo (unsigned long ul) { return ul > 0; }
10728
10729 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10730
10731         * doc/sdccman.lyx: Moved and added some sections, small changes
10732         all over. Telling LaTeX to be less strict with word spacing
10733         to better keep the right margin. Changed some notes about
10734         maintainance of the ports in section 3.2.1 - is it OK like this?
10735
10736 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10737
10738         SDCC source changes:
10739         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10740         convilong): modified to inform the pic16 port that builtin functions
10741         are external
10742
10743         PIC16 PORT specific changes:
10744         * src/pic16/device.c pic16_dump_equates() added,
10745         processor registers declared internally by the port are emitted in
10746         the translation as equates,
10747         * src/pic16/gen.c: inline code is passed unprocessed to the
10748         translation,
10749         * (pic16_popGetLit2): fnuction modified to take second operand as
10750         pCodeOp pointer and not as literal,
10751         * (popRegFromIdx): prefixed with pic16_,
10752         * (pic16_popCombine2): modified to receive already allocated pCode
10753         operands,
10754         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10755         * (genFunction): initializes local stack frame and pushes on stack
10756         all the registers used by this function,
10757         * (genEndFunction): restores all registers from stack and restores
10758         stack frame,
10759         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10760         improvements,
10761         * (pic16glue): changed the program startup sequence,
10762         * added new dbName code 'A' for functions placed in absolute section
10763         * src/pic16/main.c: added function attribute _naked,
10764         * added pragma 'code' to place a fnuction at an absolute address,
10765         * added command line arguments --debug-ralloc and --pcode-verbose,
10766         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10767         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10768         * (pic16_newpCodeOpLit2): modified to take the second operand as
10769         pCodeOp pointer,
10770         * (pic16_printpBlock): modified to emit each function in a separate
10771         section,
10772         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10773         UPPER for immediate operands,
10774         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10775         instruction,
10776         * src/pic16/peeph.def: all peepholes with movff are commented out,
10777         because there is a problem in the pcode peep optimizer,
10778         * src/pic16/ralloc.c: the register allocator can now reuse local
10779         function symbols for another function. This saves register usage.
10780         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10781
10782         Added file src/pic16/NOTES with information about program writing on
10783         the current port version.
10784
10785 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10786
10787         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10788         and peephole 252 (array access)
10789
10790 2004-01-09  Borut Razem <borut.razem AT siol.net>
10791
10792         * src/SDCCmain.c : fixed #872250: -l command line defined library
10793           files are scanned before standard library files
10794
10795 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10796
10797         * src/SDCCast.c (decorateType): fixed bug #874046
10798
10799 2004-01-09  Borut Razem <borut.razem AT siol.net>
10800
10801         * support/scripts/sdcc.nsi: remove previous installation
10802
10803 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10804
10805         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10806         bytes for last interrupt vector (mcs51)
10807         * sdcc.spec: fixed typo
10808
10809 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10810
10811         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10812         gen51Code): more efficient parameter receive for --model-large
10813         ("bug" #845294)
10814
10815 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10816
10817         * src/ds390/main.c,
10818         * src/z80/main.c: added missed needLinkerScript flags (more than
10819         one port structure defined in these file)
10820         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10821         bug #795325
10822
10823 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10824
10825         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10826         * src/port.h: added flag needLinkerScript in port->linker
10827         structure to inform whether to create a .lnk file or not,
10828         * src/avr/main.c,
10829         * src/ds390/main.c,
10830         * src/hc08/main.c,
10831         * src/mcs51/main.c,
10832         * src/pic/main.c,
10833         * src/pic16/main.c,
10834         * src/xa51/main.c,
10835         * src/z80/main.c: changed appropriately to configure
10836         needLinkerScript flag
10837         * src/pic/gen.c,
10838         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10839         * src/pic/glue.c: added variable udata_section_name to
10840         override default uninitialized data segment definition for
10841         devices only with SHAREBANK memory (reported from Erik Epetrich)
10842         * (pic14emitOverlay): modified to emit a commented overlay segment
10843         directive when no overlay data exist
10844         * (picglue): modified to emit uninitialized data segment
10845         according to udata_section_name
10846         * src/pic/main.c (_pic14_parseOptions): added command line
10847         options --udata-section-name=[name] to override default
10848         udata definition name
10849         * modified _linkCmd and _asmCmd to include compiler passed
10850         arguments via -W option
10851         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10852         object file from '.rel' to '.o' in port->linker structure,
10853         changed size of fptr from 2 to 3 in port structure
10854
10855 2004-01-07  Borut Razem <borut.razem AT siol.net>
10856
10857         * support/scripts/sdcc.nsi: update PATH
10858         * support/scripts/sdcc.ico: craeted
10859
10860 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10861
10862         * device/include/Makefile.in: fix install
10863         * doc/Makefile: fix install
10864
10865 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10866
10867         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10868         in bug #860505
10869         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10870         how the function variable allocation summary is displayed; also
10871         include information about variables allocated to the overlay
10872         segment
10873
10874 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10875
10876         * as/mcs51/lkmain.c: Help about -Y option
10877         * as/mcs51/lkarea.c: Fixed gcc warnings
10878
10879 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10880
10881         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10882         fixed warning
10883         * support/valdiag/tests/overflow.c: added
10884         * src/SDCCast.c (decorateType),
10885         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10886         LEFT_OP (left shift)
10887
10888 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10889
10890         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10891         (default behaviour).
10892
10893 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10894
10895         A python script to validate compiler diagnostic messages. It can be
10896         used to verify that sdcc complains about bad c source code and
10897         gives a good location of the error.
10898         * support/valdiag/Makefile,
10899         * support/valdiag/valdiag.py,
10900         * support/valdiag/tests/*
10901
10902 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10903
10904         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10905         * src/SDCCsymt.c (newEnumType),
10906         * src/SDCCsymt.h
10907         * support/Util/SDCCerr.c,
10908         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10909         enum related bugs.
10910         * support/regression/tests/enum.c: added test for enum values that
10911         require at least 2 bytes of storage.
10912
10913 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10914
10915         * src/common.h: added ifndef/define/endif macros
10916         around the header file.
10917         Bug reported from Jesus Calvino-Fraga
10918
10919 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10920
10921         * sdcc.spec: updated
10922         * device/include/Makefile.in: don't install CVS directories
10923         * device/lib/Makefile.in: added removal of CVS directories after install
10924         * doc/Makefile: fixed install, added local_icons
10925         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10926         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10927         * src/ds390/gen.c (genRightShift): fixed bug #870788
10928         * src/SDCCast.c (decorateType): fixed bug #870781
10929
10930 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10931
10932         PIC16 port related changes:
10933         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10934         added variable stackPos,
10935
10936         * gen.c: genCall, assignResultValue: added support for
10937         pushing/retrieving function parameters to/from stack,
10938         genFunction,genEndFunction: setup stack frame for the
10939         generated function,
10940         genAddrOf: will be changed according to bug 863624
10941
10942         * added files genutils.c and genutils.h which contain gen*
10943         debugged and optimised functions extracted from gen.c
10944
10945         * glue.c: added variable 'externs' which holds extern symbols,
10946         pic16emitRegularMap: is modified to properly handle relocatable
10947          symbols under the new scheme,
10948         pic16createInterruptVect: is modified
10949         pic16printPublics: is modified to emit 'global' assembler directives,
10950         added pic16_printExterns to print extern symbols,
10951         pic16glue: initializes stack/frame pointer in the beginning of
10952         the assembly output. Temporary hack, will be corrected later,
10953         because gplink yet does not support stack and SDCC does not
10954         yet support a type of crt0.o object to create the final binary.
10955
10956         * Removed many lines that contain 8051 legacy code.
10957         * The code is finally placed under a 'code' directive.
10958         * Added port specific options.
10959
10960         * _process_pragma: simplified since now we do not need *special*
10961         include file to define SFR registers. But a separate header
10962         will be needed. This will be developed later.
10963         * _pic16_parseOptions: added, parses port specific options:
10964         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10965         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10966         --preplace-udata-with=
10967
10968         * _pic16_setDefaultOptions: modified to initialize section names,
10969         but hack is temporarly out of order since it needs improvement.
10970         * _pic16_genAssemblerPreamble: configuration words are emitted by
10971         their address instead of their name. This part is incomplete and
10972         supports only the 18Fxx2 devices. Other devices will emit an error
10973         during assembly since they do not contain the same set of config
10974         registers
10975         * _pic16_genIVT: is modified,
10976
10977         * pcode.c: added definitions for some hardware registers that are needed
10978         for stack support
10979         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10980         All PCI entries are updated. Now LFSR is supported.
10981         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10982         * added pic16_newpCodeOpLit2 to support instructions with
10983         two literal arguments
10984         * pic16_pCode2str: corrected code that emits assembler instructions
10985         with two literal operands and those that have an access bit modifier
10986         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10987         this fixes a bug which caused some labels to be lost, when an
10988         assembler directive was added, i.e. banksel,
10989         * pic16_FixRegisterBanking: improved logic that causes the insertion
10990         of bank switching,
10991         * InlineFunction: functions that are called once, are not any more
10992         inlined. This can be a port option in the future,
10993
10994         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10995
10996         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10997         hold the corresponding uninitialized symbols,
10998         * pic16_allocProcessorRegister: registers have explicit marked the
10999         accessBank field,
11000         * pic16_allocInternalRegister: registers are explicit marked as
11001         not used,
11002         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11003         processing list, so bit registers were lost,
11004         *
11005
11006         * ralloc.h: added field 'accessBank' and original symbol operand
11007         in register definition,
11008         * removed the field isMapped from register definition,
11009
11010         ** Several functions have been removed from various sources:
11011         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11012         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11013         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11014         pic16_assignRelocatableRegisters
11015
11016         ** others have been introduced:
11017         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11018         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11019
11020 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11021
11022         * support/scripts/inc2h.pl: changed definition of BIT_AT
11023         to emit 'sbit at' instead of 'bit at'. This was a request.
11024
11025         PIC16 port related preliminary changes:
11026         * gen.c: prefixed function popRegFromString with
11027         pic16_ and all references to it corrected
11028         * pcode.c: all pic16_pc_* hardware registers prefixed
11029         with underscore (_),
11030         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11031         * ralloc.c: newReg(): when register is REG_SFR then
11032         set address to rIdx,
11033         pic16_allocProcessorRegister(): marks register wasUsed=0
11034         pic16_writeUsedRegs(): added a call to assign processor
11035         registers via pic16_assignFixedRegisters
11036
11037 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11038
11039         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11040         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11041         variables in unused register banks.  Also the SSEG is placed
11042         wherever there is enough space for it, and IDATA can be anywhere
11043         in internal RAM.  For now compile using -Wl-Y[stack_size].
11044         The mem file is different for this option as well, since it
11045         makes no sense of talking about DSEG lenght.
11046
11047 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11048
11049         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11050         in certain cases, e.g. when ROM assignment, patch provided
11051         from Albert den Haan.
11052
11053 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11054
11055         Many signedness and type propagation fixes:
11056         * src/SDCCicode.c: made geniCodeCast() static
11057         replaced SPEC_ by IS_ (cosmetic)
11058         (operandOperation): fixed div and mod operation
11059         (usualBinaryConversions): added support for promotion of char
11060         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11061         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11062         (geniCodeAdd): an array index will stay unsigned, even if promoted
11063         from char to int
11064         (geniCodeArray): ditto
11065         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11066         * src/SDCCsymt.c (computeType): added more support for char;
11067         promotion of char is selectable by promoteCharToInt, fixed signedness
11068         for all cases
11069         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11070         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11071         * src/SDCCval (val*): replaced signedness calculation by
11072         computeType()
11073         rearranged if-branches (cosmetic)
11074         (valShift): added warning W_SHIFT_CHANGED
11075         (valCompare): fixed problem with different types
11076         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11077         * support/regression/tests/literalop.c: added many cases
11078         * support/regression/tests/ast_constant_folding.c: changed finally to
11079         'unsigned int'
11080         * .version: new year, new version: 2.3.7
11081         * src/SDCCmain.c (main): applied patch #866468
11082         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11083         provided by Scott Bronson
11084         * doc/sdccman.lyx: updated documentation for sdcdb
11085         updated and added chapter tips
11086
11087 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11088
11089         * src/SDCCsymt.h: missing from yesterday's commits
11090
11091 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11092
11093         * src/SDCC.y (struct_or_union_specifier),
11094         * support/Util/SDCCerr.c,
11095         * support/Util/SDCCerr.h: verify that struct & union tags are used
11096         as declared.
11097
11098 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11099
11100         * src/SDCCglobl.h: missing from yesterday's commits
11101
11102 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11103
11104         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11105         sft_attributes, struct_declaration, parameter_declaration,
11106         type_name, start_block, declaration_list),
11107         * src/SDCC.lex (check_type): support redefinition of typedef names
11108
11109 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11110
11111         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11112         aligned xdata arrays. Erik helped me with the if clause.
11113
11114 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11115
11116         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11117         warning
11118
11119 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11120
11121         * src/SDCCast.h,
11122         * src/SDCCast.c (newAst_),
11123         * src/SDCCicode.h,
11124         * src/SDCCicode.c (ast2iCode, newiCode),
11125         * src/SDCCglobl.h,
11126         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11127         expr, statement, expression_statement, selection_statement,
11128         iteration_statement, expr_opt, jump_statement): foundation for tracking
11129         sequence points
11130         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11131         point code too)
11132
11133 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11134
11135         * support/Util/SDCCerr.c,
11136         * src/SDCCast.h,
11137         * src/SDCCast.c (createCase, createDefault, decorateType),
11138         * src/SDCClabel.c (labelUnreach),
11139         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11140         to error messages.
11141         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11142         (with thanks to Stas Sergeev)
11143         * device/include/time.h,
11144         * device/lib/time.c (CheckTime): suppress unreachable code warning
11145
11146 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11147
11148         * src/SDCCast.c (createIvalCharPtr),
11149         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11150         bug #753752)
11151         * support/regression/tests/nullstring.c: tests for these two bugs
11152
11153 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11154
11155         * support/Util/SDCCerr.h,
11156         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11157         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11158         about storage class and 'at' used inside struct or union
11159         * src/SDCCBBlock.c (iCodeFromeBBlock),
11160         * src/SDCCcse.c (ifxOptimize),
11161         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11162         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11163         printIval, emitStaticSeg, emitOverlay),
11164         * src/SDCClabel.c (deleteIfx),
11165         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11166         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11167         gatherAutoInit, processParms),
11168         * support/Util/SDCCerr.h,
11169         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11170         reporting for post-parse errors.
11171
11172 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11173
11174         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11175         implicit casts via union; they don't work on big endian systems
11176         (possible fix for bug #861138)
11177
11178 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11179
11180         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11181         * src/mcs51/main.c: fixed the fix for bug #737001
11182
11183 2003-12-15  Borut Razem <borut.razem AT siol.net>
11184
11185         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11186
11187 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11188
11189         * support/makebin/makebin.c: put output in binary mode
11190
11191 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11192
11193         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11194         xdata and data memory on startup. Set the environment variable
11195         SDCC_NOGENRAMCLEAR to disable this.
11196         * src/mcs51/peephole.def,
11197         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11198         (allows non-interrupt and interrupt code to safely compete for a resource
11199         without the non-interrupt code having to disable interrupts)
11200
11201 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11202
11203         * src/SDCCicode.c (geniCodeAdd),
11204         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11205         with valFromType if type might be a pointer and host is big endian).
11206         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11207         types, not just integer types.
11208         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11209         multiply defined with mismatching "at" address.
11210
11211 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11212
11213         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11214         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11215         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11216         with embedded nulls (fixed bug #753752)
11217
11218 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11219
11220         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11221         Apparently this did not see much testing (endless loop)
11222
11223 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11224
11225         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11226
11227 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11228
11229         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11230         gracefully handle NULL memmap pointers
11231
11232 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11233
11234         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11235         instead of deleting the iCode when an operand is volatile
11236         * src/z80/gen.c (genDummyRead),
11237         * src/mcs51/gen.c (genDummyRead),
11238         * src/ds390/gen.c (genDummyRead),
11239         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11240         not just IC_RIGHT
11241         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11242         * src/SDCC.y: fixed bug #850420
11243
11244 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11245
11246         Applied z80 i/o port patch from Peter Townson and fixed some operators
11247         to better handle operands in A register.
11248         * device/include/z180.h
11249         * src/SDCC.y
11250         * src/SDCCglue.c
11251         * src/z80/gen.c
11252         * src/z80/gen.h
11253         * src/z80/main.c
11254         * src/z80/peeph-z80.def
11255         * src/z80/peeph.def
11256         * src/z80/z80.h
11257
11258 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11259
11260         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11261
11262 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11263
11264         * device/lib/hc08/_mullong.c: Removed extra #endif
11265
11266 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11267
11268         * sim/ucsim/hc08.src/inst.cc,
11269         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11270         carries from x to h
11271         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11272         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11273         * device/include/stdarg.h: fixed varargs for hc08
11274         * device/lib/Makefile.in,
11275         * device/lib/hc08/Makefile,
11276         * device/lib/hc08/_mulint.c,
11277         * device/lib/hc08/_mullong.c: fixed some endian problems
11278
11279 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11280
11281         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11282         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11283         * device/lib/_gptrget.c,
11284         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11285
11286 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11289         * src/SDCCast.c (astErrors): fixed bug #846007
11290         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11291
11292 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11293
11294         * src/SDCCast.c (decorateType): disabled a transformation I added in
11295         revision 1.188 (access to fields of a structure at an absolute address);
11296         it breaks with bitfields, extern declarations, and gcse analysis.
11297         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11298         could be assigned through a pointer, so don't complain.
11299         * src/SDCCast.c (astErrors),
11300         * src/SDCCast.h,
11301         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11302
11303 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11304
11305         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11306         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11307         output of __config directives, since gpasm now supports them
11308         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11309         pre-processor macro, i.e. -DMCU=p18f452
11310         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11311         and modified to handle 'cast' icode similarly to '=' icode
11312         * src/pic16/device.h (typedef struct PIC_device): added field
11313         'extMIface' to indicate that chip has external memory interface
11314         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11315         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11316         18F8720
11317
11318 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11319
11320         * src/SDCC.y (pointer): fixed bug #846006
11321         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11322         * src/SDCCast.c (decorateType): fixed bug #846009
11323         * src/ds390/peeph.def,
11324         * src/ds390/gen.c (genAnd, genOr),
11325         * src/mcs51/peeph.def,
11326         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11327
11328 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11329
11330         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11331         * src/SDCCdflow.c
11332         * src/SDCCcse.c
11333         * src/SDCCcse.h
11334         * src/SDCCBBlock.h
11335         * src/SDCCBBlock.c
11336
11337 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11338
11339         fixed bug #845089
11340         * src/SDCCbitv.h,
11341         * src/SDCCbitv.c: added function to free a bitvector
11342         * src/SDCClrange.h,
11343         * src/SDCClrange.c: added function to recompute the liveranges
11344         * src/avr/ralloc.c,
11345         * src/ds390/ralloc.c,
11346         * src/hc08/ralloc.c,
11347         * src/mcs51/ralloc.c,
11348         * src/pic/ralloc.c,
11349         * src/pic16/ralloc.c,
11350         * src/xa51/ralloc.c,
11351         * src/z80/ralloc.c: recompute the liveranges after register packing
11352
11353 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11354
11355         * src/SDCCloop.c (newInduction): fixed bug #845630
11356
11357 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11358
11359         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11360         inadvertantly left behind from my 2003-11-12 change
11361
11362 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11363
11364         Updated headers I neglected to commit yesterday.
11365         * src/SDCClrange.h,
11366         * src/SDCCicode.h
11367
11368 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11369
11370         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11371         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11372         * src/SDCCopt.c (eBBlockFromiCode),
11373         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11374         the creation of the key hash table from the sequencing so it can be used
11375         earlier (for some GCSE bug fixes still pending)
11376
11377 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11378
11379         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11380         * support/regression/tests/addsub.c: testing genPlus shortcut
11381
11382 2003-11-15  Borut Razem <borut.razem AT siol.net>
11383
11384         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11385
11386 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11387
11388         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11389         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11390         ordering is immaterial.
11391         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11392
11393 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11394
11395         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11396         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11397         (SIGSEV) of bug #840381
11398         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11399         unlink new file before rename if new and old filenames are the same)
11400
11401 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11402
11403         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11404         uninitialized variables) for the mcs51. Set environment variable
11405         SDCC_GENRAMCLEAR to test.
11406         xdata initialization slightly shorter
11407
11408 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11409
11410         * src/SDCCsymt.h,
11411         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11412         #838241 & 780691 (basicly the same bug)
11413         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11414         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11415
11416 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11417
11418         * src/SDCCmain.c (linkEdit): "fix" #834252
11419
11420 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11421
11422         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11423         * src/SDCCast.h,
11424         * src/SDCC.y: fixed bug #819403
11425
11426 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11427
11428         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11429         the reentrant attribute.
11430         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11431         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11432         simulation
11433         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11434         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11435         erroneously reduced to a literal.
11436         * src/hc08/ralloc.c (packRegisters, rematStr),
11437         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11438         some cases
11439
11440 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11441
11442         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11443         * doc/sdccman.lyx: changed from 'article' to 'book'
11444         * doc/Makefile: readded test_suite_spec and cdbfileformat
11445
11446 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11447
11448         * device/include/stdlib.h: include malloc.h to comply with ANSI
11449         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11450
11451 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11452
11453         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11454         * doc/clean.mk: also remove *.out files
11455         * doc/sdccman.lyx: some additions, larger top/bottom margins
11456
11457 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11458
11459         * src/SDCC.y: fixed bug #837365
11460         * support/regression/tests/bitopcse.c
11461         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11462         a symbol (might be valop instead)
11463         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11464         * device/lib/clean.mk: added hc08 to the cleaning list
11465
11466 2003-11-04  Borut Razem <borut.razem AT siol.net>
11467
11468         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11469           made 2003-11-04
11470         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11471           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11472           malloc is declared in standard stdlib.h
11473
11474 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11475
11476         * device/lib/hc08/Makefile: need to clean .rel not .o files
11477         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11478
11479 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11480
11481         * src/port.h,
11482         * src/hc08/main.c,
11483         * src/mcs51/main.c,
11484         * src/ds390/main.c,
11485         * src/z80/main.c,
11486         * src/avr/main.c,
11487         * src/pic/main.c,
11488         * src/pic16/main.c,
11489         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11490         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11491         tests (which uses the port's oclsExpense function)
11492         * src/SDCC.y,
11493         * src/SDCCast.c,
11494         * src/SDCCicode.c,
11495         * src/hc08/gen.c,
11496         * src/ds390/gen.c,
11497         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11498
11499 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11500
11501         * src/SDCCcse.c (ifxOptimize),
11502         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11503         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11504         deleting the IFX iCode.
11505         * src/hc08/ralloc.c: reduced unneeded slocs
11506         * src/hc08/gen.c: fixed bug in asmopToBoolean
11507
11508 2003-11-04  Borut Razem <borut.razem AT siol.net>
11509
11510         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11511           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11512           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11513           transferred to configure
11514
11515 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11516
11517         Use headers defined in the C[++] standards:
11518         * sim/ucsim/gui.src/serio.src/fileio.cc
11519         * sim/ucsim/gui.src/serio.src/frontend.cc
11520         * sim/ucsim/gui.src/serio.src/main.cc
11521         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11522         * support/Util/NewAlloc.c
11523         * as/hc08/lklibr.c
11524         * as/mcs51/lklibr.c
11525         * as/z80/aslist.c
11526         * as/z80/assym.c
11527
11528 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11529
11530         * Added MSVC projects for hc08 assembler and linker:
11531         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11532         /as/hc08/link_hc08.dsp
11533
11534 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11535
11536         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11537
11538 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11539
11540         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11541
11542 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11543
11544         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11545
11546 2003-10-31  Borut Razem <borut.razem AT siol.net>
11547
11548         * support/cpp2/cpplib.h,
11549           support/cpp2/cpplib.c,
11550           support/cpp2/cpplex.c,
11551           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11552           to switch _asm block preprocessing on / off. Default is
11553           #pragma preproc_asm +
11554
11555 2003-10-31  Borut Razem <borut.razem AT siol.net>
11556
11557         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11558           when outputting comment blocks (when executed with -C option) and
11559           _asm (SDCPP specific) blocks
11560
11561 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11562
11563         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11564
11565 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11566
11567         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11568
11569 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11570
11571         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11572         * src/SDCCast.c (decorateType): fixed bug #832664
11573
11574 2003-10-31  Borut Razem <borut.razem AT siol.net>
11575
11576         * support/cpp2/cpplex.c: fixed for SDCPP:
11577           comments(when executed with -C option) and _asm blocks
11578           were included even if they where in skipped #if block.
11579           Applied solution from GCC cpp 3.3.2
11580
11581 2003-10-31  Borut Razem <borut.razem AT siol.net>
11582
11583         * src/SDCC.lex: sdcc now understands both formats:
11584           '# <line_number> <file_name>' and
11585           '#line <line_number> <file_name>'
11586         * support/cpp2/cppmain.c: sdcpp now generates the standard
11587           '# <line_number> <file_name>' instead of former
11588           '#line <line_number> <file_name>'
11589
11590 2003-10-30  Borut Razem <borut.razem AT siol.net>
11591
11592         * support/cpp2/cpphash.h,
11593         * support/cpp2/cpplib.h
11594         * support/cpp2/cpplex.c,
11595         * support/cpp2/cppmain.c,
11596         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11597
11598 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11599
11600         Fixed a number of problems revealed by bug #827883.
11601         * src/SDCCloop.c (loopInvariants): Spill location of the
11602         result operand should be recomputed if extracted from
11603         a loop. Also, don't extract assignments of an iTemp
11604         from a literal.
11605         * src/SDCCast.c (isConformingBody): loop reversal should
11606         not occur if the control variable is involved with a
11607         relational operator.
11608
11609 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11610
11611         * .version: bumped to 2.3.6 to reflect the big improvements
11612         made by Erik and Klaus. Thanks!
11613
11614 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11615
11616         Replaced the livrange code.
11617         * src/SDCClrange.c: added new LR code
11618         * src/SDCCloop.c,
11619         * src/SDCCBBlock.h: removed remainig parts from old LR code
11620         * src/ds390/ralloc.c,
11621         * src/ds390/gen.c: minor fixes to make it work with new code
11622
11623 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11624
11625         * as/hc08/asm.h,
11626         * as/hc08/lkrloc.c,
11627         * src/hc08/gen.c,
11628         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11629         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11630         (tweaked fix for bug #818696)
11631
11632 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11633
11634         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11635
11636 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11637
11638         * src/SDCCmain.c,
11639         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11640         * src/mcs51/gen.c (gencjneshort),
11641         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11642         more efficient (per Scott Bronson's suggestion)
11643
11644 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11645
11646         Extended the semantics of the critical keyword to include
11647         individual statements. See RFE #827755 and #799831
11648         * src/SDCC.y
11649         * src/SDCCicode.c
11650         * src/SDCCopt.c
11651         * src/SDCCast.c
11652         * support/Util/SDCCerr.c
11653         * support/Util/SDCCerr.h
11654         * src/mcs51/gen.c
11655         * src/ds390/gen.c
11656         * src/hc08/gen.c
11657
11658 2003-10-19  Borut Razem <borut.razem AT siol.net>
11659
11660         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11661
11662 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11663
11664         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11665         Fixed bug #818696
11666         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11667         and predecrement operand is displayed
11668
11669 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11670
11671         * src/SDCCval.c (valMinus): fixed bug #826041
11672
11673 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11674
11675         Some hc08 related updates that I missed earlier
11676         * sim/ucsim/stypes.h
11677         * support/regression/ports/hc08/spec.mk
11678
11679 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11680
11681         New target "hc08" for the Motorola 68hc08 family of micros
11682
11683         * configure
11684         * configure.in
11685         * Makefile
11686         * src/hc08/*
11687         * src/SDCCmain.c
11688         * src/port.h
11689         * sim/ucsim/hc08.src/*
11690         * sim/ucsim/configure.in
11691         * src/ucsim/configure
11692         * sim/ucsim/packages_in.mk
11693         * as/hc08/*
11694         * as/Makefile
11695         * device/include/mc68hc908qy.h
11696         * device/lib/hc08/*
11697         * device/lib/Makefile.in
11698         * support/regression/ports/hc08/*
11699         * support/regression/Makefile
11700
11701 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11702
11703         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11704         regression test
11705         * src/ds390/gen.c (genCast): fixed bug #821957
11706
11707 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11708
11709         * device/lib/logf.c: "fixed" overlay bug
11710         * support/regression/ports/host/spec.mk: added m library
11711         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11712         * support/regression/tests/float_trans: added (for Eric)
11713
11714 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11715
11716         * src/mcs51/gen.c (genCpl): fixed bug
11717         http://sf.net/mailarchive/message.php?msg_id=6263915
11718
11719 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11720
11721         * src/SDCCast.c (decorateType): added extended constant folding
11722         * src/SDCCsymt.c (computeType): cleanup
11723         * src/SDCCval.c (valShift): minor optimization
11724         * support/regression/tests/ast_constant_folding.c: added
11725
11726 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11727
11728         * src/SDCCmain.c: removed some unintended changes
11729
11730 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11731
11732         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11733         * src/z80/gen.c: fixed part of bug #817589
11734         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11735
11736 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11737
11738         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11739         * src/SDCCcflow.c
11740         * src/SDCCcse.c
11741         * src/SDCCdflow.c
11742         * src/SDCClabel.c
11743         * src/SDCClrange.c
11744         * src/SDCCmem.c
11745         * src/SDCCopt.c
11746         * src/SDCCpeeph.c
11747         * src/SDCCset.c
11748         * src/avr/ralloc.c
11749         * src/ds390/ralloc.c
11750         * src/izt/ralloc.c
11751         * src/mcs51/ralloc.c
11752         * src/pic/ralloc.c
11753         * src/pic16/ralloc.c
11754         * src/xa51/ralloc.c
11755         * src/z80/ralloc.c
11756         * src/z80/gen.c: removed unused label "release:"
11757
11758 2003-10-06  Borut Razem <borut.razem AT siol.net>
11759
11760         * src/SDCC.lex: removed definition of unused variables
11761           save_optimize and save_options
11762
11763 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11764
11765         * clean.mk: removed '=' in "-maxdepth=1"
11766         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11767         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11768
11769 2003-10-06  Borut Razem <borut.razem AT siol.net>
11770
11771         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11772           my_unput() replaced by unput()
11773
11774 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11775
11776         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11777         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11778         type-punned pointer will break strict-aliasing rules"
11779         Old LR behaviour is again default; Klaus' LR can be choosen by
11780         defining the environment variable LRKLAUS
11781         * src/SDCCBBlock.h
11782         * src/SDCCloop.c
11783         * src/SDCClrange.c
11784         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11785         * clean.mk: fixed removal of files in bin/CVS/
11786         * device/lib/clean.mk: fixed removal of directories small and large
11787         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11788         * src/SDCCicode.c,
11789         * src/SDCCval.c: removed superflous test for pedantic
11790
11791 2003-10-05  Borut Razem <borut.razem AT siol.net>
11792
11793         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11794           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11795           message "unmatched #pragma SAVE and #pragma RESTORE"
11796
11797 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11798
11799         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11800           assembly, critical functions, atomic, nojtbound)
11801
11802 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11803
11804         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11805         * src/SDCCBBlock.h
11806         * src/SDCCloop.c
11807         * src/SDCCloop.h
11808         * src/SDCClrange.c
11809
11810 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11811
11812         * src/z80/gen.h,
11813         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11814         * src/mcs51/gen.h
11815         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11816         * src/ds390/gen.h
11817         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11818         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11819         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11820
11821 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11822
11823         * src/z80/gen.c (genRet): fixed bug #524753
11824         * src/z80/gen.c (genCast): fixed internal error on cast from
11825         pointer to long
11826         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11827         fix for bug #477835 to the z80
11828         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11829         for tracking iCodes in the peephole optimizer for z80
11830
11831 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11832
11833         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11834         the other part of bug #814548
11835         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11836
11837 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11838
11839         * src/SDCCcse.c: fixed part of bug #814548
11840
11841 2003-09-28  Borut Razem <borut.razem AT siol.net>
11842
11843         * src/asm.c: rewrite of printILine() to use temporary file instead
11844           a pipe
11845         * src/xa51/main.c: commented out declaration of int rewinds
11846
11847 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11848
11849         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11850
11851 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11852
11853         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11854         * src/asm.c (printILine): Fixed bug #811015
11855
11856 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11857
11858         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11859         freeing.
11860
11861 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11862
11863         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11864         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11865         to correctly handle general case of AOP_PAIRPTR
11866         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11867
11868 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11869
11870         * src/mcs51/ralloc.c (fillGaps),
11871         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11872         register positioning bug)
11873
11874 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11875
11876         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11877
11878 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11879
11880         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11881         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11882         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11883         (ralloc doesn't intentionally do this now, but perhaps later)
11884         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11885         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11886         register positioning bugs (Fixed bug #762602 and #795325)
11887         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11888         (Fixed bug #808779)
11889         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11890         lines that --i-code-in-asm generates
11891
11892 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11893
11894         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11895         trying to fclose a FILE* that was already closed.
11896
11897 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11898
11899         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11900         of const struct should be treated as if const themselves)
11901
11902 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11903
11904         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11905
11906 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11907
11908         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11909         Unix (/n) and DOS (/r/n) line terminations.
11910
11911 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11912
11913         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11914         bug #613775
11915
11916 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11917
11918         * src/mcs51/gen.c (genFunction, genEndFunction),
11919         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11920         and restore of EA so that stack offsets to parameters are
11921         correct when using both critical and reentrant/stack-auto.
11922         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11923         size (can be triggered in error if sloc is shared between
11924         different sized objects)
11925         * device/include/float.h: fixed macros to explicitly use
11926         unsigned long where needed
11927
11928 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11929
11930         Feature req. 799831: added code to allow nesting of critical functions
11931         * src/mcs51/gen.c (genFunction, genEndFunction)
11932         * src/ds390/gen.c (genFunction, genEndFunction)
11933
11934 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11935
11936         * src/SDCCsymt.c (sclsFromPtr),
11937         * src/SDCCsymt.h,
11938         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11939         support for standard C idiom of memory mapped variables; for
11940         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11941         to xdata int at 0x1234 tempvar = 1.
11942         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11943         provided by Akiya ISHIDA
11944
11945 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11946
11947         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11948         * src/SDCCval.c (constVal): added reduction from int to char
11949         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11950         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11951         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11952         to ignore the sign
11953         * support/regression/tests/shifts.c: fixed
11954
11955 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11956
11957         * src/z80/gen.c (genXor): Fixed bug #805445
11958
11959 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11960
11961         Fixed bug #621531 (const & volatile confusion in the type chain).
11962         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11963         refer to the const or volatile state of the pointer itself.
11964
11965         * src/SDCCast.c
11966         * src/SDCCglue.c
11967         * src/SDCCicode.c
11968         * src/SDCCsymt.c
11969         * src/SDCCval.c
11970         * src/SDCC.y
11971         * src/SDCCsymt.h
11972         * src/pic/gen.c
11973         * src/pic/ralloc.c
11974         * src/pic16/gen.c
11975         * src/pic16/ralloc.c
11976         * support/regression/tests/const.c
11977
11978 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11979
11980         When checking for duplicated modules, use absolute paths
11981         instead of relative paths.  Files changed:
11982
11983         * as/mcs51/lklib.c
11984         * link/z80/lklib.c
11985
11986 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11987
11988         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11989
11990 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991
11992         * device/include/string.h: added size_t typedef, changed
11993         prototypes to use size_t, eliminated separate reentrant and
11994         non-reentrant declarations, added _memmove declaration
11995         * device/lib/_memcpy.c: changed to use size_t instead of int,
11996         changed /4 to >>2 to avoid division library call
11997         * device/lib/_memcmp.c,
11998         * device/lib/_memset.c,
11999         * device/lib/_strncat.c,
12000         * device/lib/_strncpy.c,
12001         * device/lib/_strncmp.c: changed to use size_t instead of int
12002         * device/lib/_memmove.c: new file (fixed bug #772294)
12003         * device/lib/Makefile.in: added _memmove.c
12004         * device/lib/z80/asm_strings.s: fixed bug #772290
12005         * support/regression/tests/bitfields.c: attempt to fix host assertion
12006         failure on amd64-unknown-linux2.2
12007
12008 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12009
12010         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12011         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12012         * as/z80/asmain.c (main): fixed bug #801766
12013
12014 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12015
12016         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12017         compilers
12018
12019 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12020
12021         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12022         reported in bug #800609
12023
12024 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12025
12026         * Top header beautifications in src/pic16 directory:
12027           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12028           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12029           pcoderegs.h, ralloc.c, ralloc.h
12030         * main.c: added top header and GPL license notice
12031         * pcode.c: fixed the if-conditional warning
12032
12033 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12034
12035         * device/lib/_mullong.c: replaced int by short for gcc
12036
12037 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12038
12039         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12040         and JUMPTABLE iCodes properly now (worked by accident before)
12041         * src/mcs51/gen.c (leftRightUseAcc),
12042         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12043         iCode properly now. Use getSize instead of nRegs since a & b
12044         aren't part of the nRegs tally.
12045
12046 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12047
12048         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12049         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12050           before instructions that use the _STATUS register
12051
12052 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12053
12054         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12055         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12056         fetching of the pointer
12057         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12058         copied from genNearPointerSet()
12059         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12060         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12061         If they pop r0/r1 they must be called in the opposite order than aopOp().
12062         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12063         (resp. --stack-auto), prepared for --xstack
12064
12065 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12066
12067         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12068
12069 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12070
12071         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12072         these ports have their own __sdcc_external_start()
12073
12074 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12075
12076         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12077         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12078         type for bits was changed. It resulted in bit variables becoming
12079         global, which is not permitted in PIC 14 assembly output.
12080
12081 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12082
12083         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12084
12085 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12086
12087         Z80 and MCS51 linkers complaint if a public symbol is defined
12088         in more than one library module:
12089
12090         * as/mcs51/lklib.c
12091         * link/z80/lklib.c
12092         * as/mcs51/Makefile.in
12093
12094 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12095
12096         A few small changes that speed up the peephole optimizer.
12097
12098         * src/SDCCpeeph.c
12099
12100 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12101
12102         Try to make the peephole optimizer smarter by maintaining
12103         an association between the assembly source code and the
12104         iCodes that originated them. Put this information to use
12105         with a new peephole rule condition "notVolatile" so that
12106         the rules can be aggressive yet still safe.
12107
12108         * src/SDCCpeeph.c
12109         * src/SDCCpeeph.h
12110         * src/mcs51/gen.c
12111         * src/mcs51/peeph.def
12112
12113 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12114
12115         Fixed bug #741761
12116
12117         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12118         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12119         if the left or right operand symbols have the accuse flag set.
12120
12121 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12122
12123         Changed the type of the result of the ! (NOT) operator to char;
12124         previously it returned the same type as the source. This allows
12125         us to eliminate all the genFloatNot functions (all of its target
12126         implementations were very buggy) since !float can use the same
12127         code as !long now.
12128
12129         * src/SDCCicode.c (ast2iCode): ! returns char
12130         * src/mcs51/gen.c (genNot, genNotFloat),
12131         * src/ds390/gen.c (genNot, genNotFloat),
12132         * src/z80/gen.c (genNot, genNotFloat),
12133         * src/pic/gen.c (genNot, genNotFloat),
12134         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12135
12136 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12137
12138         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12139         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12140            during interrupts. Ensure WSAVE is located at a shared bank address.
12141         2. Fixed page selection in some places
12142         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12143            the registers name strings.
12144         4. Fixed "signed / unsigned compare" compiler warnings.
12145         5. The PIC port manages its own allocation of the general purpose
12146            registers, but makes no attempt to reuse them. As a result when
12147            compiling it soon runs out of general purpose registers. Some
12148            additional code was added to the files pcode.c and device.c to walk
12149            through the function call tree and rename the registers so that they
12150            get reused.
12151
12152         * src/pic/device.c
12153         * src/pic/gen.c
12154         * src/pic/glue.c
12155         * src/pic/pcode.c
12156         * src/pic/pcode.h
12157         * src/pic/ralloc.c
12158         * src/pic/ralloc.h
12159         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12160         genPlus() & genMinus() when the result is the same as left or right
12161
12162 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12163
12164         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12165
12166 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12167
12168         Made bitfield a distinct type from bit so that bitfields
12169         convert as per ANSI C and bits retain their traditional
12170         boolean style behaviour. Implemented bitfield support in
12171         the z80 port.
12172
12173         * src/SDCCsymt.h,
12174         * src/SDCCsymt.c,
12175         * src/SDCCast.c,
12176         * src/cdbFile.c,
12177         * src/mcs51/gen.c,
12178         * src/ds390/gen.c: bit v bitfield split
12179         * src/z80/gen.c: New support for bitfields
12180         * support/regression/tests/bitfields.c: reenabled z80,
12181         added more tests
12182
12183 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12184
12185         Rules 246.x, 247.x relate to bitfields, the others speed up
12186         access to xdata mapped I/O devices.
12187
12188         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12189
12190 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12191
12192         Cleaned up genPackBits and genUnpackBits and added two helper
12193         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12194         for literal assignments in genPackBits (thanks to Frieder for
12195         reminding me).
12196
12197         * src/mcs51/gen.c
12198         * src/ds390/gen.c
12199
12200 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12201
12202         Fixed bug #748310 (pointer to function type mishandled when the
12203         function name is omitted). Also fixed a SIGSEGV when a function
12204         attribute (reentrant, etc) is used on a non-function or on a
12205         function but misplaced before the parameter list.
12206
12207         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12208         bug #748310
12209         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12210         * support/Util/SDCCerr.h,
12211         * support/Util/SDCCerr.c: Added func attr misuse error msg
12212
12213 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12214
12215         Fixed bug #787649 by anonymous
12216         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12217         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12218
12219 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12220
12221         Fixed numerous bitfield problems.
12222
12223         * src/SDCC.y: More bitfield related error checking
12224         * src/SDCCsymt.h,
12225         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12226         * support/Util/SDCCerr.h,
12227         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12228         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12229         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12230         * support/regression/tests/bitfields.c: tests added
12231
12232 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12233
12234         Made the constant following the "interrupt" keyword optional. If
12235         omitted, the function will not automatically be given an entry
12236         in the interrupt vector table (similar to #pragma NOIV, but
12237         less syntacticly kludgy). The interrupt number is also now
12238         range checked. Also fixed a bug in the high order bit example
12239         in the manual.
12240
12241         * src/SDCC.y
12242         * src/SDCCmem.c
12243         * src/SDCCglue.c
12244         * src/SDCCsymt.h
12245         * support/Util/SDCCerr.c
12246         * support/Util/SDCCerr.h
12247         * doc/sdccman.lyx
12248
12249 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12250
12251         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12252         * src/SDCCicode.c (operandOperation): rewritten some ops
12253         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12254         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12255         other type
12256         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12257         be re-activated by defining REDUCE_LITERALS)
12258         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12259         unsigned, but are signed by default
12260         * src/SDCCval.c (constVal): rearranged
12261         * src/SDCCval.c (valMod): preliminary fix
12262         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12263         * support/regression/literalop.c: added, work in progress
12264
12265 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12266
12267         Generate warnings for useless declarations like "char data;"
12268         that don't do what new users expect.
12269
12270         * src/SDCC.y
12271         * support/Util/SDCCerr.h
12272         * support/Util/SDCCerr.c
12273
12274 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12275
12276         * src/SDCCval.c (valMult): fix overflow detection of negative int
12277
12278 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12279
12280         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12281
12282         Changes to support big endian targets:
12283
12284         * src/ports.h
12285         * src/SDCCglue.c
12286         * src/avr/main.c
12287         * src/ds390/main.c
12288         * src/izt/i186.c
12289         * src/mcs51/main.c
12290         * src/pic/main.c
12291         * src/pic16/main.c
12292         * src/xa51/main.c
12293         * src/z80/main.c
12294
12295 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12296
12297         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12298         * device/lib/time.c: fixed warning "integer overflow in expression"
12299
12300 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12301
12302         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12303         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12304         constants are unsigned; added recognition of "u" flag for unsigned
12305         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12306         * src/SDCCval.c (valDiv, valMod): fixed signdness
12307         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12308         signedness of modulo, left and right shift
12309         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12310         * support/Util/SDCCerr.h: added warning W_INT_OVL
12311         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12312         * src/SDCCast.c (ast_print): improved output of constants
12313
12314 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12315
12316         Fixed some warnings when building with MSVC:
12317
12318         * as/mcs51/asdata.c
12319         * as/z80/asdata.c
12320         * as/mcs51/asm.h
12321         * as/z80/asm.h
12322         * link/z80/aslink.h
12323         * link/z80/lkdata.c
12324         * link/z80/lkeval.c
12325         * link/z80/lkgb.c
12326         * link/z80/lkihx.c
12327         * link/z80/lks19.c
12328         * link/z80/lksym.c
12329         * support/cpp2/cpplib.c
12330         * src/ds390/gen.c
12331         * src/mcs51/gen.c
12332
12333 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12334
12335         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12336
12337 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12338
12339         * support/librarian/clean.mk: Do not remove Makefile.
12340         * support/librarian/Makefile: added.
12341
12342 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12343
12344         Added librarian to MSVC build:
12345         * all.dsp
12346         * sdcc.dsw
12347         * support/librarian/librarian.dsp
12348
12349         'configure' not needed for librarian, removed:
12350         * support/librarian/configure
12351         * support/librarian/configure.in
12352         * support/librarian/config_in.h
12353         * support/librarian/Makefile.in
12354
12355         Hopefully these ones built the librarian and the rest of sdcc properly:
12356         * Makefile
12357         * Makefile.common.in
12358
12359         Messed up 'configure', so revert to previous version:
12360         * configure
12361         * configure.in
12362
12363 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12364
12365         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12366         there, while the mantissa of a double is "only" 53 bits wide.
12367
12368 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12369
12370         Adding sdcclib to the build.  MSVC project coming soon.
12371         Files added/changed:
12372
12373         * support/librarian/clean.mk
12374         * support/librarian/configure
12375         * support/librarian/configure.in
12376         * support/librarian/config_in.h
12377         * support/librarian/Makefile.bcc
12378         * support/librarian/Makefile.in
12379         * support/librarian/sdcclib.c
12380         * Makefile.bcc
12381         * Makefile
12382         * Makefile.common.in
12383         * configure
12384         * configure.in
12385
12386 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12387
12388         Linker now complaints if linked modules have conflicting options, for
12389         example, one compiled using --model-large and another one compiled with
12390         --model-small.  The following files were modified:
12391
12392         * as/mcs51/asdata.c
12393         * as/mcs51/aslink.h
12394         * as/mcs51/asm.h
12395         * as/mcs51/asmain.c
12396         * as/mcs51/asout.c
12397         * as/mcs51/i51pst.c
12398         * as/mcs51/lkdata.c
12399         * as/mcs51/lklibr.c
12400         * as/mcs51/lkmain.c
12401         * as/z80/asdata.c
12402         * as/z80/asm.h
12403         * as/z80/asmain.c
12404         * as/z80/asout.c
12405         * as/z80/z80pst.c
12406         * link/z80/aslink.h
12407         * link/z80/lkdata.c
12408         * link/z80/lklibr.c
12409         * link/z80/lkmain.c
12410         * src/SDCCglue.c
12411
12412 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12413
12414         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12415         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12416
12417 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12418
12419         * src/z80/mappings.i: fix _mul[us][int,long] entries
12420
12421 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12422
12423         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12424
12425 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12426
12427         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12428         * support/regression/tests/bitopcse.c: added
12429         fixed warning:
12430         * src/avr/gen.c:
12431         * src/pic/gen.c:
12432         * src/pic16/gen.c:
12433         * src/z80/gen.c:
12434         * src/xa51/gen.c:
12435
12436 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12437
12438         added support for new library format to z80, gbz80 linkers:
12439         *link/z80/aslink.h
12440         *link/z80/lklex.c
12441         *link/z80/lklib.c
12442         *link/z80/lklist.c
12443
12444 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12445
12446         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12447         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12448
12449 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12450
12451         added DUMMY_READ_VOLATILE:
12452         * src/SDCC.y:
12453         * src/avr/gen.c:
12454         * src/xa51/gen.c:
12455         * src/z80/gen.c:
12456         * src/pic/gen.c:
12457         * src/pic16/gen.c:
12458         * src/mcs51/gen.c:
12459         * src/ds390/gen.c:
12460         * src/SDCCcse.c (algebraicOpts): many improvements
12461         * src/SDCCcse.h: removed algebraicOpts()
12462         * src/SDCCicode.c (picDummyRead): added
12463
12464 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12465
12466         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12467         "Insufficient space in data memory".
12468
12469 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12470
12471         * src/mcs51/gen.c: fixed bug #771358
12472         * src/z80/gen.c: fixed bug #759087
12473
12474 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12475
12476         * src/pic16/glue.c: minor cleanup by Vangelis
12477
12478 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12479
12480         * device/include/regc515c.h: fixed #758477
12481         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12482         * device/lib/_gptrput.c: saved a few bytes
12483         * my tab spacing is 8, yours too?)
12484         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12485         * device/lib/serial.c: process RX bytes earlier than TX bytes
12486         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12487
12488 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12489
12490         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12491
12492 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12493
12494     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12495
12496 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12497
12498         * device/lib/Makefile.in: bad fix, reverted to 1.43
12499
12500 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12501
12502         * device/lib/Makefile.in: added missing z80 object files
12503
12504 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12505
12506         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12507         pic16 progress by Vangelis:
12508         * src/SDCCglobl.h:
12509         * src/SDCCmain.c:
12510         * src/pic/Makefile:
12511         * src/pic:
12512         * pic/Makefile:
12513         * pic16/device.c:
12514         * pic16/device.h:
12515         * pic16/gen.c:
12516         * pic16/gen.h:
12517         * pic16/genarith.c:
12518         * pic16/glue.c:
12519         * pic16/main.c:
12520         * pic16/pcode.c:
12521         * pic16/pcode.h:
12522         * pic16/pcodepeep.c:
12523         * pic16/peeph.def:
12524
12525 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12526
12527     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12528
12529 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12530
12531     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12532     added gbz80 build to MSVC project.
12533     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12534     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12535     from 8051 stuff and setup so it links using a .lnk file.
12536
12537 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12538
12539     * support/librarian/sdcclib.c: sdcc librarian.
12540     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12541     with sdcclib.
12542
12543 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12544
12545     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12546
12547 2003-07-02  Borut Razem <borut.razem AT siol.net>
12548
12549         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12550         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12551         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12552         src/xa51/main.c, src/z80/main.c:
12553         virtualization of glue() function: each port has it's own glue function,
12554         which is accessed by do_glue function pointer in PORT.general structure
12555
12556 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12557
12558         * DS800C400 fun, improved ROM interface and tinibios.
12559
12560 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12561
12562         * More support for DS80C400. Now includes beginning of interface to ROM.
12563
12564 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12565
12566         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12567
12568 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12569
12570         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12571
12572 2003-06-19  Borut Razem <borut.razem AT siol.net>
12573
12574         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12575
12576 2003-06-19  Borut Razem <borut.razem AT siol.net>
12577
12578         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12579         fixed Z80 port - crt0.o: cannot open.
12580
12581 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12582
12583         * support/Util/MySystem.c (merge_command): revert bad fix
12584
12585 2003-06-18  Borut Razem <borut.razem AT siol.net>
12586
12587         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12588
12589 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12590
12591         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12592         option --use-stdout sends errors to stdout instead of stderr.
12593
12594 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12595
12596         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12597
12598 2003-06-15  Borut Razem <borut.razem AT siol.net>
12599
12600         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12601         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12602         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12603         fixed width array of pointers replaced with sets;
12604         multiple include and lib paths ared transferred to preprocessor and linker
12605         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12606         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12607         fixed width array of pointers
12608         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12609         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12610         fixupPath(), getPathDifference()
12611         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12612         fixed width array of pointers
12613
12614 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12615
12616         * src/pic16/ralloc.c: fix warnings
12617         * src/pic16/pcode.c: fix warning
12618
12619 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12620
12621          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12622         know all the details, but essentially this set of changes enable
12623         the pic16 port to generate movff instructions and generate assembler
12624         directives,
12625         * src/SDCCmain.c:
12626         * src/pic16/gen.c:
12627         * src/pic16/glue.c:
12628         * src/pic16/pcode.c:
12629         * src/pic16/device.c:
12630         * src/pic16/main.c:
12631         * src/pic16/pcode.h:
12632         * src/pic16/pcoderegs.c:
12633         * src/pic16/ralloc.c:
12634         * src/pic16/ralloc.h:
12635
12636 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12637
12638         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12639         added option --vc, so sdcc errors and warnings are compatible with
12640         Microsoft Visual Studio.
12641
12642 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12643
12644         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12645           device/lib/libfloat.lib: added atof function.
12646
12647 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12648
12649         * doc/sdccman.lyx: updated to Lyx 1.3
12650         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12651         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12652         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12653
12654 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12655
12656         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12657
12658 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12659
12660         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12661           additions to the "related tools/documentation" section
12662
12663 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12664
12665         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12666
12667 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12668
12669         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12670         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12671
12672 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12673
12674         * doc/sdccman.lyx: fix double dash and other minor things
12675         * doc/Makefile: fix double dash
12676
12677 2003-05-28  Karl Bongers(patches from Martin Helmling)
12678         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12679           condition and ignore commands.
12680
12681 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12682
12683         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12684           is in parts still quite out of date, I did changes as far as I felt makes sense
12685           for a non-native english speaker.
12686           Please feel free to add to the manual or to correct my changes.
12687         * doc/Makefile: undid touching the date of intermediate tex files.
12688
12689 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12690
12691         * doc/sdccman.lyx: Manual has an index now
12692
12693 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12694
12695         Finalize muluint/mulsint and mululong/mulslong merging:
12696         * device/lib/_mulint.c
12697         * device/lib/_mullong.c
12698         * device/lib/gbz80/mul.s
12699         * device/lib/gbz80/stubs.s
12700         * device/lib/z80/mul.s
12701         * device/lib/z80/stubs.s
12702         * src/SDCCsymt.c (initCSupport)
12703
12704 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12705
12706         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12707         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12708           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12709           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12710           instead of /Zm500.
12711
12712 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12713
12714         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12715           the regression tests I'm not brave enough to enable 245.b, 245.c
12716         * doc/sdccman.lyx: added latex preamble for hyperref package.
12717           Using pdflatex this will give you a hyperlinked pdf file with
12718           bookmarks. (prepend '%' before /usepackage if this breaks something)
12719
12720 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12721
12722          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12723
12724 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12725
12726         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12727
12728 2003-05-21    <johan AT balder>
12729
12730         * src/SDCCglue.c (printIval): fixed bug #739934
12731
12732 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12733
12734         Applied patch from bug 737905 (renamed yylineo to mylineno):
12735         * src/altlex.c
12736         * src/SDCCast.c
12737         * src/SDCglobl.h
12738         * src/SDCC.lex
12739         * src/SDCCsymt.c
12740         * src/SDCCval.c
12741         * src/pic16/pcode.c: Cleaned warnings
12742         * src/pic16/pcodeflow.c: Cleaned warnings
12743         * src/pic16/pcoderegs.c: Cleaned warnings
12744
12745 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12746
12747         * src/pic16/pcode.c: Cleaned warnings
12748         * src/pic16/pcodepeep.c: Cleaned warnings
12749         * src/pic16/ralloc.c: Cleaned warnings
12750
12751 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12752
12753         * doc/sdccman.lyx: fixed bug 739745
12754         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12755
12756 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12757
12758         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12759         it can be defined with CFLAGS when running configure
12760         * src/SDCCmain.c: fixed compiling + linking with object files
12761
12762 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12763
12764         * configure.in: configure for pic16 port,
12765             added --disable-pic16-port
12766         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12767         * src/SDCCmain.c: linkOptions is changed to set *,
12768             added if/endif conditional macros to remove options help
12769             messages from optionsTable when a port is not configured, added
12770             support for the PIc16 port in the ports table, when executing
12771             the compiler with no port specified on command line, a default
12772             port is selected with the new macro DEFAULT_PORT which is
12773             defined in port.h, in setDefaultOptions() linkOptions is removed
12774             from initialization assignment, since now it is a set,
12775             parseCmdLine uses setParseWithComma for linkOptions, in
12776             linkEdit() linkOptions are accessed with new function indexSet()
12777             which returns the i'th item of a set variable. See SDCCset.c, in
12778             linkEdit() when calling buildCmdLine(), added linkOptions as
12779             last argument. Now users can pass arguments to gplink via the
12780             -Wl option, main() uses pic16glue() to glue up pic16 programs
12781         * src/SDCCpeeph.c: various changes to support pic16
12782         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12783             return the i'th item of the set
12784         * src/SDCCset.h: added function prototype for indexSet()
12785         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12786         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12787         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12788             added macro DEFAULT_PORT
12789         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12790         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12791             generated
12792         * src/pic16/glue.c: commented out some error producing lines
12793         * src/pic16/main.c: __config directives are commented out to stop
12794             gpasm complaining and test the linkage with gplink, _linkCmd and
12795             _asmCmd changed to be more gplink and gpasm friendly
12796         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12797             produced an error when parsed, peep rule 12 is added to utilize
12798             movff, but it is commented out since the pCode does not support
12799             yet a command with 2 address arguments
12800
12801 2003-05-18    <johan AT balder>
12802
12803         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12804         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12805 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12806
12807         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12808   Added feature to script commands from file.
12809
12810 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12811
12812         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12813         * src/SDCCutil.c: include ctype.h for win32
12814
12815 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12816
12817         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12818
12819 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12820
12821         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12822   Fixed so you can set breakpoints prior to run, run does not stop
12823   on entry now.  Add tbreak.  Other enhancements and fixes for use
12824   with ddd.
12825
12826 2003-05-12  Borut Razem <borut.razem AT siol.net>
12827
12828         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12829
12830 2003-05-11  Borut Razem <borut.razem AT siol.net>
12831
12832         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12833         the path of bin directory, so that PATH is the only env. variable, which has to be set
12834         in case of standard installation.
12835         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12836         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12837         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12838
12839 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12840
12841         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12842         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12843         temp files are in the port dir; clean the gen/test directory when
12844         generating new test.c
12845         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12846         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12847         * support/regression/tests/zeropad.c: added
12848
12849 2003-05-09    <johan AT balder>
12850
12851         * src/SDCCglue.c: fixed bug #597940
12852
12853 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12854
12855         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12856   cache sfr, optimize next,step, fix off by one sourceline,
12857   support ddd list function.
12858         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12859
12860 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12861
12862         * support/regression/HTMLgen.py: added compare_s2f()
12863         * support/regression/Makefile: redo 1.27
12864         * support/regression/generate-cases.py: redo 1.5
12865
12866 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12867
12868         * support/regression/tests/float.c: workaround 33 bit hex constant
12869         * support/regression/tests/simplefloat.c: fix division for host
12870
12871 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12872
12873         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12874         that tame's the PIC's over-aggressive optimizer.
12875
12876 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12877
12878          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12879          support for MSVC.
12880
12881 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12882
12883         Initial support for DS80C400. "Hello world" runs on TINIm400
12884         (with polled I/O).
12885
12886 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12887
12888          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12889          * Some notes on ddd usage added in debugger/README
12890          Martin Helmling adding more features and fixes for ddd GUI debugger.
12891          Code added for nexti, stepi, up, down, and other adjustments.
12892
12893 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12894
12895         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12896         * src/pic/peeph.def Added two rules to optimize carry manipulation
12897         * src/pic/* removed debug printfs
12898
12899 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12900
12901         * debugger/mcs51/cmd.c: added header newalloc.h
12902
12903 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12904
12905         * as/Makefile: new EXEEXT
12906         * as/z80/Makefile: remove trailing slash of BUILDIR
12907         * as/z80/clean.mk: new EXEEXT
12908         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12909         * support/cpp2/Makefile.in: new EXEEXT
12910         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12911
12912 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12913
12914         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12915         EXEEXT was introduced to fix all related problems with targets
12916         "clean", "install" and "uninstall"; a couple of further flaws
12917         especially with "clean" have been fixed too
12918         * as/mcs51/Makefile.in
12919         * as/mcs51/clean.mk
12920         * as/z80/Makefile
12921         * Makefile
12922         * clean.mk
12923         * debugger/mcs51/Makefile.in
12924         * debugger/mcs51/clean.mk
12925         * link/z80/Makefile
12926         * link/z80/Makefile.in
12927         * link/z80/clean.mk
12928         * link/Makefile
12929         * packihx/Makefile.in
12930         * packihx/clean.mk
12931         * sim/ucsim/Makefile
12932         * sim/ucsim/clean.mk
12933         * sim/ucsim/avr.src/Makefile.in
12934         * sim/ucsim/avr.src/clean.mk
12935         * sim/ucsim/s51.src/Makefile.in
12936         * sim/ucsim/s51.src/clean.mk
12937         * sim/ucsim/xa.src/Makefile.in
12938         * sim/ucsim/xa.src/clean.mk
12939         * sim/ucsim/z80.src/Makefile.in
12940         * sim/ucsim/z80.src/clean.mk
12941         * sim/ucsim/main_in.mk
12942         * sim/ucsim/packages_in.mk
12943         * sim/ucsim/gui.src/Makefile.in
12944         * sim/ucsim/gui.src/serio.src/Makefile.in
12945         * sim/ucsim/gui.src/serio.src/clean.mk
12946         * src/Makefile.in
12947         * src/clean.mk
12948         * support/cpp2/Makefile.in
12949         * support/cpp2/clean.mk
12950         * support/makebin/Makefile
12951         * support/makebin/clean.mk
12952         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12953         * doc/sdccman.lyx: --program-suffix no longer needed
12954
12955 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12956
12957          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12958          Martin Helmling added support for ddd GUI debugger.
12959          Code added to display assembly, set variables, and other commands
12960          to interface to ddd.
12961
12962 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12963
12964         * as/Makefile: fix target clean
12965         * as/clean.mk: fix target clean
12966         * as/z80/clean.mk: fix target clean
12967
12968 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12969
12970         * Makefile.common.in: added  AT EXEEXT AT
12971         * configure.in: removed all mingw32 stuff
12972         * configure: rebuilt from configure.in
12973         * doc/sdccman.lyx: updated section "installation"
12974         * support/scripts/sdcc_mingw32: adapted to configure
12975         * support/scripts/sdcc_cygwin_mingw32: added
12976
12977 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12978
12979         * src/pic Added object file support for the PIC port
12980         * src/pic Applied patch from Craig Franklin (this started the object file support)
12981         * src/regression Updated the PIC regression tests for object files
12982
12983 2003-04-20  Borut Razem <borut.razem AT siol.net>
12984
12985         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12986           lklex.c: In function `getfid':
12987           lklex.c:203: warning: array subscript has type `char'
12988         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12989           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12990         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12991           stack handling macros
12992
12993 2003-04-19  Borut Razem <borut.razem AT siol.net>
12994
12995         * "handling space characters in file path" task:
12996         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12997         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12998         * support/Util/MySystem.h: make it self-sufficient
12999         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13000           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13001           handling space characters in file path
13002         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13003           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13004         * support/Util/MySystem.c: handling space characters in executable's path
13005
13006 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13007
13008         * as/z80/Makefile: fix permanent rebuild of z80
13009         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13010         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13011
13012 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13013
13014         * src/SDCCopt.c: add special case optimization to replace modulo by
13015           a power of two with a bitwise AND.
13016
13017 2003-04-18    <johan AT balder>
13018
13019         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13020
13021 2003-04-17    <johan AT balder>
13022
13023         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13024         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13025
13026 2003-04-13  Borut Razem <borut.razem AT siol.net>
13027
13028         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13029         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13030           fixed mingw problem in adl_NORMALIZE_PATH
13031
13032 2003-04-12  Borut Razem <borut.razem AT siol.net>
13033
13034         * fixed "#pragma SAVE/RESTORE can not be nested":
13035         * src/SDCC.lex: reworked pragma handling functions
13036         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13037         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13038
13039 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13040
13041         * src/SDCCutil.c (pathEquivalent): defined but not used
13042         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13043         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13044         * configure: rebuilt from configure.in
13045         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13046         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13047         * device/include/Makefile.in: replace sdcc_datadir
13048         * device/lib/Makefile.in: replace sdcc_datadir
13049         * Makefile.common.in: add LDFLAGS from configure
13050         * packihx/Makefile.in: use LDFLAGS
13051         * src/Makefile.in: use LDFLAGS
13052         * support/cpp2/Makefile.in: add LDFLAGS from configure
13053         * support/makebin/Makefile: use LDFLAGS
13054         * .version: bumped version number to 2.3.5
13055
13056 2003-04-12  Borut Razem <borut.razem AT siol.net>
13057
13058         * completed "different paths" task:
13059         * src/SDCCmacro.c: fixed bug in handling quotes
13060         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13061         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13062
13063 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13064
13065         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13066
13067 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13068
13069         * ds390/gen.c ds390/peeph.def: fix bug 706781
13070
13071 2003-04-11  Borut Razem <borut.razem AT siol.net>
13072
13073         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13074
13075 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13076
13077         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13078         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13079          set - this bit used to not be set...).
13080         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13081           bad code in PIC Port
13082         * src/regression/and2.c added to test bug 609268
13083         * src/regression/Makefile added and2.c to regression test
13084
13085
13086 2003-04-08    <johan AT CP255758-A>
13087
13088         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13089         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13090         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13091
13092 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13093
13094         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13095         fix bug #487815
13096         * support/cpp2/Makefile.in: fix bug #487815
13097         * configure: rebuilt from configure.in
13098         * Makefile.common.in: docdir changed, new path suffixes
13099         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13100         * sdcc_vc_in.h: reflect changes from sdccconf.h
13101         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13102         * src/SDCCutil.h: remove BINDIR hack
13103         * doc/sdccman.lyx: update new path hierarchy
13104
13105 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13106
13107         * src/SDCCpeeph.c: added okToRemoveSLOC test
13108
13109 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13110
13111         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13112
13113 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13114
13115         * src/SDCCpeeph.c: added labelIsReturnOnly test
13116         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13117
13118 2003-04-05    <johan AT balder>
13119
13120         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13121         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13122         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13123         * src/SDCCast.c: fixed a warning
13124         * src/SDCCast.h: fixed a warning
13125         * src/SDCCicode.c (operandFromAst): fixed a warning
13126
13127 2003-04-04    <johan AT balder>
13128
13129         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13130         * src/SDCCast.c (decorateType): fixed bug #715076
13131         * src/SDCC.y: fixed bug #702907
13132
13133 2003-04-03    <johan AT balder>
13134
13135         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13136         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13137         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13138         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13139         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13140
13141 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13142
13143         * _decdptr.c: fix return values
13144         * _gptrget.c: fix return values
13145         * _gptrgetc.c: fix return values
13146         * _gptrput.c: fix return values
13147         * _mulint.c: fix return values
13148         * as/z80/Makefile: fix 'make -j' problem
13149
13150 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13151
13152         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13153         * configure.in: big cleanup, updated to autoconf 2.5x
13154         * configure: rebuilt from configure.in
13155         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13156         * sdcc_vc_in.h: reflect changes from sdccconf.h
13157         * doc/Makefile: fixed a flaw in "make install"
13158
13159 2003-04-02    <johan AT balder>
13160
13161         * src/ds390/gen.c (genCmp): no comments
13162         * src/mcs51/gen.c (genCmp): no comments
13163         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13164         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13165
13166 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13167
13168         * support/regression/generate-cases.py: place generated file in given sub directory
13169         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13170         * support/regression/Makefile: improvements for 'make -j';
13171         side effect: it's simpler and faster now
13172
13173 2003-03-31  Borut Razem <borut.razem AT siol.net>
13174
13175         * src/z80/main.c: link-{port} and as-{port} defined without path
13176         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13177
13178 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13179
13180         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13181
13182 2003-03-30  Borut Razem <borut.razem AT siol.net>
13183
13184         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13185           changed type of list parameter to set
13186         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13187         * src/port.h: changed type of do_assemble() parameter to set
13188         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13189           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13190           definition of "cppoutfilename" macro with NULL value in preProcess()
13191         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13192         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13193         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13194           replaced with set *binPathSet
13195         * shash_add() deallocates the item, if allready exsists, before adding the new one
13196         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13197
13198 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13199
13200         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13201           a nested for loop bug in the PIC port
13202         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13203           for loops
13204
13205 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13206
13207         * support/Util/dbuf.h: remove C++ stuff to make it portable
13208
13209 2003-03-28  Borut Razem <borut.razem AT siol.net>
13210
13211         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13212           literal strings in stringLiteral()
13213         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13214         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13215           to the project
13216
13217 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13218
13219         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13220
13221 2003-03-26    <johan AT balder>
13222
13223         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13224         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13225         * src/SDCCast.c (decorateType): fixed " -v < 3"
13226
13227 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13228
13229         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13230         Added Lenny Story's debug infrastructure changes:
13231         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13232         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13233         * src/cdbFile.c: added
13234         * src/SDCCdebug.c: added
13235         * src/SDCCdebug.h: added
13236         * src/SDCCast.c (createFunction)
13237         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13238         * src/SDCCmain.c (parseCmdLine, main)
13239         * src/SDCCmem.c (redoStackOffsets)
13240         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13241         * src/SDCCsymt.h
13242         * src/common.h
13243         * src/avr/gen.c (genAVRCode)
13244         * src/ds390/gen.c (gen390Code)
13245         * src/mcs51/gen.c (gen51Code)
13246         * src/pic/gen.c (genpic14Code)
13247         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13248         * src/xa51/gen.c (genXA51Code)
13249         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13250
13251 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13252
13253         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13254         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13255
13256 2003-03-22    <johan AT balder>
13257
13258         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13259
13260 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13261
13262         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13263         * doc/cdbfileformat.lyx: added, written by Lenny Story
13264         * doc/Makefile: added cdbfileformat.lyx
13265         * doc/clean.mk: added cdbfileformat.lyx
13266
13267 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * src/mcs51/peeph.def: fix bug #705773
13270
13271 2003-03-20    <johan AT balder>
13272
13273         An sfr/sbit can have an "at #" AND an initializer
13274         * src/SDCCsymt.c (checkSClass):
13275         * src/SDCCmem.c (allocGlobal):
13276         * src/SDCCmem.c (allocLocal):
13277         * src/SDCCast.c (createBlock):
13278
13279 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13280
13281         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13282
13283 2003-03-16    <johan AT balder>
13284
13285         Undid the hackup of const and volatile, the problem is much bigger
13286         * src/SDCC.y:1.65
13287         * src/SDCCast.c:1.171
13288         * src/SDCCglue.c:1.138
13289         * src/SDCCicode.c:1.146
13290         * src/SDCCsymt.c:1.150
13291         * src/SDCCval.c:1.65
13292
13293 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13294
13295         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13296         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13297
13298 2003-03-13    <johan AT balder>
13299
13300         Hackup const and volatile modifiers in type chains a bit:
13301         * src/SDCC.y:1.63
13302         * src/SDCCast.c:1.169
13303         * src/SDCCglue.c:1.136
13304         * src/SDCCicode.c:1.143
13305         * src/SDCCsymt.c1.146
13306         * src/SDCCsymt.h1.59
13307         * src/SDCCval.c:1.63
13308
13309 2003-03-12    <johan AT balder>
13310
13311         * src/SDCCBBlock.h: more LRH debugging junk
13312         * src/SDCCcflow.h: more LRH debugging junk
13313         * src/SDCCloop.c: more LRH debugging junk
13314         * src/SDCC.y (struct_declaration): fixed bug #697590
13315         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13316         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13317         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13318
13319 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13320         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13321         test function names must now match exactly).
13322         * src/SDCCcse.c: added special case in findCheaperOp to allow
13323         extending a short integer. Makes less awful code for bug 700121 test case.
13324
13325 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13326
13327         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13328         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13329
13330 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13331
13332         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13333         actually called (operandsNotEqual() was called for all
13334         operandsNotEqualX tests).
13335
13336 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13337
13338         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13339         with shorter literals. Fixes bug 700121.
13340
13341 2003-03-11    <johan AT balder>
13342
13343         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13344
13345 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13346
13347         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13348         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13349
13350 2003-03-10  Borut Razem <borut.razem AT siol.net>
13351
13352         * src/SDCCmain.c: pipe preprocessor's output
13353         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13354         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13355         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13356         which closes all pipes in pipeSet set
13357         * src/SDCCset.c: free deleted item in function deleteSetItem()
13358         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13359         moved from z80 to src subproject
13360         * .version: increased version number to 2.3.4
13361
13362 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13363
13364         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13365         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13366         * support/regression/ports/xa51/spec.mk: fix typo
13367
13368 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13369
13370         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13371
13372 2003-03-09  Borut Razem <borut.razem AT siol.net>
13373
13374         * src/SDCCmain.c: pipe preprocessor's output
13375         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13376         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13377         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13378         which closes all pipes in pipeSet set
13379         * src/SDCCset.c: free deleted item in function deleteSetItem()
13380         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13381         moved from z80 to src subproject
13382
13383 2003-03-09  Borut Razem <borut.razem AT siol.net>
13384
13385         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13386         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13387         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13388         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13389         * src/SDCCglobl.h: unification of WIN32 native definitions
13390
13391 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13392
13393         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13394
13395 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13396
13397         * src/configure.in:   check for endianess (even while cross-compiling)
13398         * src/configure:      check for endianess (even while cross-compiling)
13399         * src/configure_in.h: check for endianess (even while cross-compiling)
13400         * src/avr/gen.c:        remove old endianess stuff
13401         * src/mcs51/gen.c:      remove old endianess stuff
13402         * src/ds390/gen.c:      remove old endianess stuff
13403         * src/pic/gen.c:        remove old endianess stuff
13404         * src/pic/genarith.c:   remove old endianess stuff
13405         * src/pic/glue.c:       fix endianess check
13406         * src/pic16/gen.c:      remove old endianess stuff
13407         * src/pic16/genarith.c: remove old endianess stuff
13408         * src/pic16/glue.c:     fix endianess check
13409         * src/xa51/gen.c:       remove old endianess stuff
13410         * src/z80/gen.c:        fix endianess check
13411         * src/SDCCglue.c:       fix endianess check
13412         * src/ds390/peeph.def: fix bug 700036
13413
13414 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13415
13416         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13417         * src/configure: find appropriate data-types on host for SDCC's int and long
13418         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13419         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13420         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13421
13422 2003-03-07    <johan AT balder>
13423
13424         Just a big NOOP:
13425                 some minor cleanups before the big shot
13426                 OP_DEFS and OP_USES now use Kevin's protection
13427                 new option --nolabelopt
13428
13429         * src/SDCCBBlock.c:
13430         * src/SDCCast.c,:
13431         * src/SDCCcflow.c:
13432         * src/SDCCcse.c:
13433         * src/SDCCicode.c:
13434         * src/SDCCicode.h:
13435         * src/SDCClabel.c:
13436         * src/SDCCloop.c:
13437         * src/SDCCmain.c:
13438         * src/ds390/ralloc.c:
13439         * src/mcs51/ralloc.c:
13440         * src/pic/ralloc.c:
13441         * src/xa51/ralloc.c:
13442         * src/z80/ralloc.c:
13443
13444 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13445
13446         * src/pic/pcode.c (get_op): fix 64 bit warnings
13447         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13448         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13449         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13450         * support/regression/tests/malloc.c: fix 64 bit warnings
13451
13452 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13453
13454         * src/mcs51/gen.c (genMinus): fixed bug 696436
13455
13456 2003-03-02  Borut Razem <borut.razem AT siol.net>
13457
13458         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13459
13460 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13461
13462         * configure.in: test for mkstemp
13463         * sdccconf_in.h: add HAVE_MKSTEMP
13464
13465 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13466
13467         * device/include/ctype.h: removed warning while using --stack-auto
13468         * device/include/malloc.h: removed warning while using --stack-auto
13469         * device/include/string.h: removed warning while using --stack-auto
13470
13471 2003-02-23  Borut Razem <borut.razem AT siol.net>
13472
13473         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13474         because NDEBUG is defined (see man assert)
13475         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13476
13477 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13478
13479         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13480         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13481
13482 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13483
13484         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13485         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13486
13487 2003-02-18    <johan AT balder>
13488
13489         * as/mcs51/asmain.c (asmbl): module can start with a digit
13490         * as/z80/asmain.c (asmbl): module can start with a digit
13491
13492 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13493
13494         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13495         * src/asm.c: fix pipe() for Mingw32
13496
13497 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13498
13499         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13500         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13501         make -V work again; --c1mode reads now from stdin
13502         * doc/sdccman.lyx: added --c1mode
13503         * support/Util/SDCCerr.c: new messages for c1 mode
13504         * support/Util/SDCCerr.h: new messages for c1 mode
13505         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13506
13507 2003-02-15    <johan AT balder>
13508
13509         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13510
13511 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13512
13513         * doc/sdccman.lyx: Environment variables, -o and other minor things
13514
13515 2003-02-14    <johan AT balder>
13516
13517         * src/xa51/main.c: before anyone really tries to use it :)
13518
13519         * Install doc's in share/sdcc/doc
13520         * removed some obsolete files
13521         * Do a proper make distclean and uninstall
13522         M Makefile.common.in
13523         R sdccbuild.sh
13524         M as/Makefile
13525         M device/include/Makefile.in
13526         M device/lib/Makefile.in
13527         M doc/sdccman.lyx
13528         M link/Makefile
13529         M sim/ucsim/doc/Makefile.in
13530         M src/clean.mk
13531         R src/avr/peeph.rul
13532         R src/xa51/peeph.rul
13533         M support/cpp2/Makefile.in
13534         M support/makebin/Makefile
13535
13536
13537 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13538
13539         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13540
13541 2003-02-10  Borut Razem <borut.razem AT siol.net>
13542
13543         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13544         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13545         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13546         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13547         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13548         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13549         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13550         src/z80/Makefile.bcc: Borland Makefile cleanup
13551         * as/z80/Makefile.bcc: Added Borland Makefile
13552         * support/cpp2/borland.h: Removed
13553
13554 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13555
13556         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13557         * src/SDCC.lex: new pragma NOIV
13558         * src/SDCCglobl.h: new pragma NOIV
13559         * src/SDCCmem.c: new pragma NOIV
13560
13561 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13562
13563         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13564
13565 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13566
13567         * src/SDCCmain.c: signal handling is switched off by --debug
13568         * doc/Makefile: small fix for install; use clean.mk again
13569         * doc/clean.mk: clean *.pdf and *.html too
13570
13571 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13572
13573         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13574         * device/lib/printfl.c: fix a ds390 bug by making it portable
13575         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13576         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13577         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13578         * debugger/mcs51/cmd.c: converted multi-line string literals
13579         * sim/ucsim/globals.cc: converted multi-line string literals
13580         * src/SDCCmain.c: introduced signal handler to remove temp files
13581         * doc/Makefile: small tweaks, implement clean
13582         * doc: removed generated files
13583
13584 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13585
13586         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13587         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13588         Address Record is not correctly generated for DS390."
13589
13590 2003-02-02  Borut Razem <borut.razem AT siol.net>
13591
13592         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13593         * as/mcs51/asm.h: fixed compilation with Borland C
13594         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13595         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13596         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13597         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13598         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13599         src/z80/Makefile.bcc: delete $(LIB) only if exist
13600         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13601
13602 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13603
13604         * device/include/malloc.h: introduced NULL
13605         * device/include/string.h: introduced NULL
13606         * device/include/stdlib.h: introduced NULL
13607         * device/lib/_memcpy.c: removed NULL
13608         * device/lib/_strcat.c: removed NULL
13609         * device/lib/_strchr.c: removed NULL
13610         * device/lib/_strcmp.c: removed NULL
13611         * device/lib/_strcpy.c: removed NULL
13612         * device/lib/_strcspn.c: removed NULL
13613         * device/lib/_strlen.c: removed NULL
13614         * device/lib/_strncat.c: removed NULL
13615         * device/lib/_strncmp.c: removed NULL
13616         * device/lib/_strncpy.c: removed NULL
13617         * device/lib/_strpbrk.c: removed NULL
13618         * device/lib/_strrchr.c: removed NULL
13619         * device/lib/_strspn.c: removed NULL
13620         * device/lib/_strstr.c: removed NULL
13621         * device/lib/_strtok.c: removed NULL
13622         * device/lib/malloc.c: removed NULL, include own header
13623
13624 2003-02-02    <johan AT balder>
13625
13626         * 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
13627         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13628         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13629         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13630         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13631         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13632
13633 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13634
13635         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13636         area 'DATA'"
13637
13638 2003-02-01    <johan AT balder>
13639
13640         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13641
13642 2003-01-31    <johan AT CP255758-A>
13643
13644         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13645
13646 2003-01-30    <johan AT balder>
13647
13648         * src/SDCCBBlock.c: automatic bug detection
13649         * src/SDCCicode.c: automatic bug detection
13650
13651 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13652
13653         * src/SDCCglobl.h:   now --xram-size 0 works
13654         * src/SDCCmain.c:    now --xram-size 0 works
13655
13656 2003-01-29    <johan AT balder>
13657
13658         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13659
13660 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13661
13662         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13663         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13664         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13665         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13666         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13667         * src/SDCCmain.c:    Added options --xram-size and --code-size
13668
13669 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13670
13671         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13672         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13673
13674 2003-01-27    <johan AT balder>
13675
13676         * src/SDCC.y: fixed bug #613764
13677
13678 2003-01-26    <johan AT balder>
13679
13680         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13681         * src/SDCCsymt.h: fixed bug #673374
13682         * src/SDCCglue.c: fixed bug #661910
13683         * src/SDCCast.c: fixed bug #458099 and 673374
13684
13685 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13686
13687         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13688         * as/mcs51/strcmpi.h: added
13689         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13690         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13691         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13692         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13693         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13694         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13695         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13696         * as/mcs51/Makefile.aslink: new module strcmpi
13697         * as/mcs51/Makefile.asx8051: new module strcmpi
13698         * as/mcs51/Makefil.bcc: new module strcmpi
13699         * as/mcs51/Makefile.in: new module strcmpi
13700         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13701
13702 2003-01-26    <johan AT balder>
13703
13704         * src/SDCCglue.c: reverted back to 1.124
13705         * src/SDCCast.c: reverted back to 1.156
13706         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13707
13708 2003-01-25    <johan AT balder>
13709
13710         * src/SDCCglue.c: A better fix for bug #661910
13711         * src/SDCCast.c: A better fix for bug #661910
13712         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13713
13714 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13715
13716         * src/Makefile.in: remove spawn.o
13717         * src/SDCCmain.c: remove spawn.h
13718         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13719         * src/spawn.c: removed
13720         * src/spawn.h: removed
13721         * support/regression/ports/ds390/spec.mk: link with -r
13722
13723 2003-01-24    <johan AT CP255758-A>
13724
13725         * src/ds390/gen.c (aopOp): fixed bug #667458
13726         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13727         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13728         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13729
13730 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13731
13732         * src/mcs51/peeph.def: better assembler identation by Frieder
13733         * src/mcs51/gen.c: better assembler identation by Frieder
13734
13735 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13736
13737         * as/z80/string.h: removed for gcc 3.2
13738         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13739         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13740
13741 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13742
13743         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13744         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13745         * support/regression/Makefile: separate temp files for ports
13746         * support/regression/generate-cases.py: separate temp files for ports
13747         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13748         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13749
13750 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13751
13752         * moved tinitalk to device/examples/ds390
13753
13754 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13755
13756         * as/mcs51/lkmem.c: rflag is for DS390
13757         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13758         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13759                          (linkEdit): move mem- and map-files the same way as ihx-files
13760         * src/z80/main.c (_setDefaultOptions): removed --generic
13761         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13762         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13763         * src/pic/glue.c (picglue): --c1mode works again
13764         * src/pic16/glue.c (pic16glue): --c1mode works again
13765         * src/asm.c (printCLine): fix #660034
13766
13767 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13768
13769         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13770         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13771         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13772         * as/mcs51/lkmem (summary): better fix for sp problem
13773         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13774         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13775         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13776                                               remove --stack-after-data
13777
13778 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13779
13780         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13781         * src/SDCCutil.c (join): ugly bug: missing '\0'
13782         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13783
13784 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13785
13786         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13787         * src/port.h: typo
13788         * src/pic/main.c (_asmCmd): gpasm supports -o
13789         * src/z80/main.c: more general macros
13790         * device/lib/Makefile.in: remove intermediate files
13791
13792 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13793
13794         * .version: Bumped version number to 2.3.3
13795         * src/SDCCBBlock.c: new option -o
13796         * src/SDCCglobl.h: new option -o
13797         * src/SDCCglue.c: new option -o
13798         * src/SDCCmain.c: new option -o
13799         * src/asm.c: new option -o
13800         * src/ds390/main.c: new option -o
13801         * src/pic/glue.c: new option -o
13802         * src/pic/pcode.c: new option -o
13803         * src/pic/ralloc.c: new option -o
13804         * src/pic16/glue.c: new option -o
13805         * src/pic16/pcode.c: new option -o
13806         * src/pic16/ralloc.c: new option -o
13807         * src/z80/main.c: new option -o
13808         * device/lib/Makefile.in: use -o
13809         * support/regression/ports/ds390/spec.mk: use -o
13810         * support/regression/ports/gbz80/spec.mk: use -o
13811         * support/regression/ports/mcs51/spec.mk: use -o
13812         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13813         * support/regression/ports/z80/spec.mk: use -o
13814         * support/regression/ports/ucz80/spec.mk: use -o
13815         * support/regression/ports/xa51/spec.mk: use -o
13816         * support/regression/fwk/lib/timeout.c: fix usage string
13817
13818 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13819         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13820
13821 2003-01-07    <johan AT balder>
13822
13823         * src/SDCCast.c (decorateType): fixed bug #600035
13824
13825 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13826         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13827         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13828         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13829         * src/pic/pcode.c: outcommented unused variable to remove warnings
13830         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13831
13832 2003-01-06    <karl AT turbobit.com>
13833         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13834    regression tests.
13835
13836 2003-01-06    <johan AT balder>
13837
13838         * src/SDCCicode.c: fixed array add
13839
13840 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13841         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13842         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13843
13844 2003-01-04    <johan AT balder>
13845
13846         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13847
13848 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13849         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13850
13851 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13852         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13853         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13854
13855 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13856         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13857
13858 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13859         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13860
13861 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13862         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13863
13864 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13865
13866     * in /sdcc/as/mcs51/ changed these files in order to create an
13867     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13868     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13869     following files to include the previous two files: aslink.dsp,
13870     Makefile.aslink, Makefile.bcc, and Makefile.in.
13871
13872     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13873     .adb instead of .cdb
13874
13875 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13876
13877         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13878         value from option --iram-size.
13879
13880 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13881
13882         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13883         dram[] array.
13884
13885 2002-09-18    <wiml AT hhhh.org>
13886
13887         * SDCClrange.h: exposed setFromRange() and setToRange()
13888         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13889           packRegsForAccUse() (bug 542397)
13890         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13891           multiple times and emitting the fetch operations more than once
13892           added aopGetUsesAcc() function to allow binary operators to
13893           fetch their operands in the correct order; made genMinus() emit
13894           compact code for X = LITERAL - Y
13895
13896 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13897         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13898         sprintf() in line 1267.
13899
13900 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13901         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13902         like ports.
13903
13904 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13905         Changes to aslink (All the changes are marked with 'JCF'):
13906
13907         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13908         summary().
13909
13910         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13911         area BSEG.  Also moves, if possible, the DATA area down into the internal
13912         ram so more space is available.
13913
13914         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13915         sflag.
13916
13917         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13918         not bytes.  Function summary() which creates a memory usage summary
13919         file with extension .mem.  Reports of overlaping stack and small stack
13920         size.  If the space for the stack is less than 16 bytes aslink trows a
13921         warning.
13922
13923         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13924         the 8051.  Option 'y' for memory summary output file.
13925
13926         Changes to sdcc (All the changes are marked with 'JCF'):
13927
13928         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13929
13930         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13931         overlaying area for it (uses RegBankUsed[4]).
13932
13933         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13934         bank zero as used by default.  By default aslink locates the stack
13935         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13936         the creation of the .mem file.  Delegates the allocation of data area
13937         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13938         the begining of the stack area to aslink.
13939
13940         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13941         glue() in SDCCglue.c creates an area for it.
13942
13943 2002-09-03  Borut Razem <borut.razem AT siol.net>
13944         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13945         sdcc/src/pic/glue.c:
13946         introduced atexit() handler for teporay files removal in case of
13947         errors, assertions, ...
13948
13949 2002-08-29  Borut Razem <borut.razem AT siol.net>
13950         * sdcc/support/cpp2/auto-host_vc_in.h:
13951         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13952         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13953         Maybe there is a similar problem with BORLANDC? It should be checked!
13954
13955         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13956         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13957         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13958         was not executed, and the compiler (cl) launched a warning:
13959         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13960
13961 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13962         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13963
13964 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13965         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13966
13967         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13968           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13969           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13970           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13971           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13972           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13973           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13974         - added Release configuration in VS projects
13975         - review of compiler an linker options
13976         - VC .exe files are generated in bin_vc directory, not to interfere
13977           with binaries generated from other projects (cygwin, mingw, bcc ...)
13978
13979         * sdcc/src/yacc.dsp: added
13980
13981         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13982         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13983         and insert the version number definitions from .version
13984
13985         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13986
13987         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13988         added - genarate auto-host.h using auto-host_vc_in.h as template
13989
13990         * sdcc/sdcc_vc.h,
13991         removed from CVS, generated automatically
13992
13993 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13994         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13995
13996 2002-08-11  Borut Razem <borut.razem AT siol.net>
13997         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13998
13999 2002-08-10  Borut Razem <borut.razem AT siol.net>
14000         * src/SDCCmain.c (main):
14001         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14002         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14003         The consequence was that some temporary files were not removed.
14004
14005         * src/SDCCglue.c:
14006         unification of code in functions tempfilename() and tempfile():
14007         function tempnam() is defined in Visual Studio 6.0 and .NET
14008
14009         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14010
14011         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14012           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14013         - removed compiler command line option /WX: Treats all warnings as errors
14014         - update a list of source files, included into the project
14015
14016         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14017           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14018         changed project type to Generic Project so that can be correcly converted to VS.NET project
14019
14020         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14021
14022         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14023
14024         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14025
14026         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14027         added return 0 statements after assert() to make compiler happy
14028
14029         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14030         added newline in the def file to keep MSC compiler satisfied
14031
14032         * sdcc/src/z80/gen.c:
14033         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14034           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14035         - solved MSC error in function aopDump()
14036
14037         * sdcc_vc.h: define PREFIX as "\\sdcc"
14038
14039 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14040         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14041
14042 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14043         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14044         - Rewrote the register banking algorithm.
14045         - Added pCode live-range analysis to registers (for now, only non-used and
14046         singly-used registers optimized away)
14047
14048         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14049
14050         * 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.
14051
14052 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14053         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14054
14055 2002-04-22  Michael Hope  <michaelh AT vroom>
14056
14057         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14058
14059         * configure.in (DD_COPT): Added include support required for gbdk.
14060
14061         * .version: Bumped version number just to increase it.
14062
14063         * src/SDCCmain.c: Added -nostdinc to the default options.
14064
14065 2002-04-15  Michael Hope  <michaelh AT vroom>
14066
14067         * device/lib/z80/printf.c (sprintf): Added.
14068
14069         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14070
14071         * src/z80/peeph.def: Added transpose redundent load rule.
14072
14073         * src/z80/main.c: Added force callee saves for jaune.
14074
14075         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14076
14077         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14078
14079 2002-03-28  Johan Knol  <johan AT balder>
14080
14081         * src/SDCCval.c: fixed bug #532436
14082
14083 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14084         * /src/port.h:
14085         Added "char *Processor" field to the port structure.
14086
14087         * /src/SDCCmain.c:
14088         Added -p option. Allows port dependent processor to be specified.
14089
14090         * all ports:
14091         Initialized the new field char *Processor field to NULL in all ports
14092
14093         * /src/pic/*:
14094         Compiler generated registers for interrupt context saving
14095         were not getting allocated.
14096
14097 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14098
14099         * /src/SDCCast.c:
14100         Fixed left shift. Will promote the left side of a left shift
14101         if a) left shifting more than size of operand or b) when assigned
14102         to something size > size of left side
14103
14104 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14105         * src/pic/*
14106         tons of changes. Register allocation has been
14107         rewritten. Added customization for the various PICs. Flow
14108         analysis is restructured. ...
14109
14110         * src/pic/device.h:
14111         Added
14112
14113         * src/pic/device.c:
14114         Added. device.c is a PIC port hack to accomodate variations
14115         in PIC devices.
14116
14117 2002-03-13  Michael Hope  <michaelh AT vroom>
14118
14119         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14120
14121 2002-03-04  johanknol  <johanknol AT manik>
14122
14123         * /src/SDCCval.c: fixed
14124
14125         const unsigned char arr[][2] = { { 0, 1 } };
14126         t18.c:1: error: Initializer element is not constant
14127
14128 2002-03-04  bela  <bela AT manik>
14129
14130         * /device/include/mcs51reg.h:
14131         ds89c420 register definition update
14132
14133 2002-03-03    <johan AT FRIJA>
14134
14135         * support/Util/SDCCerr.c: did something, but don't no why anymore
14136
14137         * support/regression/tests/bug-524691.c: made it a little less shy
14138
14139         * src/SDCCast.c (decorateType): fixed bug #524697
14140
14141         * src/SDCCast.c: made some lineno improvements
14142
14143         * src/SDCCval.c (getNelements): changed warning to error
14144
14145         * src/SDCCglue.c (printIvalArray): changed warning to error
14146
14147         * src/SDCCicode.c: fixed a warning for mingw
14148
14149         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14150
14151         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14152
14153 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14154
14155         * src/ds390/peeph.def:
14156         Added some more peephole rules
14157
14158         * src/ds390/gen.c: Various fixes & enhancements
14159
14160         * src/SDCClrange.c, src/SDCClrange.h:
14161         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14162
14163         * src/ds390/ralloc.c:
14164         various fixes & enhancements (ds390) specific
14165
14166         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14167         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14168         from rallocs.
14169
14170         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14171
14172 2002-03-02    <johan AT FRIJA>
14173
14174         * src/SDCCast.c (decorateType): fixed bug #524708
14175
14176         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14177
14178         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14179
14180 2002-03-01  Michael Hope  <michaelh AT vroom>
14181
14182         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14183
14184         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14185
14186 2002-03-01    <johan AT FRIJA>
14187
14188         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14189
14190         * src/SDCCast.c (decorateType): fixed bug #524209
14191
14192         * src/SDCCval.c (valNot): fixed bug #524195
14193
14194 2002-02-26    <johan AT balder>
14195
14196         * src/xa51/gen.c: fixed a warning
14197
14198         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14199
14200         * src/SDCCast.c (decorateType): fixed bug #522534
14201
14202 2002-02-23    <johan AT balder>
14203
14204         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14205
14206 2002-02-22    <johan AT balder>
14207
14208         * src/SDCCast.c: fixed bug #514865
14209
14210         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14211
14212 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14213
14214         * sdcc/src/SDCCloop.c:
14215         Previous fix was not good. basic blocks that have "break" or "return" are
14216         not really partof a loop , but live ranges used in these blocks should
14217         be live thru the entire loop, so set partOfLoop but don't add them to
14218         loop region
14219
14220 2002-02-21    <johan AT FRIJA>
14221
14222         * src/SDCCcse.c: fixed bug #514308
14223
14224 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14225
14226         * src/SDCCloop.c:
14227         Fixed BUG #519583. If a conditional block ended in a return/break
14228         statement inside a loop, it was not being considered part of the loop.
14229
14230         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14231
14232 2002-02-10  Karl Bongers <karl AT turbobit.com>
14233
14234         * debugger/*:
14235         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14236         with lots of comments and notes.
14237
14238         * device/examples/test2.c:
14239         Fix bug, "red" variable not being initialized(compiler complained).
14240
14241         * device/examples/Makefile, examples/test3.c:
14242         Add Makefile in device/examples folder, compiles test3.c
14243         for use as a multiple module SDCDB test case.
14244
14245         * sim/ucsim/cmd.src/cmdset.cc:
14246         Took out debug printfs in ucsim "next" command.
14247
14248         * sim/ucsim/xa.src:
14249         Karl and Johan start ucsim XA support.  Most dissassembly working,
14250         about 75% emulation done(plenty of work remaining).
14251
14252         * sim/ucsim/z80.src:
14253         Add Z80 support to ucsim, add test-ucz80 regression test,
14254         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14255         Notice z80 compiler fails on examples/test3.c/crc code.
14256
14257 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14258
14259         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14260         Added support for --parms-in-bank1
14261
14262         * src/ds390/peeph.def:
14263         added a few more peephole optimzations
14264
14265         * src/ds390/main.c:
14266         1) added __builtin_inp & __builtin_outp used to read in data of given length
14267            from a memory mapped port
14268         2) added __builtin_memcmp
14269         3) added __builtin_swapw swap bytes of a short
14270
14271         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14272         1) handle multiple send & receives from register bank1
14273         2) ralloc can now allocate DPTR1 to some liveRanges
14274
14275         * src/SDCCsymt.c, src/SDCCsymt.h:
14276         changes to handle multiple sends & receives
14277
14278         * src/SDCCptropt.h:
14279         added some pointer arithmetic optimization
14280
14281         * src/SDCCptropt.c:
14282         added some pointer arithmetic optimizations but not stable yet so not
14283         called from anywhere (will get this working shortly)
14284
14285         * src/SDCCopt.c: fixed for multiple sends & receives
14286
14287         * src/SDCCmain.c:
14288         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14289         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14290            set preprocessor defines (depending on options)
14291
14292         * src/SDCCicode.c, src/SDCCicode.h:
14293         changes made to handle multiple sends & receives
14294
14295         * src/SDCCglobl.h:
14296         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14297
14298         * src/SDCCcse.c, src/SDCCcse.h:
14299         added function findbackward def (to be used in upcoming optimization)
14300
14301         * src/SDCCcflow.c, src/SDCCcflow.h:
14302         added function returnAtEnd - to determine if a basic block terminates with
14303         a RETURN iCode
14304
14305         * src/SDCCast.c, src/SDCCast.h:
14306         added option parms-in-bank1
14307
14308         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14309         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14310         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14311         adjusted for --parms-in-bank1 option
14312
14313         * device/include/string.h:
14314         donot redefine "reentrant" keyword
14315
14316         * device/include/ds80c390.h: Added some more SFRs
14317
14318 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14319
14320         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14321
14322 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14323
14324         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14325
14326 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14327
14328         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14329
14330 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14331
14332         * Added --xram-movc option
14333
14334 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14335
14336         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14337
14338 2002-01-11  Johan Knol
14339
14340         * Added math lib of Jesus Calvino-Fraga
14341
14342 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14343
14344         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14345         * support/regression/Makefile: new target test-mcs51-stack-auto
14346         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14347
14348 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14349
14350         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14351
14352 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14353
14354         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14355
14356 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14357
14358         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14359
14360         * src/SDCCglue.h: add definition for printIvalChar()
14361
14362 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14363
14364         * src/SDCCast.c: fix #498138 by Johan
14365
14366         * src/SDCCglue.c: fix #498138 by Johan
14367
14368 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14369
14370         * support/regression/Makefile: fix clean
14371
14372         * support/regression/ports/ds390/support.c: fix transmission of last character
14373
14374 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14375
14376         * /sdcc/src/ds390/gen.c:
14377         a) improved computing address of stack variable
14378         b) took out some #if 0 code
14379         c) improved parmBytes adjustment
14380         d) improved genPlusIncr & genMinusIncr
14381         e) genCmp could generate bad code (when left assigned to DPTR)
14382         f) Fixed bug in hasInc
14383
14384         * /sdcc/src/ds390/ralloc.c:
14385         a) packRegsForSupport could mess up live information (Fixed)
14386         b) packRegsDPTRuse could be incorrect for left & right shift
14387
14388         * /sdcc/src/mcs51/ralloc.c:
14389         packRegsForSupport could mess up the live information (Fixed)
14390
14391         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14392
14393         * /sdcc/src/SDCCast.c:
14394         can reverse a loop even if function call is present as long
14395         as the loop control variable is local & is not passed as parameter
14396
14397 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14398
14399         * /sdcc/ChangeLog: *** empty log message ***
14400
14401         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14402         More builtin function additions for TININative
14403
14404         * /sdcc/src/ds390/ralloc.c:
14405         Had broken the regression testsuite
14406
14407         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14408
14409         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14410         Added funcattr hasStackParms will be set for reentrant functions when there
14411         are paramteres on the stack, this helps in minimizing frame pointer generation
14412         typeFromStr can handle function pointers now
14413
14414         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14415         *** empty log message ***
14416
14417 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14418
14419         * /src/ds390/gen.c, /src/ds390/main.c:
14420         More builtin function additions for TININative
14421
14422         * /src/ds390/ralloc.c:
14423         Had broken the regression testsuite
14424
14425         * /src/SDCCast.c: Fixed a bug in dumptree
14426
14427         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14428         Added funcattr hasStackParms will be set for reentrant functions when there
14429         are paramteres on the stack, this helps in minimizing frame pointer generation
14430         typeFromStr can handle function pointers now
14431
14432         * /doc/builtins.txt, /doc/TININative.txt:
14433         *** empty log message ***
14434
14435
14436 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14437
14438         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14439         ALPHA version for -mTININative
14440
14441         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14442         updated to reflect changes in the port structure
14443
14444         * /src/port.h:
14445         added function do_assemble (similar to do_link) if non-null this function
14446         will be called to do assembly (-mTININative) requires a multi command
14447         assembly
14448         added function genAssemblerEnd will be called to generate assembler Epilogue
14449
14450         * /src/SDCCsymt.c:
14451         added _JavaNative to debug info printing
14452
14453         * /src/SDCCmain.c: added option --tini-libid
14454         added port->do_assemble function (-mTININative) has a multi command assemble
14455
14456         * /src/SDCCglue.c: Disabled "constExpr" check
14457         added port->genAssemblerEnd function
14458
14459         * /src/SDCCglobl.h: Added option --tini-libid value
14460
14461         * /src/SDCCast.h:
14462         tookout optimizeCompare from the header (has no external references)
14463
14464         * /src/SDCCast.c: made one more function "static"
14465
14466 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14467
14468         * src/z80/mappings.i: Added z80asm support.
14469
14470         * src/z80/main.c: Added z80asm support on --asm=z80asm
14471
14472         * src/z80/gen.c: Fixed asm portability issues.
14473
14474         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14475
14476         * src/SDCCglue.c (printExterns): Added global/extern split.
14477
14478 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14479
14480         * support/regression/Makefile: added test for mcs51 model large
14481
14482         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14483
14484         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14485
14486 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14487
14488         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14489
14490 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14491
14492         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14493
14494         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14495
14496 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14497
14498         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14499
14500         * support/regression/tests/simplefloat.c: Port to mcs51.
14501
14502 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14503         * support/regression/tests/bug-485362.c: Added.
14504
14505         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14506
14507         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14508
14509         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14510
14511         * src/z80/gen.c (aopDump): Added a dump function.
14512
14513 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14514         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14515
14516         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14517
14518         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14519
14520         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14521
14522         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14523
14524         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14525
14526         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14527
14528         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14529
14530         * support/regression/ports/ds390/support.c: Use tinibios.
14531
14532         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14533
14534 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14535
14536         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14537         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14538
14539         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14540
14541         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14542
14543 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14544
14545         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14546
14547         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14548         (packRegsForIYUse): Created and optimised.
14549
14550 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14551
14552         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14553 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14554
14555         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14556
14557         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14558
14559         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14560
14561 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14562
14563         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14564
14565         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14566
14567 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14568
14569         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14570
14571         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14572
14573         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14574
14575 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14576
14577         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14578         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14579         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14580
14581         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14582
14583         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14584         (genNotFloat): Added.
14585         (genUminusFloat): Added.
14586
14587         * device/lib/z80/Makefile: Added floating pt stubs.
14588
14589         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14590
14591         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14592
14593         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14594
14595 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14596
14597         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14598
14599         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14600
14601         * sdcc/support/regression/Makefile: Add port ds390.
14602
14603         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14604
14605         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14606
14607         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14608
14609         * sdcc/support/regression/ports/ds390/support.c: Added.
14610
14611         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14612
14613         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14614
14615         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14616
14617 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14618
14619         * device/include/malloc.h: Added z80 and gbz80 support.
14620
14621         * device/lib/gbz80/heap.s: Added.
14622
14623         * device/lib/z80/heap.s: Added.
14624
14625         * device/lib/malloc.c: Added z80 and gbz80 support.
14626
14627         * support/regression/tests/malloc.c (testMalloc): Added.
14628
14629         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14630
14631         * support/regression/tests/bug-478094.c: Added.
14632
14633         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14634
14635 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14636
14637         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14638
14639         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14640
14641         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14642
14643         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14644
14645         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14646
14647 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14648
14649         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14650
14651 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14652
14653         * support/regression/tests/bug-477927.c: Added.
14654
14655         * src/z80/peeph.def: Added minor rules.
14656
14657         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14658
14659         * src/z80/peeph.def: Added jump optimisation modification.
14660
14661 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14662
14663         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14664
14665 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14666
14667         * support/regression/tests/funptrs.c: Added.
14668
14669 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14670
14671         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14672
14673 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14674
14675         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14676
14677         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14678
14679         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14680         (movLeft2ResultLong): Created.
14681
14682         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14683         (joinPushes): Added.  Joins two char pushes into a word push.
14684
14685 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14686
14687         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14688
14689         * support/makebin/Makefile (install): Added creation of dest dir.
14690
14691 2001-10-24 Karl Bongers <karl AT turbobit.com>
14692
14693         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14694
14695 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14696
14697         * src/z80/ralloc.c: Turned off faulty pack for one use.
14698
14699         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14700
14701         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14702
14703 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14704
14705         * support/regression/Makefile: Improved clean
14706
14707         * support/regression/ports/gbz80/spec.mk: Added clean
14708
14709         * support/regression/ports/host/spec.mk: Added clean
14710
14711         * support/regression/ports/z80/spec.mk: Added clean
14712
14713         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14714
14715         * support/regression/ports/mcs51/timeout.c: little improvements
14716
14717 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14718
14719         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14720
14721         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14722
14723         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14724
14725 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14726
14727         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14728
14729         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14730
14731 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14732         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14733
14734         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14735
14736         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14737
14738         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14739
14740         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14741
14742         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14743
14744         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14745
14746         * support/regression/tests/longor.c: Added.
14747
14748 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14749
14750         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14751
14752         * as/mcs51/aslink.h: define PATH_MAX
14753
14754         * as/mcs51/asm.h: define PATH_MAX
14755
14756         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14757
14758         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14759
14760         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14761
14762         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14763
14764         * src/SDCCglobl.h: define PATH_MAX
14765
14766         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14767
14768         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14769
14770 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14771
14772         * src/z80/gen.c (gencjneshort): Fixed
14773
14774         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14775
14776 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14777
14778         * support/regression/tests/bug-469671.c: Added.
14779
14780         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14781
14782 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14783
14784         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14785
14786         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14787
14788 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14789
14790         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14791
14792         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14793
14794         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14795
14796         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14797
14798         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14799
14800         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14801
14802         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14803
14804 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14805
14806         * 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.
14807
14808         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14809
14810         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14811
14812 2001-10-07    <johan AT FRIJA>
14813
14814         * device/lib/gets.c (gets): fixed the return value.
14815
14816 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14817         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14818
14819         * 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.
14820
14821         * 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.
14822
14823         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14824
14825         * src/pic/gen.c: Removed Safe_strdup.
14826
14827         * configure.in: Added option to enable libgc support.
14828
14829         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14830         (bitVectUnion): Optimised.
14831         (bitVectIntersect): Optimised.
14832         (bitVectBitsInCommon): Optimised.
14833         (bitVectCplAnd): Optimised.
14834
14835         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14836
14837 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14838
14839         * src/SDCCmain.c: distinguish between assembler debug and plain options
14840
14841         * src/avr/main.c:   remove standard assembler options
14842
14843         * src/ds390/main.c: remove standard assembler options
14844
14845         * src/mcs51/main.c: remove standard assembler options
14846
14847         * src/port.h: removed "PENDING" comment
14848
14849 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14850
14851         * src/device/lib/_mulint.c  : new, with assember functions
14852
14853         * src/device/lib/_mullong.c : new, with assember functions
14854
14855         * src/device/lib/_divuint.c : with assember functions
14856
14857         * src/device/lib/_divsint.c : with assember functions
14858
14859         * src/device/lib/_divulong.c: with assember functions
14860
14861         * src/device/lib/_divslong.c: with assember functions
14862
14863         * src/device/lib/_moduint.c : with assember functions
14864
14865         * src/device/lib/_modsint.c : with assember functions
14866
14867         * src/device/lib/_modulong.c: with assember functions
14868
14869         * src/device/lib/_modslong.c: with assember functions
14870
14871         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14872
14873         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14874
14875         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14876                                       replaced _mululong.c and _mulslong.c by _mullong.c
14877
14878 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14879
14880         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14881
14882 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14883
14884         * src/SDCCglue.c: test, if win32api is available for MINGW
14885
14886 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14887
14888         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14889         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14890         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14891         * support/regression/ports/host/spec.mk: removed GENERIC
14892         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14893         * support/regression/ports/z80/spec.mk: removed GENERIC
14894
14895 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14896
14897         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14898
14899         * support/regression/tests/bug-467035.c: Created.
14900
14901 2001-10-01    <johan AT FRIJA>
14902
14903         * src/SDCC.y: fixed bug #466586 part 1
14904
14905 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14906
14907         * SDCCicode.c: z80 has no generic pointers
14908         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14909
14910 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14911
14912         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14913
14914 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14915
14916         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14917
14918         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14919
14920 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14921
14922         * configure.in: Fixed up so that ucsim is only configured once.
14923
14924         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14925
14926         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14927         (getPathDifference): As above.
14928
14929         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14930
14931         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14932
14933 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14934         * .version: Updated to 2.3.1
14935
14936         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14937         Added copyright header.
14938
14939         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14940         (assemble): Added support for macro based assembler commands.
14941         (linkEdit): Added support for macro based linker commands.
14942         (preProcess): Changed the pre-processor to use macros.
14943         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14944         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14945
14946         * device/lib/z80/crt0.s: Added module name for debugging.
14947
14948 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14949
14950         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14951
14952         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14953
14954         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14955
14956         * src/Makefile.in: Added SDCCmacro and SDCCutil
14957
14958 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14959
14960         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14961
14962 2001-09-16    <johan AT FRIJA>
14963
14964         * 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.
14965
14966 2001-09-15    <johan AT FRIJA>
14967
14968         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14969         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14970
14971 2001-09-11    <johan AT FRIJA>
14972
14973         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14974
14975 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14976
14977         * support/regression/tests/bug-460444.c: Added test case.
14978
14979         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14980         (genCast): Added justification for all of the asserts.
14981
14982 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14983
14984         * support/regression/support.c: _xdata replaced by xdata
14985
14986         * support/regression/spec.mk: removed _generic
14987
14988 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14989
14990         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14991
14992         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14993         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14994
14995         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14996
14997         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14998
14999         * support/regression/tests/bug-460010.c: Added test case.
15000
15001         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15002
15003 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15004
15005         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15006
15007         * support/regression/testfwk.c: removed workaround for bug #436344
15008
15009         * support/regression/tests/bp.c: use less memory with mcs51
15010
15011         * support/regression/tests/bug-441448.c: use less memory
15012
15013         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15014
15015         * support/regression/collate-results.py: typo
15016
15017 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15018
15019         * support/regression/tests/fetchoverlap.c: Added new test case.
15020
15021         * support/regression/tests/bp.c: Added new test case.
15022
15023         * support/regression/tests/bug-448984.c: Added new test case.
15024
15025         * support/regression/tests/pow2shifts.c: Added new test case.
15026
15027         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15028         (genlshTwo): Fixed right shift for count > 8.
15029
15030         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15031
15032 2001-09-08    <johan AT FRIJA>
15033
15034         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15035
15036 2001-09-07    <johan AT FRIJA>
15037
15038         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15039
15040         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15041
15042 2001-09-06    <johan AT FRIJA>
15043
15044         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15045         * bernhard noted me at this: "() equals to (void)" (1.38)
15046
15047 2001-09-05    <johan AT FRIJA>
15048
15049         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15050
15051 2001-09-04    <johan AT FRIJA>
15052
15053         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15054
15055
15056 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15057
15058         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15059
15060 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15061
15062         * link/z80/aslink.h: Fixed path for PATH_MAX
15063
15064 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15065
15066         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15067
15068         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15069
15070         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15071
15072         * 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.
15073
15074 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15075
15076         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15077         (genCmp): Fixed up genCmp for the GB with longs.
15078
15079         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15080
15081         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15082
15083         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15084
15085         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15086
15087 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15088
15089         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15090
15091 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15092
15093         * 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.
15094
15095         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15096
15097 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15098
15099         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15100
15101         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15102
15103 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15104
15105   * sim/ucsim/configure:    little improvement of Cygwin-detection
15106   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15107   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15108   * support/regression/tests/bug-221100.c: small changes for mcs51
15109   * support/regression/tests/bug-221168.c: small changes for mcs51
15110   * support/regression/tests/bug-227710.c: small changes for mcs51
15111   * support/regression/tests/staticinit.c: small changes for mcs51
15112   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15113   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15114   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15115
15116 $Revision$