b4823f368ddb553f6f6b039b2d465b286ff56551
[fw/sdcc] / ChangeLog
1 2007-06-13 Raphael Neider <rneider AT web.de>
2
3         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
4
5 2007-06-12 Raphael Neider <rneider AT web.de>
6
7         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
8           suppress bit defines if NO_BIT_DEFINES is #define'd
9         * device/include/pic/pic*.h: recreated all headers to include
10           conditional bit defines
11         * device/include/pic/pic16f886.h,
12         * device/include/pic/pic16f887.h: fixed based on newer .inc file
13         * device/include/pic/recreate.sh: script to recreate the complete
14           device library files based on the currently supported devices
15
16 2007-06-12 Borut Razem <borut.razem AT siol.net>
17
18         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
19           support/regression/Makefile.in, support/scripts/build.mak,
20           support/scripts/Makefile.snapshot:
21           use new svn URL scheme
22         * doc/sdccman.lyx: SDCC Wiki moved to
23           http://sdcc.wiki.sourceforge.net/
24
25 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
26
27         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
28         * support/regression/tests/bug1734654.c: added
29
30 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
31
32         * src/SDCCast.c (decorateType): optimized '?' for equal operands
33         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
34           with literal operands
35
36 2007-06-10 Borut Razem <borut.razem AT siol.net>
37
38         * as/link/z80/lklibr.c: fixed mingw build warning
39           lklibr.c:575: warning: implicit declaration of function 'tolower'
40         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
41           src/z80/main.c: move target specific options from src/SDCCmain.c
42           to src/<target>/main.c
43
44 2007-06-09 Borut Razem <borut.razem AT siol.net>
45
46         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
47           removed unused swap_sense; removed outBitCLong, replaced with outBitC
48         * support/regression/tests/bug-1294691.c: added
49
50 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
51
52         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
53           can also be static, fixes bug 1733438
54         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
55           have absolute address too
56           (computeType): added optimization for 'cond ? true : false'
57         * support/regression/tests/absolute.c: added test for static absolute var
58
59 2007-06-08 Raphael Neider <rneider AT web.de>
60
61         * src/regression/Makefile: suppress parallel builds, allow easy
62           switching between pic14/pic16 ports
63         * src/regression/picregs.h: added pic14/16 header file switch
64         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
65           inline.c,nestfor.c,string1.c}: include "picregs.h"
66
67 2007-06-07 Borut Razem <borut.razem AT siol.net>
68
69         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
70           permanent solution to suppress GCC 4.2.0 c++ warning:
71           deprecated conversion from string constant to `char *'
72           use 'const char *' where ever required
73         * support/regression/generate-cases.py: implemented more flexible rule
74           for detection of testing functions, allowing white-spaces surrounding
75           the function name and the 'void' parameter.
76         * support/regression/tests/constantRange.c,
77           support/regression/tests/scott-compare3.c: fixed failing regression
78           tests, uncovered by implementation of more flexible rule for detection
79           of testing functions
80
81 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
82
83         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
84
85 2007-06-04 Borut Razem <borut.razem AT siol.net>
86
87         * configure.in, configure, config_vc.awk: sdcc version number is now
88           stored in configure.in; removed .version
89         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
90           doc/INSTALL.txt: version bumped to 2.7.2
91         * sim/ucsim/configure.in, sim/ucsim/configure:
92           use "read" to read from .version
93
94 2007-06-03 Borut Razem <borut.razem AT siol.net>
95
96         * */Makefile.in: removed annoying warning:
97           Makefile:xx: Makefile.dep: No such file or directory
98
99 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
100
101         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
102           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
103         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
104         * src/SDCCast.c (resultTypePropagate): propagate for '!',
105           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
106           bugfix: only use newBoolLink for bit result type
107         * src/SDCCicode.c (geniCodeLogic): added param tree,
108           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
109           (geniCodeLogicAndOr): use IS_BIT,
110           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
111           (ast2iCode): added tree param to geniCodeLogic for comparisons
112         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
113         * support/regression/tests/bug1723128.c: added test NotZero
114
115 2007-06-01 Borut Razem <borut.razem AT siol.net>
116
117         * SDCPP synchronized with GCC CPP release version 4.2.0,
118           currently the latest release:
119         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
120           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
121           support/cpp2/cppdefault.h, support/cpp2/except.h,
122           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
123           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
124           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
125           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
126           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
127           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
128           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
129           support/cpp2/opts.h, support/cpp2/output.h,
130           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
131           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
132           support/cpp2/system.h, support/cpp2/version.c,
133           support/cpp2/Makefile.in: modified
134         * support/cpp2/opts-common.c: added
135         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
136         * device/lib/pic16/libdev/pic18f[24]5j10.c:
137           search for included source file in local directory
138         * sim/ucsim/configure, sim/ucsim/configure.in:
139           temporary solution to suppress GCC 4.2.0 c++ warning:
140           deprecated conversion from string constant to `char *'
141
142 2007-06-01 Raphael Neider <rneider AT web.de>
143
144         * device/lib/pic/libdev/pic12f683.c,
145         * device/include/pic/pic12f683.h: added GPIO bits
146
147 2007-06-01 Raphael Neider <rneider AT web.de>
148
149         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
150           quotation marks, clarified role of PIC14 vs. PIC16 ports
151         * src/pic16/devices.inc,
152         * device/include/pic16/pic18fregs.h,
153         * device/include/pic16/pic18f[24][45]j10.h,
154         * device/lib/pic16/pics.all,
155         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
156           18f24j10, 18f25j10, 18f44j10, and 18f45j10
157         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
158           for new devices as they are not yet supported by gputils
159
160 2007-05-31 Borut Razem <borut.razem AT siol.net>
161
162         * Small Device C Compiler 2.7.0 released
163         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
164           changed sdcc version to 2.7.1
165         * support/scripts/sdcc.nsi: added How to create WIN32 release
166           setup.exe package
167
168 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
169
170         * doc/sdccman.lyx: documented initialization and allocation of absolute
171           variables, bit parameter passing, the need for function pointers to be
172           reentrant and alpha quality support of inline and retrict
173
174 2007-05-26 Borut Razem <borut.razem AT siol.net>
175
176         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
177           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
178         * docs/knownbugs.html: updated
179
180 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
181
182         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
183           thanks Jan Waclawek
184         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
185           AOP_CRY and ruonly
186           (gencjneshort): optimized when left is AOP_DIR
187         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
188           initializing unions in a struct/array
189         * support/regression/fwk/include/testfwk.h: added defines for data, near
190           and far for host and z80
191         * support/regression/tests/bug1723128.c: new, added
192
193 2007-05-22 Borut Razem <borut.razem AT siol.net>
194
195         * doc/knownbugs.html: updated
196
197 2007-05-21 Raphael Neider <rneider AT web.de>
198
199         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
200           error message instead
201         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
202
203 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
204
205         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
206
207 2007-05-21 Raphael Neider <rneider AT web.de>
208
209         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
210           closes #1722392
211         * src/regression/gpsim_assert.h,
212         * src/regression/Makefile,
213         * src/regression/pcodeopt.c: regression test for the above fix
214
215 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
216
217         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
218           jumps to self, fixed bug 1717281
219
220 2007-05-10 Borut Razem <borut.razem AT siol.net>
221
222         * support/scripts/gen_known_bugs.pl: cosmetic fix
223         * doc/knownbugs.html: generated by gen_known_bugs.pl
224
225 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
226
227         * src/SDCCast.c (createFunction): also generate non-inlined version of
228           function for functions declared as "static inline"
229         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
230           function can be inlined after non-inlined version generated.
231
232 2007-05-10 Borut Razem <borut.razem AT siol.net>
233
234         * support/scripts/gen_known_bugs.pl: added script
235           which generates knownbugs.html
236
237 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
238
239         * doc/knownbugs.html: updated for release 2.7.0
240
241 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
242
243         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
244
245 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
246
247         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
248           (throughout): updated generating comments
249         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
250           (throughout): updated generating comments
251         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
252           rule instead of at the second, or it might skip lines when removing the
253           complete match
254         * support/regression/tests/bug1714204.c: changed test to foo
255
256 2007-05-08 Borut Razem <borut.razem AT siol.net>
257
258         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
259           thanks to SDCC Distributed Compile Farm members,
260           added Z80 and GBZ80 command line options
261         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
262
263 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
264
265         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
266         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
267         * support/regression/tests/longlit.c: modified to be tested at all and
268           to pass the actual test
269
270 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
271
272         * device/include/mcs51/uPSD33xx.h: Added.
273
274 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
275
276         * device/lib/_gptrput.c,
277         * device/lib/_gptrget.c: removed old code,
278          (_gptrgetWord),
279         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
280         * support/regression/tests/bug1714204.c: new, added
281
282 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
283
284         * support/regression/tests/regtrack.c: test was never executed
285           because of the regression test being picky about white spaces.
286         * device/lib/mcs51/crtclear.asm: added comment
287
288 2007-05-06 Raphael Neider <rneider AT web.de>
289
290         * device/lib/pic/Makefile.rules,
291         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
292           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
293
294 2007-05-06 Raphael Neider <rneider AT web.de>
295
296         * src/pic16/device.h,
297         * src/pic16/main.h,
298         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
299           _pic16_setDefaultOptions): removed/reordered command-line args
300         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
301           devices, regrouped command line args, environment variables),
302           clarified sone points, added sections on how to add devices to the
303           PIC14/PIC16 ports
304
305 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
306
307         * src/z80/peeph.def: fixed bug in rule 2
308
309 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
310
311         * src/port.h: added TARGET_MCS51_LIKE
312         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
313           take advantage of it too
314         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
315           (shiftR2Left2Result): Optimized: don't check shifting by 0
316         * src/z80/peeph-z80.def,
317         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
318           modifications, see patch 1700823
319         * src/mcs51/peep.c (): fixed bug 1712928
320         * support/regression/tests/bug1712928.c: new, added
321
322 2007-05-05 Borut Razem <borut.razem AT siol.net>
323
324         * device/lib/pic16/Makefile.common.in,
325           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
326           removed bash dependencies
327
328 2007-05-01 Borut Razem <borut.razem AT siol.net>
329
330         * src/SDCCicode.c:
331           fixed bug #1710507: --i-code-in-asm makes compile fail
332           all iCode comments are now one liners
333         * src/mcs51/gen.c: fixed memory leak
334
335 2007-05-01 Raphael Neider <rneider AT web.de>
336
337         * device/lib/pic/libdev/*.c
338         * device/include/pic/*.h: regenerated all device libs from updated
339           .inc files
340         * support/scripts/inc2h.pl: documented usage, now uses strict to
341           catch more bugs
342
343 2007-04-30 Borut Razem <borut.razem AT siol.net>
344
345         * doc/sdccman.lyx:
346           fixed bug #1669175: Problem with space in output paths
347           documented how to use paths with spaces for Windows users
348
349 2007-04-29 Borut Razem <borut.razem AT siol.net>
350
351         * Fixed svn:eol-style and svn:keywords properties
352         * src/SDCCval.c: fixed bug
353           #1592871: Segfault with "large" const arrays of characters
354           replaced recursion with iteration
355         * Removed svn:executable property from non-executable files
356
357 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
358
359         * src/mcs51/gen.c (genRet): fixed bug 1707003
360
361 2007-04-27 Raphael Neider <rneider AT web.de>
362
363         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
364           createReachingDefinitions,assignValnums,pic16_destructDF,
365           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
366           prevent NULL pointer dereferences
367         * device/lib/pic/libdev/pic16f886.c,
368         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
369           prevent building them, gputils do not really support them yet
370
371 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
372
373         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
374           helps printf_small. 32 bytes more __idata mem.
375
376 2007-04-27 Raphael Neider <rneider AT web.de>
377
378         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
379           return early when pb or pb->pcHead is NULL (patch #1708427)
380         * src/regression/empty.c,
381         * src/regression/Makefile: added test with empty functions
382         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
383
384 2007-04-27 Borut Razem <borut.razem AT siol.net>
385
386         * src/SDCCast.c: fixed feature request
387           #1547512: Redundant strings linked when using sizeof("abc")
388
389 2007-04-23 Borut Razem <borut.razem AT siol.net>
390
391         * doc/sdccman.lyx, src/SDCCmain.c:
392           peep-hole comments are generated only if --fverbose-asm option is
393           specified and --no-peep-comments is not, as proposed by Frieder.
394         * support/regression/Makefile.in: compile regression tests with
395           --fverbose-asm option so one can "grep" whether a new (or an old)
396           peephole is (still) applied; requested by Frieder.
397
398 2007-04-23 Kevin Buettner <kevin AT buettner.to>
399
400         * device/include/pic/pic16f886.h,
401         * device/include/pic/pic16f887.h,
402         * device/lib/pic/libdev/pic16f886.c,
403         * device/lib/pic/libdev/pic16f887.c,
404         * device/include/pic/pic14devices.txt,
405         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
406
407 2007-04-23 Kevin Buettner <kevin AT buettner.to>
408
409         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
410           fixes #1704666
411
412 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
413
414         * device/lib/_memset.c: assembler version for mcs51
415
416 2007-04-22 Borut Razem <borut.razem AT siol.net>
417
418         * support/scripts/listerr.c: program to create the list of errors and
419           warnings list from - added
420         * doc/sdccman.lyx: removed the note
421           "For list of warnings and corresponding codes, see err_warn.txt"
422         * src/SDCCsymt.c: fixed bug #1699804:
423           Bug with some uses of sizeof(static local array) (MCS51)
424         * support/regression/tests/bug-1699804.c: added
425
426 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
427
428         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
429           (main): added option -i,
430           (asmbl, case S_INCL): use search_path_fopen,
431           mostly from patch 1579668 by Peter Miller, thanks
432         * src/z80/main.c: fixed typo --callee-saves-bc
433         * device/include/mcs51/compiler.h: added sfrword for Tasking
434
435 2007-04-20 Borut Razem <borut.razem AT siol.net>
436
437         * src/z80/main.c: replaced reserved keyword asm with asmblr
438
439 2007-04-19 Borut Razem <borut.razem AT siol.net>
440
441         * src/port.h: use const pointers to strings
442         * src/SDCCargs.h: declared getStringArg() and getIntArg()
443         * src/pic16/main.c: include SDCCargs.h
444         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
445           const char, since the strings are dynamically allocated
446         * src/SDCCmain.c: options.code_seg and options.const_seg are
447           dynamically allocated; check port specific command line options
448           before the general ones
449         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
450
451 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
452
453         * device/include/ds400rom.h,
454         * device/lib/ds390/lcd390.c,
455         * device/lib/ds390/memcpyx.c,
456         * device/lib/ds390/rtc390.c,
457         * device/lib/ds400/ds400rom.c,
458         * device/lib/ds400/memcpyx.c,
459         * device/lib/hc08/_ret.c: more replacements of keywords with their
460           double underscore equivalents
461         * device/lib/ds390/Makefile.in,
462         * device/lib/ds400/Makefile.in,
463         * device/lib/gbz80/Makefile.in,
464         * device/lib/hc08/Makefile.in,
465         * device/lib/mcs51/Makefile.in,
466         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
467
468 2007-04-17 Borut Razem <borut.razem AT siol.net>
469
470         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
471           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
472           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
473           to --fverbose-asm, to be gcc'ish
474
475 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
476
477         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
478
479 2007-04-17 Borut Razem <borut.razem AT siol.net>
480
481         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
482         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
483           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
484           with their double underscore equivalent
485
486 2007-04-14 Borut Razem <borut.razem AT siol.net>
487
488         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
489           source"
490
491 2007-04-13 Borut Razem <borut.razem AT siol.net>
492
493         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
494           C99 standard
495         * device/examples/serialcomm/windows/serial.[ch],
496           device/examples/serialcomm/windows/test_serialcomm.cpp:
497           updated by Bela Torok
498         * device/examples/serialcomm/windows/serialcomm.dsw,
499           device/examples/serialcomm/windows/serialcomm.dsp: added
500
501 2007-04-13 Jan Waclawek <wek AT efton.sk>
502
503         * doc/sdccman.lyx: additions and changes at various places
504           (submitted as #1697136).
505           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
506
507 2007-04-10 Borut Razem <borut.razem AT siol.net>
508
509         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
510           LyX file format changed to 245
511         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
512           "FreeWare" replaced with "free open source"
513
514 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
515
516         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
517
518 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
519
520         * device/include/pic16/pic18fregs.h,
521         * device/lib/_bp.c,
522         * device/lib/_decdptr.c,
523         * device/lib/_divsint.c,
524         * device/lib/_divslong.c,
525         * device/lib/_divuint.c,
526         * device/lib/_divulong.c,
527         * device/lib/_fs2schar.c,
528         * device/lib/_fs2sint.c,
529         * device/lib/_fs2slong.c,
530         * device/lib/_fs2uchar.c,
531         * device/lib/_fs2uint.c,
532         * device/lib/_fs2ulong.c,
533         * device/lib/_fsadd.c,
534         * device/lib/_fscmp.c,
535         * device/lib/_fsdiv.c,
536         * device/lib/_fseq.c,
537         * device/lib/_fsget1arg.c,
538         * device/lib/_fsget2args.c,
539         * device/lib/_fsgt.c,
540         * device/lib/_fslt.c,
541         * device/lib/_fsmul.c,
542         * device/lib/_fsneq.c,
543         * device/lib/_fsnormalize.c,
544         * device/lib/_fsreturnval.c,
545         * device/lib/_fsrshift.c,
546         * device/lib/_fssub.c,
547         * device/lib/_fsswapargs.c,
548         * device/lib/_gptrget.c,
549         * device/lib/_gptrgetc.c,
550         * device/lib/_gptrput.c,
551         * device/lib/_logexpf.c,
552         * device/lib/_modsint.c,
553         * device/lib/_modslong.c,
554         * device/lib/_moduint.c,
555         * device/lib/_modulong.c,
556         * device/lib/_mulint.c,
557         * device/lib/_mullong.c,
558         * device/lib/_schar2fs.c,
559         * device/lib/_ser.c,
560         * device/lib/_setjmp.c,
561         * device/lib/_sint2fs.c,
562         * device/lib/_slong2fs.c,
563         * device/lib/_spx.c,
564         * device/lib/_uchar2fs.c,
565         * device/lib/_uint2fs.c,
566         * device/lib/_ulong2fs.c,
567         * device/lib/asincosf.c,
568         * device/lib/atanf.c,
569         * device/lib/calloc.c,
570         * device/lib/ds390/tinibios.c,
571         * device/lib/ds400/tinibios.c,
572         * device/lib/expf.c,
573         * device/lib/free.c,
574         * device/lib/hc08/_mulint.c,
575         * device/lib/logf.c,
576         * device/lib/malloc.c,
577         * device/lib/printf_fast.c,
578         * device/lib/printf_tiny.c,
579         * device/lib/printfl.c,
580         * device/lib/realloc.c,
581         * device/lib/ser_ir.c,
582         * device/lib/serial.c,
583         * support/regression/tests/libmullong.c: replaced all special keywords
584           with their double underscore equivalent
585         * support/regression/ports/mcs51-xstack-auto/spec.mk,
586         * device/lib/Makefile.in: compile libs with --std-c99 instead of
587           --std-sdcc99
588         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
589           (genRet): if the bit-symbol is ruonly it already is in the carry
590         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
591         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
592         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
593           type UCHAR if dest is not bit
594
595 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
596
597         * device/include/math.h,
598         * device/lib/cotf.c,
599         * device/lib/expf.c,
600         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
601
602 2007-04-01 Borut Razem <borut.razem AT siol.net>
603
604         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
605           fixed bug #1692042: input buffer overflow...scanner uses REJECT
606         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
607           gcc_unreachable() called internal_error()...
608
609 2007-03-30 Raphael Neider <rneider AT web.de>
610
611         * src/pic/ralloc.c (isData): suppress garbage debug output
612
613 2007-03-28 Borut Razem <borut.razem AT siol.net>
614
615         * doc/sdccman.lyx:
616           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
617           is developed, built and used worldwide, and the word "night" doesn't
618           make any sense.
619
620 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
621
622         * device/include/mcs51/C8051F360.h: new, added
623         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
624
625 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
626
627         * src/SDCC.y (declaration_specifiers, function_specifier),
628         * support/Util/SDCCerr.c,
629         * support/Util/SDCCerr.h,
630         * src/SDCCsymt.h,
631         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
632           inline keyword
633         * src/SDCCmem.c (deallocParms),
634         * src/SDCCast.c: support for function inlining, not quite complete
635         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
636           'restrict' qualifier
637
638 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
639
640         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
641           (saveRBank, unsaveRBank): don't save bits,
642           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
643         * support/regression/tests/bug1535242.c: new, added
644         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
645           thanks Alexey Shamrin <shamrin AT gmail.com>,
646           made assert.h header ANSI compliant (added a check for NDEBUG macro,
647           removed header guard)
648         * .version,
649         * sdcc.spec: bumped version to 2.6.5
650         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
651
652 2007-03-22 Borut Razem <borut.razem AT siol.net>
653
654         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
655           fixed bug #1653671: sdcdb integration into ddd is broken
656
657 2007-03-22 Raphael Neider <rneider AT web.de>
658
659         * src/pic/gen.c (popGetExternal): augmented to also create references
660           to external variables (not only labels),
661           (genCall): comment on plan to reduce PAGESEL overhead,
662           (genFunction, genEndFunction): also save/restore FSR around interrupt
663           handling code, removed lots of unused code
664           (genDivOneByte): release acquired temp register
665         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
666           of popGetExternal
667         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
668           for registers that need to be saved during interrupts (FSR, STATUS,
669           PCLATH; W needs special handling), currently only FSR is used
670
671 2007-03-22 Raphael Neider <rneider AT web.de>
672
673         * device/include/pic/pic14devices.txt: 16f688 has only one config word
674
675 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
676
677         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
678
679 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
680
681         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
682
683 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
684
685         * as/link/aslink.h: added LKOBJEXT
686         * as/link/hc08/link_hc08.dsp,
687         * as/link/hc08/Makefile.bcc,
688         * as/link/hc08/Makefile.in,
689         * as/link/mcs51/aslink.dsp,
690         * as/link/mcs51/Makefile.bcc,
691         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
692         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
693         * as/link/lkaomf51.c: merged and moved
694         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
695         * as/link/z80/lkdata.c,
696         * as/link/lkdata.c: merged and moved
697         * as/link/hc08/lkmain.c,
698         * as/link/mcs51/lkmain.c: cosmetic changes
699         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
700         * as/link/lklex.c: use LKOBJEXT
701         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
702           ANSI-fied functions, removed bubble-sorts
703         * as/link/z80/lksym.c           as/link/lksym.c: merged,
704           ANSI-fied functions
705         * as/link/z80/linkgbz80.dsp,
706         * as/link/z80/linkz80.dsp,
707         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
708           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
709         * as/link/z80/lkhead.c,
710         * as/link/z80/lklex.c: deleted
711         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
712         * as/link/z80/lkmain.c: added copyfile()
713
714 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
715
716         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
717
718 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
719
720         * device/lib/_strlen.c: assembler version for mcs51
721
722 2007-03-13 Raphael Neider <rneider AT web.de>
723
724         * device/include/pic16/pic18f2221.h,
725         * device/include/pic16/pic18f2321.h,
726         * device/include/pic16/pic18f2331.h,
727         * device/include/pic16/pic18f4221.h,
728         * device/include/pic16/pic18f4321.h,
729         * device/include/pic16/pic18f4331.h: fixed config byte location names
730         * support/scripts/inc2h-pic16.pl: removed debug output, emit
731           consistently named config byte locations
732
733 2007-03-13 Borut Razem <borut.razem AT siol.net>
734
735         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
736           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
737           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
738           as/link/z80/Makefile.in, as/z80/Makefile.in:
739           introduced LDFLAGS
740
741 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
742
743         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
744         * device/lib/printf_large.c: pointer was converted to generic
745         pointer for mcs51 models other than model-small (Maarten noticed)
746
747 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
748
749         * device/include/mcs51/ADuC84x.h: Added.
750
751 2007-03-10 Borut Razem <borut.razem AT siol.net>
752
753         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
754           fixed RFE #1624219: double backslashes in filenames;
755           functions hexEscape(), octalEscape() and copyStr() moved from
756           SDCCval.c to SDCCutil.c and made them glovbally available
757
758 2007-03-09 Borut Razem <borut.razem AT siol.net>
759
760         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
761           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
762           1673361: Missaligned comments in output files
763
764 2007-03-09 Raphael Neider <rneider AT web.de>
765
766         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
767
768 2007-03-09 Raphael Neider <rneider AT web.de>
769
770         * src/pic/gen.c,
771         * src/pic/glue.c,
772         * src/pic/ralloc.c: suppress undesired debug output
773         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
774
775 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
776
777         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
778
779 2007-03-07 Borut Razem <borut.razem AT siol.net>
780
781         * device/lib/pic16/libdev/pic18f[24][34]31.c:
782           search include files in the current directory
783
784 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
785
786         * src/SDCCglue.c (emitMaps, glue),
787         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
788           absolute xdata
789         * support/regression/tests/absolute.c: added xdata test
790
791 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
792
793         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
794           added condition to macro, fixes bug 1666080
795
796 2007-03-02 Raphael Neider <rneider AT web.de>
797
798         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
799
800 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
801
802         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
803         be cleared. Unconditionally set __XPAGE
804         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
805
806 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
807
808         * src/SDCCglobl.h,
809         * src/SDCCmain.c,
810         * src/mcs51/gen.c,
811         * src/mcs51/rtrack.c,
812         * src/ds390/gen.c,
813         * doc/sdccman.lyx: added --no-gen-comments
814         * src/mcs51/peeph.def: added 192.b, disabled 185
815
816 2007-02-25 Raphael Neider <rneider AT web.de>
817
818         * src/pic16/gen.c (genCast): fixed typo
819         * device/lib/pic16/Makefile.subdir: only install existing files
820         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
821
822 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
823
824         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
825         * device/lib/mcs51/crtclear.asm,
826         * device/lib/mcs51/crtxclear.asm: renumbered labels
827         * device/lib/mcs51/Makefile.in: added crtcall.asm
828         * doc/sdccman.lyx: documented mcs51 crt* library startup code
829         * src/mcs51/gen.c (movc): removed,
830           (aopGet, genPlusBits): clear a after loading the carry (possibly from
831             acc.x or psw.x),
832           (toCarry, genSend, genRet): added function toCarry,
833           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
834           (assignBit, genAssign, genCast): added function assignBit
835         * src/mcs51/Makefile.bcc: added rtrack.c
836         * src/mcs51/ralloc.h: made valueKnown a bitfield
837         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
838           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
839           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
840         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
841         * src/z80/gen.c: added AOP_IS_PAIRPTR,
842           (_pop): only pop valid pairs, see gencjneshort,
843           (gencjneshort): return pair that still needs to be popped, restructured,
844           (gencjne, genCmpEq): call _pop
845
846 2007-02-23 Raphael Neider <rneider AT web.de>
847
848         * device/include/pic/pic14devices.txt: 16f684 has only one config word
849
850 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
851
852         * device/include/mcs51/P89LPC925.h: Added.
853
854 2007-02-18 Raphael Neider <rneider AT web.de>
855
856         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
857
858 2007-02-17 Borut Razem <borut.razem AT siol.net>
859
860         * support/cpp2/directives.c, support/cpp2/version.c:
861           synchronized with GCC CPP 4.1.2
862
863 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
864
865         * src/mcs51/rtrack.h,
866         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
867           by checking the strings passed by emitcode() to the assembler.
868           Feel free to change. This in part addresses RFE #482179.
869           Set environment variable SDCC_RTRACK to enable.
870         * src/mcs51/gen.c: inserted hooks
871         * src/mcs51/ralloc.h: added two members to struct regs
872         * support/regression/tests/regtrack.c: added
873
874 2007-02-14 Borut Razem <borut.razem AT siol.net>
875
876         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
877         * Makefile.in: applied patch from Makefile related part of
878           #1469393: Compiler does not initialize static data
879
880 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
881
882         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
883           for better fix of bug 1273984, compiles pic16 rand.c
884
885 2007-02-12 Borut Razem <borut.razem AT siol.net>
886
887         * src/pic16/main.c: fixed pic16 standard library directory bug
888
889 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
890
891         * src/hc08/gen.c (genSwap): fix swap regression test
892
893 2007-02-10 Borut Razem <borut.razem AT siol.net>
894
895         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
896           with same scope
897         * support/regression/tests/bug-1654060.c: added regression test for
898           #1654060
899
900 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
901
902         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
903         bit moves in return statement
904
905 2007-02-09 Borut Razem <borut.razem AT siol.net>
906
907         * src/SDCC.y: fixed bug #1654060 typedef within function causes
908           syntax error
909
910 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
911
912         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
913         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
914
915 2007-02-07 Raphael Neider <rneider AT web.de>
916
917         * src/pic16/devices.inc,
918         * device/include/pic16/pic18fregs.h,
919         * device/include/pic16/pic18f[24][34]31.h,
920         * device/lib/pic16/libdev/pic18f[24][34]31.c,
921         * device/lib/pic16/pics.all: added 18f[24][34]31 family
922         * device/lib/pic16/libio/i2c.ignore: do not build i2c
923
924 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
925
926         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
927           can this have lived here for so many years?
928         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
929           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
930         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
931
932 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
933
934         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
935         appended by loop induction must be at the very end of the eBBlock
936
937 2007-02-05 Kevin Vigor
938
939         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
940
941 2007-02-05 Borut Razem <borut.razem AT siol.net>
942
943         * support/regression/fwk/lib/timeout.c: native WIN32 port,
944           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
945
946 2007-02-03 Borut Razem <borut.razem AT siol.net>
947
948         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
949           applied patch #1646602 option to set default signedness of char to
950           unsigned, added -funsigned-char command line option,
951           thanks to Gunther Jehle
952         * device/lib/Makefile.in: added the -f option to rm so it doesn't
953           prompt for file deletion a few hundred times (especially the
954           subversion files, which have ro permissions so it asks for
955           confirmation), thanks to Simon McAuliffe;
956           added {} + option to find in order to remove multiple files from a
957           single rm commad
958
959 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
960
961         * device/include/mcs51/SST89x5xRDx.h: Added.
962
963 2007-02-02 Raphael Neider <rneider AT web.de>
964
965         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
966         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
967
968 2007-02-01 Raphael Neider <rneider AT web.de>
969
970         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
971           config words again
972
973 2007-01-31 Borut Razem <borut.razem AT siol.net>
974
975         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
976           if compiled with GCC. Thanks to Raphael Neider
977
978 2007-01-31 Raphael Neider <rneider AT web.de>
979
980         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
981             operand names, handles name and (name + n) for all n,
982           (sameBank): restructured, also check bank allocation policy,
983         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
984           (pic14_operandsAllocatedInSameBank): check whether to operands
985             will be allocated into the same bank (i.e., section) to reduce
986             BANKSEL overhead, queried from pcode.c:sameBank,
987           (pic14printLocals): reintroduced clustering registers into a single
988             section: all compiler generated symbols will now reside in one
989             bank (per file), reducing BANKSEL overhead and code size,
990           (showAllMemmaps): use local dbuf where possible
991
992 2007-01-29 Raphael Neider <rneider AT web.de>
993
994         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
995           (call_libraryfunc): retrieve/create symbol and mark as used,
996           (genFunction): mark defined functions as non-extern and add again
997            to code memmap for later output
998         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
999           (pic14printLocals): reworked for new symbol emission,
1000           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1001           showAllMemmaps): reworked symbol output using dbufs, added handling
1002             of string literals (still incomplete),
1003           (picglue): removed symbol emission, moved into showAllMemmaps,
1004           (emitSymbolSet): new workhorse for symbol output,
1005           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1006
1007 2007-01-29 Borut Razem <borut.razem AT siol.net>
1008
1009         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1010           component contains the extension separator.
1011
1012 2007-01-28 Borut Razem <borut.razem AT siol.net>
1013
1014         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1015           on WIN32
1016         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1017           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1018           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1019           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1020           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1021           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1022           src/z80/gen.c, support/Util/MySystem.c:
1023           accept slash and backslash as directory separator on WIN32 and
1024           Cygwin ports
1025
1026 2007-01-28 Raphael Neider <rneider AT web.de>
1027
1028         * src/pic16/devices.inc,
1029         * device/include/pic16/pic18f[24][23]21.h,
1030         * device/include/pic16/pic18fregs.h,
1031         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1032         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1033         * device/lib/pic16/libio/adc.ignore,
1034         * device/lib/pic16/libio/i2c.ignore,
1035         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1036           family, as gputils do not yet support the devices
1037         * device/lib/pic16/Makefile.subdir: ignore errors on install
1038         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1039           headers and libraries from gputils .inc files
1040
1041 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1042
1043         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1044
1045 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1046
1047         * doc/sdccman.lyx: add printf benchmarks
1048
1049 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1050
1051         * device/lib/printf_fast.c: fix %c, char promoted to int
1052         * device/lib/printf_tiny.c: fix %c, char promoted to int
1053
1054 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1055
1056         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1057
1058 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1059
1060         * support/regression/tests/swap.c: 64 bit hosts failed
1061         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1062
1063 2007-01-25 Raphael Neider <rneider AT web.de>
1064
1065         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1066           based on absolute register address, patch by Alex Blond
1067
1068 2007-01-22 Raphael Neider <rneider AT web.de>
1069
1070         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1071           emitted, do not emit them again...
1072
1073 2007-01-22 Raphael Neider <rneider AT web.de>
1074
1075         * src/regression/bank1.c, src/regression/compare6.c,
1076           src/regression/add.c: cosmetic changes
1077         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1078         * src/pic/gen.c: fixed global zero and one,
1079           (aopForSym): removed unued code,
1080           (aopGet): assert aop is defined, check and use `index' of
1081             pCodeImmd operands (fixes #1630908),
1082         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1083           (register_reassign): prevent accidental register unification,
1084           (ReuseReg): cosmetic changes (also above)
1085         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1086           pic14emitStaticSeg): do not emit initialized data,
1087           (printIval*): replaced with working versions,
1088           (pic14createInterruptVect,picglue): use idata for initialized data,
1089             now init data should work in all modules (not only main()),
1090         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1091
1092 2007-01-21 Borut Razem <borut.razem AT siol.net>
1093
1094         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1095           use -fPIC or -fpic if they are supported and not ignored
1096         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1097         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1098
1099 2007-01-20 Borut Razem <borut.razem AT siol.net>
1100
1101         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1102           implemented RFE #1470316: allow "$" in variable names
1103
1104 2007-01-20 Raphael Neider <rneider AT web.de>
1105
1106         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1107
1108 2007-01-20 Raphael Neider <rneider AT web.de>
1109
1110         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1111         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1112         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1113         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1114           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1115         * device/lib/pic/libdev/pic*.c,
1116         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1117         * device/lib/pic/libdev/Makefile.in: show progress
1118
1119 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1120
1121         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1122         * support/scripts/sdcc_cygwin_mingw32,
1123         * support/scripts/sdcc_mingw32,
1124         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1125         conformance with autoconf 2.6
1126
1127 2007-01-19 Raphael Neider <rneider AT web.de>
1128
1129         * src/pic/device.c (register_map): fixed list construction
1130         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1131           (genMod): removed case for genModbits,
1132           (genModbits): removed as now unused/unimplemented
1133         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1134
1135 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1136
1137         * support/regression/tests/swap.c: added in response to #1638622
1138         * doc/sdccman.lyx: synced version, minor changes
1139
1140 2007-01-18 Borut Razem <borut.razem AT siol.net>
1141
1142         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1143           thanks to Gunther Jehle
1144         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1145         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1146           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1147           use filename in lineno instead.
1148         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1149           print the file name in ast_print()
1150
1151 2007-01-18 Borut Razem <borut.razem AT siol.net>
1152
1153         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1154           defined in MSVC
1155         * src/SDCC.lex: stringLiteral() returns const char pointer,
1156           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1157           fixed column counting
1158         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1159           accept const char pointer as parameter
1160         * src/SDCCdwarf2.c: corrected buffer size
1161
1162 2007-01-17 Borut Razem <borut.razem AT siol.net>
1163
1164         * support/Util/dbuf_string.c: fixed for amd64
1165
1166 2007-01-15 Borut Razem <borut.razem AT siol.net>
1167
1168         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1169           removed terminal symbol ELIPSIS, since it was never generated by the
1170           lexer and it was wrongly used in parameter_identifier_list rule
1171
1172 2007-01-15 Raphael Neider <rneider AT web.de>
1173
1174         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1175             code page and data banking description
1176         * src/pic/genarith.c,
1177         * src/pic/gen.h: removed bit arithmetic functions,
1178             updated exit(1) to exit(EXIT_FAILURE)
1179         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1180         * device/include/pic16/pic18f2455.h,
1181         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1182             TRISD and TRISE, fixed/added some bit names
1183         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1184         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1185             updated pic18f2455.{c,h} instead of duplicating them
1186
1187 2007-01-14 Borut Razem <borut.razem AT siol.net>
1188
1189         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1190           Cannot debug files that contain spaces in the path name
1191           by converting spaces in asm file name to underscores
1192
1193 2007-01-13 Borut Razem <borut.razem AT siol.net>
1194
1195         * doc/sdccman.lyx: fixed format errors
1196
1197 2007-01-10 Borut Razem <borut.razem AT siol.net>
1198
1199         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1200           codeseg/constseg #pragma fail
1201         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1202         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1203           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1204           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1205
1206 2007-01-09 Borut Razem <borut.razem AT siol.net>
1207
1208         * get rid of diagnistic.[ch], pretty-print.[ch],
1209           c-pretty-print.[ch], ... used just for error, warning, ...
1210           message formatting
1211         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1212           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1213           suppoprt/cpp2/pretty-print.[ch]:
1214           removed
1215         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1216           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1217           suppoprt/cpp2/sdcpp.dsp:
1218           changed
1219
1220 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1221
1222         * device/lib/printf_large.c (output_float): removed recursion,
1223           use smaller buffer on stack for mcs51,
1224           fixed bug printing 1.96
1225         * support/regression/tests/snprintf.c: added test
1226
1227 2007-01-07 Borut Razem <borut.razem AT siol.net>
1228
1229         * use dynamic memory buffers instead temporary files
1230         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1231           added
1232         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1233           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1234           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1235           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1236           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1237           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1238           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1239           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1240           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1241           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1242           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1243           support/Util/dbuf.c, support/Util/dbuf.h:
1244           modified
1245         * .version, sdcc.spec: bumped version to 2.6.4
1246
1247 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1248
1249         * src/port.h: added TARGET_Z80_LIKE macro
1250         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1251           output PSEG location if --xram-loc or --xstack-loc was used
1252         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1253
1254 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1255
1256         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1257         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1258         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1259         * sdcc.dsw: moved project files into subdir
1260         * as/hc08/as_hc08.dsp,
1261         * as/hc08/Makefile.bcc,
1262         * as/hc08/Makefile.in,
1263         * as/mcs51/Makefile.bcc,
1264         * as/mcs51/Makefile.in,
1265         * as/z80/Makefile.bcc,
1266         * as/z80/Makefile.in,
1267         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1268         * as/hc08/asm.h,
1269         * as/mcs51/asm.h,
1270         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1271         * as/hc08/asmain.c,
1272         * as/hc08/assym.c,
1273         * as/mcs51/asmain.c,
1274         * as/mcs51/assym.c,
1275         * as/z80/assym.c: removed include "strcmpi.h"
1276         * as/hc08/strcmpi.c,
1277         * as/hc08/strcmpi.h,
1278         * as/mcs51/strcmpi.c,
1279         * as/mcs51/strcmpi.h,
1280         * support/Util/strcmpi.c,
1281         * support/Util/strcmpi.h: removed files
1282         * as/strcmpi.c: added as_strncmpi()
1283
1284 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1285
1286         * sdcc.dsw: Added some dependencies on project config.dsp
1287
1288 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1289
1290         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1291           with [di]ram_start to fix a regresion
1292
1293 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1294
1295         * configure.in: added missing mcs51 in status output
1296         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1297         directory
1298         * debugger/mcs51/clean.mk (distclean): remove config.h
1299         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1300         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1301         options.h, s-options-h and options.c
1302         * support/cpp2/clean.mk: unused, removed
1303         * Makefile.common.in,
1304         * main_in.mk,
1305         * as/Makefile.in,
1306         * as/hc08/Makefile.in,
1307         * as/hc08/clean.mk,
1308         * as/mcs51/Makefile.in,
1309         * as/mcs51/clean.mk,
1310         * as/z80/clean.mk,
1311         * as/z80/conf.mk,
1312         * as/z80/Makefile.in,
1313         * as/z80/clean.mk,
1314         * as/link/Makefile.in,
1315         * as/link/hc08/Makefile.in,
1316         * as/link/hc08/clean.mk,
1317         * as/link/mcs51/Makefile.in,
1318         * as/link/mcs51/clean.mk,
1319         * as/link/z80/Makefile.in,
1320         * as/link/z80/clean.mk,
1321         * as/link/z80/conf.mk,
1322         * debugger/mcs51/Makefile.in,
1323         * debugger/mcs51/clean.mk,
1324         * device/include/Makefile.in,
1325         * device/lib/Makefile.in,
1326         * device/lib/mcs51/Makefile.in,
1327         * device/lib/pic/Makefile.in,
1328         * device/lib/pic/Makefile.common.in,
1329         * device/lib/pic/Makefile.subdir,
1330         * device/lib/pic/Makefile.rules,
1331         * device/lib/pic16/libio/Makefile.in,
1332         * device/lib/pic16/Makefile.subdir,
1333         * device/lib/pic16/libdev/Makefile.in,
1334         * device/lib/pic16/Makefile.rules,
1335         * device/lib/pic16/Makefile.common.in,
1336         * sim/ucsim/avr.src/Makefile.in,
1337         * sim/ucsim/main_in.mk,
1338         * sim/ucsim/cmd.src/Makefile.in,
1339         * sim/ucsim/doc/Makefile.in,
1340         * sim/ucsim/gui.src/Makefile.in,
1341         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1342         * sim/ucsim/gui.src/serio.src/Makefile.in,
1343         * sim/ucsim/hc08.src/Makefile.in,
1344         * sim/ucsim/libltdl/Makefile.in,
1345         * sim/ucsim/s51.src/Makefile.in,
1346         * sim/ucsim/sim.src/Makefile.in,
1347         * sim/ucsim/sim.src/conf.mk,
1348         * sim/ucsim/xa.src/Makefile.in,
1349         * sim/ucsim/z80.src/Makefile.in,
1350         * src/Makefile.in,
1351         * src/clean.mk,
1352         * src/port.mk,
1353         * support/cpp2/Makefile.in,
1354         * support/librarian/Makefile.in,
1355         * support/librarian/clean.mk,
1356         * support/makebin/Makefile.in,
1357         * support/makebin/clean.mk,
1358         * support/packihx/Makefile.in,
1359         * support/regression/Makefile.in,
1360         * support/regression/ports/ds390/spec.mk,
1361         * support/regression/ports/gbz80/spec.mk,
1362         * support/regression/ports/hc08/spec.mk,
1363         * support/regression/ports/mcs51/spec.mk,
1364         * support/regression/ports/mcs51-large/spec.mk,
1365         * support/regression/ports/mcs51-medium/spec.mk,
1366         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1367         * support/regression/ports/pic14/spec.mk,
1368         * support/regression/ports/pic16/spec.mk,
1369         * support/regression/ports/mcs51-stack-auto/spec.mk,
1370         * support/regression/ports/ucz80/spec.mk,
1371         * support/regression/ports/xa51/spec.mk,
1372         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1373         adding a slash after $(top_builddir) and/or adding @datarootdir@
1374         * configure.in,
1375         * debugger/mcs51/configure.in,
1376         * device/lib/pic/configure.in,
1377         * device/lib/pic16/configure.in,
1378         * sim/ucsim/configure.in,
1379         * support/cpp2/configure.in,
1380         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1381         * configure,
1382         * debugger/mcs51/configure,
1383         * device/lib/pic/configure,
1384         * device/lib/pic16/configure,
1385         * sim/ucsim/configure,
1386         * support/cpp2/configure,
1387         * support/packihx/configure: generated with autoconf 2.60
1388
1389 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1390
1391         * as/link/hc08/lkihx.c (newArea),
1392         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1393
1394 2007-01-02 Borut Razem <borut.razem AT siol.net>
1395
1396         * doc/sdccman.lyx: documented #pragma sdcc_hash
1397         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1398           initialized to 0
1399         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1400
1401 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1402
1403         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1404         empty 'while'-loop to work correctly, see regression test 'while.c'
1405         * support/regression/tests/while.c: added
1406
1407 2007-01-01 Borut Razem <borut.razem AT siol.net>
1408
1409         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1410           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1411           support/cpp2/libcpp/sdcpp.c:
1412           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1413         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1414         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1415
1416 2006-12-31 Borut Razem <borut.razem AT siol.net>
1417
1418         * SDCPP synchronized with GCC CPP release version 4.1.1,
1419           currently the latest release:
1420         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1421           support/cpp2/libcpp/include/cpp-id-data.h
1422           support/cpp2/libiberty/fopen_unlocked.c
1423           support/cpp2/libiberty/md5.c
1424           support/cpp2/md5.h
1425           support/cpp2/opt-functions.awk
1426           support/cpp2/opt-gather.awk
1427           support/cpp2/optc-gen.awk
1428           support/cpp2/opth-gen.awk:
1429           added
1430         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1431           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1432           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1433           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1434           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1435           support/cpp2/diagnostic.h, support/cpp2/except.h,
1436           support/cpp2/hwint.h, support/cpp2/input.h,
1437           support/cpp2/intl.h, support/cpp2/move-if-change,
1438           support/cpp2/opts.c, support/cpp2/opts.h,
1439           support/cpp2/output.h, support/cpp2/prefix.c,
1440           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1441           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1442           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1443           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1444           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1445           support/cpp2/version.c:
1446           modified
1447         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1448           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1449           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1450           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1451           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1452           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1453           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1454           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1455           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1456           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1457           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1458           moved
1459         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1460           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1461           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1462           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1463           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1464           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1465           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1466           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1467           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1468           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1469           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1470           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1471           support/cpp2/system.h:
1472           deleted / moved
1473
1474 2006-12-31 Borut Razem <borut.razem AT siol.net>
1475
1476         * configure.in, configure: fixed bug #1538756: configure dies if bison
1477           and flex are not installed, 2nd try
1478
1479 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1480
1481         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1482         400.x for better code in RFE 899102
1483
1484 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1485
1486         * src/SDCCpeeph.c (deadMove),
1487         * src/port.h,
1488         * src/mcs51/peep.h: renamed 'op' by 'reg'
1489         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1490         (scan4op): small change for removeDeadMove(), added support for
1491         'callee saves' and/or PACLL function calls,
1492         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1493         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1494         left in new dispatcher mcs51DeadMove()
1495         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1496         removeDeadMove()
1497         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1498
1499 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1500
1501         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1502           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1503
1504 2006-12-30 Borut Razem <borut.razem AT siol.net>
1505
1506         * support/cpp2/spacs.h: deleted from svn
1507         * configure.in, configure: fixed bug #1538756: configure dies if bison
1508           and flex are not installed
1509
1510 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1511
1512         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1513           with this z80 passes printf float test when enabled
1514         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1515
1516 2006-12-28 Borut Razem <borut.razem AT siol.net>
1517
1518         * support/cpp2/config.in, support/cpp2/configure.in,
1519           support/cpp2/configure, support/cpp2/Makefile.in:
1520           fix for the solaris build
1521
1522 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1523
1524         * src/SDCC.y (type_specifier2, pointer),
1525         * src/SDCCsymt.h,
1526         * src/SDCCsymt.c (mergeSpec, checkSClass),
1527         * support/Util/SDCCerr.c,
1528         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1529         * support/valdiag/valdiag.py: Allow test cases to specify
1530           required language standard
1531         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1532         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1533
1534 2006-12-27 Borut Razem <borut.razem AT siol.net>
1535
1536         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1537         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1538           mbchar removed
1539         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1540           fixed for borland C
1541         * support/cpp2/libiberty/Makefile.bcc: updated
1542         * src/pic16/main.c: fixed #pragma udata handling
1543         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1544
1545 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1546
1547         * src/SDCCpeeph.c: made labelHashEntry global,
1548         made pcDistance, FBYNAME static,
1549         (pcDistance): made static, use isComment and isLabel,
1550         (deadMove): added,
1551         (getLabelRef): added, extracted from labelRefCount(),
1552         (labelRefCount): use new getLabelRef(),
1553         (callFuncByName): made static, added deadMove,
1554         use isComment and isLabel,
1555         (newPeepRule): made static, set isLabel,
1556         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1557         labels from peephole rules,
1558         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1559         when isComment or isLabel is set
1560         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1561         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1562         to make them global
1563         * src/mcs51/peep.h: added
1564         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1565         * src/port.h: added peep->deadMove to port structure
1566         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1567         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1568         deadMove, finally removed no. 1 and 2
1569         * src/mcs51/gen.c,
1570         * src/pic/gen.c,
1571         * src/z80/gen.c,
1572         * src/z80/ralloc.c,
1573         * src/pic16/gen.c,
1574         * src/ds390/gen.c,
1575         * src/hc08/gen.c: mark lines with isComment or isLabel
1576         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1577         * .version,
1578         * sdcc.spec: bumped version to 2.6.3
1579
1580 2006-12-26 Borut Razem <borut.razem AT siol.net>
1581
1582         * support/cpp2/Makefile.in: added dependency on options.h
1583         * configure: regenerated
1584         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1585         * support/cpp2/Makefile.in: added vasprintf.c
1586
1587 2006-12-25 Borut Razem <borut.razem AT siol.net>
1588
1589         * SDCPP synchronized with GCC CPP release version 3.4.6,
1590           the latest release before 4.x:
1591         * support/cpp2/Makefile.in, support/cpp2/config.h,
1592           support/cpp2/configure, support/cpp2/configure.in,
1593           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1594           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1595           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1596           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1597           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1598           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1599           support/cpp2/cpptrad.c, support/cpp2/except.h,
1600           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1601           support/cpp2/hwint.h, support/cpp2/intl.h,
1602           support/cpp2/line-map.c, support/cpp2/line-map.h,
1603           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1604           support/cpp2/output.h, support/cpp2/prefix.c,
1605           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1606           support/cpp2/system.h, support/cpp2/version.c:
1607           modified
1608         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1609           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1610           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1611           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1612           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1613           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1614           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1615           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1616           support/cpp2/move-if-change, support/cpp2/opts.c,
1617           support/cpp2/opts.h, support/cpp2/opts.sh,
1618           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1619           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1620           support/cpp2/win32, support/cpp2/win32/dirent.c,
1621           support/cpp2/win32/dirent.h:
1622           added
1623         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1624         * support/cpp2/sdcpp.h: renamed from sdcc.h
1625         * sdcppinit.c: deleted
1626
1627 2006-12-23 Borut Razem <borut.razem AT siol.net>
1628
1629         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1630           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1631           preproc.c: an other try to fix bug #982435: introduced
1632           -pedantic-parse-number command line option and pedantic_parse_number
1633           pragma
1634
1635 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1636
1637         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1638            BSEG handling,
1639           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1640            corrected overlayed areax addresses, warn about memory overlaps
1641         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1642         * src/avr/main.c,
1643         * src/ds390/main.c,
1644         * src/hc08/main.c,
1645         * src/mcs51/main.c,
1646         * src/pic16/main.c,
1647         * src/pic/main.c,
1648         * src/xa51/main.c,
1649         * src/z80/main.c,
1650         * src/port.h: added xabs_name and iabs_name
1651         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1652           (glue, emitMaps): create and emit maps d_abs and i_abs
1653         * src/SDCCglue.h: cosmetic changes
1654         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1655         * src/SDCCmem.h,
1656         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1657           (allocDefault): put absolute, initialized globals in them
1658         * support/regression/tests/absolute.c: added absolute bdata test
1659         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1660
1661 2006-12-20 Borut Razem <borut.razem AT siol.net>
1662
1663         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1664         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1665           added regression test for bug #982435
1666
1667 2006-12-18 Borut Razem <borut.razem AT siol.net>
1668
1669         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1670         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1671           small cosmetic changes
1672         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1673         * support/regression/tests/bug-1351710.c: added regression test
1674
1675 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1676
1677         * doc/sdccman.lyx: added the long missed iCode table
1678           "<where is figure II?>", added links to wiki
1679
1680 2006-12-17 Borut Razem <borut.razem AT siol.net>
1681
1682         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1683           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1684           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1685           unified table driven pragma handling, pragma argument type checking
1686         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1687           current one - version 1.1.3
1688         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1689
1690 2006-12-13 Raphael Neider <rneider AT web.de>
1691
1692         * src/pic/device.h: removed AssignedMemory structure and macros
1693         * src/pic/device.c: removed global finalMapping (linker assigns
1694             memory locations),
1695           (register_map): add SFRs to remembered memRanges
1696           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1697           assignFixedRegisters,assignRelocatableRegisters): removed,
1698           (setMaxRAM,validAddress): adapted accordingly,
1699           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1700             reasonably sized sharebanks,
1701         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1702           (allDefsOutOfRange): removed unused code,
1703         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1704             handling
1705         * src/pic/pcode.c (register_reassign): removed recursion warning,
1706             fired far too often,
1707         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1708             to use existing pic14_stringInSet() to avoid duplicate symbols,
1709             tidied up the code a bit,
1710           (pic14printLocals): added in symmetry to printExterns, replaces
1711             writeUsedRegs more or less,
1712           (picglue): call new pic14_printLocals(),
1713         * device/include/pic/pic*.h: removed #pragma memmap directives,
1714             information gathered from include/pic/pic14devices.txt
1715         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1716
1717 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1718
1719         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1720
1721 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1722
1723         * device/include/mcs51/cc2430.h: fixed missing ';'
1724
1725 2006-12-10 Raphael Neider <rneider AT web.de>
1726
1727         * device/lib/pic16/libc/stdio/vfprintf.c,
1728         * device/lib/pic16/libc/stdio/printf_small.c,
1729         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1730           char arguments, as char varargs are cast to int by the caller,
1731           hopefully fixes #1604915 (other device libraries are still affected)
1732
1733 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1734
1735         * src/mcs51/ralloc.c (packRegsForAssign),
1736         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1737
1738 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1739
1740         * device/include/malloc.h: removed init_dynamic_memory
1741         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1742           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1743         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1744         * device/lib/libsdcc.lib,
1745         * device/lib/Makefile.in,
1746         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1747         * doc/sdccman.lyx: documented use of new _heap.c
1748         * support/regression/tests/malloc.c: removed init_dynamic_memory
1749         * src/cdbFile.c(spacesToUnderscores): new function,
1750           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1751           1068030
1752         * device/include/tinibios.h: removed defines for putchar and getchar
1753         * device/lib/ds390/Makefile.in: added putchar.c
1754         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1755
1756 2006-12-09 Borut Razem <borut.razem AT siol.net>
1757
1758         * support/cpp2/sdcc.h: prevent multiple inclusion
1759         * support/cpp2/options.h: deleted
1760
1761 2006-12-08 Borut Razem <borut.razem AT siol.net>
1762
1763         * support/cpp2/sdcc.h: removed x*alloc() macros
1764         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1765         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1766           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1767         * support/cpp2/system.h: moved #include "sdcc.h"
1768         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1769           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1770           added
1771         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1772           -funsigned-char options
1773         * support/cpp2/sdcppmain.c: fixed bug 1611411
1774
1775 2006-12-07 Borut Razem <borut.razem AT siol.net>
1776
1777         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1778           directive
1779
1780 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1781
1782         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1783         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1784         * doc/sdccman.lyx,
1785         * .version: bumped to 2.6.2 because a) it's been a while
1786           b) the linker sources have moved c) the preprocessor is upgraded
1787
1788 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1789
1790         * support/regression/tests/snprintf.c: some checks
1791         * lib/src/printf_large.c: %bc: read char instead of int from stack
1792
1793 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1794
1795         * device/include/mcs51/cc2430.h: inserted _XPAGE
1796
1797 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1798
1799         * device/include/mcs51/cc2430.h: added
1800
1801 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1802
1803         * device/include/asm/default/features.h,
1804         * device/include/asm/ds390/features.h,
1805         * device/include/mcs51/at89s53.h,
1806         * device/include/ser.h,
1807         * device/include/ser_ir.h,
1808         * device/include/serial.h: changed keywords to double underscore variants,
1809           fixes bug 1590261 some more, thanks Steven Borley
1810
1811 2006-12-01 Raphael Neider <rneider AT web.de>
1812
1813         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1814           but emit warning (recursion is not supported for pic14)
1815
1816 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1817
1818         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1819         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1820
1821 2006-11-30 Raphael Neider <rneider AT web.de>
1822
1823         * src/pic/device.c (dump_sfr): always emit symbols
1824         * src/pic/glue.c (pic14printPublics): fixed typo
1825
1826 2006-11-30 Raphael Neider <rneider AT web.de>
1827
1828         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1829           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1830           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1831            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1832            a sharebank, use a non-shared bank for the stack if none available
1833         * src/pic/device.h (struct memRange): added linked list next field,
1834           added prototypes for above functions
1835         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1836           (typeRegWithIdx): accept fixed and unfixed stack registers
1837         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1838           the stack, handle shared and banked stack (except for WSAVE),
1839           (insertBankSel): removed useless optimization (will never fire),
1840           (FixRegisterBanking): added optimization for devices with only one
1841           possibly aliased bank of memory, like 16f84
1842         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1843           devices have no SHAREBANK in the linker script
1844         * device/include/pic/pic14devices.txt: documented memmap
1845         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1846
1847 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1848
1849         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1850           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1851           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1852           genhc08Code): switched most of the D (debug) macros to DD (detailed
1853           debug) macros to better control clutter in the generated .asm file.
1854         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1855           genRightShift): fixed bug with non-constant bit shift stored to
1856           a volatile result (SF Open Discussion forum thread #1616749).
1857           Single byte case is not yet optimized.
1858
1859 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1860
1861         * device/include/asm/mcs51/features.h,
1862         * device/include/malloc.h,
1863         * device/include/stdio.h: changed keywords to double underscore variants,
1864           fixes bug 1590261
1865
1866 2006-11-27 Borut Razem <borut.razem AT siol.net>
1867
1868         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1869           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1870           support/cpp2/output.h, support/cpp2/cppinit.c,
1871           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1872           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1873           support/cpp2/cppdefault.c, support/cpp2/system.h,
1874           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1875           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1876           support/cpp2/prefix.c, support/cpp2/except.h,
1877           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1878           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1879           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1880           support/cpp2/version.c, support/cpp2/cppmain.c,
1881           support/cpp2/version.h, support/cpp2/hashtable.c,
1882           support/cpp2/cpperror.c:
1883           synchronized with GCC CPP release version 3.3.6,
1884           the latest where cppmain.c still exists.
1885         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1886           support/cpp2/sdcppinit.c: added
1887
1888 2006-11-27 Borut Razem <borut.razem AT siol.net>
1889
1890         * support/cpp2/cpplex.c:
1891           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1892           synchronization
1893         * support/cpp2/cpplib.c: removed definitions of unused variables
1894
1895 2006-11-26 Borut Razem <borut.razem AT siol.net>
1896
1897         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1898           since they are redefined by macros in support/cpp2/sdcc.h
1899         * support/cpp2/sdcc.h: x*alloc macro redefinition
1900
1901 2006-11-25 Borut Razem <borut.razem AT siol.net>
1902
1903         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1904           support/cpp2/configure, support/cpp2/Makefile.in,
1905           support/cpp2/cppfiles.c, support/cpp2/output.h,
1906           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1907           support/cpp2/config.h, support/cpp2/cpplib.h,
1908           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1909           support/cpp2/cppdefault.c, support/cpp2/config.in,
1910           support/cpp2/system.h, support/cpp2/cpplex.c,
1911           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1912           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1913           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1914           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1915           support/cpp2/configure.in, support/cpp2/intl.h,
1916           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1917           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1918           support/cpp2/version.c, support/cpp2/cppmain.c,
1919           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1920           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1921           support/cpp2/cpperror.c,
1922           support/cpp2/libiberty/safe-ctype.c,
1923           support/cpp2/libiberty/safe-ctype.h,
1924           support/cpp2/libiberty/splay-tree.c,
1925           support/cpp2/libiberty/obstack.c,
1926           support/cpp2/libiberty/lbasename.c,
1927           support/cpp2/libiberty/splay-tree.h,
1928           support/cpp2/libiberty/obstack.h:
1929           synchronized with GCC CPP release version 3.2.3,
1930           the latest before integration of cpp into gcc
1931         * support/cpp2/except.h, support/cpp2/line-map.c,
1932           support/cpp2/line-map.h,
1933           support/cpp2/libiberty/hex.c,
1934           support/cpp2/libiberty/concat.c,
1935           support/cpp2/libiberty/filenames.h: added
1936         * support/cpp2/intl.c: deleted
1937
1938 2006-11-24 Borut Razem <borut.razem AT siol.net>
1939
1940         * src/SDCC.y: enabled compilation of empty source file
1941         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1942           "ISO C forbids an empty source file"
1943         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1944           if all the code is ifdefed out.
1945
1946 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1947
1948         * src/hc08/gen.c (genPcall): fix for bug #1601032
1949
1950 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1951
1952         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1953         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1954         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1955         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1956         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1957         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1958         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1959         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1960         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1961         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1962         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1963         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1964         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1965         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1966         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1967           Renamed to all upper case as per the standard set by SiLabs
1968
1969 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1970
1971         * device/include/mcs51/C8051F520.h: new, added
1972         * device/include/mcs51/compiler.h: added link about predefined macros
1973
1974 2006-11-23 Raphael Neider <rneider AT web.de>
1975
1976         * src/regression/Makefile: add -L path to fresh library
1977         * src/regression/simulate: emphasize FAILED output
1978         * src/regression/create_stc: output _failures from gpsim
1979         * src/regression/compare4.c,
1980         * src/regression/rotate6.c: fixed char literals,
1981           all compile, all run =8-D
1982
1983         * src/pic/pcode.h: added isPCASMDIR macro
1984         * src/pic/gen.c (genAnd): fixed bit offset
1985         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1986           packBits): unified register numbering schemes,
1987           (newReg): do not insert stack registers into hash table,
1988           (initStack): unpinned pseudo stack, simplified,
1989           (typeRegWithIdx): fixed retrieval of stack registers,
1990         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1991           (pCodeReplace): removed invalid assertion,
1992           (insertPCodeInstruction): fixed newly added labels,
1993           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1994           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1995           DumpFlow): removed unsed (broken?) code,
1996           (insertBankSel): prevent STATUS from being BANKSELed,
1997           (FixRegisterBanking): rewritten from scratch, implemented generic
1998             optimizations (suppress BANKSELs to same register and to registers
1999             present in all banks),
2000           (AnalyzeBanking): update flow after BANKSELection
2001
2002         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2003             sharebank, let linker place it, mark STKxx symbols as emitted
2004
2005 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2006
2007         * src/regression/arrays.c,
2008         * src/regression/bank1.c,
2009         * src/regression/bool2.c,
2010         * src/regression/compare7.c,
2011         * src/regression/compare8.c,
2012         * src/regression/compare9.c,
2013         * src/regression/compare10.c,
2014         * src/regression/configword.c,
2015         * src/regression/for.c,
2016         * src/regression/mult1.c,
2017         * src/regression/pointer1.c,
2018         * src/regression/rotate6.c,
2019         * src/regression/string1.c,
2020         * src/regression/struct1.c,
2021         * src/regression/Makefile: make PIC14 regression tests run again
2022           (3 fail, 6 won't compile)
2023
2024 2006-11-21 Raphael Neider <rneider AT web.de>
2025
2026         * device/include/pic16/pic18f4550.h,
2027         * device/include/pic16/pic18f4455.h,
2028         * device/lib/pic16/libdev/pic18f4550.c,
2029         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2030         * configure.in: removed superfluous closing bracket
2031
2032 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2033
2034         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2035           always positive.
2036
2037 2006-11-21 Raphael Neider <rneider AT web.de>
2038
2039         * src/pic/device.{c,h}: added pic14_getPIC()
2040         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2041           (genAnd): added PIC code for one case, fixes #1597044
2042         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2043           SFRs that are present in all banks (e.g., STATUS)
2044
2045 2006-11-20 Raphael Neider <rneider AT web.de>
2046
2047         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2048           INCFSZ/INCFSZW and declared them as changing Z bit,
2049           (insertPCodeInstruction): correctly invert the above instructions,
2050           fixes #1599333,
2051           (DoBankSelect): don't panic on po_immediates
2052
2053 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2054
2055         * as/link/aslink.h,
2056         * as/link/mcs51/lkihx.c (newArea),
2057         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2058         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2059
2060 2006-11-11 Raphael Neider <rneider AT web.de>
2061
2062         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2063           bitfield symbols, fixes #1579535 (once more...).
2064
2065 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2066
2067         * support/regression/generate-cases.py,
2068         * support/regression/fwk/include/testfwk.h,
2069         * support/regression/fwk/lib/testfwk.c: used code pointers,
2070           (about 50kByte less code generated for mcs51)
2071
2072 2006-11-06 Borut Razem <borut.razem AT siol.net>
2073
2074         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2075           debugger/mcs51/configure: fixed failed check because the function
2076           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2077           who submitted the patch for gpsim.
2078         * debugger/mcs51/configure.in: removed the result message
2079         * debugger/mcs51/Makefile.in: fixed the config.status warning
2080           "... seems to ignore the --datarootdir setting"
2081
2082 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2083
2084         * device/include/mcs51/c8051f020.h,
2085         * device/include/mcs51/c8051f040.h,
2086         * device/include/mcs51/c8051f060.h,
2087         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2088         * src/z80/gen.c (gencjneshort),
2089         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2090
2091 2006-10-31 Borut Razem <borut.razem AT siol.net>
2092
2093         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2094           debugger/mcs51/configure: get readline version
2095
2096 2006-10-30 Borut Razem <borut.razem AT siol.net>
2097
2098         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2099         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2100           debugger/mcs51/configure: locate readline even when cross compiling
2101         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2102
2103 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2104
2105         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2106           serial port.
2107
2108 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2109
2110         * device/include/malloc.h,
2111         * device/lib/calloc.c,
2112         * device/lib/free.c,
2113         * device/lib/malloc.c,
2114         * device/lib/realloc.c: moved definition of struct into sources
2115         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2116
2117 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2118
2119         * as/asx8051.dsp: corrected output directories
2120         * as/link/hc08: new directory for hc08 linker
2121         * as/hc08/aslink.h,             as/link/aslink.h,
2122         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2123         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2124         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2125         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2126         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2127         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2128         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2129         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2130         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2131         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2132         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2133         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2134         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2135         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2136         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2137         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2138         * as/link/hc08/conf.mk,
2139         * configure,
2140         * configure.in,
2141         * Makefile.in,
2142         * sdcc.dsw: moved hc08 linker to as/link/hc08
2143         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2144         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2145         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2146         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2147         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2148         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2149         * as/link/mcs51/aslink.dsp,
2150         * as/link/mcs51/Makefile.in: factored out the common files
2151         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2152         * as/clean.mk: extra cleaning common files
2153         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2154         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2155         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2156
2157 2006-10-29 Raphael Neider <rneider AT web.de>
2158
2159         * src/pic/ralloc.c (newReg): create aliases for registers with
2160           multiple names to fix #1579535 and #1584001,
2161           (regWithIdx,dirregWithName): resolve aliases on lookup
2162         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2163           bankselect
2164         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2165           to prevent build errors on small devices
2166
2167 2006-10-28 Raphael Neider <rneider AT web.de>
2168
2169         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2170           assumption within interrupt handlers, fixes #1584940
2171         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2172           "emitted" to avoid emitting them again in udata
2173
2174 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2175
2176         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2177         Removed.
2178
2179 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2180
2181         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2182         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2183         on/off CR to CRLF conversion.
2184
2185 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2186
2187         * doc/sdccman.lyx: updated IRQ section
2188
2189 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2190
2191         * device/lib/serial_io.c: removed
2192         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2193         replacements for serial_io.c
2194
2195 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2196
2197         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2198
2199 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2200
2201         * device/lib/serial_io.c: Default putchar() and getchar() for
2202           mcs51 uses serial port.
2203
2204 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2205
2206         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2207
2208 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2209
2210         * support/regression/ports/mcs51/support.c: smaller
2211         _sdcc_external_startup()
2212         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2213
2214 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2215
2216         * device/lib/gbz80/crt0.s,
2217         * device/lib/gbz80/crt0_rle.s,
2218         * device/lib/gbz80/div.s,
2219         * device/lib/gbz80/fstubs.s,
2220         * device/lib/gbz80/heap.s,
2221         * device/lib/gbz80/mul.s,
2222         * device/lib/gbz80/putchar.s,
2223         * device/lib/gbz80/stubs.s,
2224         * device/lib/z80/crt0.s,
2225         * device/lib/z80/crt0_rle.s,
2226         * device/lib/z80/div.s,
2227         * device/lib/z80/fstubs.s,
2228         * device/lib/z80/heap.s,
2229         * device/lib/z80/mul.s,
2230         * device/lib/z80/putchar.s,
2231         * device/lib/z80/stubs.s: reverted, I was mistaken
2232
2233 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2234
2235         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2236         * support/regression/ports/mcs51/support.c: removed race
2237         condition on TI in _putchar allowing to use serial port mode 0
2238
2239 2006-10-20 Borut Razem <borut.razem AT siol.net>
2240
2241         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2242
2243 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2244
2245         * device/lib/gbz80/crt0.s,
2246         * device/lib/gbz80/crt0_rle.s,
2247         * device/lib/gbz80/div.s,
2248         * device/lib/gbz80/fstubs.s,
2249         * device/lib/gbz80/heap.s,
2250         * device/lib/gbz80/mul.s,
2251         * device/lib/gbz80/putchar.s,
2252         * device/lib/gbz80/stubs.s,
2253         * device/lib/z80/crt0.s,
2254         * device/lib/z80/crt0_rle.s,
2255         * device/lib/z80/div.s,
2256         * device/lib/z80/fstubs.s,
2257         * device/lib/z80/heap.s,
2258         * device/lib/z80/mul.s,
2259         * device/lib/z80/putchar.s,
2260         * device/lib/z80/stubs.s: removed all leading underscores from area names
2261
2262 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2263
2264         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2265           regression tests are not waiting in the simulator for simulated
2266           transmission of debug output
2267
2268 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2269
2270         * device/lib/printf_large.c: slightly smaller
2271         * doc/sdccman.lyx: do not use spaces within html links
2272
2273 2006-10-16 Borut Razem <borut.razem AT siol.net>
2274
2275         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2276           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2277           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2278           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2279           debugger/mcs51/configure:
2280           [ 1185668 ] add gnu readline support to sdcdb - enabled
2281
2282 2006-10-16 Raphael Neider <rneider AT web.de>
2283
2284         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2285           fixes #1577882, removes close to all banking optimizations
2286
2287 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2288
2289         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2290           variables in code memory
2291         * support/regression/tests/absolute.c: added test for this
2292
2293 2006-10-15 Raphael Neider <rneider AT web.de>
2294
2295         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2296           devices,
2297           (BankSelect): emit BANKSEL before touching linker-placed regs,
2298           fixes #1570934
2299
2300 2006-10-10 Raphael Neider <rneider AT web.de>
2301
2302         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2303         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2304         * src/pic/main.c (_pic14_parseOptions),
2305         * src/pic/main.h: mostly reverted to previous state, now use results
2306             from SDCCmain.c's argument parsing
2307
2308 2006-10-10 Borut Razem <borut.razem AT siol.net>
2309
2310         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2311           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2312           [ 1185668 ] add gnu readline support to sdcdb -
2313           prepared for READLINE, not enabled yet,
2314           thanks to <tal.bav AT gmail.com>
2315
2316 2006-10-10 Raphael Neider <rneider AT web.de>
2317
2318         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2319         * src/pic16/devices.inc,
2320         * device/include/pic16 (pic18f[24]620.h),
2321         * device/include/pic18fregs.h,
2322         * device/lib/pic16/pics.all,
2323         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2324             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2325             Gary Plumbridge and Anton Strobl
2326
2327 2006-10-10 Raphael Neider <rneider AT web.de>
2328
2329         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2330           --stack-siz=NUM options to configure the argument passing stack
2331         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2332         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2333           (pic14_getSharebankSize): obey --stack-siz=NUM,
2334           (pic14_getSharebankAddress): obey --stack-loc=NUM
2335
2336 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2337
2338         * doc/sdccman.lyx: added to the manual
2339         * doc/figures/ddd_example.png: added (neither pdflatex nor
2340         most browsers seem to like the .eps file)
2341
2342 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2343
2344         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2345         to /tmp and /var/tmp acc. LSB
2346         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2347         RESULT_TYPE_IFX
2348         * support/regression/tests/onebyte.c: added test
2349
2350 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2351
2352         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2353
2354 2006-10-05 Borut Razem <borut.razem AT siol.net>
2355
2356         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2357           thanks to dfulab:
2358           - sdcc.dsw: changed property eol-style to CRLF
2359           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2360
2361 2006-10-04 Raphael Neider <rneider AT web.de>
2362
2363         * device/include/pic/{pic16f84.h,pic16f84a.h},
2364         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2365           from patch #1522504, thanks to Robas Teodor
2366
2367 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2368
2369         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2370           fixes bug 1566015
2371
2372 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2373
2374         * src/pic16/glue.c (pic16emitMaps),
2375         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2376         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2377         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2378         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2379           Philipp Krause
2380         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2381         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2382
2383 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2384
2385         * support/librarian/sdcclib.c: Added option -l.
2386         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2387           usage totals.
2388         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2389           using Windows command prompt.
2390
2391 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2392
2393         * device/lib/libsdcc.lib: added module rand
2394         * src/ds390/ralloc.c (rematStr),
2395         * src/hc08/ralloc.c (rematStr),
2396         * src/mcs51/ralloc.c (rematStr),
2397         * src/z80/ralloc.c (rematStr): made output more consistent
2398         * src/mcs51/gen.c: cosmetic changes
2399
2400 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2401
2402         * src/port.h: added mem.cabs_name to PORT
2403         * src/ds390/main.c,
2404         * src/hc08/main.c,
2405         * src/mcs51/main.c,
2406         * src/pic16/main.c,
2407         * src/pic/main.c,
2408         * src/xa51/main.c,
2409         * src/z80/main.c: added cabs_name initializers
2410         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2411           constants
2412           (emitMaps): emit absolutes in code memory into cabs_name
2413         * src/SDCCmem.c,
2414         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2415         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2416         * support/regression/fwk/include/testfwk.h: added define for at
2417         * support/regression/tests/absolute.c: added, new
2418
2419 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2420
2421         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2422           optimizations, see also patch 887161 by Stas Sergeev
2423         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2424           to be necessary anymore,
2425           (102, 103, 104, 127): renamed all occurances of bp to _bp
2426
2427 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2428
2429         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2430           thanks Weston T. Schmidt for patch 1555221
2431         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2432         * src/SDCCicode.c(geniCodeMultiply): small optimization
2433
2434 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2435
2436         * device/include/stdlib.h: added rand prototypes
2437         * device/lib/rand.c: new, added
2438         * device/lib/Makefile.in: added rand.c
2439         * src/z80/peeph.def,
2440         * src/z80/peeph-gbz80.def,
2441         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2442
2443 2006-09-20 Raphael Neider <rneider AT web.de>
2444
2445         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2446
2447 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2448
2449         * as/link/aslink.h: cosmetic changes
2450         * as/link/mcs51/Makefile.in,
2451         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2452
2453 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2454
2455         * as/link/aslink.h,
2456         * as/link/mcs51/aslink.h,
2457         * as/link/z80/aslink.h: merged and moved to as/link/
2458         * as/link/lkstore.c,
2459         * as/link/mcs51/lkstore.c: moved to as/link/
2460         * as/link/clean.mk: remove *.o
2461         * as/link/mcs51/alloc.h: deleted
2462         * as/link/mcs51/lkarea.c: added lnksect prototype
2463         * as/link/mcs51/lkdata.c,
2464         * as/link/mcs51/lklex.c,
2465         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2466         * as/link/mcs51/lkmem.c,
2467         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2468         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2469         * as/link/mcs51/aslink.dsp,
2470         * as/link/mcs51/Makefile.aslink,
2471         * as/link/mcs51/Makefile.bcc,
2472         * as/link/mcs51/Makefile.in: updated for moved files
2473         * as/link/z80/lkarea.c,
2474         * as/link/z80/lkhead.c,
2475         * as/link/z80/lklex.c,
2476         * as/link/z80/lklibr.c,
2477         * as/link/z80/lklist.c,
2478         * as/link/z80/lkmain.c,
2479         * as/link/z80/lkrloc.c,
2480         * as/link/z80/lksym.c: synced with mcs51
2481         * as/link/z80/lkdata.c,
2482         * as/link/z80/lkeval.c,
2483         * as/link/z80/lkihx.c,
2484         * as/link/z80/lks19.c: cosmetic changes
2485         * as/link/z80/Makefile.in,
2486         * as/link/z80/linkgbz80.dsp,
2487         * as/link/z80/linkz80.dsp: updated for moved files
2488
2489 2006-09-16 Borut Razem <borut.razem AT siol.net>
2490
2491         * debugger/mcs51/sdcdb.c: partially fixed
2492           [ 1203664 ] sdcdb fails to open files w. two "." periods
2493         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2494           debugger/mcs51/symtab.h: fixed indenting
2495         * configure.in, configure: up to date with latest Maarten's changes
2496
2497 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2498
2499         as/link/mcs51
2500         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2501         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2502         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2503         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2504         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2505         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2506         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2507         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2508         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2509         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2510         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2511         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2512         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2513         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2514         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2515         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2516         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2517         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2518         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2519         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2520         as/link/mcs51/alloc.h,
2521         as/link/mcs51/clean.mk,
2522         as/link/mcs51/conf.mk,
2523         as/link/mcs51/Makefile.bcc,
2524         as/link/mcs51/Makefile.in,
2525         as/link/mcs51/readme.390,
2526         as/link/mcs51/strcmpi.c,
2527         as/link/mcs51/strcmpi.h,
2528         as/mcs51/clean.mk,
2529         as/mcs51/Makefile.bcc,
2530         as/mcs51/Makefile.in,
2531         configure,
2532         Makefile.in,
2533         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2534
2535 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2536
2537         * as/link,
2538         * as/link/Makefile.in,
2539         * as/link/z80/linkgbz80.dsp,
2540         * as/link/z80/linkz80.dsp,
2541         * configure,
2542         * link,
2543         * link/clean.mk,
2544         * link/Makefile.in,
2545         * link/README,
2546         * link/z80,
2547         * link/z80/aslink.h,
2548         * link/z80/clean.mk,
2549         * link/z80/conf.mk,
2550         * link/z80/linkgbz80.dsp,
2551         * link/z80/linkz80.dsp,
2552         * link/z80/lkarea.c,
2553         * link/z80/lkdata.c,
2554         * link/z80/lkeval.c,
2555         * link/z80/lkgb.c,
2556         * link/z80/lkgg.c,
2557         * link/z80/lkhead.c,
2558         * link/z80/lkihx.c,
2559         * link/z80/lklex.c,
2560         * link/z80/lklibr.c,
2561         * link/z80/lklist.c,
2562         * link/z80/lkmain.c,
2563         * link/z80/lkrloc.c,
2564         * link/z80/lks19.c,
2565         * link/z80/lksym.c,
2566         * link/z80/Makefile.in,
2567         * Makefile.in,
2568         * sdcc.dsw: moved link/ to as/link/
2569
2570 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * as/mcs51/i51mch.c (machine): fixed warning
2573
2574 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2575
2576         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2577
2578 2006-09-09 Borut Razem <borut.razem AT siol.net>
2579
2580         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2581           sdcdb WIN32 native port
2582         * src/clean.mk: fixed
2583
2584 2006-09-08 Borut Razem <borut.razem AT siol.net>
2585
2586         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2587
2588 2006-09-08 Raphael Neider <rneider AT web.de>
2589
2590         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2591         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2592             to gplink to disable processor mismatch warning and to allow
2593             the use of devices with only aliased (shared) memory banks,
2594           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2595
2596 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2597
2598         * doc/sdccman.lyx: Some re-formating plus example on using
2599           #pragma preproc_asm +/-
2600
2601 2006-09-07 Borut Razem <borut.razem AT siol.net>
2602
2603         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2604           section
2605
2606 2006-09-06 Borut Razem <borut.razem AT siol.net>
2607
2608         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2609           line at sdcc.nsi:153
2610         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2611
2612 2006-09-05 Borut Razem <borut.razem AT siol.net>
2613
2614         * configure.in, configure: support for winsock2
2615         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2616           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2617           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2618           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2619           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2620
2621 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2622
2623         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2624           and OP_DEFS
2625         * support/regression/tests/bug1551947.c: new, added
2626         * src/SDCCsymt.h: strings are char* not byte*
2627
2628 2006-09-05 Raphael Neider <rneider AT web.de>
2629
2630         * device/lib/pic16/libdev/pic18f4550.c,
2631           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2632             declarations/definitions from patch #1520949
2633
2634 2006-09-05 Raphael Neider <rneider AT web.de>
2635
2636         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2637           byte-aligned bitfields, fixes #1539278
2638
2639 2006-09-05 Raphael Neider <rneider AT web.de>
2640
2641         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2642           fixes #1544120
2643
2644 2006-09-04 Borut Razem <borut.razem AT siol.net>
2645
2646         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2647         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2648           -mno-cygwin is a part of the compiler name
2649         * support/scripts/sdcc_mingw32: don't disable ucsim
2650
2651 2006-09-03 Borut Razem <borut.razem AT siol.net>
2652
2653         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2654         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2655
2656 2006-09-03 Raphael Neider <rneider AT web.de>
2657
2658         * src/pic/ralloc.c,
2659         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2660           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2661           fixes #1550049
2662
2663 2006-09-01 Borut Razem <borut.razem AT siol.net>
2664
2665         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2666           to make ppc-osx happy
2667
2668 2006-08-31 Borut Razem <borut.razem AT siol.net>
2669
2670         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2671         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2672         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2673         * support/regression/ports/ds390/spec.mk,
2674           support/regression/ports/mcs51/spec.mk,
2675           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2676           To run regression tests in mingw environment:
2677           make DEV_NULL=NUL CC=gcc
2678
2679 2006-08-30 Borut Razem <borut.razem AT siol.net>
2680
2681         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2682           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2683           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2684           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2685           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2686           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2687           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2688           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2689           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2690           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2691           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2692           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2693           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2694           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2695           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2696           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2697           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2698           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2699           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2700           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2701           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2702           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2703           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2704           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2705           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2706           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2707           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2708           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2709           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2710           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2711           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2712           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2713           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2714           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2715           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2716           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2717           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2718           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2719           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2720           ucsim WIN32 native port
2721
2722 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2723
2724         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2725
2726 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2727
2728         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2729         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2730
2731 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2732
2733         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2734         * support/regression/tests/bug1546986.c: new, added
2735         * as/mcs51/.cvsignore,
2736         * debugger/mcs51/.cvsignore,
2737         * src/.cvsignore: deleted
2738
2739 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2740
2741         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2742           definitions)
2743
2744 2006-08-20 Borut Razem <borut.razem AT siol.net>
2745
2746         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2747           removed cl_listen_console::match(), cl_console::match(),
2748           restructured cl_commander::proc_input()
2749
2750 2006-08-16 Borut Razem <borut.razem AT siol.net>
2751
2752         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2753           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2754           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2755
2756 2006-08-14 Borut Razem <borut.razem AT siol.net>
2757
2758         * support/regression/Makefile.in,
2759           support/regression/ports/pic14/gpsim.cmd,
2760           support/regression/ports/pic14/spec.mk,
2761           support/regression/ports/pic14/support.c:
2762           added pic14 regression test
2763
2764 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2765
2766         * as/doc/asxhtm.html: documented changed ABS behaviour
2767         * as/doc/README: fixed some typos
2768
2769 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2770
2771         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2772           not defined on host
2773
2774 2006-08-12 Borut Razem <borut.razem AT siol.net>
2775
2776         * support/regression/fwk/include/testfwk.h,
2777           support/regression/fwk/lib/testfwk.c,
2778           support/regression/generate-cases.py,
2779           support/regression/Makefile.in:
2780           regression test framework does not depend on function pointers and
2781           variable arguments
2782
2783 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2784
2785         * device/include/stddef.h: c temporary hack to fix bug 1518273
2786
2787 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2788
2789         * device/include/mcs51/cc2510fx.h: added
2790         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2791           to projects.
2792
2793 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2794
2795         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2796         * as/z80/Makefile.in: added strcmpi.c
2797         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2798         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2799
2800 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2801
2802         * device/lib/gbz80/asm_strings.s,
2803         * device/lib/gbz80/crt0_rle.s,
2804         * device/lib/gbz80/div.s,
2805         * device/lib/gbz80/mul.s,
2806         * device/lib/gbz80/shift.s,
2807         * device/lib/z80/asm_strings.s,
2808         * device/lib/z80/crt0_rle.s,
2809         * device/lib/z80/div.s,
2810         * device/lib/z80/mul.s,
2811         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2812           flags which are all upper case
2813
2814 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2815
2816         * as/z80/asm.h: made CASE_SENSITIVE 1
2817         * link/z80/aslink.h: made CASE_SENSITIVE 1
2818         * src/z80/gen.c (throughout): made all conditionals upper case
2819         * support/regression/tests/bug1503067.c: new
2820
2821 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2822
2823         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2824           (shiftIntoPair): added case 2 for PAIR_IY,
2825           (setupToPreserveCarry): replaced parameters with iCode and check if
2826            PAIR_DE is in use to fix bug 1399290,
2827           (genPlus, genMinus): updated call to setupToPreserveCarry
2828         * support/regression/tests/bug1399290.c: new
2829
2830 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2831
2832         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2833         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2834         * src/ds390/gen.c (shiftRLong),
2835         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2836         * src/mcs51/gen.c (sameReg): changed to sameByte,
2837           (xch_a_aopGet): new,
2838           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2839            shiftRLong): fixed bug 1533966
2840         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2841           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2842         * support/regression/Makefile.in: disabled z80, enabled ucz80
2843         * support/regression/tests/float_trans.c: enabled test for z80 and host
2844         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2845
2846 2006-08-01 Borut Razem <borut.razem AT siol.net>
2847
2848         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2849           comparison is always false due to limited range of data type
2850           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2851
2852 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2853
2854         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2855         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2856         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2857         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2858
2859 2006-07-31 Borut Razem <borut.razem AT siol.net>
2860
2861         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2862           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2863           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2864           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2865           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2866           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2867           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2868           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2869           enable ucsim mingw compilation. Serial port is disabled,
2870           since it uses termios.h API, which is not available on native
2871           WIN32
2872
2873 2006-07-31 Borut Razem <borut.razem AT siol.net>
2874
2875         * Small Device C Compiler 2.6.0 released
2876         * support/scripts/sdcc.nsi: added FULL_DOC option
2877         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2878
2879 2006-07-28 Borut Razem <borut.razem AT siol.net>
2880
2881         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2882         * doc/INSTALL.txt: updated
2883
2884 2006-07-27 Borut Razem <borut.razem AT siol.net>
2885
2886         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2887           device/lib/pic/libdev/Makefile.in: fixed bug
2888           [ 1438354 ] pic libsdcc: distclean doesn't work
2889         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2890           device/lib/pic16/libio/Makefile.in: fixed bug
2891           [ 1438344 ] pic16 lib: clean doesn't work properly
2892         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2893
2894 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2895
2896         * device/lib/pic/libsdcc/fsdiv.c,
2897         * device/lib/pic/libsdcc/fsmul.c,
2898         * device/lib/pic16/libsdcc/float/fsdiv.c,
2899         * device/lib/pic16/libsdcc/float/fsmul.c,
2900         * device/lib/_fsdiv.c,
2901         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2902         * support/regression/tests/bug1520966.c: added
2903         * doc/knownbugs.html: removed [ 1520966 ] from the list
2904
2905 2006-07-25 Borut Razem <borut.razem AT siol.net>
2906
2907         * configure.in, configure, sdccconf_in.h: fixed bug
2908           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2909         * doc/knownbugs.html: removed [ 1519095 ] from the list
2910
2911 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2912
2913         * doc/knownbugs.html: added, contains list of known bugs at release
2914         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2915
2916 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2917
2918         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2919           function registers and corrected defaults with additional warning
2920         * device/lib/malloc.c: cosmetic changes
2921         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2922         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2923           (fillGaps): and used it
2924
2925 2006-07-20 Raphael Neider <rneider AT web.de>
2926
2927         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2928           output unless SDCCPICDEBUG is set
2929         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2930           output if SILENT is set
2931
2932 2006-07-11 Borut Razem <borut.razem AT siol.net>
2933
2934         * doc/README.txt: updated
2935
2936 2006-07-10 Borut Razem <borut.razem AT siol.net>
2937
2938         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2939           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2940           in WIN32 installation
2941         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2942           release candidate 1
2943
2944 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2945
2946         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2947         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2948
2949 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2950
2951         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2952
2953 2006-07-06 Borut Razem <borut.razem AT siol.net>
2954
2955         * support/regression/tests/bitfields.c:
2956           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2957         * support/regression/tests/constantRange.c:
2958           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2959
2960 2006-07-04 Borut Razem <borut.razem AT siol.net>
2961
2962         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2963           src/port.mk,
2964           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2965           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2966           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2967           reverted changes from 2006-07-03
2968         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2969         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2970           added CPPFLAGS, used by the host port
2971
2972 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2973
2974         * support/regression/valdiag/tests/switch.c,
2975         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2976         * support/regression/tests/libmullong.c: fixed for host
2977         * support/regression/ports/host/spec.mk: disable all warnings for host,
2978         SDCC runs with --less-pedantic too
2979
2980 2006-07-03 Borut Razem <borut.razem AT siol.net>
2981
2982         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2983           defined CPPFLAGS
2984         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2985         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2986           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2987           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2988           include ../port.mk
2989         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2990           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2991           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2992           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2993
2994 2006-07-02 Raphael Neider <rneider AT web.de>
2995
2996         * src/pic16/devices.inc,
2997         * device/include/pic16/pic18fregs.h,
2998         * device/include/pic16/pic18f4550.h,
2999         * device/lib/pic16/pics.all,
3000         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3001
3002 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3003
3004         * as/hc08/lkaomf51.c (OutputName),
3005         * as/mcs51/lkaomf51.c (OutputName),
3006         * as/z80/asmain.c (asmbl),
3007         * src/ds390/main.c (asmLineNodeFromLineNode),
3008         * src/hc08/ralloc.c (hc08_assignRegisters),
3009         * src/mcs51/main.c (asmLineNodeFromLineNode),
3010         * src/xa51/ralloc.c (checkRegMask),
3011         * src/xa51/gen.c (emitcode),
3012         * src/z80/gen.c (_emit2),
3013         * src/SDCCast.c (searchLitOp),
3014         * src/SDCCglobl.h,
3015         * support/packihx/packihx.c,
3016         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3017         * src/ds390/gen.c (aopPutUsesAcc),
3018         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3019         * support/regression/tests/libmullong.c (mullong_wrapper),
3020         * src/SDCCsymt.c (powof2),
3021         * src/SDCCast.c,
3022         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3023         * src/SDCCsymt.h: added TYPE_TARGET_*
3024         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3025         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3026         SDCCast because 1) header problems 2) this is the right place
3027         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3028         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3029         prototype
3030
3031 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3032
3033         * src/SDCCicode.h: removed buggy semicolon in unused macro
3034         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3035         search for previous definiton of auto symbols too,
3036         (findPrevUse): fixed logic of emitWarnings
3037
3038 2006-06-26 Raphael Neider <rneider AT web.de>
3039
3040         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3041           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3042
3043 2006-06-25 Raphael Neider <rneider AT web.de>
3044
3045         * device/lib/pic/libm: NEW, added math library functions
3046         * device/lib/pic/libsdcc: NEW; added float support functions
3047         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3048         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3049           NEW, added math related headers
3050         * device/include/asm/pic/features.h: NEW
3051         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3052           (popGet): allow larger offsets for AOP_PCODE,
3053           (genDataPointerSet): handle literals explicitly, more debug output,
3054           (genAssign): fixed for float using aopLiteral ;-)
3055         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3056           GOTO initialisation routine
3057         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3058           flag on registers, fixes #1469043 (local variables do not work)
3059         * src/pic/main.c (_pic14_do_link),
3060         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3061           available
3062
3063 2006-06-25 Borut Razem <borut.razem AT siol.net>
3064
3065         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3066           characters printed (not including the trailing '\0' used to end
3067           output to strings). Problem detected in regression test bug-927659.c.
3068           NOTE: printf() family functions should return int instead
3069           unsigned int!
3070         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3071           specifier are printed as themselves
3072         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3073           support flags, width and precision specifiers
3074
3075 2006-06-24 Borut Razem <borut.razem AT siol.net>
3076
3077         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3078           to the list of sdcc tagrets not supporting bit type
3079         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3080           testfor pic16 due to bug:
3081           [ 1511794 ] pic16: regression test bug-895992.c fails
3082
3083 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3084
3085         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3086         * src/SDCCglue.c (initPointer), fixed bug 1496419
3087         * support/regression/tests/bug1496419.c: new, added
3088
3089 2006-06-22 Borut Razem <borut.razem AT siol.net>
3090
3091         * support/regression/ports/pic16/support.c: use gpsim usart module from
3092           libgpsim_modules library
3093
3094 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3095
3096         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3097         IP0H to IPH0.
3098
3099 2006-06-19 Raphael Neider <rneider AT web.de>
3100
3101         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3102         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3103           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3104           (pic14printExterns,pic14printPublics,pic16printPublics,
3105           pic16_printExterns): use new functions to emit symbols
3106           (picglue,pic16glue): emit publics before emitting externs
3107         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3108           locally defined functions to avoid bug #1443651
3109         * support/regression/tests/bug-716242.c: removed pic16 workaround
3110         * support/regression/ports/pic16/spec.mk: ignore errors during build
3111
3112 2006-06-19 Raphael Neider <rneider AT web.de>
3113
3114         * src/pic/glue.h: added pic14aopLiteral prototype
3115         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3116         * src/pic/gen.c: removed stdint.h dependency
3117           (aopGet): use Safe_strdup()
3118           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3119           (genDataPointerSet): use pic14aopLiteral()
3120         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3121           for pic16; thanks to Bernhard and Maarten
3122
3123 2006-06-18 Borut Razem <borut.razem AT siol.net>
3124
3125         * support/regression/tests/structflexarray.c: flexible array members
3126           not supported by gcc < 3
3127         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3128           GUI tool by default
3129         * src/pic/gen.c: don't include [p]strdin.h on solaris
3130         * support/Util/pstdint.h: addad svn attributes
3131         * support/regression/tests/constantRange.c,
3132           support/regression/tests/rotate.c: include inttypes.h instead
3133           stdint.h on solaris, addad svn attributes
3134
3135 2006-06-18 Raphael Neider <rneider AT web.de>
3136
3137         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3138           int for PIC16
3139         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3140           (pic16_genMinusBits): simplified sign-extension
3141           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3142             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3143             adjusted to correctly handle mixed-signed operands, disabled
3144             now unused multiplciation routines
3145         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3146           (assignResultValue): added argument denoting the size of the result
3147             as returned by the function (fixes upcasts in assigning from
3148             function calls: char foo(); int i = foo();)
3149           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3150             function result to assignResultValue
3151           (genMult): disabled inlined multiplication code
3152           (genDiv): augmented to also handle the modulus operator, fixed to
3153             handle mixed-signed operands correctly
3154           (genMod): simply call genDiv, disabled unused code
3155           (genAssign): fixed missing (sign-)extension on result
3156         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3157             valid char operands, allow signed operands for native code, added
3158             division and modulo operator handling
3159         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3160
3161         As a consequence, onebyte.c (if split into two files) and muldiv.c
3162         pass regression tests.
3163
3164 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3165
3166         * doc/Makefile.in: two runs of makeindex seem needed to get
3167         correct page references in the index of sdccman.pdf
3168         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3169
3170 2006-06-17 Borut Razem <borut.razem AT siol.net>
3171
3172         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3173
3174 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3175
3176         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3177         mentioned ec2drv and paulmon
3178
3179 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3180
3181         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3182           consecutive abs areas
3183           (find_empty_space, allocate_space): added map to handle codemap or
3184            xdatamap,
3185           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3186            absolute idata and xdata
3187         * as/mcs51/lkmem.c (summary2): updated legend
3188
3189 2006-06-16 Raphael Neider <rneider AT web.de>
3190
3191         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3192
3193 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3194
3195         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3196           1208515
3197         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3198
3199 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3200
3201         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3202         value of generic pointers,
3203         * src/avr/main.c,
3204           src/ds390/main.c,
3205           src/hc08/main.c,
3206           src/izt/i186.c,
3207           src/izt/tlcs900h.c,
3208           src/mcs51/main.c,
3209           src/pic/main.c,
3210           src/pic16/main.c,
3211           src/xa51/main.c,
3212           src/z80/main.c: PORT structure, added elements for gp_tags field,
3213         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3214         fields in the PORT structure of each port,
3215         * src/SDCCast.c (decorateType): allow processing of generic pointers
3216         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3217         S_FIXED symbols
3218
3219 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3220
3221         * link/z80/lkgb.c,
3222         * link/z80/lkgg.c,
3223         * src/pic16/gen.c,
3224         * src/pic16/main.c,
3225         * src/pic16/pcode.c,
3226         * src/pic/main.c,
3227         * src/pic/pcoderegs.c,
3228         * src/SDCCicode.c,
3229         * src/SDCCmain.c,
3230         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3231           bug 1504689 on minGW
3232
3233 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3234
3235         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3236
3237 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3238
3239         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3240
3241 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3242
3243         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3244           for optimization
3245
3246 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3247
3248         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3249         to a char variable. Fixed bug #1504211
3250         * device/include/pic16/adc.h,
3251         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3252         and fixed bug #1364390
3253
3254 2006-06-10 Borut Razem <borut.razem AT siol.net>
3255
3256         * CVSROOT: removed the CVS left-over
3257
3258 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3259
3260         * as/hc08/asmain.c (asexit),
3261         * as/hc08/lkmain.c (lkexit),
3262         * as/mcs51/asmain.c (asexit),
3263         * as/mcs51/lkmain.c (lkexit),
3264         * src/SDCCglue.c (DEFSETFUNC),
3265         * src/SDCCmain.c (linkEdit, assemble),
3266         * support/librarian/sdcclib.c (AddRel),
3267           replaced unlink() by standard C remove()
3268         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3269         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3270           gatherImplicitVariables): new, added to fix bug 608752,
3271           (createFunction): added gatherImplicitVariables()
3272         * src/SDCCast.h: added createRMW prototype
3273         * src/SDCCsymt.h (struct symbol): added infertype
3274         * support/regression/tests/bug608752.c: new, added
3275
3276 2006-06-10 Raphael Neider <rneider AT web.de>
3277
3278         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3279           multibyte dummy reads (fixes #1503234)
3280
3281 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3282
3283         * device/include/mcs51/compiler.h: new, added header file to enable
3284           creating common sfr definition header files for different compilers
3285
3286 2006-06-05 Raphael Neider <rneider AT web.de>
3287
3288         * src/pic16/{pcode.h,genarith.c}:
3289           introduced pCodeOp combining any two pCodeOps (previously only
3290           two register operands could be combined), removed pcop2 from
3291           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3292         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3293         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3294           rewritten to use new PO_TWO_OPS
3295         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3296         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3297           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3298           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3299           (pic16_get_op): embraced return arg to allow #define return(x),
3300             added new case for combined opcodes
3301           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3302           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3303            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3304
3305 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3306
3307         * src/SDCCval.c (checkConstantRange): added
3308         * src/SDCCval.h: added checkConstantRange
3309         * support/Util/SDCCerr.c,
3310         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3311         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3312         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3313         * src/SDCCast.c (decorateType): added checkConstantRange,
3314         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3315         can be emitted with the correct always true/false warning,
3316         added optimization for double '!';
3317         result of decorateType() must be assigned back to the tree, because
3318         decorateType() can change the tree
3319         * src/SDCCicode.c (geniCodeLogic),
3320         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3321         (checkConstantRange): removed, it was only a fragment which never
3322         emitted a warning
3323         * src/SDCCsymt.c (computeType): fixed promotion for
3324         "-1 < (unsigned bit) b"
3325         * src/pic/ralloc.c (packRegsForAssign),
3326         * src/pic16/ralloc.c (packRegsForAssign),
3327         * src/hc08/ralloc.c (packRegsForAssign),
3328         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3329         from mcs51
3330         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3331         * support/regression/tests/constantRange.c: added
3332         * support/valdiag/tests/constantRange.c: added
3333         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3334
3335 2006-06-02 Borut Razem <borut.razem AT siol.net>
3336
3337         * support/regression/ports/pic16/support.c: increase stack size
3338           to 255 bytes
3339         * support/regression/Makefile.in: sort tests by name so that the
3340           resutlts can be compared on different machines / platforms
3341
3342 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3343
3344         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3345         * src/ds390/gen.c (emitLabel): new, added,
3346           (genDjnz): fixed stack overflow bug,
3347           (throughout): cosmetic changes to sync with mcs51/gen.c,
3348           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3349         * src/mcs51/gen.c (genEndFunction): small optimization,
3350           (throughout): cosmetic changes to sync with ds390/gen.c
3351
3352 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3353
3354         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3355           (_print_format): fixed printing pointers
3356         * src/mcs51/gen.c (emitLabel, movb): new, added,
3357           (genAssign): small optimization,
3358           (genDjnz): fixed stack overflow bug,
3359           (throughout): replaced sprintf with SNPRINTF,
3360           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3361           replaced emitcode("mov", "b,...") with MOVB(...),
3362           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3363           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3364         * src/mcs51/peeph.def: added rules 140 and 264
3365         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3366           so they may get optimized into registers
3367
3368 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3369
3370         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3371           immediately when encountered,
3372           (printUsage): always use stderr even on windows
3373
3374 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3375
3376         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3377         (processParms): fixed bug #1247551
3378         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3379         parseCmdLine, main): print '--version' to stdout,
3380         print 'help' to stdout if --help is given,
3381         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3382         arguments are given; fixed --help
3383
3384 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3385
3386         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3387         * support/regression/tests/bug-1493710.c: added
3388
3389 2006-05-27 Borut Razem <borut.razem AT siol.net>
3390
3391         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3392           static instead auto
3393         * support/regression/ports/pic16/support.c: increase stack size
3394           from default 64 bytes to 128 bytes
3395         * support/regression/tests/staticinit.c,
3396           support/regression/tests/float.c: regression tests fully enabled
3397           for pic16 port by putting the initialized data arrays into the code
3398           section
3399         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3400           This was changed by mistake in the previous version.
3401
3402 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3403
3404         * src/pic16/gen.c (genFunction, genEndFunction): some
3405         beautifications, fixed bug with falsely restoring FSR2 in large
3406         stack model, thanks to Beau E. Cox for reporting the bug
3407
3408 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3409
3410         * debugger/mcs51/break.c,
3411         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3412           use %p to print pointers, made address variables unsigned
3413         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3414         * debugger/mcs51/symtab.c (parseSymbol): must return something
3415         * src/mcs51/gen.c (aopForSym): small optimization,
3416            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3417           (freeAsmop): added missing break,
3418           (aopPut): removed parameter bvolatile, determine it inside the function,
3419           (saveRegisters, unsaveRegisters): small optimization,
3420           (genIpush): removed pointless check,
3421           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3422           replaced sprintf with SNPRINTF,
3423           replaced strcpy with strncpyz,
3424           updated aopPut calls,
3425           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3426         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3427
3428 2006-05-24 Borut Razem <borut.razem AT siol.net>
3429
3430         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3431           modification of test for the pic16 port, put the array to the code
3432           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3433
3434 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3435
3436         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3437         * support/Util/pstdint.h: added
3438
3439 2006-05-22 Borut Razem <borut.razem AT siol.net>
3440
3441         * src/regression/Makefile: removed bool2.c test, added -q linker option
3442         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3443           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3444           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3445           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3446           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3447           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3448           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3449           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3450           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3451
3452 2006-05-22 Raphael Neider <rneider AT web.de>
3453
3454         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3455           bug #1492360 (problematic due to generic pointers, see code)
3456
3457 2006-05-22 Borut Razem <borut.razem AT siol.net>
3458
3459         * support/regression/ports/pic16/specs.mk: removed stack size linker
3460           directive
3461         * support/regression/tests/array.c,
3462           support/regression/tests/bitopcse.c,
3463           support/regression/tests/bug-908454.c,
3464           support/regression/tests/malloc.c: modified for pic16 regression test
3465         * support/regression/tests/bitfields.c:
3466           pic16 - excluded bitfileds of size > 8
3467         * support/regression/tests/bp.c: pic16 - reduced data size
3468         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3469         * support/regression/tests/bug-460010.c:
3470           pic16 - used the absolute address the fits in memory
3471         * support/regression/tests/bug-716242.c:
3472           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3473         * support/regression/tests/float.c:
3474           pic16 - excluded - data size too big
3475         * support/regression/tests/onebyte.c:
3476           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3477         * support/regression/tests/shifts.c:
3478           pic16 - function names probably have to differ in first X characters
3479           (gpasm limitation?)
3480         * support/regression/tests/staticinit.c:
3481           pic16 - excluded some tests due error: no target memory available for
3482           section ".idata"
3483
3484 2006-05-22 Borut Razem <borut.razem AT siol.net>
3485
3486         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3487           second try. Thanks Stas Sergeev once more.
3488
3489 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3490
3491         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3492           (genLeftShift, genRightShift): fixed bug 1491627
3493         * src/hc08/peeph.def (rules 7, 8.x): added
3494         * support/regression/tests/shifts.c (ShiftLeftByParam,
3495           ShiftRightByParam, testShiftByParam): added to test variable shifting
3496
3497 2006-05-20 Raphael Neider <rneider AT web.de>
3498
3499         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3500         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3501           (allocReg): add only new registers to dynAllocRegs,
3502           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3503             #1489055, #1445850, and probably #1483693
3504
3505 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3506
3507         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3508         bug in for-loop that didn't emit the last of CONFIG and ID registers
3509
3510 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3511
3512         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3513           with offset
3514         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3515           1489016, 1434401 and 1490124
3516         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3517           1489016, 1434401 and 1490124
3518
3519 2006-05-17 Borut Razem <borut.razem AT siol.net>
3520
3521         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3522           thanks Stas Sergeev
3523
3524 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3525
3526         * device/include/mcs51/P89c51RD2.h,
3527         * device/include/mcs51/P89LPC901.h,
3528         * device/include/mcs51/P89LPC922.h,
3529         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3530
3531 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3532
3533         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3534         to fix missing stack pragma in compiled binary object file,
3535
3536 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3537
3538         * support/packihx/configure.in,
3539         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3540         determine sizeof basic types even while cross compiling
3541
3542 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3543
3544         * src/avr/gen.c (aopop),
3545         * src/ds390/gen.c (aopOp),
3546         * src/hc08/gen.c (aopOp),
3547         * src/mcs51/gen.c (aopop),
3548         * src/pic16/gen.c (pic16_aopOp),
3549         * src/pic/gen.c (aopOp),
3550         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3551         if size of operand is smaller than spill location
3552
3553 2006-05-12 Borut Razem <borut.razem AT siol.net>
3554
3555         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3556           have to have CR/LF line endings even if they are checked out on *nix
3557           or on WIN32 in cygwin binmode
3558
3559 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3560
3561         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3562         * device/include/ds80c390.h: added sfr16 definitions
3563         * src/ds390/gen.c,
3564         * src/ds390/gen.h,
3565         * src/ds390/main.c,
3566         * src/ds390/ralloc.c,
3567         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3568           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3569           bit returning functions
3570         * support/regression/tests/sfr16.c: enabled test on ds390
3571
3572 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3573
3574         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3575         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3576
3577 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3578
3579         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3580         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3581           (cl_address_space constructor): removed expensive initialization,
3582           (cl_address_space::get_cell): extended for late initialization,
3583           (cl_address_space::*): use late initialization,
3584           (cl_address_decoder::activate): removed expensive initialization,
3585           This reduced regression test running time by 25%
3586
3587 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3588
3589         * packihx/,
3590         * configure.in,
3591         * configure,
3592         * sdcc.dsw,
3593         * Makefile.bcc,
3594         * Makefile.in,
3595         * support/packihx/Makefile.in,
3596         * support/packihx/clean.mk,
3597         * support/packihx/Makefile.bcc,
3598         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3599
3600 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3601
3602         * src/SDCCval.c (valNot): fix for regression test failure
3603           of not.c on big endian hosts
3604
3605 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3606
3607         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3608
3609 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3610
3611         * device/lib/mcs51/Makefile.in: changed string comparison operator
3612           to = for POSIX compliance; == is bash extension
3613
3614 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3615
3616         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3617           kosmonaut_pirx
3618
3619 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3620
3621         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3622         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3623         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3624         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3625         bug report #1478657,
3626
3627 2006-05-05 Borut Razem <borut.razem AT siol.net>
3628
3629         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3630           making the html
3631
3632 2006-05-02 Borut Razem <borut.razem AT siol.net>
3633
3634         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3635           create *.ind, which made make to fail if invoked with -j 2
3636
3637 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3638
3639         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3640           Hubert Sack for patch 1479782
3641
3642 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3643
3644         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3645
3646 2006-05-01 Raphael Neider <rneider AT web.de>
3647
3648         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3649           (create_pic): store only prefix-free device name,
3650           (init_pic): check for device names with "16" prefix,
3651           (list_valid_pics),
3652         * src/pic/device.h (struct PIC_device),
3653         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3654             stored device name,
3655         * device/include/pic/pic12f{635,675,629,683}.h,
3656         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3657         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3658         * device/include/pic/pic16f505.h,
3659         * device/lib/pic/libdev/pic16f505.c: removed
3660         * device/include/pic/pic14devices.txt: added support for pic12f
3661             devices, removed unsupported non 16-bit devices
3662             [above changes provided by patch from Zik Saleeba]
3663         * src/pic/*, src/pic16/*, device/include/pic16/*,
3664           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3665
3666 2006-05-01 Borut Razem <borut.razem AT siol.net>
3667
3668         * configure.in, configure, doc/Makefile.in:
3669           sync with nightly build makefile - latex, dvipdf and dvips
3670           not needed any more
3671
3672 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3673
3674         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3675         in the library source
3676
3677 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3678
3679         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3680
3681 2006-04-28 Raphael Neider <rneider AT web.de>
3682
3683         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3684         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3685           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3686         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3687
3688 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3689
3690         * device/lib/pic/libdev/Makefile.in,
3691         * device/lib/hc08/Makefile.in,
3692         * device/lib/gbz80/Makefile.in,
3693         * device/lib/z80/Makefile.in,
3694         * device/lib/ds390/Makefile.in,
3695         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3696         thanks to Borut for the bug report
3697         * configure.in,
3698         * configure: always create doc/Makefile independent from --enable-doc
3699         * Makefile.in: always install from directory doc independent from
3700         --enable-doc
3701         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3702         removed
3703         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3704         * doc/Makefile.in: install *.txt if present
3705         * device/include/Makefile.in (install): added installation of pic/*.inc
3706         and pic/*.txt files again, they were erroneously removed
3707
3708 2006-04-28 Raphael Neider <rneider AT web.de>
3709
3710         * src/pic/{gen.c,main.h,pcode.c},
3711         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3712             concerning signedness with casts
3713
3714 2006-04-28 Raphael Neider <rneider AT web.de>
3715
3716         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3717             definition of an interrupt handler,
3718         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3719             interrupt handler stuff from picglue() to separate routine,
3720           (picglue): enabled definition of intr handlers in files w/o main()
3721
3722 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3723
3724         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3725           compilation with MSVC 2005 Express Edition (VC8)
3726
3727 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3728
3729         * device/lib/Makefile: fixed build of gbz80 lib
3730
3731 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3732
3733         * support/regression/tests/bug-460010.c,
3734         * support/regression/tests/bug-524691.c,
3735         * support/regression/tests/bug-716242.c: removed conditional defines
3736           that are already in testfwk.h
3737
3738 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3739
3740         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3741           (AccAXRsh1): added, shift right by 1,
3742           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3743            AccAXLrl1
3744         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3745
3746 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3747
3748         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3749         remove cast to same type
3750         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3751         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3752         * as/z80/Makefile,
3753         * link/z80/Makefile: removed, they have moved to
3754         Makefile.in files
3755         * configure,
3756         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3757         * install-sh: fix bug #1204398 by setting umask 0022
3758         * device/lib/Makefile: separate build of z80 and gbz80 lib
3759
3760 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3761
3762         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3763         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3764
3765         One basic decision: e.g. src/clean.mk includes further files. In order
3766         to make this work there are two solutions:
3767         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3768           run configure on them. This way they can use
3769           'include $(srcdir)/port-clean.mk'
3770         - always include clean.mk by the Makefile at the same level. To avoid
3771           that `make clean` tries to include and build Makefile.dep the
3772           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3773           implemented, because now even `make uninstall` doesn't create
3774           Makefile.in. clean.mk could be eliminated by pasting it in
3775           Makefile.in.
3776
3777         * debugger/mcs51/Makefile.in: build own objects from library sources
3778         (SLIB, SDCC) in current directory
3779
3780         * configure, configure.in: renamed --disable-device-lib-build in
3781         --disable-device-lib; added --enable-doc, the required tools are
3782         searched by configure; added result message; the toolchain for the
3783         belonging ports are now only built, if the port is enabled.
3784
3785         * support/regression/*: all output is written in directory gen, because
3786         the fwk and ports directories don't livet in the build tree using vpath
3787
3788         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3789         --disable-device-lib, added --enable-doc, added section VPATH
3790
3791         * sim/ucsim/configure.in,
3792         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3793         z80 are enabled by default
3794
3795 2006-04-24 Raphael Neider <rneider AT web.de>
3796
3797         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3798             to config word, "pic14_"-prefixed some extern functions
3799           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3800             config word has been found
3801         * src/pic/device.h: added prototypes
3802         * src/pic/pcode.c: added "pic14_"-prefix where needed
3803         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3804             fixup
3805         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3806             words,
3807           (pic14emitRegularMap): ignore config words,
3808           (pic14createInterruptVect): moved generating __config directives away
3809           (picglue): have __config directives emitted
3810
3811 2006-04-24 Borut Razem <borut.razem AT siol.net>
3812
3813         * doc/Makefile: sync with nightly build makefile
3814
3815 2006-04-24 Raphael Neider <rneider AT web.de>
3816
3817         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3818             registers that have not been assigned proper liveranges,
3819             fixes #1469504 and #1474602,
3820           (pCodeRegOptimizeRegUsage): fixed typo in comment
3821
3822 2006-04-24 Borut Razem <borut.razem AT siol.net>
3823
3824         * device/examples/main8051.c: deleted - it was removed from CVS
3825           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3826           after the transition to Subversion
3827         * src/SDCCalloc.h: deleted - it was removed  from CVS
3828           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3829           after the transition to Subversion
3830         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3831           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3832           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3833           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3834
3835 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3836
3837         * as/asx8051.dsp: added mcs51/strcmpi.h
3838         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3839         * as/hc08/aslink.h: updated lnksect prototype
3840         * as/hc08/asm.h,
3841         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3842         * as/hc08/asmain.c,
3843         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3844           (newdot): handle A_ABS
3845         * as/hc08/asout.c,
3846         * as/mcs51/asout.c (outarea): output address
3847         * as/hc08/lkaomf51.c,
3848         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3849         * as/hc08/m08pst.c,
3850         * as/mcs51/i51pst.c,
3851         * as/z80/z80pst.c: "ABS" is not A_OVR
3852         * as/hc08/lkarea.c (newarea): read a_addr,
3853           (lnkarea): added codemap array, sort absolute areas to the front,
3854            combine all GSINITx/GSFINAL,
3855           (find_empty_space, allocate_space): new functions,
3856           (lnksect): return next address, handle absolute sections
3857         * as/mcs51/lkarea.c (newarea): read a_addr,
3858           lnksect2 prototype changed,
3859           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3860           (find_empty_space, allocate_space): new, factored out of lnksect2,
3861           (lnksect2): return next address, handle absolute sections
3862         * as/hc08/lkhead.c,
3863         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3864         * as/hc08/lklibr.c (addfile, fndsym),
3865         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3866           index out of range and detect both '\' and '/'
3867         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3868         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3869           regression tests (ds390 cannot return bool yet)
3870         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3871           document critical interrupts on z80, document changed SDCC define
3872         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3873           (_a390_mapping): added .org directive
3874         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3875           (genMultOneByte): fixed warnings
3876         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3877           ones
3878         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3879         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3880           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3881         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3882         * src/pic16/main.c: removed newReg prototype
3883         * src/pic16/pcode.c,
3884         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3885           warnings
3886         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3887           ones
3888         * src/pic16/ralloc.c
3889         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3890           to fix warnings
3891         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3892           from short to PIC_OPTYPE
3893         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3894         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3895           optype from short to PIC_OPTYPE
3896         * src/port.h: made int_size unsigned to fix warnings
3897         * src/SDCC.y: fixed warning on MSVC
3898         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3899         * src/SDCCopt.c (convertToFcall): fixed warnings
3900         * src/SDCCsymt.h: removed double prototype for genSymName
3901         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3902           offset int to fix warnings
3903
3904 2006-04-22 Borut Razem <borut.razem AT siol.net>
3905
3906         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3907           references to CVS replaced with Subversion
3908
3909 2006-04-21 Borut Razem <borut.razem AT siol.net>
3910
3911         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3912           references to CVS replaced with Subversion
3913
3914 2006-04-19 Borut Razem <borut.razem AT siol.net>
3915
3916         * src/version.awk: adapted for svn
3917         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3918           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3919           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3920           /binutils-avr/etc/*.vi, *.jin: removed all properties
3921           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3922
3923 2006-04-19 Borut Razem <borut.razem AT siol.net>
3924
3925         * CVS to Subversion migration completed
3926
3927 2006-04-18 Borut Razem <borut.razem AT siol.net>
3928
3929         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3930           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3931
3932 2006-04-17 Borut Razem <borut.razem AT siol.net>
3933
3934         * device/include/Makefile.in: added pic/*.inc to the installation
3935
3936 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3937
3938         * support/regression/collate-results.py: fixed output in case of
3939         a valdiag error
3940         * support/regression/generate-cases.py: fixed splitting of pathnames
3941         with dots
3942         * as/hc08/lklibr.c (addfile),
3943         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3944
3945 2006-04-11 Raphael Neider <rneider AT web.de>
3946
3947         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3948         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3949         * src/pic16/pcode.c (assignValnums): fixed #1460578
3950
3951 2006-04-11 Raphael Neider <rneider AT web.de>
3952
3953         * device/lib/pic/libdev/*.c,
3954         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3955           fixes #1468739, enables compilation in --std-c99 mode
3956         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3957
3958 2006-04-11 Raphael Neider <rneider AT web.de>
3959
3960         * src/pic/device.c (find_device): removed debug output
3961           (list_valid_pics): enabled verbose listing of supported devices
3962         * device/include/stdbool.h: define bool as char for pic14/16 as well
3963
3964 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3965
3966         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3967
3968 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3969
3970         * .version: bumped version to 2.5.6
3971         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3972
3973 2006-04-06 Raphael Neider <rneider AT web.de>
3974
3975         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3976         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3977         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3978           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3979             pic14_constructAbsMap
3980           (pic14printPublics): declare absolute global symbols as global
3981           (pic14createInterruptVect),
3982         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3983           (newReg): assume new registers unused, use correct name in
3984             hashtable (reg->name instead of name), more debugLog output
3985         * src/pic/device.h (PIC_device): added fields for verbose output
3986         * src/pic/device.c: moved device definition to pic14devices.txt,
3987             added routines for runtime parsing of pic14devices.txt,
3988             added support for second config word
3989         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3990           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3991           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3992           (_pic14_parseOptions): moved pCodeInitRegisters here
3993           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3994         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3995           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3996             handling the pseudo stack
3997         * device/lib/Makefile.in: ignore failures in objects-pic16,
3998         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3999         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4000         * device/lib/pic/Makefile.subdir,
4001         * device/lib/pic16/Makefile.subdir: improved clean rules
4002         * device/lib/pic/libdev/: NEW, pic14 device libraries
4003         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4004         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4005         * device/include/Makefile.in: create subdir and install pic14 headers
4006         * device/include/pic/p16f_common.inc: removed unused declarations
4007         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4008             PICs from inc2h.pl v1.6,
4009             replaced BIT_AT macros with struct declarations
4010         * device/include/pic/pic14devices.txt: definition of supported devices,
4011             all above improvements contributed by Zik Saleeba, thanks
4012         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4013         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4014             headers
4015
4016 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4017
4018         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4019         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4020           thanks to Charles Olds
4021
4022 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4023
4024         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4025
4026 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4027
4028         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4029         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4030         * support/regression/bug1464657.c: added, new test
4031
4032 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4033
4034         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4035           version number
4036
4037 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4038
4039         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4040           --no-peep and --peep-file <file> are used don't use default rules but
4041           do use the <file>
4042
4043 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4044
4045         * src/mcs51/gen.c (genCall): fixed bug 1457608
4046
4047 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4048
4049         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4050         changes seem to cause (trigger?) problems with the build system.
4051
4052 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4053
4054         * src/SDCCpeeph.c (operandsLiteral): new, added,
4055           (callFuncByName): inserted operandsLiteral
4056         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4057
4058 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4059
4060         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4061         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4062
4063 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4064
4065         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4066           implemented patch 1120823 Thanks to Willy De la Court (normal
4067           interrupts need an interrupt number now if they are made critical),
4068           and enabled nesting of critical functions though not for gbz80
4069           (genCritical, genEndCritical): added functions
4070           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4071         * src/z80/mappings.i: added "ei" to all mappings
4072
4073 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4074
4075         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4076         submitted by the Debian SDCC maintainer Aurelien Jarno:
4077         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4078         archive with gcc 4.1 on mips and wrote the patch"
4079
4080 2006-03-16 Raphael Neider <rneider AT web.de>
4081
4082         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4083           the left operand is shorter than the result (c* = lit-c* + int),
4084           fixes bug #1450796
4085         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4086           OP_SYMBOL
4087
4088 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4089
4090         * src/.version: increased version number to 2.5.5
4091         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4092         linking is done manually in pic16 port's _linkEdit,
4093         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4094         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4095         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4096         allocate asmop as AOP_ACC,
4097         (aopForRemat): added parameter 'bool result' in function declaration,
4098         (pic16_aopGet): return AOP_ACC when accessing WREG,
4099         (pic16_popGetTempReg): minor modification,
4100         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4101         'pic16_allocWithIdx',
4102         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4103         calling function in absolute addresses,
4104         (genAssign): take into account AOP_ACC asmop,
4105         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4106         * src/pic16/pcoderegs.c: some debug functions and lines added,
4107         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4108         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4109         register too,
4110         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4111         call to allocReg, not by manually allocating a new one,
4112         (pic16_assignRegisters): now before going through the register
4113         allocating functions mark all registers as free. This eliminates some
4114         side effects resulting from peephole parser done earlier in the backbone
4115
4116 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4117
4118         * src/SDCCicode.c (geniCodeLogic),
4119         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4120
4121 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4122
4123         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4124           (genSend): bugfix, do not allocate and free twice,
4125           (shiftRLong): handle partially overlapping aops
4126         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4127
4128 2006-03-08 Borut Razem <borut.razem AT siol.net>
4129
4130         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4131           for pic16
4132
4133 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4134
4135         * support/regression/tests/bug1409955.c: new, added
4136         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4137         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4138           (aopForSym, aopOp): increment asmop.allocated if reused,
4139           (freeAsmop): decrement asmop.allocated and check for zero instead of
4140           using asmop.freed,
4141           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4142           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4143            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4144            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4145            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4146            genSignedRightShift, genRightShift, genDataPointerGet,
4147            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4148            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4149             in reverse order from allocation,
4150           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4151             added swappedLR to keep track
4152         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4153           pdata & code for GCC, z80, gbz80 & hc08
4154         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4155
4156 2006-03-08 Raphael Neider <rneider AT web.de>
4157
4158         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4159
4160 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4161
4162         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4163         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4164         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4165
4166 2006-03-06 Borut Razem <borut.razem AT siol.net>
4167
4168         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4169           made the linker quiet
4170
4171 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4172
4173         * src/pic16/gen.c (genPcall): fixed bug #1443644
4174         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4175         which dumps before the function entry point a data byte which represents
4176         the number of the local variables used by the specified function, added
4177         'xinst' for initial support for Extended Instruction Support,
4178         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4179         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4180         port->fun_prefix anymore (may change later),
4181         (genFunction, genEndFunction): do not store/restore local registers for
4182         _main (this should take care the --main-return command line option in
4183         the future),
4184         (genOr): removed some legacy pic-port instructions,
4185         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4186         performing operations with SFR's causes data to be written more than
4187         once to each SFR. Perhaps SFRs should be handled in special cases...
4188         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4189         pcode.h
4190         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4191         into account for stack starting position,
4192         (struct OPTIONS pic16_optionsTable): added command line argument
4193         --extended or -y for Extended Instruction Support,
4194         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4195         (deassignLRs): *** perhaps the most important change, old 'for' code
4196         (commented out for reference), didn't account for some registers which
4197         were left marked 'not free' after a pointer operation. The change
4198         reduces register usage a lot in some cases
4199
4200 2006-03-04 Borut Razem <borut.razem AT siol.net>
4201
4202         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4203           _clean
4204         * support/regression/tests/bug-524697.c: decreased array size for
4205           mcs51 to fit into the internal RAM
4206         * support/regression/Makefile.in: a little bit more verbose
4207
4208 2006-03-03 Borut Razem <borut.razem AT siol.net>
4209
4210         * support/regression/fwk/lib/testfwk.c,
4211           support/regression/fwk/include/testfwk.h: introduced function
4212           _prints(), nonrecursive _printn(), call _initEmu() from main()
4213         * support/regression/ports/gbz80/support.asm,
4214           support/regression/ports/ucz80/support.asm,
4215           support/regression/ports/z80/support.asm,
4216           support/regression/ports/ds390/support.c,
4217           support/regression/ports/hc08/support.c,
4218           support/regression/ports/host/support.c,
4219           support/regression/ports/mcs51/support.c,
4220           support/regression/ports/xa51/support.c: added empty _initEmu()
4221           function
4222         * support/regression/ports/pic16/gpsim.cmd,
4223           support/regression/ports/pic16/spec.mk,
4224           support/regression/ports/pic16/support.c,
4225           support/regression/Makefile.in: added pic16 regression test
4226
4227 2006-03-01 Raphael Neider <rneider AT web.de>
4228
4229         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4230           genConstPointerGet): use safe way of generating MOVFF to cover
4231             literals as well as registers, fixes bug #1440527
4232         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4233             dereference
4234           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4235             more correctly, fixes bug #1232186
4236           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4237         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4238             gplink guess the correct processor in more cases, applied patch
4239             from Till Riedel attached to and fixing bug #1436552
4240
4241 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4242
4243         * support/regression/tests/array.c: added, contains check for #1434401
4244         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4245
4246 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4247
4248         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4249         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4250         * device/include/mcs51/c8051f326.h,
4251         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4252         * device/include/mcs51/c8051f000.h,
4253         * device/include/mcs51/c8051f018.h,
4254         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4255           PCON_IDLE,PCON_STOP and added sfr16 definitions
4256
4257 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4258
4259         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4260           genGetWord): fixed bug 1409955
4261
4262 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4263
4264         * device/include/hc08/mc68hc908gp32.h,
4265         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4266
4267 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4268
4269         * src/SDCCast.c (constExprValue): return NULL if not a value
4270         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4271         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4272         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4273
4274 2006-02-13 Borut Razem <borut.razem AT siol.net>
4275
4276         * src/regression/ptrarg.c: added, fails due to bug #1430967
4277         * src/regression/Makefile: ptrarg.c added, ...
4278
4279 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4280
4281         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4282         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4283
4284 2006-02-11 Borut Razem <borut.razem AT siol.net>
4285
4286         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4287           print "Processor: xxx" message to stdout only if --verbose
4288
4289 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4290
4291         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4292         * support/regression/tests/bug1426356.c: added
4293         * support/regression/tests/bitfields.c: removed 2 tests
4294
4295 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4296
4297         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4298         * device/include/mcs51/c8051f330.h,
4299         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4300           PCON_IDLE,PCON_STOP and added sfr16 definitions
4301         * device/lib/_divsint.c,
4302         * device/lib/_divuint.c,
4303         * device/lib/_divulong.c,
4304         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4305           register bank bug for small stackauto
4306
4307 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4308
4309         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4310
4311 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4312
4313         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4314         * all.dsp: corrected several bin paths
4315         * device/include/mcs51/c8051f120.h,
4316         * device/include/mcs51/c8051f300.h,
4317         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4318           to PCON_IDLE,PCON_STOP
4319         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4320         * device/lib/printf_large.c (output_float): fixed bug 1388703
4321         * support/regression/tests/bug1057979.c: added test for bug 1388703
4322
4323 2006-02-08 Raphael Neider <rneider AT web.de>
4324
4325         * src/pic/pcode.c (pciTRIS): fixed typo,
4326           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4327           (LinkFlow): fixed handling of flows that end in a call,
4328           (ReuseReg): perform safety check earlier
4329         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4330             to work with flows at the beginning of a pBlock,
4331             fixes #1426557 (Symbol not previously defined),
4332           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4333             usage information
4334           (RemoveUnusedRegisters): update register usage info
4335         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4336             created, reuse existing ones instead
4337         * src/pic/gen.c (genPcall): fixed #1424719
4338
4339 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4340
4341         * link/z80/lkmain.c,
4342         * link/z80/lklex.c,
4343         * link/z80/lkdata.c,
4344         * link/z80/aslink.h: fixed build on current cygwin:
4345         replaced getline() by lk_getline()
4346
4347 2006-02-01 Borut Razem <borut.razem AT siol.net>
4348
4349         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4350           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4351           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4352           src/regression/bool1.c, src/regression/bool2.c,
4353           src/regression/bool3.c, src/regression/call1.c,
4354           src/regression/compare.c, src/regression/compare10.c,
4355           src/regression/compare2.c, src/regression/compare3.c,
4356           src/regression/compare4.c, src/regression/compare5.c,
4357           src/regression/compare6.c, src/regression/compare7.c,
4358           src/regression/compare8.c, src/regression/compare9.c,
4359           src/regression/configword.c, src/regression/for.c,
4360           src/regression/inline.c, src/regression/mult1.c,
4361           src/regression/nestfor.c, src/regression/or1.c,
4362           src/regression/pointer1.c, src/regression/ptrfunc.c,
4363           src/regression/rotate1.c, src/regression/rotate2.c,
4364           src/regression/rotate3.c, src/regression/rotate4.c,
4365           src/regression/rotate5.c, src/regression/rotate6.c,
4366           src/regression/rotate7.c, src/regression/string1.c,
4367           src/regression/struct1.c, src/regression/sub.c,
4368           src/regression/sub2.c, src/regression/switch1.c,
4369           src/regression/while.c, src/regression/xor.c,
4370           src/regression/create_stc, src/regression/simulate,
4371           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4372           regression tests
4373         * src/regression/gpsim_assert.h: added
4374
4375 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4376
4377         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4378         ((void (code *) (void)) 0) ();
4379         * as/hc08/aslex.c,
4380         * as/hc08/aslink.h,
4381         * as/hc08/asm.h,
4382         * as/hc08/asmain.c,
4383         * as/hc08/lkdata.c,
4384         * as/hc08/lklex.c,
4385         * as/hc08/lkmain.c,
4386         * as/mcs51/aslex.c,
4387         * as/mcs51/aslink.h,
4388         * as/mcs51/asm.h,
4389         * as/mcs51/asmain.c,
4390         * as/mcs51/lkdata.c,
4391         * as/mcs51/lklex.c,
4392         * as/mcs51/lkmain.c,
4393         * as/z80/aslex.c,
4394         * as/z80/asm.h,
4395         * as/z80/asmain.c: fixed build on current cygwin:
4396         replaced getline() by as_getline()
4397
4398 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4399
4400         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4401         declarator in the symbol chain
4402         * src/SDCCsymt.h,
4403         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4404         parameter list for function pointers
4405         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4406         * support/regression/tests/bug-716242.c: added
4407
4408 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4409
4410         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4411         offset if possible
4412         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4413
4414 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4415
4416         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4417         inifinitely recurseable, added static
4418         * support/regression/tests/bug-1408066.c: added
4419
4420 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4421
4422         * src/SDCCicode.h,
4423         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4424         renamed, added possibility to create "postLoopLbl"-labels
4425         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4426         newiTempLoopHeaderLabel
4427         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4428         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4429         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4430         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4431         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4432         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4433         (basicInduction): fixed bug #136564, made static,
4434         (loopInduction): changed parameter of basicInduction, made static,
4435         (addPostLoopBlock): added
4436         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4437         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4438         findLoopEndSeq
4439         * support/regression/tests/bug-136564.c: added
4440         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4441         --std-sdcc99 to LIBSDCCFLAGS
4442
4443 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4444
4445         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4446         while loop
4447         * support/regression/tests/bug-1406131.c: added
4448
4449 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4450
4451         * src/SDCCast.c (decorateType): fix promotion of unary minus
4452         * src/SDCCsymt.c (computeType): beautified
4453         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4454         (valUnaryPM, valComplement): fix sign and promotion,
4455         (valNot): ANSI: result type is int (SDCC: unsigned char)
4456         * support/regression/tests/uminus.c: speedup by removing superflous
4457         test case 'int'
4458         * support/regression/tests/onebyte.c: added promotion and signedness
4459         tests for unary minus
4460         * support/regressions/tests/bug-477927.c: disable warning about
4461         uninitialized variables
4462         * support/regression/tests/not.c: added
4463
4464 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4465
4466         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4467         * src/mcs51/gen.c (gen51Code): show final register usage after
4468         fillGaps in asm with --i-code-in-asm
4469         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4470         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4471         incUsed, rliveClear, adjustIChain): made static,
4472         (setFromRange): excluded because it's unused,
4473         (findPrevUseSym, markWholeLoop): added,
4474         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4475         through all branches of predecessors enables sdcc to emit the warning
4476         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4477         (rlivePoint): made static, added parameter emitWarnings which is only
4478         true during the first run out of two,
4479         (findRecursiveSucc, findRecursivePred): removed,
4480         (computeLiveRanges): made static, added parameter emitWarnings,
4481         (dumpIcRlive): added for debugging only
4482         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4483         removed prototype of setFromRange()
4484         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4485         in call of computeLiveRanges()
4486         * support/regression/tests/bug-895992.c: added
4487         * support/regression/tests/bug-971834.c: added
4488         * support/valdiag/tests/bug-895992.c: added
4489         * support/valdiag/tests/bug-971834.c: added
4490
4491 2005-12-18 Raphael Neider <rneider AT web.de>
4492
4493         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4494           (genUnpackBits): improved code for direct operands,
4495           (genPackBits): improved code for literal assignment to bitfields
4496             and for direct destination operands (no FSR indirection),
4497             prevented redundant AND, fixes #1362800,
4498           (AccLsh): added parameter to disable masking of the result
4499         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4500           skip instructions with side-effects (like incfsz),
4501           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4502         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4503         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4504           fixes #1375263
4505
4506 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4507
4508         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4509         volatile variables as spill location
4510
4511 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4512
4513         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4514         replacing literals
4515         * support/regression/tests/bug-1376320.c: added
4516
4517 2005-12-08 Raphael Neider <rneider AT web.de>
4518
4519         * src/pic/device.c: renamed is_shared to pic14_is_shared
4520         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4521         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4522           (is_valid_identifier): added for above workaround
4523
4524 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4525
4526         * device/lib/Makefile.in: fixed to enable port-specific-objects
4527         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4528           char, thanks Hubert Sack
4529         * doc/sdccman.lyx: documented --xstack-loc,
4530           elaborated a bit more on interrupts and pitfalls,
4531           removed "setjmp/longjmp unsupported",
4532           documented some unsupported C99 features
4533         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4534         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4535           if, thanks Hubert Sack
4536         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4537         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4538           make make_library
4539         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4540           regression tests can report resource usage (rfe 700441)
4541         * support/regression/collate-results.py: report resource usage
4542         * support/regression/ports/ds390/spec.mk,
4543         * support/regression/ports/hc08/spec.mk,
4544         * support/regression/ports/mcs51/spec.mk,
4545         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4546         * support/regression/ports/ds390/uCsim.cmd,
4547         * support/regression/ports/hc08/uCsim.cmd,
4548         * support/regression/ports/mcs51/uCsim.cmd,
4549         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4550         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4551           library, use the default one
4552         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4553           building the library
4554
4555 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4556
4557         * config.dsp: added dependency on .version and configure_vc.awk
4558         * device/include/setjmp.h: updated for --stack-auto and --xstack
4559         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4560         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4561         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4562         * device/lib/libsdcc.lib: added _setjmp
4563         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4564           (decorateType): fixed bug 1372851,
4565           (optimizeGetHbit): fixed warning
4566         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4567           array initialisation
4568         * support/regression/tests/bug1057979.c: added test for bug 1358192
4569         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4570
4571 2005-12-03 Borut Razem <borut.razem AT siol.net>
4572
4573         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4574           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4575
4576 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4577
4578         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4579         createIval): implement symbol independant "flexible array member",
4580         (createIvalCharPtr): implemented flexible array initialisation with a
4581         string
4582         * src/SDCCsymt.c (copyStruct): removed,
4583         (getSize): fixed misleading comment,
4584         (getAllocSize): removed, the additional allocation size is now in
4585         sym->flexArrayLength,
4586         (checkStructFlexArray): new, syntax checks for flexible array members,
4587         (compStructSize): added syntax checks for "flexible array members"
4588         (copyStruct): removed,
4589         (copyLinkChain): removed inefficient fix for bug 770487
4590         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4591         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4592         symbol->flexArrayLength
4593         * src/SDCCerr.c,
4594         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4595         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4596         * support/regression/tests/structflexarray.c: added
4597         * support/valdiag/tests/structflexiblearray.c: added
4598
4599 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4600
4601         * src/SDCCast.c (decorateType): fixed bug 1368489
4602         * support/Util/SDCCerr.c,
4603         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4604
4605 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4606
4607         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4608           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4609
4610 2005-11-27 Borut Razem <borut.razem AT siol.net>
4611
4612         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4613           support/cpp2/mkdeps.h: added command line option
4614           -obj-ext=<extension> to SDCPP to define object file externion, used
4615           for generation of make dependencies (-M)
4616         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4617
4618 2005-11-26 Borut Razem <borut.razem AT siol.net>
4619
4620         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4621           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4622           added pic and pic16 libraries
4623
4624 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4625
4626         * device/include/float.h: Corrected typo in prototype of __fsgt
4627
4628 2005-11-25 Borut Razem <borut.razem AT siol.net>
4629
4630         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4631           added creation of model-mcs51-stack-auto libraries
4632
4633 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4634
4635         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4636         and fields-list too
4637         * src/SDCCast.c (createIvalArray): removed obsolete comment
4638
4639 2005-11-24 Borut Razem <borut.razem AT siol.net>
4640
4641         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4642           added missing device/lib/mcs51/crt*.asm sources
4643
4644 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4645
4646         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4647
4648 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4649
4650         * device/lib/_fs2schar.c,
4651         * device/lib/_fs2sint.c,
4652         * device/lib/_fs2slong.c: optimized inline asm
4653
4654 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4655
4656         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4657           Better handling of floats between -1.0 and 0.0.
4658
4659 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4660
4661         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4662           (the missing "if"s prohibited removal of redundant labels)
4663
4664 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4665
4666         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4667           Properly convert floats between -1.0 and 0.0 to long, int, and char
4668           types (max integer value of negative floats tends to zero).
4669         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4670           Removed changes made so to work properly with floats between
4671           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4672           and _fs2char.c
4673
4674 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4675
4676         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4677         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4678         (genCast) cosmetic change
4679         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4680         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4681         from mcs51
4682         * support/regression/tests/bitfields (testSignedBitfields): added
4683
4684 2005-11-18 Borut Razem <borut.razem AT siol.net>
4685
4686         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4687         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4688           introduced SILENT option to make building of pic16 libraries less
4689
4690 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4691
4692         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4693           Now they work properly with floats between -1.0 and 0.0
4694         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4695
4696 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4697
4698         * src/SDCCicode.c (printOperand): added missing else
4699
4700 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4701
4702         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4703         reformatted for better readability
4704         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4705         signed bitfields
4706
4707 2005-11-17 Borut Razem <borut.razem AT siol.net>
4708
4709         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4710           introduced SILENT option to make building of pic16 libraries less
4711           verbose - used for nightly snapshot build
4712         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4713           available on Win32 platforms.
4714         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4715           medium, large, pic and pic16
4716
4717 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4718
4719         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4720           printf("%f"...) sets fraction to zero.
4721
4722 2005-11-16 Raphael Neider <rneider AT web.de>
4723
4724         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4725           fixes #1357221
4726         * src/pic/gen.c (genIfx): implemented for CARRY bit
4727         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4728           to generic pointers, fixes #1357332,
4729           (pic16_movLit2f): NEW,
4730           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4731
4732 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4733
4734         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4735
4736 2005-11-11 Raphael Neider <rneider AT web.de>
4737
4738         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4739         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4740           compute pointer's type from operand,
4741           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4742           improved single bit reads, fixes bug #1353379
4743
4744 2005-11-09 Borut Razem <borut.razem AT siol.net>
4745
4746         * support/scripts/sdcc.nsi: added lib/pic to the package
4747
4748 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4749
4750         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4751
4752 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4753
4754         * support/regression/tests/bug1348008.c: added
4755         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4756         * support/regression/tests/bug1337835.c: updated comment
4757
4758 2005-11-06 Borut Razem <borut.razem AT siol.net>
4759
4760         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4761           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4762           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4763           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4764           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4765           dynamic construction of cl_error_class and derivates - 2.nd try
4766
4767 2005-11-05 Borut Razem <borut.razem AT siol.net>
4768
4769         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4770           bug, which caused Bus Errors on sparc solaris
4771
4772 2005-11-04 Borut Razem <borut.razem AT siol.net>
4773
4774         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4775           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4776           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4777           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4778           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4779           and derivates to resolve the initialization problem on OSX
4780
4781 2005-11-02 Borut Razem <borut.razem AT siol.net>
4782
4783         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4784           corrected typo - #include <winsock2.h>
4785
4786 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4787
4788         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4789           (_asxxxx_mapping): added org directive for future enhancements
4790
4791 2005-11-01 Borut Razem <borut.razem AT siol.net>
4792
4793         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4794           enabled sockets on WIN32
4795         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4796
4797 2005-10-31 Borut Razem <borut.razem AT siol.net>
4798
4799         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4800           WIN32 backslash path delimiters should be escaped when used in C strings
4801         * support/regression/tests/bitfields.c: exclude failing assertions for
4802           __CYGWIN32__ and __MINGW32__ hosts
4803
4804 2005-10-30 Borut Razem <borut.razem AT siol.net>
4805
4806         * src/SDCCutil.c: corrected double comparison typo
4807
4808 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4809
4810         * device/lib/medium/Makefile: added for new memory model medium
4811         * device/include/asm/mcs51/features.h: updated for medium/pdata
4812         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4813           added Multiply & Accumulate sbit's and MAC0_PAGE define
4814         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4815         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4816         * device/lib/_mullong.c: update for medium model
4817         * device/lib/incl.mk: added medium model
4818         * doc/sdccman.lyx: documented medium model
4819         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4820         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4821         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4822         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4823           (allocParms): set SCLS and OCLS to pdata for medium model
4824         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4825           for pdata,
4826           (powof2): return <0 if not power of 2
4827         * src/avr/gen.c (genBitWise): use updated powof2
4828         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4829           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4830           (shiftLLeftOrResult): use B if necessary
4831         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4832         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4833         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4834         * support/regression/Makefile.in: added test-mcs51-medium
4835         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4836
4837 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4838
4839         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4840         specifier unsigned
4841         * device/lib/time.c (mktime): fixed bug 1334315
4842
4843 2005-10-28 Raphael Neider <rneider AT web.de>
4844
4845         * device/include/pic/p16f_common.inc: added common declarations
4846         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4847
4848 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4849
4850         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4851           (aopPutUsesAcc): added to predict accumulator use,
4852           (assignResultValue): save acc if necessary,
4853           (genMinusDec): store result if indirectly addressed,
4854           (genDivOneByte):  save acc if necessary,
4855           (movLeft2Result): bugfix if left already in acc,
4856           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4857             attention to accumulator use (esp. pdata),
4858           (genReceive): receive pdata correctly
4859         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4860         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4861
4862 2005-10-27 Raphael Neider <rneider AT web.de>
4863
4864         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4865
4866 2005-10-27 Raphael Neider <rneider AT web.de>
4867
4868         * .version: changed version to 2.5.4
4869         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4870         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4871           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4872             arithmetics support routines
4873         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4874         * device/lib/Makefile.in: also create installdir for pic
4875
4876         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4877           pic14 port as well
4878         * src/pic/device.c (dump_sfr): rewritten to delegate register
4879           placement to the linker (use `extern sym' rather than sym EQU addr),
4880           (validAddress): fixed to check last specified address
4881         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4882           (popGetLit): truncate literal value to 8 bit,
4883           (popGet): moved assert to more appropriate place
4884           (popGetExternal): create pCode operand from and mark the according
4885             symbol as being `extern'
4886           (popGetAddr): added sanity check on immediate's offset, provide
4887             GPOINTER tag on demand
4888           (aopPut): fixed for immediates,
4889           (mov2w_op): move operand's address or contents to WREG (depending on
4890             operand type), safer variant of mov2w,
4891           (movwf,call_libraryfunc): NEW, handy abbreviations,
4892           (get_argument_pcop,get_return_val_pcop,pass_argument,
4893           get_returnvalue): interface for accessing function parameters and
4894             return values,
4895           (assignResultValuei,genRet): use new parameter/return value interface
4896           (pic14_getDataSize): back to old version handling generic pointers,
4897           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4898             provided implementation and/or fixed old one,
4899           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4900             calls, removed legacy 8051 reference code
4901           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4902           (loadSignToC): NEW, move the operands sign bit to CARRY,
4903           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4904             genRightShiftSigned, accepts negative shift counts,
4905           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4906           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4907             generic pointers, __data pointers and __code pointers,
4908           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4909             and signed bitfields, limit bitfields to 8 bit,
4910           (genDataPointerGet): fixed number of bytes read,
4911           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4912           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4913             pointers to constant data are no longer assumed to point to __code
4914             space, removed invalid pointer types,
4915           (bitpatternFromVal): retrieve the PICs representation of an integer
4916             or float literal,
4917           (genDataPointerSet): fixed assigning to po_immediate operands,
4918           (genGenPointerSet): implemented as library call,
4919           (genIfx): fixed incorrect condition,
4920           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4921             provide GPOINTER tag according to destination's storage class,
4922           (genCast): added code to handle casting to generic pointers, added
4923             sign-/zero extension of the result
4924           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4925         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4926         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4927           extend the result
4928         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4929           address/register resides in the shared banks
4930           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4931             put all variables into separate sections (have the linker arrange
4932             them)
4933           (picglue): put init code and interrupt handlers in separate sections
4934         * src/pic/main.c: added port specific options table, modified to PORT
4935           structure to make GPOINTERs 3 byte, added pic14_options
4936           (_pic14_do_link): private linking routine (update paths to libraries,
4937             add libsdcc.lib by default)
4938         * src/pic/main.h: declare pic14_options
4939         * src/pic/pcode.c: fixed instructions i/o relations,
4940           (RegCond): reverted to correct version,
4941           (newpCodeOpLit): truncate literals to 8 bit,
4942           (genericPrint): added debug output,
4943           (getRegFromInstruction): fixed for various operand types, simplified
4944           (BuildFlow): fixed broken handling of isntructions with labels
4945           (LinkFlow): start at last instruction in flow (skip trailing comments),
4946             pass the flow on to the next instruction after CALL
4947           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4948           (insertPCodeInstruction): fixed inserting after a skip instruction,
4949           (DoBankSelect): fixed for labeled instructions
4950           (OptimizepBlock): honor --nopeep switch
4951           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4952         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4953         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4954           (pCodeOptime2pCodes): allow disabling this optimization via
4955             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4956             but is still buggy), started implementation of a dataflow based
4957             pCode optimization (CSE + dead code elimination)
4958           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4959         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4960           names are independant of the stack location and therefore portable across
4961           devices
4962
4963 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4964
4965         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4966           (selectSpil): fixed bug 1337835 by not spilling bit variables
4967         * support/regression/tests/bug1337835.c: added test for this bug
4968         * src/mcs51/peeph.def: restart after rule 3.c,
4969           addded rules 263.x to optimize loading constants
4970
4971 2005-10-26 Raphael Neider <rneider AT web.de>
4972
4973         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4974         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4975           (genAssign): emit warning when casting literals to generic pointer
4976             type, also applies when taking the address of a fixed variable,
4977           (genCast): improved casting to generic pointers
4978         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4979           extern variables, added verbose error message
4980         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4981
4982 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4983
4984         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4985         carry must be complemented too
4986         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4987         could be emitted by genMinus
4988         * src/SDCCval.c (constVal): fixed bug 1305065
4989
4990 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4991
4992         * src/SDCCast.c (addCast): added promotion for bit variables
4993         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4994         promotion casts + optimisation
4995         (optimizeGetWord): fix warning 'i' might be used uninitialized
4996         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4997         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4998
4999 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5000
5001         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5002         all chars are promoted to int; promotion should be handled in SDCCast.c
5003
5004 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5005
5006         * device/lib/_strcmp.c: Fixed bug 1326457
5007
5008 2005-10-11 Raphael Neider <rneider AT web.de>
5009
5010         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5011         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5012
5013 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5014
5015         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5016         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5017
5018 2005-10-04 Raphael Neider <rneider AT web.de>
5019
5020         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5021           device/lib/pic16/pics.all: added pic18f1320
5022         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5023
5024 2005-09-30 Raphael Neider <rneider AT web.de>
5025
5026         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5027         * src/pic16/devices.inc: NEW, provides device descriptions
5028         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5029
5030 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5031
5032         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5033           GETHBIT
5034
5035 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5036
5037         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5038           documented Any Order Bit, Higher Order Byte and Higher Order Word
5039         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5040         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5041           (optimizeGetAbit): new, to get any bit, not only the high bit,
5042           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5043           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5044           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5045           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5046             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5047             GETABIT, GETBYTE, GETWORD: decorate them,
5048           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5049           (ast_print): added GETABIT, GETBYTE, GETWORD
5050         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5051         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5052           (geniCodeBinary): new generic binary icode,
5053           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5054         * src/port.h: updated comment for PORT.hasExtBitOp
5055         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5056           (genGetByte): new, to get a single byte,
5057           (genGetWord): new, to get a word from a long,
5058           (gen51Code): added GETABIT, GETBYTE, GETWORD
5059         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5060
5061 2005-09-23 Raphael Neider <rneider AT web.de>
5062
5063         * configure.in, configure: have device/lib/pic configured
5064         * device/lib/Makefile.in: added model-pic14
5065         * device/lib/clean.mk: added pic/ to clean rule
5066         * device/lib/pic: added rudimentary pic14 library providing support
5067           functions for multiplication/division/generic pointer access
5068         * src/SDCCopt.c (convilong): mark support functions as extern
5069           for pic14 port as well
5070         * src/pic/gen.c (genMult): added assertions,
5071           (genpic14Code): emit warning on unhandled iCodes
5072         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5073         * src/pic/pcode.c (pCodeOpCopy),
5074         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5075           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5076           SFR_REGISTER}), made safe for future extensions
5077         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5078           instructions even if preceeded by SKIP instructions (also remove
5079           them); removed unused code
5080         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5081           prevents leaving parts of the structure uninitialized after copying
5082
5083 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5084
5085         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5086           ago by me
5087         * support/regression/tests/addsub.c: added test for the bug
5088
5089 2005-09-21 Raphael Neider <rneider AT web.de>
5090
5091         * device/include/pic16/pic18f1220.h,
5092           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5093         * device/lib/pic16/Makefile.rules: added missing opening paren
5094         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5095           are provided in genutils.c,
5096           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5097           operand/result sizes,
5098           (genCmp): assert on NULL pointers first, then check deref'ed values
5099         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5100           result size
5101
5102 2005-09-18 Raphael Neider <rneider AT web.de>
5103
5104         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5105           as these are now unused,
5106           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5107         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5108           local, avoids uninitialized pointer dereference on r->name
5109         * src/pic16/ralloc.c (newReg): fixed indentation
5110
5111 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5112
5113         * src/SDCCval.c (constVal): fixed bug 730366
5114         * support/Util/SDCCerr.c,
5115         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5116
5117 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5118
5119         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5120
5121 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5122
5123         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5124
5125 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5126
5127         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5128           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5129         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5130           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5131         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5132         * packihx/packihx.c (hexDigit): made c unsigned char
5133         * as/mcs51/lklibr.c (fndsym),
5134         * link/z80/lkgb.c (gb),
5135         * link/z80/lklibr.c (fndsym),
5136         * link/z80/lkrloc.c (relr),
5137         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5138         * src/SDCC.lex (checkCurrFile, process_pragma),
5139         * src/SDCCglue.c (spacesToUnderscores),
5140         * src/SDCCmain.c (setParseWithComma, processFile),
5141         * src/asm.c (tvsprintf, printCLine),
5142         * src/avr/gen.c (emitcode, aopPut),
5143         * src/ds390/gen.c (emitcode),
5144         * src/hc08/gen.c (emitcode, emitinline),
5145         * src/mcs51/gen.c (emitcode, genInline),
5146         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5147           tokenizeLineNode),
5148         * src/pic/ralloc.c (debugLog),
5149         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5150           tokenizeLineNode),
5151         * src/pic16/ralloc.c (debugLog),
5152         * src/z80/main.c (_process_pragma):
5153            made all ctype.h function calls safe
5154         * src/SDCCopt.c: include math.h for fabs
5155         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5156           and used them throughout the code to make ctype.h function calls safe
5157         * src/ds390/main.c (asmLineNodeFromLineNode),
5158         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5159         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5160            unsigned char*
5161         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5162           (newpCodeAsmDir): made ctype.h function calls safe
5163         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5164           pic16_emitcode):  made lbp unsigned char*
5165         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5166           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5167         * src/xa51/gen.c (emitcode),
5168         * src/z80/gen.c (_emit2): made lbp unsigned char*
5169         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5170            char*
5171
5172 2005-09-05 Raphael Neider <rneider AT web.de>
5173
5174         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5175           access bank splitpoint
5176
5177 2005-09-05 Raphael Neider <rneider AT web.de>
5178
5179         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5180
5181 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5182
5183         * .version: changed to version 2.5.3
5184         * doc/sdccman.lyx: changed version to 2.5.3,
5185           documented --codeseg and --constseg and pragma codeseg and constseg,
5186           documented bit parameters (reentrant) and bit returning
5187         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5188            currFunc->recvSize, but is this ok for all ports?
5189           (ast2iCode): result of ~ on unsigned char must be cast to int for
5190            bool to work
5191         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5192           function pointers in bit space
5193         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5194           (processFuncArgs): call port.reg_parm() with reentrancy info
5195         * src/port.h,
5196         * src/avr/main.c,
5197         * src/ds390/main.c,
5198         * src/hc08/main.c,
5199         * src/pic/main.c,
5200         * src/pic16/main.c,
5201         * src/xa51/main.c,
5202         * src/z80/main.c: port.reg_parm prototype extended with
5203           "bool reentrant" parameter
5204         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5205           options.stackAuto for allocating bit register parameters
5206         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5207           (genSend): set BitBankUsed if it is,
5208           (selectRegBank): factored out of genCall for use in genPcall,
5209           (genCall): removed redundant dtype assignmen, use selectRegBank,
5210           (genPcall): handle returning in Carry properly, save in F0 if needed,
5211           (genReceive): handle bit register parameters
5212         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5213           (mcs51_assignRegisters): enable bit registers for all reentrant
5214            functions and don't set BitBankUsed unconditionally
5215         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5216         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5217         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5218
5219 2005-08-27 Borut Razem <borut.razem AT siol.net>
5220
5221         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5222         ppc-osx (Darwin) does not support -u option. It seems that it is
5223         supported only on Linux - GNU cp
5224
5225 2005-08-25 Borut Razem <borut.razem AT siol.net>
5226
5227         * sim/ucsim/gui.src/serio.src/Makefile.in,
5228           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5229           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5230           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5231           install and strip, since the strip at /usr/ccs/bin should be used
5232           on solaris
5233
5234 2005-08-24 Borut Razem <borut.razem AT siol.net>
5235
5236         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5237
5238 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5239
5240         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5241         ffffffffu
5242
5243 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5244
5245         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5246         * as/mcs51/lkmain.c (link_main): fixed warning
5247         * device/include/stdbool.h: ds390 has no advanced bit support yet
5248         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5249         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5250         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5251           and updated their macros
5252         * src/SDCCval.c (constVal): updated comment for renamed b_long
5253
5254 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5255
5256         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5257         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5258           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5259           (oprio): set priority for '['
5260         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5261            and adb_24_bit
5262         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5263         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5264         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5265         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5266           added overlayable BIT_BANK area
5267         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5268           (summary2): explain 'T' in legenda
5269         * as/mcs51/lkrloc.c: replaced old K&R style,
5270           (relr): added R_BIT processing,
5271           (errmsg): added "Bit-addressable relocation error",
5272           (adb_bit): added for converting from byte- to bit-addressable space,
5273           (adb_24_bit): added for converting from byte- to bit-addressable space
5274         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5275            used in reentrant functions now even as return value
5276         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5277         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5278           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5279         * src/SDCCglobl.h: added indicator BitBankUsed
5280         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5281            the bit registers b0-b7
5282         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5283           (geniCodeCast): fixed bug 1263853,
5284           (geniCodeLogicAndOr): put result in bool or char,
5285           (geniCodeReceive): added parameter func for accessing the return type,
5286           (geniCodeFunctionBody): pass func to geniCodeReceive
5287         * src/SDCCmain.c: added indicator BitBankUsed
5288         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5289         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5290           (checkSClass): don't put automatic bool/bit on stack,
5291           (checkFunction): removed check on function cannot return bit
5292         * src/SDCCsymt.h: added newBoolLink prototype
5293         * src/mcs51/gen.c (rb1regs): added bit registers,
5294           (movc): created for assigning to carry,
5295           (pushReg, popReg): created for pushing registers,
5296           (sameRegs): check both AOP_REG and AOP_CRY types,
5297           (aopOp): handle bit registers,
5298           (aopPut): optimization no self-assign,
5299           (saveRegisters): push reg->base (bits) only once for bit registers,
5300            and use pushReg,
5301           (unsaveRegisters): pop reg->base only once and use popReg,
5302           (assignResultValue): added parameter func and return in carry for bits,
5303           (genIpush): optimization no reload in A if not changed,
5304           (genSend): bit parameters in reentrant functions are passed in bit
5305            registers by first assigning to bits in B, then save registers and
5306            copy B to bits,
5307           (genCall): handle returning in Carry properly, save it in F0 if needed,
5308           (genPcall): updated assignResultValue call, this is not safe yet for bit
5309            returning function !!!
5310           (genFunction): don't generate equ's for bit registers and use pushReg,
5311           (genEndFunction): take care of bit returning functions and use popReg,
5312           (genRet): return bit in Carry,
5313           (genIfx): optimize bit registers and other directly addressable bits,
5314           (genReceive): updated assignResultValue call
5315         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5316           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5317            registers when using stack-auto
5318         * src/mcs51/ralloc.c (_G): added allBitregs,
5319           (regs8051): added the bit registers,
5320           (createStackSpil): use macro IS_BIT,
5321           (getRegBit): added to allocate a bit register, else spill,
5322           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5323           (updateRegUsage): factored out to ease stepping while debugging,
5324           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5325            also allocate bit registers,
5326           (fillGaps): handle bit registers,
5327           (findAllBitregs): added to create bit vector with all bit registers,
5328           (mcs51_allBitregs): returns this bit vector,
5329           (mcs51_assignRegisters): when using stack-auto use bit registers for
5330            passing parameters and creating local variables
5331         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5332
5333 2005-08-22 Borut Razem <borut.razem AT siol.net>
5334
5335         * device/lib/Makefile.in: replaced find option -or with -o
5336           to make it run on solaris
5337
5338 2005-08-22 Raphael Neider <rneider AT web.de>
5339
5340         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5341           fixes #1265442 (crash on Solaris)
5342
5343 2005-08-20 Borut Razem <borut.razem AT siol.net>
5344
5345         * configure, configure.in: added tests for libsocket and libnsl libraries,
5346           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5347           from support/regression/Makefile.in
5348         * support/regression/Makefile.in: added
5349         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5350         * sim/ucsim/libtool: regenerated on sparc-solaris
5351         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5352           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5353           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5354           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5355           sparc-solaris, which doesn't use GNU ld linker
5356         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5357         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5358
5359 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5360
5361         * src/mcs51/peeph.def: updated comments
5362
5363 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5364
5365         * device/lib/_gptrget.c,
5366         * device/lib/_gptrput.c: slightly shorter
5367         * doc/sdccman.lyx: incremented version
5368         * src/mcs51/peeph.def: moved peephole comments to the line of first
5369           change to better keep line correlation, reanimated 186.e
5370         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5371
5372 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5373
5374         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5375           David Saxton with quotes around file name.
5376
5377 2005-08-15 Borut Razem <borut.razem AT siol.net>
5378
5379         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5380           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5381           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5382           make tests run on x86_64 platform
5383
5384 2005-08-13 Raphael Neider <rneider AT web.de>
5385
5386         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5387           as it might be executed DURING a build (parallel make is wonderful)
5388
5389 2005-08-13 Raphael Neider <rneider AT web.de>
5390
5391         * device/lib/Makefile.in (port-specific-objects-pic16):
5392           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5393         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5394           dependency
5395         * device/lib/pic16/Makefile.rules: build subdirs before creating
5396           the library, removed builddir rule, create $(builddir) early in
5397           recurse rule, use empty recurse rule for leaf directories
5398         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5399           mkdir errors (race condition), removed duplicate suffix "hex"
5400           from clean rules
5401         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5402         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5403           prevents mkdir -p from aborting on Alpha
5404
5405 2005-08-12 Raphael Neider <rneider AT web.de>
5406
5407         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5408           db-statements in order to allow for arrays of pointers in code
5409           sections to be placed without interspersed 0-padding, fixes
5410           bug #1256215
5411         * (emitStatistics): fixed division by zero for pic18f1220
5412         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5413           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5414         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5415         * (pic16_pCodeConstString): keep track of already emitted string
5416           literals to prevent "duplicate definitions of symbol _str_NR"
5417         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5418           debug message
5419         * device/lib/Makefile.in: ignore failing PIC16 library builds
5420         * device/lib/pic16/Makefile: do not build if gputils are missing
5421         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5422
5423 2005-08-10 Raphael Neider <rneider AT web.de>
5424
5425         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5426           my last commit)
5427
5428 2005-08-10 Raphael Neider <rneider AT web.de>
5429
5430         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5431           Rokas' patch to add the new fixed point type "__fixed16x16"
5432         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5433           functions for __fixed16x16 arithmetics
5434         * device/lib/pic16: reimplemented the build system to support
5435           a separate build directory, better handling of libio (create
5436           the library in a separate subdir for each architecture) and
5437           easier configuration (centralized in Makefile.common)
5438
5439 2005-08-07 Raphael Neider <rneider AT web.de>
5440
5441         * src/pic16/gen.c (genrshTwo): fixed sign extension
5442         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5443         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5444           added T0CONbits
5445         * device/include/pic16/pic18f4220.h: NEW, header for
5446           pic18f4220 and pic18f4320
5447         * device/include/pic16/pic18fregs.h: added new devices,
5448           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5449         * device/include/pic16/signal.h: resolved name clashes
5450           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5451           to also allow testing for interrupt enable bits, added
5452           comments on how to use the macros
5453         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5454         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5455           register definitions for the devices
5456         * device/lib/pic16/pics.all: added new devices
5457         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5458           allocated memory
5459         * device/lib/pic16/libc/stdlib/memfree: do not count
5460           the block header as free memory
5461         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5462           simplified and added missing end-of-blocklist-marker
5463           (reported by Peter Onion, fixes #1252814)
5464         * (_mergeHeapBlock): fixed loop condition
5465         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5466           len==0, restructured code
5467         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5468           up a bit, reduced bitfield accesses, prevent endless loops
5469           in case of heap corruption
5470         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5471           "unreferenced arguments/must return a value" warnings
5472         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5473           replaced BAUDREG with SPBRG
5474         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5475           device/lib/pic16/debug/gstack/gstack.c: replaced
5476           _naked, _asm, _endasm with __naked, __asm, __endasm
5477
5478 2005-08-05 Raphael Neider <rneider AT web.de>
5479
5480         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5481           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5482
5483 2005-08-05 Borut Razem <borut.razem AT siol.net>
5484
5485         * device/lib/Makefile.in: added missing ';'
5486         * configure: removed ^M characters
5487
5488 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5489
5490         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5491           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5492           License
5493
5494 2005-08-04 Borut Razem <borut.razem AT siol.net>
5495
5496         * configure.in: pic16 libraries build 2nd try - enable running
5497           configure in device/lib/pic16
5498         * configure: regenerated from configure.in
5499         * device/lib/Makefile.in: create $(PORT)/bin directory
5500
5501 2005-08-03 Raphael Neider <rneider AT web.de>
5502
5503         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5504           to get/set values via pointers
5505         * (genUnpackBits,genPackBits): changed detection of
5506           ptr->bitfield vs. sym.bitfield, fixed access via generic
5507           pointers, removed dead (wrong) code for multibyte bitfields
5508         * (genNearPointerGet, genGenPointerGet): removed useless code,
5509           fixed bitfield detection, fixes #1250594
5510         * (genNearPointerSet): removed useless code
5511         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5512           and introduced macro pic16_emitpcode that conditionally emits
5513           the origin of the following pCode (useful for debugging SDCC)
5514         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5515         * (createDefmap): fixed handling of LFSR for --optimize-df
5516
5517 2005-08-02 Borut Razem <borut.razem AT siol.net>
5518
5519         * device/lib/Makefile.in: pic16 libraries build enabled since
5520           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5521
5522 2005-08-02 Raphael Neider <rneider AT web.de>
5523
5524         * src/pic16/gen.c (genPackBits): removed deprecated warning
5525         * (genGenPointerSet): fixed bitfield detection
5526
5527 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5528
5529         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5530
5531 2005-07-31 Raphael Neider <rneider AT web.de>
5532
5533         * device/lib/pic16/libdev/pic18f458.c,
5534           device/include/pic16/pic18f458.h: added missing T0CONbits
5535
5536 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5537
5538         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5539
5540 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5541
5542         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5543
5544 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5545
5546         * device/include/mcs51/at89c51ed2.h: added.
5547
5548 2005-07-23 Raphael Neider <rneider AT web.de>
5549
5550         * src/pic/gen.h: added emitpcode macro for debugging
5551         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5552           and replace by macro adding debug information on demand
5553         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5554         * (gencjne): tried to fix; replaced with correct (slower) code
5555         * (gen{Unp,P}ackBits): fixed single bit access
5556         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5557         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5558           previous instruction
5559         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5560           register has to be handled with care (forbidding movement
5561           of assignments/uses, removing assignments completely, ...)
5562         * (pCodeOptime2pCodes): make use of regIsSpecial
5563         * added lots of debugging output (commented out)
5564         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5565           from being reused as result UNLESS it is known to work
5566
5567 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5568
5569         * support/Util/dbuf.h: include <stddef.h> for size_t
5570         * .version: changed to version 2.5.2
5571
5572 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5573
5574         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5575
5576 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5577
5578         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5579           (genModOneByte): removed needless psha/pula
5580
5581 2005-07-22 Raphael Neider <rneider AT web.de>
5582
5583         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5584           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5585         * src/pic/gen.c (resolveIfx): do not "invent" labels
5586         * (genSkipc): changed to positive logic
5587         * (genSkipCond): removed as no longer needed
5588         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5589           backport from PIC16
5590         * (genLeftShift): check operands are in different registers
5591         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5592           INCF does not update CARRY...
5593         * src/pic/main.c: fixed _linkCmd
5594         * src/pic/pcode.c (unlinkpCode): added inactive code
5595         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5596           alive (do not assign result and operand overlapping registers)
5597
5598 2005-07-22 Raphael Neider <rneider AT web.de>
5599
5600         * src/pic/device.c (dump_sfr): replaced register declaration with
5601           call to emitSymbolToFile() to avoid duplicate symbols
5602         * (assignRelocatableRegisters): do not declare external symbols
5603         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5604           right (take size of type, not etype)
5605         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5606         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5607         * (packRegsForAccUse): disabled assignment of WREG as
5608           the result reg to prevent occurence of just fixed #1235003,
5609           fixes #1242954
5610         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5611           symbols (avoids duplicate symbols in .asm file)
5612         * (pic14emitRegularMap): use emitSymbolToFile()
5613         * src/pic/gen.c (aopOp): fixed spillLocation handling
5614         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5615         * (genDataPointerSet): removed unneccessary variables/output
5616
5617 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5618
5619         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5620         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5621
5622 2005-07-21 Raphael Neider <rneider AT web.de>
5623
5624         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5625           architecture cannot handle them efficiently, fixes bug #1235003
5626         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5627           check for empty sets before using them (fixes bug #1232190)
5628
5629 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5630
5631         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5632           (lnksect2): generate warnings for memory overlap
5633         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5634           constseg to set the name of these segments so you can instruct the linker
5635           to place them in banks
5636         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5637         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5638           added code_seg and const_seg to options
5639         * src/SDCCglue.c (emitMaps): use options.const_seg,
5640           (createInterruptVect): put interrupt vectors in segment HOME,
5641           (glue): put HOME before static segment and put the main glue in HOME,
5642           (glue): use options.code_seg
5643         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5644         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5645           these segments so you can instruct the linker to place them in banks
5646           (linkEdit): use code_loc for HOME segment which should be the first
5647           segment in code memory now
5648         * src/SDCCmem.c: fixed more stuff like bug 1238386
5649         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5650           (changePointer): don't change function pointers to code pointers for
5651           banked functions,
5652           (compareType): added exceptional check for banked function pointers
5653         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5654         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5655           after static in code memory
5656         * src/mcs51/gen.c: added aopLiteralLong prototype,
5657           (aopForSym): use getSize for functions,
5658           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5659           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5660           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5661           the segment,
5662           (genPcall): use call for literal function pointers and generate banked
5663           calls over the one trampoline so there's only one place for the user to
5664           modify according to his/hers hardware,
5665           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5666           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5667         * src/mcs51/main.c: added keyword banked,
5668           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5669         * support/Util/SDCCerr.c,
5670         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5671           needed for passing the bank and address to the trampoline
5672         * device/lib/mcs51/crtbank.asm: added for bankswitching
5673         * device/lib/mcs51/Makefile: added crtbank
5674
5675 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5676
5677         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5678           for fields at offset 0 of a struct or union as reported
5679           on 2005-07-07 in the developer mailing list.
5680
5681 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5682
5683         * src/SDCCmem.c: fixed bug 1238386
5684
5685 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5686
5687         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5688           (patch #1144962), added peephole 300, enabled 259.x
5689         * doc/sdccman.lyx: removed screenshot and provided link instead
5690
5691 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5692
5693         * doc/sdccman.lyx: added section about debugging with ddd
5694         * doc/figures/ddd_example.eps: screenshot of debugging session
5695
5696 2005-07-04 Raphael Neider <rneider AT web.de>
5697
5698         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5699           like CODE pointers, fixes #1115683
5700         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5701           call, fixes bugs #1232211, #1228110,
5702           fixed wrong casts to pCodeFlow from pCodeInstructions
5703
5704 2005-07-04 Raphael Neider <rneider AT web.de>
5705
5706         * src/pic/gen.c (popGet): changed assert to allow for
5707           bit operands
5708         * (popGetAddr): changed signature to provide
5709           an additional index, patched all call sites
5710         * (genCmpEq): handle literal-like operands correctly
5711         * (genAddrOf): added sanity checks on __code/__data pointers
5712         * (genAssign): added handling of symbols from __code section
5713         * (gencjne): do not generate code for comparisons whose result
5714           is neither stored nor used, fixes bug #1171114
5715         * (AccLsh, AccRsh): operate on operand instead of WREG
5716         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5717           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5718           by known count
5719         * rewrote complete shift-by-literal logic, commented unused
5720           functions out
5721         * (genConstPointerGet): get multiple bytes (if result size > 1),
5722           fixed handling of non-immediate addresses
5723         * (genPointerGet): handle CODE pointers like CONST pointers
5724         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5725         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5726           operand is to be treated as a literal or not
5727         * (mov2w,genPcall,genCmpEq),
5728           src/pic/genarith.c: use aop_isLitLike() to decide between
5729           literal/register contents
5730         * (addSign): added missing offset
5731         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5732           only emit comment in debug-mode,
5733           use {aop,op}_isLitLike throughout the file
5734         * src/pic/glue.c: fix initializers for pointers (work in progress)
5735         * src/pic/pcode.c (get_op): honor index on _const symbols
5736         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5737         * (dumppBlock): added pCode size estimation
5738         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5739           check for IS_SYMOP before OP_SYMBOL'ing
5740         * fixed indentation, compacted switch-statements
5741         * (allocReg): find free register and allocate it instead of
5742           allocating new registers all the time
5743         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5744           registers as its operands (necessary only for multibyte GETs)
5745
5746 2005-07-01 Raphael Neider <rneider AT web.de>
5747
5748         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5749           debugging .asm-output macros FENTRY + FEXIT
5750         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5751           way... I wonder...
5752         * (emitpComment): NEW, printf to pCode
5753         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5754           offset handling
5755         * (popGetAddr): NEW, variant of popGet to access an immediates
5756           high(er) bytes instead of the n'th byte of memory they reference,
5757           replaced popGet with popGetAddr where neccessary
5758         * (genDataPointerGet): reactivated and fixed implementation
5759         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5760           accesses
5761         * (genDataPointerSet): fixed multibyte assignments
5762         * (genpic14Code): fixed --i-code-in-asm handling
5763         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5764         * (genPlus): fixed index-out-of-bounds error
5765         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5766         * src/pic/ralloc.c: added debugging output macro FENTRY2
5767         * (spillThis): fixed indentation, enbraced for-body for clarity
5768         * (rematStr): commented out as now unused
5769         * (regTypeNum): commented out special spill case (overwrites
5770           arbitrary values)
5771         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5772
5773 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5774
5775         * doc/sdccman.lyx: documented sfr16/sfr32,
5776           added example for using storage class with function pointers
5777         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5778
5779 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5780
5781         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5782         * device/lib/_itoa.c,
5783         * device/lib/_ltoa.c: optimized codesize
5784         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5785           but don't know how to suppress the double warning.
5786         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5787         * support/Util/SDCCerr.c,
5788         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5789
5790 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5791
5792         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5793           fixed old K&R prototypes
5794         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5795         * device/lib/_gptrget.c,
5796         * device/lib/_gptrgetc.c,
5797         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5798           also new versions for small generic pointers and banked generic pointers
5799         * src/port.h: added const_name
5800         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5801         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5802         * src/SDCCcse.c (findPrevIc): check all associative operators
5803         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5804         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5805         * src/SDCCmem.c: updated comments,
5806           set far-space to 0 for pdata, results in optimized code
5807         * src/SDCCmem.h: added macro CONST_NAME
5808         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5809           moving the info into the highest bits, see also gptrget/gptrput
5810         * src/src.dsp: added sdcc.ico to project files
5811         * src/avr/gen.c (genCast): fixed bug 0x%d
5812         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5813         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5814           relation between ptr_type and DCL_TYPE,
5815           (genCast): fixed bug 0x%d
5816         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5817           (CODE)" for const_name
5818         * src/hc08/gen.c (genCast): fixed bug 0x%d
5819         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5820           (hc08_port): added "CONST (CODE)" for const_name
5821         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5822           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5823           between ptr_type and DCL_TYPE,
5824           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5825           operand* and took AOP() inside function so sfr-ness can be checked,
5826           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5827           new prototype,
5828           (genFunction, genEndFunction): optimized stack setup,
5829           (genMinus): optimized for literals with ending zeroes (in bytes),
5830           (genCast): fixed bug 0x%d
5831         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5832           (mcs51_port): added "CONST (CODE)" for const_name
5833         * src/mcs51/peeph.def: made rule 226 more generic
5834         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5835         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5836         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5837         * src/z80/main.c (z80_port): added NULL for const_name,
5838           (gbz80_port): added NULL for const_name
5839         * support/regression/tests/bug663539.c,
5840         * support/regression/tests/sfr16.c: new tests
5841
5842 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5843
5844         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5845
5846 2005-06-24 Raphael Neider <rneider AT web.de>
5847
5848         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5849           corrected typos...
5850         * device/include/pic16/signal.h: added USBIF
5851           and SIG_USB
5852
5853 2005-06-24 Raphael Neider <rneider AT web.de>
5854
5855         * device/lib/pic16/libdev/pic18f2455.c,
5856           device/include/pic16/pic18f2455.h: NEW
5857         * device/include/pic16/pic18fregs.h,
5858           device/lib/pic16/pics.all,
5859           src/pic16/device.c: added 18f2455
5860         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5861           device/include/pic16/{pic18f[68][567].h,usart.h}:
5862           replaced MULTIPLE_USARTS define with more relaible
5863           compatibility sfrs (for USART access)
5864
5865 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5866
5867         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5868           and the output asm file line is printed on two lines.
5869
5870 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5871
5872         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5873           BGT, BLE, BHI, and BLS instructions
5874         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5875           genCmpEq): removed
5876         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5877           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5878           fixes bug #1216342
5879         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5880
5881 2005-06-15 Raphael Neider <rneider AT web.de>
5882
5883         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5884         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5885         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5886           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5887           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5888
5889 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5890
5891         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5892           Marcel Telka in bug #1215704
5893
5894 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5895
5896         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5897           located in shared memory bank.
5898
5899 2005-05-31 Raphael Neider <rneider AT web.de>
5900
5901         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5902           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5903           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5904
5905 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5906
5907         * device/lib/_strncpy.c: fixed the fix
5908
5909 2005-05-26 Raphael Neider <rneider AT web.de>
5910
5911         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5912           initializers with \0, bug #1208187
5913         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5914           intializers with \0, bug #1208187
5915
5916 2005-05-26 Raphael Neider <rneider AT web.de>
5917
5918         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5919           initializers with \0, bug #1208187
5920         * src/pic16/main.c (_process_pragma): added sanity checks
5921           for stack position and size, emit warnings when appropriate
5922
5923 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5924
5925         * device/lib/_strncpy.c: fixed not filling with \0
5926
5927 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5928
5929         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5930           createFunction),
5931         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5932           compound_statement),
5933         * src/SDCCsymt.h,
5934         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5935
5936 2005-05-24 Raphael Neider <rneider AT web.de>
5937
5938         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5939
5940 2005-05-24 Raphael Neider <rneider AT web.de>
5941
5942         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5943           TRISE definitions, closes bug #1162453
5944
5945 2005-05-22 Raphael Neider <rneider AT web.de>
5946
5947         * src/pic16/main.c (_process_pragma): check for missing
5948           arguments to pragmas code and udata
5949         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5950           consistency fixes to match other headers (thanks to Jim Paris)
5951         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5952
5953 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5954
5955         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5956
5957 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5958
5959         * support/regression/tests/bug1198642.c: new test
5960         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5961         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5962         * support/scripts/resource.h,
5963         * support/scripts/resource.rc,
5964         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5965         * support/scripts/sdcc.ico: added 32x32 icon
5966
5967 2005-05-18 Raphael Neider <rneider AT web.de>
5968
5969         * device/lib/pic16/libdev/pic18f*.c,
5970         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5971           keywords to "__sfr" and "__at (X)"
5972         * device/include/pic16/pic18fregs.h: added pic18f4520
5973         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5974           #1203088 (MPLAB compatibility)
5975
5976 2005-05-17 Raphael Neider <rneider AT web.de>
5977
5978         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5979         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5980         * device/lib/pic16/pics.all: added new devices
5981         * src/pic16/device.c: added support for pic18f4520
5982
5983 2005-05-16 Raphael Neider <rneider AT web.de>
5984         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5985         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5986         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5987           convenience function for bit access
5988
5989 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5990
5991         * device/lib/printf_large.c: fixed bug 1193299
5992         * support/regression/tests/bug1057979.c: added test %3.3s
5993
5994 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5995
5996         * device/include/mcs51/8051.h,
5997         * device/include/mcs51/8052.h: made parseable with lint
5998         * device/include/mcs51/lint.h: added include file for (sp)lint
5999         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6000         * doc/cdbfileformat.lyx,
6001         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6002
6003 2005-05-14 Raphael Neider <rneider AT web.de>
6004
6005         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6006         * device/lib/pic16/libc/stdlib/itoa.c (new)
6007         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6008         * device/lib/pic16/libio/Makefile: exclude subdir according to
6009           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6010         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6011         * src/pic16/gen.c (genFunction): prevent annoying warning
6012         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6013           nameclashes on BeOS
6014         * support/cpp2/cppmain.c (cpp_output_string): new
6015         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6016           fixes bug 1116802
6017
6018 2005-05-13 Borut Razem <borut.razem AT siol.net>
6019
6020         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6021
6022 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6023
6024         * .version: changed to version 2.5.1; back to bleeding edge development
6025
6026 2005-05-11 Borut Razem <borut.razem AT siol.net>
6027
6028         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6029           generate PDF version 1.3 documents
6030
6031 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6032
6033         * .version: changed to version 2.5.0
6034
6035 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6036
6037         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6038
6039 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6040
6041         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6042         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6043         well as many smaller updates.
6044         * .version: changed to version 2.5.0-pre1
6045
6046 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6047
6048         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6049
6050 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6051
6052         * support/regression/tests/bug1185672.c: added
6053         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6054           bug 1185672
6055         * src/mcs51/gen.c (genCall): added comments, made it look safer
6056         * src/mcs51/gen.c (genEndFunction): simplified
6057
6058 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6059
6060         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6061
6062 2005-04-14 Borut Razem <borut.razem AT siol.net>
6063
6064         * fixed bug 1045046 - SIGSEGV with really simple code?:
6065           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6066           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6067
6068 2005-04-14 Borut Razem <borut.razem AT siol.net>
6069
6070         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6071           src/pic16/device.h: temporarily disabled experimental #inline pragma
6072           for 2.5.0 release
6073
6074 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6075
6076         * device/include/z80/stdio.h,
6077         * device/include/z80/string.h: removed these highly incomplete files so
6078           SDCC can use the default ones in device/include/
6079
6080 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6081
6082         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6083         gcc warning.
6084         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6085         fix sdcpp warnings.
6086
6087 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6088
6089         * device/include/malloc.h: removed redundant __reentrant prototypes
6090         * device/lib/_mullong.c: added working xstack variant in asm (C version
6091           doesn't pass regression tests)
6092         * device/lib/bpx.c: used __data and made bpx char for mcs51
6093         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6094           (createFunction): fixed bug with xstackPtr
6095         * src/SDCCcse.c: corrected comments
6096         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6097           (killDeadCode, eBBlockFromiCode): removed unused code
6098         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6099           corrected comments
6100         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6101           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6102           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6103           (genModOneByte): fixed warning in MSVC
6104         * src/mcs51/main.c (): added comments
6105         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6106
6107 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6108
6109         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6110
6111 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6112
6113         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6114
6115 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6116
6117         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6118         characters arrays of larger size than the declared one.
6119
6120 2005-04-10 Borut Razem <borut.razem AT siol.net>
6121
6122         * src/pic/gen.c (genInline),
6123           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6124           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6125           (findNextInstruction), (findPrevInstruction),
6126           (findInstructionUsingLabel),
6127           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6128         * src/pic/pcode.c (findLabel): added missing '\n'
6129         * src/src.dsp: added SDCCdwarf2.c to the project
6130
6131 2005-04-09 Borut Razem <borut.razem AT siol.net>
6132
6133         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6134
6135 2005-04-08 Raphael Neider <rneider AT web.de>
6136
6137         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6138           into the chain after a given one) and mergeDefmapSymbols (combine
6139           defmap entries for each symbol per pcode)
6140         * (createDefmap): have defmap entries merged in the end
6141         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6142           a symbol before replacing one access type's symbol, merge symbols in
6143           the end (replacement symbol might already have an entry)
6144         * (assignValnums): keep reference to written WREG intact
6145
6146 2005-04-08 Raphael Neider <rneider AT web.de>
6147
6148         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6149           Alpha)
6150
6151 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6152
6153         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6154         bytes
6155
6156 2005-04-07 Raphael Neider <rneider AT web.de>
6157
6158         * device/include/pic16/usart.h: added compatibility defines for
6159           devices with more than one USART
6160         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6161
6162 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6163
6164         * device/lib/Makefile.in: updated for port specific include
6165
6166 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6167
6168         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6169
6170 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6171
6172         * device/include/8051.h,
6173         * device/include/8052.h,
6174         * device/include/at89S8252.h,
6175         * device/include/at89c55.h,
6176         * device/include/at89x051.h,
6177         * device/include/at89x51.h,
6178         * device/include/at89x52.h,
6179         * device/include/mcs51reg.h,
6180         * device/include/reg51.h,
6181         * device/include/reg764.h,
6182         * device/include/regc515c.h,
6183         * device/include/sab80515.h: (re)moved these 12 files
6184         * device/include/mcs51/8051.h,
6185         * device/include/mcs51/8052.h,
6186         * device/include/mcs51/at89S8252.h,
6187         * device/include/mcs51/at89c55.h,
6188         * device/include/mcs51/at89x051.h,
6189         * device/include/mcs51/at89x51.h,
6190         * device/include/mcs51/at89x52.h,
6191         * device/include/mcs51/mcs51reg.h,
6192         * device/include/mcs51/reg51.h,
6193         * device/include/mcs51/reg764.h,
6194         * device/include/mcs51/regc515c.h,
6195         * device/include/mcs51/sab80515.h: and added them here
6196
6197 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6198
6199         * device/include/stdarg.h: changed SDCC specific keywords to double
6200           underlined form.
6201         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6202           mcs51 and ds390.
6203         * device/include/hc08/mc68hc908gp32.h,
6204         * device/include/hc08/mc68hc908jb8.h,
6205         * device/include/hc08/mc68hc908jkjl.h,
6206         * device/include/hc08/mc68hc908qy.h: fixed comments
6207         * device/include/mcs51/README: updated
6208         * device/include/mcs51/c8051f120.h: added PINRSF
6209         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6210         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6211           amidst code. Also inline is not supported.
6212
6213 2005-04-06 Raphael Neider <rneider AT web.de>
6214
6215         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6216         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6217           callers stack/frame pointers
6218
6219 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6220
6221         * device/include/pic16/usart.h: added, missing in previous commit,
6222         * device/include/pic16/adc.h: fixed typo,
6223         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6224         commit,
6225         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6226         <p18fxxx.inc>
6227         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6228         uninitialized because a bug appears with gplink
6229         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6230         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6231         complains for unrecognised option
6232
6233 2005-04-05 Raphael Neider <rneider AT web.de>
6234
6235         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6236           structs as well (using memcpy)
6237         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6238           on ISRs (GOTO has no label)
6239         * src/pic16/device.h: added OF_OPTIMIZE_DF
6240         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6241           new data flow analysis/optimization
6242         * src/pic16/pcode.c: added (prototypes for and implementation of)
6243           dataflow analysis functions, fixed pCodeInstructions' inCond and
6244           outCond values, made RCALL a branch instruction
6245         * (pic16_unlinkpCode): keep C line if possible
6246         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6247           C line moved if possible
6248         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6249         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6250           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6251         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6252           new flow)
6253         * (pic16_getJumptabpCode): NEW, needed in...
6254         * (LinkFlow): fixed handling of jumptables, calls and conditional
6255           branches
6256         * (pic16_InsertCommentAfter): NEW
6257         * (pic16_pCodeReplace): made verbose and flow preserving
6258         * (AnalyzeFlow): added call to data flow analysis
6259         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6260         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6261         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6262
6263 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6264
6265         * src/SDCCast.c (decorateType): fixed bug #1105626
6266
6267 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6268
6269         * device/include/asm/pic16/features.h,
6270         * pic18f*.h headers,
6271         * device/include/pic16/adc.h,
6272         * device/include/pic16/delay.h,
6273         * device/include/pic16/i2c.h,
6274         * device/include/pic16/malloc.h,
6275         * device/include/pic16/stdio.h,
6276         * device/include/pic16/stdlib.h,
6277         * device/include/pic16/string.h,
6278         * device/lib/pic16/libc/stdio/printf_tiny.c,
6279         * device/lib/pic16/libc/stdio/printf_small.c,
6280         * device/lib/pic16/libc/stdio/strmgpsim.c,
6281         * device/lib/pic16/libc/stdio/strmmssp.c,
6282         * device/lib/pic16/libc/stdio/strmusart.c,
6283         * device/lib/pic16/libc/stdio/vfprintf.c,
6284         * device/lib/pic16/libc/stdlib/ltoa.c,
6285         * device/lib/pic16/libc/stdlib/putchar.c,
6286         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6287         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6288         * device/lib/pic16/libc/stdlib/memchrram.c,
6289         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6290         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6291         * device/lib/pic16/libio/adc/adcbusy.c,
6292         * device/lib/pic16/libio/adc/adcread.c,
6293         * device/lib/pic16/libio/adc/adcsetch.c,
6294         * device/lib/pic16/libio/usart/ubaud.c,
6295         * device/lib/pic16/libio/usart/ubusy.c,
6296         * device/lib/pic16/libio/usart/udrdy.c,
6297         * device/lib/pic16/libio/usart/uopen.c,
6298         * device/lib/pic16/libio/usart/uputc.c,
6299         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6300         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6301         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6302         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6303         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6304         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6305         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6306         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6307         specific keywords to double underlined form,
6308         * device/lib/pic16/libc/Makefile.rules,
6309         * device/lib/pic16/libsdcc/Makefile.rules,
6310         * device/lib/pic16/libm/Makefile,
6311         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6312         to compile with C standard set in Makefile.common
6313         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6314         rand.c and crc.c in compilation process,
6315         * device/lib/pic16/libsdcc/int/divuint.c,
6316         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6317         `c' from signed to unsigned,
6318         * device/lib/pic16/startup/crt0.c,
6319         * device/lib/pic16/startup/crt0i.c,
6320         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6321         keywords to double underlined form, bug fixes in _do_cinit function
6322         which prevented the correct initialization of the .idata segment,
6323         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6324         core to enter a infinite loop
6325         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6326
6327 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6328
6329         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6330
6331 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6332
6333         * device/include/Makefile.in: add support for hc08 subdirectory
6334         * device/include/hc08/: new subdirectory
6335         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6336         Lucas Loizaga, thanks!
6337         * device/include/hc08/mc68hc908qy.h,
6338         * device/include/hc08/mc68hc908gp32.h,
6339         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6340         their own directory. Changed internal macro names to use the compiler
6341         reserved namespace. Changed SDCC specific keywords to double
6342         underlined form.
6343         * device/include/math.h,
6344         * device/include/malloc.h,
6345         * device/include/stdarg.h,
6346         * device/include/stdbool.h
6347         * device/include/string.h,
6348         * device/include/tinibios.h,
6349         * device/include/ds400rom.h,
6350         * device/include/8051.h,
6351         * device/include/8052.h,
6352         * device/include/80c51xa.h,
6353         * device/include/at89c55.h,
6354         * device/include/at89S8252.h,
6355         * device/include/at89x51.h,
6356         * device/include/at89x52.h,
6357         * device/include/ds80c390.h,
6358         * device/include/reg764.h,
6359         * device/include/regc515c.h,
6360         * device/include/sab80515.h,
6361         * device/include/mcs51/c8051f000.h,
6362         * device/include/mcs51/c8051f018.h,
6363         * device/include/mcs51/c8051f020.h,
6364         * device/include/mcs51/c8051f040.h,
6365         * device/include/mcs51/c8051f060.h,
6366         * device/include/mcs51/c8051f120.h,
6367         * device/include/mcs51/c8051f300.h,
6368         * device/include/mcs51/c8051f310.h,
6369         * device/include/mcs51/c8051f320.h,
6370         * device/include/mcs51/c8051f330.h,
6371         * device/include/mcs51/c8051f350.h,
6372         * device/include/z180.h: Changed SDCC specific keywords to double
6373         underlined form.
6374
6375 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6376
6377         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6378         18F4455,
6379         * (pic16_assignConfigWordValue): disable testing of configuration
6380         register value with config mask,
6381         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6382         function with port->fun_prefix,
6383         * (genFunction): when generating a naked interrupt function never
6384         create an absolute segment placed in interrupt vector address, place
6385         the actual interrupt function at IVA instead, when an interrupt
6386         function is generated with unspecified interrupt then do not create
6387         the absolute section,
6388         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6389         code for generating a call to generic pointer get/put function with
6390         a call to function pic16_callGenericPointer(),
6391         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6392         the call to the generic pointer get/put functions with prefixing the
6393         function name with port->fun_prefix,
6394         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6395         * src/pic16/main.c (_process_pragma): prefix function with
6396         port->fun_prefix,
6397         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6398         calling assembler, old 18Fxxxx macro is deprecated,
6399         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6400         PC_ASMDIR in while condition,
6401         * (findInstruction): add PC_ASMDIR in while condition,
6402         * (buildCallTree): prefix main with port->fun_prefix,
6403         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6404         identifier for variable with banked access in instructions BTFSS,
6405         BTFSC, BCF, BSF, BTG
6406         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6407         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6408         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6409         perform optimization when enviroment variable NO_REG_OPT is set,
6410         * (insideLRBlock): NEW, return 1 if register is inside an
6411         INF_LOCALREGS block,
6412         * (RemoveRegFromLRBlock): remove a register that is completely
6413         eliminated by register optimization, but it is still left in local
6414         register store/restore in/from stack block,
6415         * (Remove2pcodes): after removing register, check to see if it
6416         should be removed from local register store/restore in/from stack
6417         block,
6418         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6419         DUMMY_READ_VOLATILE,
6420
6421         * device/include/pic16/adc.h: minor prototype modifications and
6422         update,
6423         * device/include/pic16/malloc.h: added GPL notice various
6424         modifications,
6425         * device/include/pic16/stdint.h: NEW, standard header for ints
6426         * device/include/pic16/delay.h: NEW, header for delay functions,
6427         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6428         delay1mtcy,
6429         * device/include/pic16/signal.h: NEW, header providing helper macros
6430         for implementing signal handlers,
6431         * device/include/pic16/stdio.h: added prototypes for functions,
6432         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6433         prototypes for stdin and stdout, added macro PUTCHAR to
6434         automatically implement putchar function prototype,
6435         * device/include/pic16/usart.h: modified and updated USART library,
6436         * device/lib/pic16/libio/adc/,
6437         * device/lib/pic16/libio/i2c: some modifications to improve library
6438         performance,
6439         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6440         family of functions,
6441         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6442         family of functions and other sources,
6443         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6444         of the PIC18Fxx[28] devices,
6445         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6446         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6447         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6448         _do_cinit function, because the previous failed when local variables
6449         where not placed in the same memory bank,
6450         * device/lib/pic16/libsdcc/char/: various modifications to improve
6451         library performance,
6452         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6453         information on the new functions of the c library and more...
6454
6455 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6456
6457         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6458
6459 2005-03-26 Raphael Neider <rneider AT web.de>
6460
6461         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6462           if condition == CARRY)
6463         * (genCmp): adapted to new genSkipc semantics
6464         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6465           on rIfx (genCmp was broken)
6466
6467 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6468
6469         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6470         * src/z80/main.c (_keywords[]),
6471         * src/SDCCglobal.h (struct options),
6472         * src/SDCC.y,
6473         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6474         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6475         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6476         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6477         always available in leading double underscore form. The C99 support is
6478         mostly missing, but it's a start.
6479         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6480         reserved identifier "__data".
6481
6482 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6483
6484         * src/mcs51/peeph.def: fixed bug 1170013
6485
6486 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6487
6488         * device/include/mcs51reg.h: fixed bug 842007
6489
6490 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6491
6492         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6493         last time.
6494
6495 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6496
6497         * src/port.h (struct PORT),
6498         * src/avr/ralloc.c (avr_assignRegisters),
6499         * src/avr/main.c,
6500         * src/ds390/ralloc.c (ds390_assignRegisters),
6501         * src/ds390/main.c,
6502         * src/hc08/ralloc.c (hc08_assignRegisters),
6503         * src/hc08/main.c,
6504         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6505         * src/mcs51/main.c,
6506         * src/pic/ralloc.c (pic14_assignRegisters),
6507         * src/pic/main.c,
6508         * src/pic16/ralloc.c (pic16_assignRegisters),
6509         * src/pic16/main.c,
6510         * src/xa51/ralloc.c (xa51_assignRegisters),
6511         * src/xa51/main.c,
6512         * src/z80/ralloc.c (z80_assignRegisters),
6513         * src/z80/ralloc.h,
6514         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6515         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6516         * src/SDCCcse.h,
6517         * src/SDCCdflow.c (computeDataFlow),
6518         * src/SDCCdflow.h,
6519         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6520         * src/SDCCloop.h,
6521         * src/SDCCcflow.c (*),
6522         * src/SDCCcflow.h,
6523         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6524         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6525         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6526         immedDom() returning wrong block; probably fixes bug #1160833)
6527
6528 2005-03-20 Borut Razem <borut.razem AT siol.net>
6529
6530         * support/scripts/inc2h.pl: WIN32 port
6531
6532 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6533
6534         * device/lib/makefile.in: added abs.c and labs.c
6535
6536 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6537
6538         * device/include/stdint.h: added
6539         * device/lib/abs.c: added
6540         * device/lib/labs.c: added
6541         * device/include/stdlib.h: added abs() and labs() prototypes
6542         * device/lib/libsdcc.lib: added abs and labs
6543         * device/include/float.h,
6544         * device/lib/_fsmul.c,
6545         * device/lib/printf_fast.c,
6546         * device/lib/printf_tiny.c: updated comments
6547
6548 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6549
6550         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6551         bug #1164313
6552
6553 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6554
6555         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6556         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6557
6558 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6559
6560         * device/lib/printf_large.c: removed inline assembly for portability and
6561           readability. Use printf_fast if speed or size are more important.
6562         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6563         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6564
6565 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6566
6567         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6568         prevent compiler warning
6569
6570 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6571
6572         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6573         moved to level 0 and declared as static. Also they are explicit
6574         placed in access bank. This was necessery because some times they
6575         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6576         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6577         optimizations. Currently only compare to unsigned char is implemented,
6578         * src/pic16/gen.c: added fReturnIdx array,
6579         * (struct resolvedIfx) is moved to gen.h and made public,
6580         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6581         * (aopForSym): added an optimization to directly store in stack of
6582         the operand of a SEND iCode,
6583         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6584         but as registers instead (AOP_REG) using the fReturnIdx array,
6585         * (pic16_freeAsmop): remove the freed register from the
6586         _G.sregsAlloc field,
6587         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6588         a compare of 'WREG',
6589         * (pic16_popGetTempRegCond): changed function prototype, now
6590         function takes also a bitVector argument v which holds the current
6591         set of registers that are allocated for stack access by aopForSym,
6592         registers allocated in aopForSym for accessing stack symbols are not
6593         any more part of the functions usedRegs field,
6594         * (genCall): some times aopOp is called for a stack variable to be
6595         send, aopForSym might perform the push, if this is true make sure
6596         that genCall doesn't push the variable twice by testing _G.resDirect,
6597         * (genFunction): changed testing for unspecified interrupt number
6598         from 256 to INTNO_UNSPEC,
6599         * modified selection scheme of frame pointer generation. Previously
6600         if function did use local registers a frame pointer was generated,
6601         now a frame pointer is generated only if function has arguments
6602         (that need PLUSW2 register access), or has stack arguments, or the
6603         compiler is not instructed to omit the frame pointer,
6604         * (genEndFunction): before restoring local registers that were saved
6605         in the function preamble, also restore the registers that *might*
6606         have been allocated for stack access,
6607         * (genRet): removed some old comments,
6608         * (genCmp, the active (RN's) version): added a call to the
6609         pic16_genCmp_special function to perform the compare with a more
6610         robust and optimized way,
6611         * (genInline): a feature has been added in inline code generation,
6612         which allows a wildcard variable substitution when writing inline
6613         assembly. Code is incomplete and experimental therefore undocumented,
6614         * (genCast): changed order of aopOp for result and right to allow
6615         aopForSym to directly load the result if possible,
6616         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6617         perform an optimized compare on some selected special occasions,
6618         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6619         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6620         generate an IVT any more,
6621         * src/pic16/main.c (pic16_optionsTable): added command line option
6622         --optimize-cmp,
6623         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6624         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6625         macros,
6626         * src/pic16/NOTES: Raphael Neider added in list of active developers
6627         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6628         jumptable_end to prevent bug #,
6629         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6630         inCond and outCond fields,
6631         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6632         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6633         turn off register spilling,
6634         * (packRegsForOneUse): synced with other ports' versions although it
6635         is not used currently,
6636         * (pic16_packRegisters): added an optimization while reading
6637         structure bitfields, some registers may be saved (malloc code is
6638         decreased by 80 bytes)
6639
6640 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6641
6642         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6643         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6644         this can be optimized more?
6645
6646 2005-03-10 Raphael Neider <rneider AT web.de>
6647
6648         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6649           genNearPointerGet): (hopefully) fixed access to bitfields via
6650           pointers (p->bitN = x; and x = p->bitN; failed)
6651
6652 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6653
6654         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6655
6656 2005-03-09 Raphael Neider <rneider AT web.de>
6657
6658         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6659
6660 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6661
6662         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6663         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6664           (regTypeNum): set REG_BIT type if necessary
6665         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6666         * support/regression/tests/critical.c: check bug 1144613
6667
6668 2005-03-02 Raphael Neider <rneider AT web.de>
6669
6670         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6671
6672 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6673
6674         * src/avr/ralloc.c (serialRegAssign),
6675         * src/ds390/ralloc.c (serialRegAssign),
6676         * src/hc08/ralloc.c (serialRegAssign),
6677         * src/mcs51/ralloc.c (serialRegAssign),
6678         * src/pic/ralloc.c (serialRegAssign),
6679         * src/pic16/ralloc.c (serialRegAssign),
6680         * src/xa51/ralloc.c (serialRegAssign),
6681         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6682
6683 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6684
6685         * src/SDCCast.c (decorateType): fixed bug 1124787
6686
6687 2005-02-20 Hubert Sack <sack AT digiplan.de>
6688         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6689
6690         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6691         patch #1121755
6692
6693 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6694
6695         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6696         to keep the correct label reference count when adding/removing references
6697         to labels. A peephole file using this is appended to patch #1144962.
6698
6699 2005-02-14 Raphael Neider <rneider AT web.de>
6700
6701         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6702         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6703         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6704           retrievals of result operand's value on assignment
6705
6706 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6707
6708         * device/include/pic16/string.h: modified prototype for memccpy()
6709         to memccpy(void *, void *, char, size_t)
6710         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6711         check whether to omit frame pointer or not,
6712         * (genInline): convert all occurences of "\n" to LF in inline
6713         assembler blocks, this helps formatting the inline text,
6714         * (pic16_loadFSR0): modified prototype,
6715         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6716         removed some 8051 legacy code,
6717         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6718         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6719         before allocating temporary registers in functions,
6720
6721 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6722
6723         * support/regression/tests/bitvars.c: corrected the "fix"
6724
6725 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6726
6727         * support/regression/tests/bitvars.c,
6728         * support/regression/tests/bitwise.c,
6729         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6730
6731 2005-02-10 Raphael Neider <rneider AT web.de>
6732
6733         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6734           different size for Alpha
6735         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6736
6737 2005-02-09 Raphael Neider <rneider AT web.de>
6738
6739         * src/SDCC.lex(doPragma) : save and restore warning options as well
6740           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6741         * have #pragma less_pedantic set the errorlevel to WARNING
6742           (fixes #1117001)
6743         * (cloneOptimize) : fixed wrong malloc's size
6744         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6745           facilitate correct handling of #pragma (save|restore)
6746
6747 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6748
6749         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6750
6751 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6752
6753         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6754
6755 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6756
6757         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6758
6759 2005-02-02 Raphael Neider <rneider AT web.de>
6760
6761         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6762         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6763         * (pic16_storeForReturn): fixed to allow returning function pointers
6764         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6765         * device/include/pic16/{stddef.h,stdbool.h}: added
6766
6767 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6768
6769         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6770
6771 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6772
6773         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6774         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6775          appeared to be required
6776
6777 2005-01-31 Borut Razem <borut.razem AT siol.net>
6778
6779         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6780           include/mcs51 and include/z80 directories to the package
6781
6782 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6783
6784         * src/hc08/gen.c (genFunction): fixed bug #1112752
6785
6786 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6787
6788         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6789
6790 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6791
6792         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6793
6794 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6795
6796         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6797
6798 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6799
6800         * device/include/c8051fxxx.h: removed these 6 files
6801         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6802
6803 2005-01-26 Raphael Neider <rneider AT web.de>
6804
6805         * src/pic16/gen.c (genAssign): fixed assignment from longs
6806           in codespace (were cut to three bytes)
6807         * (genDummyRead): implemented (except for CODESPACE...),
6808           fixed bug #1108575
6809         * src/pic16/glue.c (emitStatistics): beautified
6810         * device/lib/pic16/libm/Makefile: added include path
6811
6812 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6813
6814         * src/z80/gen.c (aopPut): fixed bug #1103902
6815
6816 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6817
6818         * device/lib/expf.c: fixed bug #1095792
6819
6820 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6821
6822         * device/lib/pic16/libm: added Math library sources
6823
6824 2005-01-24 Raphael Neider <rneider AT web.de>
6825
6826         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6827           to enable upcast to pCodeOpReg2 (there is no type tag to
6828           differenciate the two and pic16_popGet2p cast into PCOR2)
6829         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6830           (sizeof(sectNames) changed to sizeof(sectName))
6831           Both patches fix segfaults under MinGW.
6832
6833 2005-01-23 Raphael Neider <rneider AT web.de>
6834
6835         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6836           Safe_[mc]?alloc()'ed variables
6837         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6838           of (byte sized) temporaries (assign them to WREG for now)
6839         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6840           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6841           this might fix SIGSEGVs on MinGW...
6842         * src/SDCCopt.c (killDeadCode): restored original behaviour
6843           (volatile operands might get thrown away though)
6844
6845 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6846
6847         * src/pic16/gen.c: fixed bug #1106975,
6848         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6849         pointer update, INTCON is saved, global interrupts are disabled and
6850         restored after updateing TOS.
6851         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6852         * added function attribute 'shadowregs' to take advantage of shadow
6853         registers,
6854         * added function attribute 'wparam' as an alternative to the wparam
6855         pragma,
6856         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6857         user declares a non-ISR function as 'shadowregs',
6858         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6859
6860 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6861
6862         * .version: bumped version number to 2.4.8
6863         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6864         pic16 port,
6865         * device/lib/pic16/libio/i2c/: I2C module support library,
6866         * device/include/pic16/i2c.h: I2C support library header,
6867         * device/lib/pic16/libc/stdio/: standard IO support sources,
6868         * (printf_small.c): printf_small() source, supports float print,
6869         * (printf_tiny.c): printf_tiny() source, does not support floats,
6870         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6871         enable global optimizations for entire library source, other
6872         Makefiles in the source tree are also modified to reflect this,
6873         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6874         function,
6875         * doc/sdccman.lyx: updated to reflect new changes,
6876         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6877         sym->onStack if-case,
6878         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6879         sbit, idata, _idata, xdata, _xdata,
6880         * added pragma library, to link an external library, (see doc),
6881         * removed command line options, --pomit-config-words, --pomit-ivt,
6882         --pleave-reset-vector,
6883         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6884         when calling assembler to reflect memory model used, also define
6885         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6886         reflect stack model used,
6887         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6888         on stack return NULL,
6889
6890 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6891
6892         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6893           of the operands is volatile. Fixes #1020220
6894
6895 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6896
6897         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6898         * (OptimizeRegUsage): make sure that there is really no other flow where
6899           the first pCode is used
6900
6901 2005-01-22 Raphael Neider <rneider AT web.de>
6902
6903         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6904           to fix #1106967 (pCode->seq are not set up correctly)
6905
6906 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6907
6908         * src/SDCCglue.c (glue): make sure code area is declared before the
6909         static initialization area.
6910
6911 2005-01-21 Raphael Neider <rneider AT web.de>
6912
6913         * device/lib/Makefile.in: fixed test for pic16 install dir
6914         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6915           optimizations
6916         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6917           added --optimize-goto compiler switch and pragma wparam documentation
6918         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6919         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6920           and PRODH closing bug #1071770 (peephole optimizer)
6921
6922 2005-01-19 Raphael Neider <rneider AT web.de>
6923
6924         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6925           cmdLine buffers (used when calling sdcpp...) are large enough
6926           (MAX_PATH=256 truncates arguments leading to system halts when
6927           used in MinGW...)
6928         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6929         * (genUminus): rewritten to for efficiency
6930         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6931           used uninitialized in some cases)
6932         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6933           copy the third byte from the int -- now assumes 0x80 (data memory)
6934         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6935           operands (genAddLit expects the iCode's operands to swapped as
6936           well), fixed leftover bytes (crashed for short left operands)
6937         * (pic16_genMinusDec): performance improvements, removed false
6938           PIC14 emitSKPNCs
6939         * (pic16_genMinus): fixed to cope with differently sized operands
6940         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6941           for --obanksel > 1
6942         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6943         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6944           new banksel optimization
6945         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6946           analysis for temporary registers (segfaults...)
6947         * src/pic16/peeph.def: added rule
6948
6949 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6950
6951         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6952         which converts a float number to its ASCII representation
6953         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6954         functions to convert the fractional and integer part of a float to ASCII,
6955         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6956         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6957         ram
6958         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6959         _STATMEM macros,
6960         * device/include/pic16/adc.h: added GPL info,
6961         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6962         a pCodeOp as tested operand,
6963         * (genNearPointerGet): optimized bit testing, does not use
6964         intermediate register for bit value, test directly instead with
6965         BTFSS, BTFSC, works only for single bits,
6966         * (genpic16Code): dump the name of the iCode in the asm,
6967         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6968         renamed to pic16_decodeOp,
6969         * (serialRegAssign): do not allocate a temporary register for iCode
6970         sequences that test a single bit for 1/0
6971
6972 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6973
6974         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6975         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6976         access stack and frame pointers. They are initially assigned to
6977         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6978         accessing SFRs. Updated all occurences of modification of stack or
6979         frame pointer in gen.c and pcode.c,
6980         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6981         assigning of a literal value to pointers,
6982         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6983         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6984         selected
6985
6986 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6987
6988         * doc/sdccman.lyx: update documentation about stack pragma, added
6989         some info for stack memory models
6990
6991 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6992
6993         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6994
6995 2005-01-08 Raphael Neider <rneider AT web.de>
6996
6997         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6998           udata sections to fix bug #1097823
6999
7000 2005-01-05 Raphael Neider <rneider AT web.de>
7001
7002         * src/pic16/gen.c (genGenericShift): added handling of differently
7003           sized left operand and result
7004
7005 2005-01-04 Raphael Neider <rneider AT web.de>
7006
7007         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7008         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7009           to hold the condition bit)
7010         * added new version of genCmp (old code available via #define)
7011         * added new version of genShiftLeft/genShiftRight in a generic
7012           way, now supports shifting by negative values
7013         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7014           shiftCount (expected by genGenericShift)
7015         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7016         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7017           dump
7018         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7019           is an invalid literal too...)
7020
7021 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7022
7023         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7024         from Raphael Neider,
7025         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7026         for 8-bit literals. This fixes some literal operands which are sign
7027         extended to 16-bits ints when instruction needs only 8-bits.
7028
7029 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7030
7031         * device/lib/logf.c: added mcs51 assembly version
7032         * device/lib/expf.c: added mcs51 assembly version
7033         * device/lib/_logexpf.c: new shared asm code for expf and logf
7034         * device/include/math.h: add defines for assembly math library
7035         * device/lib/Makefile.in: build new _logexpf.c
7036         * device/lib/libfloat.lib: use new _logexpf.c
7037
7038 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7039
7040         * src/pic/device.c
7041         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7042           device types which have less than 0x7f registers.
7043
7044 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7045
7046         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7047
7048 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7049
7050         * device/lib/printf_fast.c: only build on supported arch.
7051         * device/lib/printf_tiny.c: only build on supported arch.
7052         * device/lib/printf_fast_f.c: only build if asm float lib
7053         * device/lib/_fsget1arg.c: only build if asm float lib
7054         * device/lib/_fsget2args.c: only build if asm float lib
7055         * device/lib/_fsnormalize.c: only build if asm float lib
7056         * device/lib/_fsreturnval.c: only build if asm float lib
7057         * device/lib/_fsrshift.c: only build if asm float lib
7058         * device/lib/_fsswapargs.c: only build if asm float lib
7059         * device/include/stdio.h: don't provide print_fast,
7060           print_fast_f, print_tiny prototypes if --xstack used
7061
7062 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7063
7064         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7065         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7066           to the SOURCES
7067
7068 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7069
7070         * device/lib/printf_fast_f.c: same as printf_fast, but
7071           with floating point enabled
7072         * device/lib/printf_fast.c: minor tweaks
7073         * device/include/stdio.h: add printf_fast_f
7074
7075 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7076
7077         * src/SDCCmain.c: make --float-reent default for mcs51
7078         * device/lib/_fsadd.c: added mcs51 assembly version
7079         * device/lib/_fssub.c: added mcs51 assembly version
7080         * device/lib/_fsmul.c: added mcs51 assembly version
7081         * device/lib/_fsdiv.c: added mcs51 assembly version
7082         * device/lib/_fseq.c: added mcs51 assembly version
7083         * device/lib/_fsneq.c: added mcs51 assembly version
7084         * device/lib/_fsgt.c: added mcs51 assembly version
7085         * device/lib/_fslt.c: added mcs51 assembly version
7086         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7087         * device/lib/Makefile.in: add _fscmp to build
7088         * device/lib/libfloat.lib: add _fscmp to build
7089
7090 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7091
7092         * device/lib/_fs2slong.c: added mcs51 assembly version
7093         * device/lib/_fs2sint.c: added mcs51 assembly version
7094         * device/lib/_fs2schar.c: added mcs51 assembly version
7095         * device/lib/_fs2ulong.c: added mcs51 assembly version
7096         * device/lib/_fs2uint.c: added mcs51 assembly version
7097         * device/lib/_fs2uchar.c: added mcs51 assembly version
7098         * device/lib/_slong2fs.c: added mcs51 assembly version
7099         * device/lib/_sint2fs.c: added mcs51 assembly version
7100         * device/lib/_schar2fs.c: added mcs51 assembly version
7101         * device/lib/_ulong2fs.c: added mcs51 assembly version
7102         * device/lib/_uint2fs.c: added mcs51 assembly version
7103         * device/lib/_uchar2fs.c: added mcs51 assembly version
7104         * device/include/float.h: added #define to select asm vs c
7105
7106 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7107
7108         * device/lib/printf_fast.c: improvements to float output
7109         * device/include/float.h: add defines for assembly float library
7110         * device/lib/_fsget1arg.c: receive 1 float arg
7111         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7112         * device/lib/_fsnormalize.c: normalize a float
7113         * device/lib/_fsreturnval.c: return float, various helper routines
7114         * device/lib/_fsrshift.c: right shift a float's mantissa
7115         * device/lib/_fsswapargs.c: swap 2 floats
7116         * device/lib/Makefile.in: build these 6 new files for mcs51
7117         * device/lib/libfloat.lib: add these 6 files to the library
7118
7119 2004-12-26 Borut Razem <borut.razem AT siol.net>
7120
7121         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7122           built by gcc 3.4.2
7123
7124 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7125
7126         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7127           and fully reentrant and register bank neutral.
7128         * device/lib/printf_fast.c: added float (not enabled by default),
7129           added compact/slower integer (also not enabled by default),
7130           improved size/speed of fast integer code, other minor changes
7131         * device/include/stdio.h, device/lib/Makefile.in,
7132           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7133
7134 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7135
7136         * src/pic16/pcode.c: declaring variables other than at the start of a
7137           block is not supported in C by VC6.
7138
7139 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7140
7141         * applied a previous patch from Raphael Neider that wasn't included
7142         in the previous commits, which fixes infinite loops within jumptable
7143         improvements,
7144         * made some fixes that previous patches introduced
7145
7146 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7147
7148         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7149         that fixes an issue with AOP_PCODE asmop's offset,
7150         * (pic16_popCopyReg): update instance field too,
7151         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7152         function of pic port,
7153         * (genCmp, genAnd, genAssign),
7154         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7155
7156 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7157
7158         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7159         variables initial values to idata section,
7160         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7161         variables in some functions. This utilizes parmBytes field of iCode
7162         structure to hold the offset of the variable in stack. (might be
7163         able to use the stack field too?)
7164         * applied patch from Raphael Neider # ### , # ###
7165         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7166         variable initial values in idata section,
7167         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7168         for static variables with initial value
7169         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7170         applied fix in while loop from Raphael Neider.
7171
7172 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7173
7174         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7175         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7176         * src/ds390/ralloc.c (serialRegAssign): spill bits
7177         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7178         * support/Util/SDCCerr.c,
7179         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7180         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7181         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7182
7183 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7184
7185         * device/include/sdcc-lib.h: inserted LGPL, added includes
7186           asm/ds390/features.h and asm/mcs51/features.h
7187         * device/include/asm/default/features.h,
7188         * device/include/asm/gbz80/features.h,
7189         * device/include/asm/z80/features.h: added empty _AUTOMEM
7190           and _STATMEM
7191         * device/include/asm/ds390/features.h,
7192         * device/include/asm/mcs51/features.h: added files with defines for
7193           _AUTOMEM and _STATMEM indicating automatic and static storage class
7194         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7195         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7196         * src/SDCCicode.c (geniCodeCast),
7197         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7198         * src/SDCCloop.c (loopInduction): removed unused variable lr
7199         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7200           to convertToFcall to include char modulo (RFE 1065037), added check
7201           if left operand is unsigned and use abs of literal value
7202         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7203           as it doesn't work after conversion from peephole.def to peephole.rul
7204         * src/mcs51/gen.c (toBoolean): added check for size,
7205           (genModOneByte): optimized code for signed char modulo a literal
7206           power of 2 (thanks to Hubert Sack),
7207           (genRRC): removed unnecessary "clr c",
7208           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7209         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7210           jump optimization,
7211           swapped rules 256.c and 256.d,
7212           extended 256.d by using new multiple checks (thanks Erik),
7213           added rules 256.e and 256.f,
7214           updated rule 261.a and 261.b to new generated code
7215         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7216
7217 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7218
7219         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7220           induction related bugs, including first part of bug #1074377
7221
7222 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7223
7224         * applied patch from bug-report #1076292,
7225         * applied patches for genAnd and Goto-optimizations for Raphael
7226         Neider,
7227         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7228         dump a less iCode information,
7229         * src/pic16/device.h (pic16_options_t): added field debgen,
7230         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7231         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7232         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7233         puclic,
7234         * (various functions): added macros FENTRY and FENTRY2 to functions,
7235         to emit function prologue,
7236         * (various functions): fixed indentation,
7237         * (genNearPointerGet): fixed loading of FSR0,
7238         * (genPackBits): applied patch from Raphael Neider to fix updating
7239         of FSR0 and touching only the modified bits,
7240         * src/pic16/genarith.c (various functions): added macros FENTRY to
7241         emit function prologue in comments,
7242         * src/pic16/pcode.h: added functions debugf2, debugf3,
7243         * src/pic16/ralloc.c: partial fix for packForPush caused
7244         segmentation fault,
7245
7246 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7247
7248         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7249           <stsp AT users.sourceforge.net> with reversed byte order
7250         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7251
7252 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7253
7254         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7255           bug #1074377
7256         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7257         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7258
7259 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7260
7261         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7262
7263 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7264
7265         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7266           conditions,
7267           (setFromConditionArgs): friendly operand parser for peephole rules,
7268           (operandBaseName, operandsNotRelated): new peephole condition
7269           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7270           architecture specific register naming into account, handles n-way
7271           comparisons, and supports quoted literals
7272         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7273
7274 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7275
7276         * src/mcs51/peeph.def: fixed bug #1076940
7277
7278 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7279
7280         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7281
7282 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7283
7284         Adding support for replacing ljmps with sjmps in jumptables
7285         generated for switch statements. For now you need to set the
7286         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7287         Now 4 algorithms for mcs51 jumptable generation are used:
7288         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7289         addresses loaded pc-relative for up to 112 cases and stack-pushing
7290         target addresses loaded with offset from dptr for up to 256 cases.
7291
7292         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7293         * src/mcs51/main.c: adapted constants for switch table generation
7294         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7295
7296 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7297
7298         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7299         * support/regression/tests/bug1057979.c: added test for bug 1073386
7300
7301 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7302
7303         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7304         compilers
7305
7306 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7307
7308         * src/pic16/device.h,
7309         * src/pic16/genarith.c,
7310         * src/pic16/glue.c,
7311         * src/pic16/main.c,
7312         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7313
7314 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7315
7316         Large cummulative patch for pic16 port.
7317         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7318         to call when a stack overflow occurs,
7319         * (malloc.h): added CVS Id tag,
7320         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7321         variable,
7322         * added libc directory. The current version of LibC contains string
7323         functions, ctype functions and macros and some functions of the
7324         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7325         be extensively tested in the future. Standard disclaimer here.
7326         Library is not automatically build yet. But one can build it by
7327         invoking 'make' inside the libc directory.
7328         * added ADC library under libio. Preliminary version yet.
7329
7330         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7331         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7332         aopForRemat() now and not by pic16_aopOp(),
7333         * (pic16_popGetTempReg): removed warning messgae when allocating
7334         temporary registers, its a buggy feature and will be removed,
7335         * (pic16_popGet): set register instance field in AOP_CRY,
7336         * (pic16_outBitC): fixed for results in size greater than 1,
7337         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7338         * (pic16_storeForReturn): optimized return of 0,
7339         * (genCmp): experimental code for new genCmp which uses PIC18's
7340         special compare&skip instructions. Initial tests fail some times
7341         with variables grater than 1 byte in size, so new code is disabled,
7342         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7343         a single bit,
7344         * (genCast): began a fix to optimize the casting of a bit to another
7345         bit, now assigning a bitfield to another bitfield will fail, sorry,
7346         * src/pic16/main.c: disabled the use of lr-support feature,
7347         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7348         * added some function prototypes, added function _debugf prototype,
7349         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7350         bits with offset (case PO_GPR_BIT),
7351         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7352         command line,
7353         * (isBankInstruction): modified to return 0 for no banking instruction,
7354         and 1 for banking instruction,
7355         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7356         caused stop processing pCodes after a inline assembly block,
7357         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7358         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7359         registers when it shouldn't,
7360         * src/pic16/ralloc.c (allocReg): add preliminary support for
7361         supporting a limited set of temporary registers,
7362
7363 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7364
7365         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7366           genDataPointerSet): ensure assignments always copy in MSB to LSB
7367           order,
7368           (loadRegFromAop): recognize CLRH optimization,
7369           (genFunction): optimize RECEIVE iCodes in reentrant functions
7370
7371 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7372
7373         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7374           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7375           selected.
7376         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7377         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7378           contiguous with data
7379
7380 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7381
7382         * device/lib/_gptrget.c (_gptrget),
7383         * device/lib/_gptrgetc.c (_gptrgetc),
7384         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7385           instead of sjmp to ret
7386         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7387           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7388
7389 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7390
7391         * .version: bumped version to 2.4.7
7392         * device/lib/_gptrget.c (_gptrget): is now _naked
7393         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7394         * device/lib/_gptrput.c (_gptrput): is now _naked
7395         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7396           (createFunction): fixed xstack
7397         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7398         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7399           or bit either,
7400           (geniCodeCritical): store original interrupt state in an iTemp bit
7401           var unless stack-auto
7402         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7403         * src/SDCCmain.c (setIncludePath): added include/target to search path
7404         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7405         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7406           prototype,
7407           (processFuncArgs): put bit vars in bit area
7408         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7409           unsaveRBank): fixed xstack,
7410           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7411           (genFunction, genEndFunction): fixed xstack,
7412           (genAssign): optimization don't walk backwards through mem
7413         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7414         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7415         * support/regression/Makefile: also make library (for stack-auto) when
7416           making "all" and added "test-mcs51-xstack-auto"
7417         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7418         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7419         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7420         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7421         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7422           make-library by MAKE_LIBRARY
7423         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7424           regression tests for xstack
7425         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7426         * support/regression/tests/critical.c: test for critical on mcs51
7427
7428 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7429
7430         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7431           built version of sdcc instead of installed version
7432
7433 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7434
7435         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7436         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7437           vprintf.c now
7438         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7439         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7440           WARNING: remove device/lib/build/z80/printf.o by hand when
7441           updating from previous build!
7442         * device/lib/z80/printf.c: updated comment
7443         * support/regression/tests/bug1057979.c: test all ports now
7444         * support/regression/tests/bug1065458.c: file added
7445
7446 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7447
7448         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7449           *_start and *_end symbols for static functions
7450
7451 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7452
7453         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7454           and search crt0.o in all library paths,
7455           (setIncludePath): proper handling of --nostdinc,
7456           (setLibPath): proper handling of --nostdlib
7457         * support/regression/Makefile,
7458         * support/regression/ports/ds390/spec.mk,
7459         * support/regression/ports/gbz80/spec.mk,
7460         * support/regression/ports/hc08/spec.mk,
7461         * support/regression/ports/mcs51/spec.mk,
7462         * support/regression/ports/mcs51-large/spec.mk,
7463         * support/regression/ports/mcs51-stack-auto/spec.mk,
7464         * support/regression/ports/z80/spec.mk: use include and lib files from
7465           built version of sdcc instead of installed version
7466         * doc/sdccman.lyx: fixed typo in --nostdinc
7467
7468 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7469
7470         * src/pic/pcode.c,
7471         * src/pic/device.c,
7472         * src/pic/ralloc.c,
7473         * src/pic/gen.c : added support to generate code for struct bit fields.
7474
7475 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7476
7477         * as/xa51/xa_version.h,
7478         * device/include/errno.h,
7479         * device/include/regc515c.h,
7480         * device/lib/_itoa.c,
7481         * device/lib/_ltoa.c,
7482         * device/lib/ser_ir_cts_rts.c,
7483         * sim/ucsim/xa.src/glob.cc,
7484         * sim/ucsim/xa.src/inst_gen.cc,
7485         * sim/ucsim/xa.src/xa_bit.cc,
7486         * sim/ucsim/xa.src/xa_sfr.cc,
7487         * sim/ucsim/z80.src/inst_dd.cc,
7488         * sim/ucsim/z80.src/inst_fdcb.cc,
7489         * support/scripts/keil2sdcc.pl,
7490         * src/pic16/pic16.dsp,
7491         * src/pic16/pic16a.dsp: corrected cvs line endings
7492         * device/lib/printf_large.c: fixed bug 1057979
7493         * src/pic16/gen.c: fixed non-C standard code
7494         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7495         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7496         * support/regression/ports/mcs51/support.c: reload T1 asap
7497         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7498           pdata use and clear idata startup behaviour
7499         * support/regression/tests/bug1057979.c: added
7500
7501 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7502
7503         * device/examples/ds390/ow390/ad26.h,
7504         * device/examples/ds390/ow390/cnt1d.h,
7505         * device/examples/ds390/ow390/crcutil.c,
7506         * device/examples/ds390/ow390/ownet.h,
7507         * device/examples/ds390/ow390/owsesu.c,
7508         * device/examples/ds390/ow390/swt12.h,
7509         * device/examples/ds390/ow390/swtoper.c,
7510         * device/examples/ds390/ow390/temp10.h,
7511         * device/examples/ds390/ow390/thermodl.c,
7512         * device/examples/ds390/tinitalk/tinitalk.dsp,
7513         * device/examples/ds390/tinitalk/tinitalk.dsw,
7514         * device/examples/mcs51/clock/hw.h,
7515         * device/examples/mcs51/simple2/go.bat,
7516         * device/examples/serialcomm/windows/serial.h,
7517         * device/examples/xa51/dummy.c,
7518         * device/examples/xa51/hello.c,
7519         * device/include/80c51xa.h,
7520         * device/include/at89x051.h: corrected cvs line endings
7521
7522 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7523
7524         * src/pic16/main.c (options): added command line --gstack, to trace
7525         stack over/under flows,
7526         * added pragma 'wparam' to allow passing first byte of function
7527         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7528         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7529         call to __gstack_test function and sets up the symbol as extern,
7530         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7531         * popaop): added call to pic16_testStackOverflow,
7532         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7533         wparamList list,
7534         * (genCall, genPcall): now all parameters are passed via stack
7535         except in functions that are pass to wparam pragma in which WREG is
7536         used too,
7537         * (genPcall): REENTRANT flag is checked to see if variable prototype
7538         contains reentrant keyword, don't call a non-reentrant function, via
7539         a reentrant function pointer or vice versa, functions are never
7540         passed via WREG,
7541         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7542         D.Winkler,
7543         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7544         SIGSEGV when accessing a NULL register stucture,
7545         * (pic16_printGPointerType): modified to handle UPPER modifier for
7546         function initializers, changed prototype of function to simpler one,
7547         * (pic16_printIvalFuncPtr): check to see if function is already
7548         added in externs list,
7549         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7550         optimized a move from W to SFR with a move to the same register
7551         later after a CALL,
7552         * device/lib/pic16/debug: NEW directory, contains debug features
7553         which are enabled when linking with libdebug.lib, currently command
7554         line option --gstack enables stack pointer tracing for over/under
7555         flow, corresponding sources are in debug/gstack
7556
7557 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7558
7559         * doc/sdccman.lyx: updated SDCC version,
7560         * (PIC16 port): update list of command line options,
7561         * src/pic16/device.h (structure pic16_options_t): added field gstack
7562         to enable stack overflow tracing on push/pops,
7563         * src/pic16/device.c (statistics structure): added statistics
7564         structure,
7565         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7566         pic16_dump_int_registers): increase statistics counters for each
7567         * variable which is encountered
7568         * (pic16_dump_usection): emit each .udata variable to its own udata
7569         section,
7570         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7571         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7572         parameters via stack, otherwise use old scheme,
7573         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7574         assembler output file,
7575         * src/pic16/main.c: added command line options --gstack to enable
7576         push/pop tracing for stack overflow,
7577         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7578         instructions): added size of each instruction,
7579         * (pic16_countInstruction): estimate size of instructions in
7580         the_pFile list, inline assembly blocks are not counted,
7581         * (pic16_FixRegisterBanking): trace previous register usage, when
7582         banksel optimizations is greater than 0, don't emit a redudant
7583         banksel directive,
7584
7585 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7586
7587         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7588         * src/pic16/ralloc.c : applied same fix for pic16.
7589         * src/pic/gen.c : tidied it up a little.
7590
7591 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7592
7593         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7594         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7595
7596 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7597
7598         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7599
7600 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7601
7602         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7603         non-reentrant function __modsint in the interrupt function (thus
7604         corrupting math operations during serial I/O)
7605         * device/lib/ser_ir.c: as above, changed buffersize
7606         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7607         256.c,d for zeroing
7608         * doc/Makefile: added option -t for rsync
7609
7610 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7611
7612         * src/SDCCast.h (struct ast),
7613         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7614
7615 2004-10-20 Borut Razem <borut.razem AT siol.net>
7616
7617         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7618         package
7619
7620 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7621
7622         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7623         makefile targets,
7624         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7625         support functions to replace long sequences of MOVFF's from access
7626         bank registers to stack and vice versa,
7627         * src/pic16/device.h: added new field opt_flags, where optimization
7628         flags can be set to enable certain features,
7629         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7630         * pBlock, (genFunction, genEndFunction): surroung loop for
7631         saving/loading used registers in stack with PC_INFO pCodes,
7632         INF_LREGS. Code in between can then be optimized by pCode optimizer
7633         to support function calls,
7634         * (genDataPointerSet): fixed bug which loaded float fields in
7635         structures with corrupt data,
7636         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7637         in a standard way debug info on stderr. Feature used for developing
7638         and debugging only,
7639         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7640         obsolete chunks of code,
7641         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7642         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7643         * pic16/src/pcode.c (pic16_newpCodeInfo,
7644         * (pic16_newpCodeOpLocalRegs),
7645         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7646         feature,
7647         * (pic16_pCodeConstString): printing of the initial value of a
7648         symbol as a comment is inhibited since parsing was already done by
7649         copyStr and output is corrupt,
7650         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7651
7652 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7653
7654         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7655
7656 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7657
7658         * as/mcs51/lkarea.c: removed old K&R style,
7659           (lnksect): changed check on boundary error,
7660           (lnksect2): changed check on boundary error,
7661           (lnksect2): extend XSTK to end of page if size = 1
7662         * as/mcs51/lkmain.c: removed old K&R style,
7663           (Areas51): create l_IRAM symbol
7664         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7665         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7666           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7667         * device/lib/_mullong.c: added version to be compiled with xstack
7668         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7669         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7670         * device/lib/mcs51/crtxstack.asm: fixed comment
7671         * src/SDCCglue.c: maxInterrupts defaults to 0,
7672           (emitMaps): added pdata,
7673           (createInterruptVect): (re)moved default,
7674           (glue): added pdata,
7675           (glue): moved __start__xstack to XSTK with default size 1
7676         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7677           and options.float_rent when options.stackAuto is set,
7678           (linkEdit): only write XDATA_NAME if provided on command line
7679         * src/SDCCmem.h,
7680         * src/SDCCmem.c: added pdata
7681         * src/port.h: added pdata_name to PORT
7682         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7683           (saveRegisters, unsaveRegisters): removed usage of B,
7684           (genMinus): fixed accumulator clash,
7685           (genJumpTab): added comment, this needs another look
7686         * src/mcs51/gen.c: added check for "B in use" paranoia,
7687           added pushB() and popB()
7688         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7689           chance
7690         * src/avr/main.c,
7691         * src/ds390/main.c,
7692         * src/hc08/main.c,
7693         * src/mcs51/main.c,
7694         * src/pic/main.c,
7695         * src/pic16/main.c,
7696         * src/xa51/main.c,
7697         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7698           added PSEG (PAG,XDATA) or NULL to port specifier
7699         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7700         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7701           (_mcs51_genInitStartup): removed __start__xstack equ,
7702           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7703         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7704         * src/z80/gen.c (_rleAppend): fixed warnings
7705         * support/regression/tests/zeropad.c: added pdata test
7706         * .version: bumped to 2.4.6
7707
7708 2004-10-17 Borut Razem <borut.razem AT siol.net>
7709
7710         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7711         as a part of nightly build
7712
7713 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7714
7715         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7716         WREG holds the first byte function parameters,
7717         * (aopForSym): take special case for symbols which are in FARSPACE
7718         but in CODESPACE too,
7719         * (assignResultValue): modified to take into account _G.useWreg,
7720         * (genCall): don't use wreg for parameter passing when function is
7721         declared as reentrant, too, added optimization INCF to stack
7722         pointer when stack parameter count is 1,
7723         * (genFunction, genEndFunction): refurnished and fixed to not using
7724         wreg for passing parameters when function has varargs or is
7725         reentrant, fixed bug with symbol name compare for generating
7726         functions in absolute address,
7727         * (pic16_storeForReturn): refurnished,
7728         * (genCmp): began writing a new version of the function, not ready
7729         yet, therefore it is disabled,
7730         * (genAssign): do not read code memory when assigning a function to
7731         a pointer function,
7732         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7733         array of characters, not pointer,
7734         * (pic16initialComments): in debug mode emit an .ident directive for
7735         the assembler,
7736         * (_process_pragma): emit a new warning type (internal to pic16)
7737         when setting stack to default length, emit a similar warning when
7738         placing a function at absolute address and address is not word aligned
7739         * (_pic16_parseOptions): added 'return TRUE' statement,
7740         * (_pic16_linkEdit): if compiling a source, then add the source's
7741         file object, first in the list of objects to link,
7742
7743 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7744
7745         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7746         * src/pic/main.c : removed VC warning.
7747         * src/pic/gen.c : changed comment.
7748
7749 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7750
7751         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7752         reference to a deprecated symbol _GPTRREG was causing failure to
7753         link. Thanks G. M. Gallant for the info.
7754
7755 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7756
7757         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7758         comments for Bugs item #954788.
7759
7760 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7761
7762         * src/pic16/device.c (pic16_dump_gsection,
7763         * pic16_groupRegistersInSection): handle symbols declared to be in
7764         access bank differently,
7765         * src/pic16/gen.c (struct _G): added field resDirect,
7766         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7767         send values read from stack directly to result and don't allocate
7768         temporary values,
7769         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7770         same registers,
7771         * (pic16_sameRegsOfs): NEW,
7772         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7773         free because they were not allocated from temporary pool,
7774         * pic16_popRegFromString): workaround to fix a problem with
7775         allocating variables twice or never,
7776         * (genGenPointerGet): using PRODL instead of FSR0H,
7777         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7778         instead of FSR0H,
7779         * (genAssign): take advantage of the _G.resDirect flag,
7780         * (genCast): around line 11844, use mov2f instead of directly
7781         MOVFF'ing between operands to account for literal values,
7782         * src/pic16/genutils.c: some new debug functions for gpsim have been
7783         added,
7784         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7785         float with integer part only,
7786         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7787         place variables in access bank
7788         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7789         updated sources to reflect recent changes in gen.c
7790
7791 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7792
7793         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7794         sources that searched for headers in installation path, now the
7795         device/include/pic16 is used,
7796         * src/pic16/glue.c (pic16glue),
7797         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7798         .line directives if not in debug mode, this suppresses assembler's
7799         warnings for ignored directives
7800
7801 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7802
7803         * src/port.h: made reset_regparms prototype void parameter explicit.
7804         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7805         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7806         * doc/sdccman.lyx: documented warning disabling and how to use
7807           printf_large to make it print floats.
7808         * device/include/stdbool.h: NEW
7809         * device/lib/_atof.c,
7810         * device/lib/_divuint.c,
7811         * device/lib/_divulong.c,
7812         * device/lib/expf.c,
7813         * device/lib/printf_large.c,
7814         * device/lib/sincosf.c,
7815         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7816         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7817           a completely reentrant lib.
7818
7819 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7820
7821         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7822         * device/include/pic16/stdio.h: fixed bug with colon
7823
7824 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7825
7826         * device/include/pic16/stdio.h,
7827         * device/include/pic16/stdlib.h,
7828         * device/include/pic16/math.h: NEW
7829         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7830         declared as _naked to reduce overhead
7831         * device/lib/Makefile.in (target port-specific-objects-pic16):
7832         changed * to *.* so to ignore the CVS directory,
7833         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7834         stacked variables back in stack,
7835         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7836         corruption
7837
7838 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7839
7840         * .version: bumped version number to 2.4.5
7841         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7842         * support/Util/SDCCerr.c (messages structure): added entry for
7843         W_POSSBUG2
7844
7845         Large cumulative patch for pic16 port and libraries.
7846         * device/include/pic16/sdcc-lib.h,
7847         * device/include/pic16/stdarg.h,
7848         * device/include/asm/pic16/features.h,
7849         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7850         * device/include/pic16/float.h: changes reentrant keyword with
7851         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7852         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7853         updated target build-libraries to include objects from gptr,
7854         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7855         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7856         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7857         all function headings,
7858         * src/SDCCmain.c: added global parameter userIncDirsSet,
7859         * (parseCmdLine): when option -I is encountered add directory to
7860         userIncDirsSet too,
7861         * src/version.awk: added space between control and long,
7862         * src/pic16/NOTES: added some notes for the port,
7863         * src/pic16/gen.c: added prototype for mov2fp function,
7864         * (fReturnpic16[]): properly named return value registers,
7865         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7866         * (aopForSym): added code to handle symbols with onStack flag set,
7867         symbols onStack are allocated PTRSIZE bytes,
7868         * (aopFreeAsmop): handles special case where asmops are stack objects,
7869         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7870         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7871         added argument lock to trace flaws in allocating temporary registers
7872         when developing port,
7873         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7874         * (pic16_popRegFromString): reenabled allocating a direct register
7875         from string,
7876         * (assignResultValue): various beautifications,
7877         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7878         referenced function argument,
7879         * (genIpush): reenabled to allow stacked arguments, handles only
7880         ic->parmPush iCodes,
7881         * (genCall, genPcall): major changes to allow for variable argument
7882         functions, fixed a bug with falsely restoring stack pointer after
7883         returning from call,
7884         * (genFunction): pending code for critical function,
7885         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7886         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7887         * (genNearPointerGet): fixed bug with indirect reading, was always
7888         reading from INDF0
7889         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7890         pointers,
7891         * (genAddrOf): rewrote code to take address of a stacked function parameter
7892         * (genCast): fixed casting to generic pointer type,
7893         * src/pic16/gen.h: added AOP_STA,
7894         * (struct asmop): added field stk,
7895         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7896         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7897         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7898         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7899         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7900         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7901         generic pointers,
7902         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7903         and library paths,
7904         * (pic16_port structure): generic pointer size is set to 3,
7905         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7906         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7907         compiler warning,
7908         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7909         operand is an iTemp,
7910
7911 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7912
7913         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7914         * debugger/mcs51/simi.c: addapt new syntax of s51
7915
7916 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7917
7918         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7919         * src/pic16/pcode.c: commented out some calls to free() in order to
7920         fix bug #989576,
7921
7922 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7923
7924         * src/SDCCicode.h,
7925         * src/SDCCicode.c (isiCodeInFunctionCall),
7926         * src/avr/ralloc.c (selectSpil),
7927         * src/pic/ralloc.c (selectSpil),
7928         * src/pic16/ralloc.c (selectSpil),
7929         * src/ds390/ralloc.c (selectSpil),
7930         * src/hc08/ralloc.c (selectSpil),
7931         * src/xa51/ralloc.c (selectSpil),
7932         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7933         stack in the middle of a function call sequence (fixes bug #1020268)
7934         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7935         costs associated with the minimum switch case.
7936
7937 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * src/SDCC.lex: fixed bug #1030549
7940
7941 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7942
7943         * src/SDCCcse.h (struct cseDef),
7944         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7945         over a function call if the CSE is derived from a symbol whose
7946         address has been taken (fixes bug #1029883)
7947         * support/regression/tests/bug-1029883: a new regression test for
7948         this bug
7949
7950 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7951
7952         * src/hc08/gen.c (emitinline): fixed bug #1029778
7953         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7954         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7955         and starts toward RFE #905167)
7956
7957 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7958
7959         * src/pic16/gen.c (mov2f): New function to move an operand to
7960         another without considering if it is a literal or a register,
7961         * (pic16_sameRegs): don't check if they are both AOP_REG,
7962         * (AccRsh): removed andmask=0 lines,
7963         * (genLeftShift): duplicated to be improved in future versions,
7964         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7965         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7966         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7967         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7968         * (insertBankSwitch): fixed inserting banksel directives algorithm
7969         for instructions that follow a skip instruction, this fixes a report
7970         for broken subtraction code generation,
7971         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7972         iCode is a left op, just in case result and right share the same
7973         registers
7974
7975 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7976
7977         * src/hc08/main.c,
7978         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7979         preservation of HX
7980         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7981         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7982         on 2004-09-12; it was buggy
7983
7984 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7985
7986         * src/SDCCsymt.h: removed RESULT_CHECK
7987         * src/SDCCast.c,
7988         * src/SDCCglue.c,
7989         * src/SDCCval.c,
7990         * src/pic/glue.c,
7991         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7992
7993 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7994
7995         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7996         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7997         configuration values no more rejected by compiler, they are assigned
7998         to configuration registers with a warning message instead,
7999         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8000         the for-loop so last conf register is emitted too,
8001         * (_pic16_initPaths): link library libsdcc.lib by default,
8002         * (_hasNativeMulFor): modified test for multiplication according to
8003         Raphael Neider's remarks. Integer multiplication is also done with
8004         support functions,
8005         * device/include/pic16/pic18fregs.h: corrected type error in while
8006         testing and including 18f6720 header file
8007
8008 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8009
8010         * src/pic16/device.h (pic16_options): removed field use_crt,
8011         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8012         until an optimization to handle single bits is added,
8013         * (pic16_loadFSR0): moved before genUnpackBits,
8014         * (genAnd): some white lines removed,
8015         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8016         leave_reset flags in pic16_options when using crt modules,
8017
8018 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8019
8020         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8021           for bugs 898889 & 979599. Also used some safer print instructions.
8022
8023 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8024
8025         * src/pic16/device.h (pic16_options_t): added field use_crt,
8026         crt_name, no_crt,
8027         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8028         catch a probable future bug,
8029         * src/pic16/gen.c: aopIdx function commented out,
8030         * (genAssign): commented out old code which used aopIdx,
8031         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8032         code, added if conditionals to take into account the --use-crt
8033         command line options,
8034         * src/pic16/main.c (pic16_optionsTable): added new command line
8035         options, --use-crt= and --no-crt,
8036         * (_pic16_linkEdit): now the proper crt object is added in the
8037         linker command line except than when --no-crt is specified,
8038         * src/pic16/pcode.c,
8039         * src/pic16/pcode.h: added some structures and functions for a new
8040         optimization scheme to compansate for instruction overhead between
8041         same iCodes, this scheme is currently under development and is not
8042         working in any way,
8043         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8044         to && operator,
8045         * device/lib/pic16/startup/crt0i.c,
8046         * device/lib/pic16/startup/crt0iz.c: added global char variable
8047         __uflags to force the generation of an idata section
8048
8049 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8050
8051         * doc/Makefile,
8052         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8053         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8054
8055 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8056
8057         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8058         Frieder) and clarified the default code optimization mode
8059
8060 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8061
8062         * src/SDCC.lex (doPragma, process_pragma),
8063         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8064         "opt_code_size", and "opt_code_balanced"
8065         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8066         regrouped options by category, added support for category headers
8067         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8068         and "--opt-code-size"
8069         * doc/sdccman.lyx: documented these new options and pragmas
8070         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8071         preference into account
8072
8073 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8074
8075         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8076           geniCodePreDec): Fixed bug 904237 by generating a warning
8077         * src/SDCCerr.h,
8078         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8079
8080 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8081
8082         * src/pic/device.c : When no max ram set validate full memory range.
8083         * src/pic/pcode.c,
8084         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8085
8086 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8087
8088         * device/lib/_gptrget.c,
8089         * device/lib/_gptrput.c: updated comment
8090         * device/lib/calloc.c,
8091         * device/lib/free.c,
8092         * device/lib/malloc.c,
8093         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8094         * src/SDCCcse.c (cseBBlock),
8095         * src/SDCCicode.c (printOperand, geniCodeArray),
8096         * src/SDCCicode.h (struct operand): fixed bug 868103
8097         * support/regression/tests/bug-868103.c: added
8098         * src/SDCCast.c (searchLitOp),
8099         * src/SDCCcse.h (struct cseDef),
8100         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8101         * src/SDCCicode.h (struct operand),
8102         * src/SDCCsymt.h (struct sym_link),
8103         * src/avr/gen.c (hasInc),
8104         * src/ds390/gen.c (hasInc),
8105         * src/hc08/gen.c (genPlusIncr, hasInc),
8106         * src/mcs51/gen.c (hasInc),
8107         * src/pic16/glue.c (pic16_printIvalChar),
8108         * src/pic16/ralloc.c (regWithIdx),
8109         * src/xa51/gen.c (hasInc) : removed warnings
8110         * src/SDCCast.c (createBlock): added comment ???
8111         * src/hc08/ralloc.c: updated comments
8112
8113 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8114
8115         * doc/sdccman.lyx: updated section on switch statements, added
8116         section about semaphore locking
8117         * doc/Makefile: added option -info for latex2html
8118         * device/lib/_gptrget.c,
8119         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8120
8121 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8122
8123         * src/pic/device.h,
8124         * src/pic/device.c,
8125         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8126          maxram is less than 0x100.
8127
8128 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8129
8130         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8131
8132 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8133
8134         * src/port.h,
8135         * src/mcs51/main.c,
8136         * src/ds390/main.c,
8137         * src/z80/main.c,
8138         * src/hc08/main.c,
8139         * src/pic/main.c,
8140         * src/pic16/main.c,
8141         * src/avr/main.c,
8142         * src/xa51/main.c
8143         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8144         a jump table is the best form for a switch statement, including
8145         automatic insertion of missing cases to make the case range
8146         continuous. Developed in collaboration with Frieder Ferlemann.
8147
8148 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8149
8150         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8151         accumulator result if it needs sign extension
8152
8153 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8154
8155         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8156
8157 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8158
8159         * device/lib/gbz80/printf.c,
8160         * device/lib/z80/printf.c: removed define for NULL
8161
8162 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8163
8164         * as/xa51/xa_link.c,
8165         * device/examples/ds390/ow390/ad26.c,
8166         * device/examples/ds390/ow390/cnt1d.c,
8167         * device/examples/ds390/ow390/counter.c,
8168         * device/examples/ds390/ow390/ds2480.h,
8169         * device/examples/ds390/ow390/ds2480ut.c,
8170         * device/examples/ds390/ow390/findtype.c,
8171         * device/examples/ds390/ow390/gethumd.c,
8172         * device/examples/ds390/ow390/owllu.c,
8173         * device/examples/ds390/ow390/ownetu.c,
8174         * device/examples/ds390/ow390/swt12.c,
8175         * device/examples/ds390/ow390/swtloop.c,
8176         * device/examples/ds390/ow390/temp.c,
8177         * device/examples/ds390/ow390/temp10.c,
8178         * device/examples/ds390/ow390/thermo21.c,
8179         * device/examples/ds390/ow390/tinilnk.c,
8180         * device/examples/ds390/ow390/tstfind.c,
8181         * device/examples/serialcomm/windows/serial.cpp,
8182         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8183         * device/include/reg51.h: fixed line endings for cvs
8184
8185 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8186
8187         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8188         packRegsForAccUse, packRegisters): new accumulator register
8189         packing algorithm
8190         * support/regression/ports/hc08/support.c (_putchar): suppress
8191         warning of unused variable
8192         * src/SDCCicode.c: added SWAP entry to codeTable
8193
8194 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8195
8196         * device/lib/sprintf.c: forgot to add this file before previous commit
8197
8198 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8199
8200         * src/pic16/gen.c (genPackBits): added operand right in function
8201         parameters, load result directly if p_type is POINTER (that is
8202         called by genNearPointerSet)
8203         * (genUnPackBits): added operand left in function parameters,
8204         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8205         FSR0 if accessing bitfields,
8206
8207 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8208
8209         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8210           _print_format; updated printf, sprintf, vsprintf
8211         * device/include/asm/default/features.h: corrected comment/define
8212         * device/lib/Makefile.in: added sprintf.c
8213         * device/lib/libsdcc.lib: added sprintf module
8214         * device/lib/printf_large.c,
8215         * device/lib/vprintf.c,
8216         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8217           into these 3 files
8218         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8219         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8220         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8221           hc08 test
8222         * support/regression/tests/zeropad.c: define idata as data for hc08
8223
8224 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8225
8226         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8227         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8228         labels are referenced at least once (even if a reference is not found)
8229         * src/hc08/gen.c (emitcode): set isComment flag for comments
8230         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8231         loads), rules 6a..6b (optimize jumps to return)
8232
8233 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8234
8235         * device/lib/acosf.c (acosf),
8236         * device/lib/asinf.c (asinf),
8237         * device/lib/atanf.c (atanf),
8238         * device/lib/ceilf.c (ceilf),
8239         * device/lib/cosf.c (cosf),
8240         * device/lib/coshf.c (coshf),
8241         * device/lib/cotf.c (cotf),
8242         * device/lib/fabsf.c (fabsf),
8243         * device/lib/floorf.c (floorf),
8244         * device/lib/log10f.c (log10f),
8245         * device/lib/logf.c (logf),
8246         * device/lib/sinf.c (sinf),
8247         * device/lib/sinhf.c (sinhf),
8248         * device/lib/sqrtf.c (sqrtf),
8249         * device/lib/tanf.c (tanf),
8250         * device/lib/tanhf.c (tanhf),
8251         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8252         replaced all instances of "reentrant" in the library functions
8253         defined in math.h with this macro.
8254         * support/regression/tests/float_trans.c: reenabled test for hc08
8255
8256 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8257
8258         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8259         erroneously deleted
8260
8261 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8262
8263         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8264         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8265         multi-byte volatile operands are used
8266         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8267         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8268         initialization to area GSINIT0 so that it would always precede
8269         any static initializers in GSINIT
8270         * support/regression/tests/zeropad.c: fixed idata define for hc08
8271         * support/regression/tests/bug-927659.c,
8272         * support/regression/tests/float_trans.c: disabled tests for hc08
8273         pending missing library routines
8274         * .version: increased version number to 2.4.4 - hc08 port now passes
8275         regression tests
8276
8277
8278 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8279
8280         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8281         * Makefile.common.in,
8282         * as/Makefile,
8283         * as/hc08/Makefile.in,
8284         * as/mcs51/Makefile.in,
8285         * as/z80/Makefile.in,
8286         * debugger/mcs51/Makefile.in,
8287         * device/include/Makefile.in,
8288         * device/lib/Makefile.in,
8289         * doc/Makefile,
8290         * link/Makefile,
8291         * link/z80/Makefile.in,
8292         * packihx/Makefile.in,
8293         * sim/ucsim/main_in.mk,
8294         * sim/ucsim/avr.src/Makefile.in,
8295         * sim/ucsim/doc/Makefile.in,
8296         * sim/ucsim/gui.src/serio.src/Makefile.in,
8297         * sim/ucsim/hc08.src/Makefile.in,
8298         * sim/ucsim/s51.src/Makefile.in,
8299         * sim/ucsim/xa.src/Makefile.in,
8300         * sim/ucsim/z80.src/Makefile.in,
8301         * src/Makefile.in,
8302         * support/cpp2/Makefile.in,
8303         * support/librarian/Makefile,
8304         * support/makebin/Makefile: added DESTDIR to the install path proposed
8305         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8306         * doc/sdccman.lyx: added DESTDIR documentation
8307
8308 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8309
8310         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8311         instruction for interrupt handlers, use fast returns when returning
8312         from high priority interrupts
8313
8314 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8315
8316         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8317         code generation
8318         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8319         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8320         bugs, ported much of Bernhard's code from mcs51
8321         * src/mcs51/gen.c (genSend),
8322         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8323         than one when calling a reentrant function
8324         * device/lib/_mullong.c: defined an alternate struct layout for big
8325         endian ports (hc08)
8326
8327 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8328
8329         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8330         test
8331
8332 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8333
8334         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8335         are sane and complete before asking the port its prefered parameter
8336         passing method (fixes bug #1017633)
8337         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8338         and _ret3
8339
8340 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8341
8342         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8343         problem in bitfields >= 8 bits.
8344
8345 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8346
8347         * src/SDCCsymt.c: undid changes that were not meant to be committed
8348
8349 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8350
8351         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8352
8353 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8354
8355         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8356           copied and wrong bit got inverted
8357
8358 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8359
8360         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8361         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8362         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8363         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8364         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8365         assignments to bitfields at known addresses
8366         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8367         reads from bitfields at known addresses
8368         * src/hc08/ralloc.c (packRegisters),
8369         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8370         genhc08Code): optimize pointer get values used as conditionals
8371         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8372         and branch
8373
8374 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8375
8376         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8377         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8378         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8379         as conditionals
8380
8381 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8382
8383         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8384
8385 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8386
8387         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8388         related problems
8389
8390 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8391
8392         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8393
8394 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8395
8396         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8397         mcs51 port
8398
8399 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8400
8401         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8402
8403 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8404
8405         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8406         cases use more compact code.
8407
8408 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8409
8410         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8411
8412 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8413
8414         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8415
8416 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8417
8418         * src/SDCCsymt.h,
8419         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8420         parameter of changePointer() from symbol* to sym_link*
8421         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8422         * src/SDCCsymt.c (compareType): void* type is castable to other
8423         pointers, but not necesarily an exact match.
8424         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8425         is no longer blindly treated as an exact match.
8426         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8427
8428 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8429
8430         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8431
8432 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8433
8434         * src/pic/gen.c,
8435         * src/pic/pcode.c,
8436         * src/pic/ralloc.h,
8437         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8438
8439 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8440
8441         * src/pic/device.c,
8442         * src/pic/device.h,
8443         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8444
8445 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8446
8447         * src/mcs51/gen.c (emitcode): fixed bug #992819
8448
8449 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8450
8451         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8452           there's no need to make it worse
8453
8454 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8455
8456         * src/mcs51/ralloc.c (deassignLR),
8457         * src/ds390/ralloc.c (deassignLR),
8458         * src/hc08/ralloc.c (deassignLR),
8459         * src/z80/ralloc.c (deassignLR),
8460         * src/pic/ralloc.c (deassignLR),
8461         * src/pic16/ralloc.c (deassignLR),
8462         * src/avr/ralloc.c (deassignLR),
8463         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8464         rlivePoint): fixed another part of bug #971834
8465
8466 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8467
8468         * src/z80/main.c: enabled "critical" keyword
8469         * src/z80/mappings.i,
8470         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8471         functions (fixes bug #979646)
8472         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8473
8474 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8475
8476         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8477           such as c:\mydir.
8478
8479 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8480
8481         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8482           doesn't disable too much optimizations
8483
8484 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8485
8486         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8487
8488 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8489
8490         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8491
8492 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8493
8494         * src/pic/gen.c tidied up tabs
8495         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8496         * src/pic/main.c tidied up tabs
8497         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8498         * src/pic/pcoderegs.c tidied up tabs
8499         * src/pic/ralloc.c tidied up tabs
8500
8501 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8502
8503         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8504         to S_FIXED for pic16 port and when symbol is not in level 0,
8505         allocate for S_REGISTER storage class and pic16 port, too,
8506         * src/pic16/device.h: prototype for checkSym,
8507         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8508         * (pic16_assignConfigWordValue): test the value and the mask to
8509         validate that the value is suitable for the configuration word,
8510         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8511         collect extern declared symbols, don't emit symbol twice, check
8512         first if symbol is in publics set first,
8513         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8514         * added command line '--fstack' which enables an experimental
8515         feature for stack access, too buggy to be used yet...
8516         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8517         * (pic16_allocDirReg): when register has storage class S_REGISTER
8518         allocate in pic16_dynAccessRegs,
8519         * device/include/pic16/pic18f????.h: modified configuration word
8520         naming convention, words started as CONFIG0H but should be CONFIG1H
8521
8522 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8523
8524         * device/include/mcs51reg.h: fixed bug 970993
8525
8526 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8527
8528         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8529         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8530         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8531         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8532         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8533         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8534           error/warning numbers,
8535           added function setWarningDisabled()
8536         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8537         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8538           _memcmp.c _memmove.c calloc.c realloc.c free.c
8539         * support/regression/tests/malloc.c: added tests for new functionality
8540         * support/regression/tests/zeropad.c: added tests for truncated initializers
8541           and initialized char arrays starting with '\x0'
8542         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8543
8544 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8545
8546         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8547
8548 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8549
8550         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8551         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8552         peephole 177.e. Thanks to anonymous
8553
8554 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8555
8556         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8557         function isn't used in the source but referenced as a
8558         variable initializer then declare it as extern in .asm file
8559
8560 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8561
8562         * .version: increased version number to 2.4.3
8563
8564         Adding version extension according to ChangeLog CVS revision
8565         * src/Makefile.in (target all): added dependency 'version.h'
8566         * (rule version.h): added rule to create version.h from ChangeLog,
8567         * (rule dep): added dependency version.h,
8568         * src/version.awk: AWK script to create version.h
8569         * src/SDCCdwarf2.c (dwWriteModule),
8570         * src/SDCCglue.c (initialComments),
8571         * src/SDCCmain.c (printVersionInfo): modified to write after
8572         version string the version extension number,
8573         * src/SDCCutil.c: included "version.h"
8574         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8575         number,
8576         * src/SDCCutil.h: added prototype for getBuildNumber
8577
8578         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8579         includeDirsSet, too,
8580         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8581         const char [] is found in function prototype...
8582
8583         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8584         moving to WREG with source is already in WREG,
8585         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8586         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8587         * (aopForSym): stack'ed symbols are partially supported, added
8588         if-clause to support symbols in FARSPACE,
8589         * (sameRegs): added test for AOP_ACC to see if registers are same,
8590         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8591         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8592         * (pic16_popRegFromString): will not allocate a new register if it
8593         doesn't find one by name, bug may have introduced...
8594         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8595         * (genIpush): revived to use pic16 port's stack,
8596         * (genAddrOf): added incomplete case for stack'ed operand,
8597         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8598         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8599         can handle multibyte operands,
8600         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8601         * (pic16initialComments): added message for MPLAB compatibility
8602         mode enabled,
8603         * src/pic16/main.h: prototype for pic16_mplab_comp,
8604         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8605         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8606         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8607         because of increased complexity of procedure,
8608         * (_process_pragma): stack pragma changed to format 'stack pos len',
8609         emit symbol '_stack_end' to conform with gplink,
8610         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8611         to search for register,
8612         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8613         PO_GPR_REGISTER,
8614         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8615         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8616         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8617         case for PO_GPR_REGISTER,
8618         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8619         dies, the new era is ahead !...
8620         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8621         pic16_dynInternalRegs,
8622         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8623         * (pic16_allocDirReg): minor optimizations and bug fixes,
8624         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8625
8626         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8627         load stack and frame pointer with address of 'stack_end' symbol
8628
8629 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8630
8631         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8632         without source code but only variable initializers
8633
8634 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8635
8636         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8637         external are not declared as extern to reduce overhead while linking
8638
8639 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8640
8641         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8642
8643 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8644
8645         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8646           Yee Keat for the patch
8647         * src/SDCCast.c (decorateType): fixed bug #979599
8648         * src/ds390/gen.h: removed local fReturnSizeDS390
8649         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8650         * src/ds390/gen.c (genAnd, genOr, genXor),
8651         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8652
8653 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8654
8655         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8656         add relFilesSet to $3, manipulate $2 to handle linking of object
8657         files without source files in command line,
8658         * device/include/pic16 (all headers): added ID location macros,
8659         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8660         entries for ID location bytes,
8661         * (pic16_assignIdByteValue): NEW,
8662         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8663         added field dumpcalltree to pic16_options_t,
8664         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8665         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8666         emitting rFalseIfx label after check_carry label,
8667         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8668         pic16_emitDIRegs), NEW
8669         * (pic16glue): dump .calltree file when option --calltree found,
8670         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8671         * (_pic16_genAssemblerPreamble): emit ID locations after
8672         configuration registers,
8673         * (pic16_linkCmd): modifications of the link command,
8674         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8675         * (pic16_pCodeInitRegisters): don't init stack registers,
8676         * (pic16_findPrevInstruction): fixed bug,
8677         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8678         bug with immediate registers,
8679         * (buildCallTree): traces stack push and pop,
8680         * (pct2): dump also stack usage for each function,
8681         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8682         * (pic16_allocDirReg): various modifications,
8683         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8684         fixed to 1,
8685
8686 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8687
8688         * src/pic16/pcode.c: removed buggy double colon
8689
8690 2004-07-01 Borut Razem <borut.razem AT siol.net>
8691
8692         * support/scripts/sdcc.nsi: added include/pic16 to setup
8693
8694 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8695
8696         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8697         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8698         target 'clean',
8699         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8700         specific command line arguments. Also added sample lkr script
8701         for placing a variable at a specific memory bank.
8702         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8703         at a specific memory bank,
8704         * (pic16_dump_isection): fixed bug which caused string literals to
8705         be omitted when dumping idata section,
8706         * (pic16_groupRegistersInSection): added code to handle registers
8707         in specific memory banks,
8708         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8709         public, all references are renamed too,
8710         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8711         AOP_DPTR2,
8712         * (pic16_storeForReturn): added case to handle when dest is WREG,
8713         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8714         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8715         pic16_rel_udata, check to see if that register is marked as being
8716         a member of a specific memory bank,
8717         * (pic16_printIvalCharPtr): added code to add string literals either
8718         to code or the idata sections,
8719         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8720         also accept the 'udata' pragma,
8721         * src/pic16/main.h: new structure types sectName and sectSym
8722         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8723         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8724         * (pic16_findPrevInstruction): fixed, it returned nothing,
8725         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8726         instruction combinations,
8727         * (pic16_FixRegisterBanking): heavily reorganised,
8728         * (pic16_AnalyzeBanking): if generating banksel directives is
8729         disabled, then don't call FixRegisterBanking at all,
8730         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8731         completely removed,
8732         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8733
8734 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8735
8736         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8737         Phuah Yee Keat <yk.phuah AT nestac.com>
8738
8739 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8740
8741         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8742         correctly the IVT even if it is relocated to some other location
8743
8744 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8745
8746         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8747         * device/include/pic16/pic18f2220.h: NEW,
8748         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8749         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8750         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8751         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8752         nodefaultlibs, ivt_loc is the location of the interrupt vector
8753         table, and nodefaultlibs signs that default libraries should not be
8754         linked in link stage,
8755         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8756         according to --ivt-loc argument,
8757         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8758         when pragma stack is found,
8759
8760 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8761
8762         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8763         256 (range check), 257 (do while), 258.a-f (bit banging
8764         f.e. on 3-wire SPI bus)
8765
8766 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8767
8768         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8769         variables used exclusively within a loop
8770
8771 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8772
8773         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8774
8775 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8776
8777         * src/SDCClrange.c (computeClash): fixed bug #971834
8778
8779 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8780
8781         * src/mcs51/gen.c (genCmp): fixed bug #975903
8782         * src/hc08/gen.c (operandsEqu),
8783         * src/ds390/gen.c (operandsEqu),
8784         * src/z80/gen.c (operandsEqu),
8785         * src/pic/gen.c (operandsEqu),
8786         * src/pic16/gen.c (operandsEqu),
8787         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8788         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8789
8790 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8791
8792         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8793
8794 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8795
8796         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8797         default case in switch statement,
8798         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8799         to eliminate problem with initialisation of pointers, but problem
8800         still exists,
8801         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8802         * (emitStaticSegment): removed various lines emitting debug info,
8803         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8804         added processor registers for utilizing EEPROM,
8805         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8806         configurable and set 8
8807
8808 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8809
8810         * .version: increased version number to 2.4.2,
8811
8812         Cumulative patch for pic16 port
8813         * src/pic16/device.c: changed scheme to dump initial values for
8814         variables in idata segment, all print_idata* functions were removed,
8815         now the pic16_printIval* will be called,
8816         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8817         * _pic16_printPointerType, pic16_printPointerType,
8818         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8819         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8820         NEW, similar to the respective functions in SDCCglue.c,
8821         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8822         way, emitting hex bytes,
8823         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8824
8825 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8826
8827         * src/avr/ralloc.c (serialRegAssign),
8828         * src/xa51/ralloc.c (serialRegAssign),
8829         * src/pic/ralloc.c (serialRegAssign),
8830         * src/pic16/ralloc.c (serialRegAssign),
8831         * src/hc08/ralloc.c (serialRegAssign),
8832         * src/z80/ralloc.c (serialRegAssign),
8833         * src/ds390/ralloc.c (serialRegAssign),
8834         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8835
8836 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8837
8838         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8839         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8840
8841 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8842
8843         Cumulative patch for pic16 port:
8844         * src/pic16/device.h (typedef PIC16_device) modified fields for
8845         defining microcontrollers,
8846         * src/pic16/device.c: added new info for all devices in Pics16 array,
8847         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8848         to be optimised out by the pCode optimiser,
8849         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8850         specially, bug reported by G.M. Gallant,
8851         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8852         as force'd so that cannot be optimised out by pCode optimiser,
8853         * src/pic16/pcode.c,
8854         * src/pic16/pcodepeeph.c,
8855         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8856         they are disabled by default, but can be enabled explicit with
8857         command argument --denable-peeps, for testing,
8858         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8859         --pomit-ivt in COMPILE_FLAGS
8860
8861 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8862
8863         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8864           compilation on MSVC
8865
8866 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8867
8868         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8869
8870 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8871
8872         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8873         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8874
8875 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8876
8877         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8878         would only assign 0x300001 register.
8879
8880 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8881
8882         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8883         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8884
8885 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8886
8887         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8888         for ds80c400
8889         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8890         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8891         added peephole 254 (left shift), 255 (jump table)
8892
8893 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8894
8895         * device/lib/Makefile.in: removed comment line with model-pic16,
8896         * (target port-specific-objects-pic16): the libraries and objects
8897         are copied to the build directory form the device/lib/pic16/bin
8898         directory
8899
8900         Cumulative patch concerning pic16 port:
8901         * library directory has been re-organized,
8902         * added support for PIC18F1220,
8903         * added headers and library sources for chips 18f1220,18f6520,
8904         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8905
8906         * configuration registers setting has changed, now each supported
8907         device has a complete description of the registers it uses,
8908         * all initialisations are moved to idata sections, these section
8909         can be absolute or relocatable,
8910         * fixed initialisation of codespace variables,
8911         * fixed warning about PCLATU and gpsim,
8912         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8913         * (genAssign): use table reads when assigning from variables in codespace,
8914         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8915         char/int variables placed in codespace,
8916         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8917         registers set in .asm file, no need for --pomit-config-words anymore,
8918         * (pic16glue): some 8051 legacy segments are commented out
8919         (to be removed completely),
8920         * added support for alternative assembler and linker with --asm=
8921         and --link= command line arguments,
8922         * peepholes are disabled automatically in the port, no need to
8923         specify on command line,
8924         * port supports natively char/int/long multiplication, but converts
8925         all divisions to support functions,
8926         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8927         to the file set in variable $2,
8928         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8929         strings in ASCII format and not in hex,
8930         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8931         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8932         allocate proper register if iCodes aren't temporary,
8933
8934 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8935
8936         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8937
8938 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8939
8940         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8941         is commented out
8942
8943 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8944
8945         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8946         computed address is reused
8947         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8948         multi-byte bitfields
8949
8950 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8951
8952         * src/z80/gen.c: (genArrayInit): must check for pointers too
8953
8954 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8955
8956         * support/regression/tests/zeropad.c: never meant to commit the
8957           nestedstruct test: removed, added check for GCC version
8958
8959 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8960
8961         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8962         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8963         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8964           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8965           bugs 928906 and 954082 half-empty initializers
8966         * src/SDCCsymt.h,
8967         * src/SDCCsymt.c (getAllocSize): added for above fix
8968         * src/z80/gen.c (genArrayInit): fixed bug 741044
8969         * support/regression/tests/zeropad.c: added tests
8970
8971 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8972
8973         * src/pic16/device.c (pic16_dump_section): corrected bug which
8974         caused some symbols of the libraries to be misplaced
8975
8976 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8977
8978         * src/pic16/glue.c,
8979         * src/pic16/ralloc.h,
8980         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8981         to fix conflict with pic port
8982
8983 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8984
8985         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8986         externs configuration variables,
8987         * src/pic16/ralloc.h,
8988         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8989         prototype in header, commented out some debug messages
8990
8991 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8992
8993         * src/pic16/glue.c,
8994         * src/pic16/main.c,
8995         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8996         for gpasm COFF object generation. Thanks to D. Hawkins for
8997         his patch info
8998
8999 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9000
9001         * src/ds390/main.c,
9002         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9003         Brock for spotting this)
9004         * src/ds390/gen.c (genEndFunction),
9005         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9006         interrupt handler and critical. Disable push/pop optimizations when
9007         peephole optimizations disabled.
9008
9009 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9010
9011         Updated pic16 library sources and headers.
9012         * device/lib/pic16/pic18f*/ ,
9013         * device/include/pic16/*.h: modified to handle structured SFR
9014         definitions
9015
9016 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9017
9018         * src/port.h (PORT structure): added hook initPaths, now each
9019         port can declare its own default search paths,
9020         which can been seen with the --print-search-dirs option,
9021         see pic16 port for example,
9022         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9023         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9024         * (doPrintSearchDirs): NEW, replaces in a central manner the
9025         printing of search dirs which was split in set*Paths functions,
9026         * (main): added call to port->initPaths and doPrintSearchDirs,
9027         * src/avr/main.c,
9028         * src/ds390/main.c,
9029         * src/hc08/main.c,
9030         * src/izt/i186.c,
9031         * src/izt/tlcs900h.c,
9032         * src/mcs51/main.c,
9033         * src/pic/main.c,
9034         * src/pic16/main.c: modified port structures to reflect addition of
9035         initPaths hook,
9036
9037         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9038         * (pic16_dump_section): for registers in same address reserve memory once,
9039         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9040         to no_banksel,
9041         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9042         result is greater in size than right or left,
9043         * (pic16_genUMult8X8_8): there are some cases where the result can
9044         be 16 bits size, so handle these,
9045         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9046         * (pic16_outBitC): modified to emit pcodes,
9047         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9048         or not,
9049         * (genDivOneByte): implemented algorithm to divide 8-bits,
9050         * (genCmp): uncommented goto, but issues still exist,
9051         * (genAnd): fixed a bug with variables >8bits,
9052         * (genPackBits): optimization added that uses BCF/BSF to change a
9053         single bit,
9054         * (genAssign): fixed bug when assigning floating point literals,
9055         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9056         __sdcc_gsinit_startup label,
9057         * src/pic16/main.c (_pic16_init): removed search directory
9058         initialisations,
9059         * (_pic16_initPaths): NEW, used to initialise search directories,
9060         * (_hasNativeMulFor): support functions for all except char/int
9061         multiplication, and char division,
9062         * (PIC16_port struct): modified entry for native mul support,
9063         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9064         no_banksel option,
9065         * (buildCallTree): call to register_usage is ifdef'ed out,
9066
9067 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9068
9069         * device/include/string.h: applied Stas Sergeev's patch to make this
9070         header file compatible with the preprocessor -Wundef option
9071         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9072         failure (fixes bug #941458)
9073
9074 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9075
9076         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9077         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9078         that the variable, not the function, should be static
9079         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9080         to be consistent with non-literal case
9081
9082 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9083
9084         * src/SDCCast.c (isConformingBody): fixed bug #949967
9085         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9086         convilong): fixed bug #952086
9087
9088 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9089
9090         * src/SDCCmem.c (allocVariables): fixed bug #955321
9091
9092 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9093
9094         * src/hc08/main.c (_hc08_genAssemblerEnd),
9095         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9096         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9097         completely eliminated the use of a temporary file
9098         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9099         when more than one file linked
9100         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9101
9102 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9103
9104         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9105         which fixes bug #543481
9106         * support/regression/tests/bug-751703.c: fixed comments left from a
9107         cut and paste error
9108         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9109         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9110         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9111         scopes
9112         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9113         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9114         are now changed to underscores in moduleName
9115
9116 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9117
9118         * as/mcs51/lkmem.c: better fix for bug #954173
9119
9120 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9121         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9122
9123         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9124         * device/include/c8051f000.h,
9125         * device/include/c8051f120.h,
9126         * device/include/c8051f300.h,
9127         * device/include/c8051f310.h,
9128         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9129         PWM16) and detab'ed
9130
9131 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9132
9133         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9134         and mailing lists, doc'ed --no-peep-comments, removed reference
9135         to knoppix (newest version has no LyX/LaTeX), other minor changes
9136         * src/SDCCglue.c (glue): save 2 bytes stack space with
9137         option --main-return. The ljmp could probably be avoided too
9138
9139 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9140
9141         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9142
9143 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9144
9145         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9146         * src/SDCCopt.c (isLocalWithoutDef),
9147         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9148         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9149         (credit to Maarten Brock for patch #949363, on which this is based)
9150         * support/regression/tests/bug-751703.c: some test cases of extern used
9151         within inner scopes.
9152
9153 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9154
9155         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9156         SPEC_STRUCT
9157         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9158         struct definitions
9159         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9160         dwWriteLabel): fix to create valid debugger symbols even when
9161         the module name has non-alphanumeric symbols in it
9162         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9163         when a variable's allocation has been optimized away
9164
9165
9166 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9167
9168         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9169         * src/hc08/main.c,
9170         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9171         * src/mcs51/main.c,
9172         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9173         * src/ds390/main.c,
9174         * src/z80/gen.c (z80_emitDebuggerSymbol),
9175         * src/z80/main.c,
9176         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9177         * src/pic/main.c,
9178         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9179         * src/pic16/main.c,
9180         * src/avr/gen.c (avr_emitDebuggerSymbol),
9181         * src/avr/main.c,
9182         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9183         * src/xa51/main.c,
9184         * src/SDCCdebug.c (emitDebuggerSymbol),
9185         * src/SDCCdebug.h,
9186         * src/port.h: added a debugger struct to the port struct. Added a
9187         callback for defining debugger symbols
9188
9189         * src/SDCCast.c (createLabel),
9190         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9191         with isitmp = 1
9192         * src/SDCCicode.h,
9193         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9194         iCode back to the ast for the function
9195
9196         * src/hc08/ralloc.c (hc08_assignRegisters),
9197         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9198         unneeded fields from the regs struct.
9199         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9200         pushReg() & pullReg() functions instead of emitcode()
9201
9202         * src/hc08/gen.c (genLabel, genhc08Code),
9203         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9204
9205         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9206         debugger hooks
9207
9208         * src/hc08/gen.c (genEndFunction, genhc08Code),
9209         * src/hc08/gen.h,
9210         * src/mcs51/gen.c (genEndFunction, gen51Code),
9211         * src/mcs51/gen.h,
9212         * src/ds390/gen.c (genEndFunction, gen390Code),
9213         * src/ds390/gen.h,
9214         * src/z80/gen.c (genEndFunction, genZ80Code),
9215         * src/z80/gen.h,
9216         * src/z80/z80.h,
9217         * src/pic/gen.c (genEndFunction, genpic14Code),
9218         * src/pic/gen.h,
9219         * src/pic16/gen.c (genEndFunction, genpic16Code),
9220         * src/pic16/gen.h,
9221         * src/avr/gen.c (genEndFunction, genAVRCode),
9222         * src/avr/gen.h,
9223         * src/xa51/gen.c (genEndFunction, genXA51Code),
9224         * src/xa51/gen.h,
9225         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9226         specific code to cdbFile.c and out of the backend code generators
9227
9228         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9229         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9230         starting address is now 0
9231
9232         * as/hc08/asm.h,
9233         * as/hc08/m08pst.c,
9234         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9235         assembler directive for DWARF support
9236         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9237
9238         * src/src.dsp,
9239         * src/Makefile.in,
9240         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9241
9242 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9243
9244         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9245         and inappropriate peephole optimization in jump tables
9246
9247 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9248
9249         * as/hc08/m08pst.c,
9250         * src/SDCCglue.c: sdccopt works for the hc08 port now
9251
9252 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9253
9254         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9255
9256 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9257
9258         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9259
9260 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9261
9262         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9263         rules
9264         * src/SDCCmain.c,
9265         * src/SDCCglobl.h,
9266         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9267         comments from the peephole optimizer replacement rules
9268         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9269         symbols
9270         * src/SDCCcse.c (updateSpillLocation),
9271         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9272         equivalents
9273         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9274         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9275         objects far pointers
9276
9277 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9278
9279         * src/SDCCsymt.h: a missing part of my last change
9280         * src/pic/ralloc.c (regTypeNum),
9281         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9282
9283 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9284
9285         * src/SDCCicode.h,
9286         * src/SDCCicode.c (aggrToPtrDclType),
9287         * src/SDCCptropt.h,
9288         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9289         ptrPseudoSymConvert),
9290         * src/pic/ralloc.c (regTypeNum),
9291         * src/pic16/ralloc.c (regTypeNum),
9292         * src/hc08/ralloc.c (regTypeNum),
9293         * src/ds390/ralloc.c (regTypeNum),
9294         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9295         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9296
9297 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9298
9299         * link/z80/lkmain.c (afile),
9300         * as/hc08/lkmain.c (afile),
9301         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9302         prevent a pointer problem when a filename has no directory and
9303         no extension specified.
9304
9305 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9306
9307         * link/z80/lkmain.c (afile): allow periods in directory names
9308         * link/z80/lkmain.c (afile),
9309         * as/mcs51/lkmain.c (afile),
9310         * as/hc08/lkmain.c (afile): allow linker script file to have an
9311         extension other than ".lnk"
9312         * link/z80/lklex.c (getfid),
9313         * link/z80/lkmain.c (parse),
9314         * as/mcs51/lklex.c (getfid),
9315         * as/mcs51/lkmain.c (parse),
9316         * as/hc08/lklex.c (getfid),
9317         * as/hc08/lkmain.c (parse): Support comments in the linker script
9318         file on lines by themselves and after filenames
9319
9320 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9321
9322         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9323
9324 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9325
9326         * src/z80/peeph-z80.def: removed some peephole rules that don't
9327         work with multibyte arithmetic (fixed bug #937126)
9328         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9329         to registers and not global variables
9330         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9331         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9332         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9333         checking for assignments not internally generated (fixed bug #931895)
9334         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9335         structure member (fixed bug #930072)
9336
9337 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9338
9339         * src/SDCCmain.c (linkEdit),
9340         * src/hc08/main.c (_hc08_parseOptions),
9341         * as/hc08/Makefile.in,
9342         * as/hc08/aslink.h,
9343         * as/hc08/asm.h,
9344         * as/hc08/m08pst.c,
9345         * as/hc08/lkrloc.c (relr, rele),
9346         * as/hc08/lkarea.c (lnkarea)
9347         * as/hc08/lkmain.c (afile, parse),
9348         * as/hc08/lkelf.c: support for ELF output
9349         * as/hc08/lks19.c (s19),
9350         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9351
9352 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9353
9354         * as/mcs51/lkihx.c: Fixed bug #899105.
9355
9356 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9357
9358         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9359         .dsp files from Unix to DOS.
9360
9361 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9362
9363         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9364         function pointers; we have been compliant for several months now.
9365         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9366         change that was accidently commented out
9367         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9368         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9369         bug #922319
9370
9371 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9372
9373         * src/hc08/gen.c: output of all of the internal debugging information
9374         is now controlled by the D() macro; it is disabled by default
9375
9376 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9377
9378         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9379         harder to keep the same registers during a CAST iCode
9380         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9381         long via int can be done in a single cast, if the signedness is
9382         correct.
9383         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9384         putchar() in tinibios.c in ds390's library
9385
9386 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9387
9388         * src/SDCCast.c (decorateType): fixed bug #898889,
9389         cast result of a literal complement too
9390         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9391         fixed check for bitfields
9392
9393 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9394
9395         * src/SDCCicode.c (geniCodeLogic): made it static,
9396         (geniCodeLogicAndOr): added in order to fix bug #905492,
9397         (ast2iCode): fixed bug #905492
9398         * support/regression/tests/bug-905492.c: added
9399         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9400         (processParms): fixed bug #927659: don't copy parms, this will clear
9401         decorated flag
9402         * support/regression/tests/bug-927659.c: added
9403
9404 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9405
9406         * src/SDCCast.c (addCast): don't cast float to char
9407         * device/lib/libsdcc.lib: added _memmove
9408
9409 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9410
9411         * device/lib/large/Makefile: fixed parallel execution by
9412         replacing `make` by `$(MAKE)`
9413
9414 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9415
9416         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9417         offsets (fixes bug #923936)
9418
9419 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9420
9421         * device/lib/small/Makefile: fixed parallel execution by
9422         replacing `make` by `$(MAKE)`
9423
9424 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9425
9426         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9427
9428 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9429
9430         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9431         * src/regression/Makefile: Regression test was not running.
9432
9433 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9434
9435         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9436         complement if possible
9437         * src/SDCCval.c (valComplement),
9438         * src/SDCCicode.c (operandOperation): fixed complement of literal
9439         * support/regression/tests/onebyte.c (testComplement): added
9440
9441 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9442
9443         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9444         return an optimized tree; actually replace actParm with the new tree
9445         * src/SDCCast.h: added some parantheses to remove side effects
9446         * support/regression/tests/bug-920866.c
9447
9448 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9449         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9450         Bit operands were not being handled properly in the pic14 port.
9451         (now src/regression/add.c passes again).
9452
9453 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9454
9455         * src/SDCC.y (labeled_statement): case and default no longer require
9456         a following statement (RFE #893037)
9457
9458 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9459
9460         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9461         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9462         disabled (fixes bug #916294)
9463         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9464         "mov a,acc"; patch provided by Lenny Story
9465         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9466
9467 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9468
9469         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9470         functions
9471         * src/ds390/gen.c (genFunction, genEndFunction),
9472         * src/ds390/ralloc.c (ds390_assignRegisters),
9473         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9474         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9475         pushed if there are parameters passed on the stack. Also, a cleaner
9476         way to decide if r0/r1 should be pushed/popped. (Together they fix
9477         bug #918693)
9478
9479 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9480
9481         * doc/sdccman.lyx,
9482         * device/lib/mcs51/crtpagesfr.asm,
9483         * device/lib/mcs51/crtxinit.asm,
9484         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9485         to avoid confusion with Si Lab's SFRPAGE register.
9486
9487 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9488
9489         * src/SDCCglue.c (emitMaps): allow public sfr variables
9490         * src/SDCCglue.c (initialComments): include compiler build date
9491         with compiler version and put the timestamp of the generated
9492         assembly file on a serperate line to be less confusing.
9493         * src/port.h: added genInitStartup hook
9494         * src/avr/main.c,
9495         * src/ds390/main.c,
9496         * src/hc08/main.c,
9497         * src/pic/main.c,
9498         * src/pic16/main.c,
9499         * src/xa51/main.c,
9500         * src/z80/main.c: genInitStartup initialize as NULL (default to
9501         historical behaviour)
9502         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9503         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9504         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9505         library instead of hard coding it into the compiler.
9506         * support/regression/ports/mcs51-stack-auto/spec.mk,
9507         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9508         * device/lib/mcs51/Makefile,
9509         * device/lib/small/Makefile,
9510         * device/lib/large/Makefile,
9511         * device/lib/mcs51/crtpagesfr.asm,
9512         * device/lib/mcs51/crtstart.asm,
9513         * device/lib/mcs51/crtxclear.asm,
9514         * device/lib/mcs51/crtxinit.asm,
9515         * device/lib/mcs51/crtclear.asm,
9516         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9517         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9518         and into user configurable files.
9519         * device/lib/clean.mk: clean mcs51 directory too
9520         * support/regression/tests/longlit.c: added static to T1 declaration
9521         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9522         accesses in the initialization code
9523
9524 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9525
9526         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9527         OSCTRIMVAL as noted in bug #916008
9528
9529 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9530
9531         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9532         in loops with multiple exits (reported as incorrect registers
9533         used by Martin Helmling in Sdcc-user list)
9534
9535 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9536
9537         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9538         made ds390 register extensions look less like error messages
9539
9540 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9541
9542         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9543         reported by Adam Wozniak in Sdcc-user list
9544
9545 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9546
9547         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9548         arithmetic optimizations, added debug output
9549
9550 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9551
9552         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9553         * sdcc.spec: updated and split sdcc into 3 rpms
9554         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9555         needed for literals of LEFT_OP and '+'
9556         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9557         introduced RESULT_TYPE_NOPROM
9558         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9559         left shift
9560         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9561         limited promotion to int only for '*'
9562         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9563
9564 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9565
9566         * src/pic16/gen.c (genSkip),
9567         (genc16bit2lit), (gencjneshort): commented out
9568         (is_LitOp): new helper function, checks operand type
9569         (genCmpEq): rewritten
9570
9571 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9572
9573         * support/regression/tests/bug-908454.c: added
9574
9575 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9576
9577         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9578         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9579         (geniCodeCast): cosmetic, don't preserve bit storage class
9580         (geniCodeLeftShift): added promotion
9581         (geniCodeLogic): fixed regression
9582         * src/SDCCsymt.c (computeTypeOr): accept bits too
9583         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9584
9585 2004-03-07  Borut Razem <borut.razem AT siol.net>
9586
9587         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9588
9589 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9590
9591         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9592         version of pic16_genPackRegisters which does not check if ic is a
9593         CAST operator,
9594         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9595         function cause string1.c regression test fails
9596
9597 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9598
9599         * sim/ucsim/configure.in,
9600         * sim/ucsim/configure,
9601         * sim/ucsim/doc/Makefile.in: use docdir
9602         * src/SDCC.y: fixed sbit atrributes
9603         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9604         * src/SDCCast.c (decorateType): |^& need special promotion handling
9605         * src/SDCCast.h,
9606         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9607         * src/SDCCsymt.h (computeType),
9608         * src/SDCCicode.c: computeType() needs op
9609         * src/SDCCsymt.c (checkTypeSanity),
9610         * doc/sddman.lyx: "plain" bitfields are unsigned
9611         * src/SDCCsymt.c (computeTypeOr): added
9612         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9613         |^& ops
9614         * src/SDCCval.c (val*): computeType() needs op
9615         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9616         * support/regression/tests/onebyte.c: added tests for |^&
9617
9618 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9619
9620         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9621         for writing icode into asm output.
9622
9623 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9624
9625         * src/pic16/device.c: added some debug lines enabled
9626         with macro DEBUG_CHECK,
9627         * src/pic16/genarith.c: more debug in genPlus,
9628         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9629         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9630         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9631         * (aopForSym): onStack symbols are re-placed in data memspace,
9632         and onStack flag is cleared,
9633         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9634         copy temporary pcodeop,
9635         * (genPcall): added warning for not updating PCLATU,
9636         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9637         always true for pic16 port,
9638         * (genMultOneWord): NEW, supports integer multiplication,
9639         * (genMult): modified to call genMultOneWord,
9640         * (ifxForOp): added warning when return NULL,
9641         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9642         flag is set before call to operandFromSymbol for implicit
9643         added structures,
9644         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9645         options.intlong_rent are set by default,
9646         * (_hasNativeMulFor): modified to allow port generation of integer
9647         multiplication,
9648         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9649         set regtype to REG_SFR for all registers, restricting seting the
9650         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9651
9652 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9653
9654         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9655         more than 500 times in the regression tests
9656
9657 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9658
9659         * support/Util/SDCCerr.h,
9660         * support/Util/SDCCerr.c,
9661         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9662         enumerator_list),
9663         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9664         for symbol conflicts.
9665         * support/valdiags/tests/enum.c,
9666         * support/valdiags/tests/tentdecl.c,
9667         * support/valdiags/tests/struct.c: expect possible error messages
9668         referring to original symbol definitions.
9669         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9670         * src/SDCCsymt.h,
9671         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9672
9673 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9674
9675         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9676
9677 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9678
9679         * src/pic16/ralloc.c (newReg): fixed bug #908929
9680
9681 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9682
9683         * src/ds390/gen.c: added missing #include "main.h"
9684
9685 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9686
9687         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9688         checking if symbol is already in set,
9689         * src/pic16/device.h: prototype for checkAddSym,
9690         * src/pic16/gen.c: (_G): added entry interruptvector,
9691         * (assignResultValue): removed some commented out lines,
9692         * (genFunction): check for ISR via sym->type, absolute section for
9693         interrupt code is created via a new pBlock, the goto instruction is
9694         placed now correctly at the interrupt vector position, changed all
9695         references from ivec to _G.interruptvector,
9696         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9697         is the interrupt is a high priority one, same for return from ISR,
9698         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9699         externs to calls of checkAddSym,
9700         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9701         pic16_pcode_verbose flag is set,
9702         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9703         * src/pic16/pcoderegs.c: message about how many registers are saved
9704         will only be emitted if pic16_pcode_verbose flag is set,
9705
9706 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9707
9708         * src/ds390/ralloc.h,
9709         * src/ds390/ralloc.c (ds390_regWithIdx),
9710         * src/ds390/gen.c (emitcode),
9711         * src/ds390/main.h,
9712         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9713         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9714         ds390operandCompare, getRegsRead, getRegsWritten,
9715         initializeAsmLineNode): customized instruction size calculation for
9716         ds390, started basis for some register optimizations
9717         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9718         corresponding assembly output
9719         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9720         missing push/pop of r0/r1. Optimized push/pops
9721
9722 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9723
9724         * src/mcs51/main.c (instructionSize): fixed ACALL size
9725         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9726
9727 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9728
9729         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9730         the sorting of rlist with NULL elements
9731         * (print_idataType, print_idata): NEW to create idata sections
9732         * src/pic16/device.h: idataSymSet new variable
9733         * src/pic16/gen.c (genFunction): fixed some bugs in string
9734         comparing, improved the absolute section creation for ISRs,
9735         added FSR0L/FSR0H in registers that are saved in an ISR,
9736         * (genInline): fixed the processing of inline snippets,
9737         now they undergo no process by the peephole optimizer
9738         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9739         are placed in idataSymSet,
9740         * (pic16emitStaticSeg): extern symbols are added in externs,
9741         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9742         switching when aboslute variables are placed in access bank memory
9743         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9744         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9745         commented out with #if,
9746         * (pic16_packRegisters): reintroduce the check for CAST because some
9747         symbols are not correctly handled,
9748         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9749         pCodeInstruction instead of pCode,
9750         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9751         pCodeAsmDir definition,
9752         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9753         directive, then the argument directive is emitted without the leading
9754         tab, hack for inline labels which must be in the first column,
9755         * (compareLabel,pic16_findNextInstruction),
9756         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9757         * (insertBankSwitch): modified for the new pCodeAsmDir,
9758
9759 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9760         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9761
9762         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9763         instance,
9764         * (pushSide): commented out with #if,
9765         * (assignResultValue): fixed some typos in saving
9766         registers,
9767         * (genPcall): FIXED and sync'ed with genCall,
9768         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9769         * (genNearPointerGet): fixed to handle some more cases,
9770         implementation scheme via table reads,
9771         * (genConstPointerGet): modified to access code memory correct,
9772         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9773         and improved to handle some cases
9774         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9775         instead of "RETLW" for init data
9776         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9777         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9778         variables are placed in access bank memory (<0x80 and >=0xf80),
9779         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9780         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9781         TBLWT_POSTDEC,TBLWT_PREINC
9782         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9783         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9784         directives
9785         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9786         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9787         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9788         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9789
9790 2004-02-29  Borut Razem <borut.razem AT siol.net>
9791
9792         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9793         support/Util/findme.h, support/Util/system.h: enhance binary relative
9794         search for lib and include by using findProgramPath()
9795
9796 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9797
9798         * src/SDCCpeeph.h,
9799         * src/SDCCpeeph.c (pcDistance),
9800         * src/port.h,
9801         * src/mcs51/ralloc.h,
9802         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9803         * src/mcs51/main.h,
9804         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9805         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9806         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9807         size calculation port specific, started basis for some register
9808         optimizations
9809         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9810         missing push/pop of r0/r1. Optimized push/pops
9811         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9812         * device/lib/_modsint.c (_modsint),
9813         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9814         and stack version so regression tests pass
9815
9816 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9817
9818         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9819         * src/SDCCast.c (decorateType): catch another small optimization
9820         with '?' operator
9821         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9822         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9823         modified to finally use computeType() all over SDCC,
9824         see Feature Request #877103
9825         * src/SDCCval.h: cosmetic
9826         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9827         valCompare(); regression tested in muldiv.c
9828         * support/regression/tests/muldiv.c (testMod): mod sign follows
9829         dividend only
9830
9831 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9832
9833         * src/SDCCast.c (decorateType): fixed bug #902362
9834         * doc/INSTALL.txt: fixed install instructions for win32
9835
9836 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9837
9838         * device/include/Makefile.in (install): fixed by replacing spaces
9839         by tabs
9840         * doc/README.txt,
9841         * doc/INSTALL.txt: updated for release
9842         * doc/sdccman.lyx: added warning for --xstack being buggy
9843
9844 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9845
9846         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9847         to eliminate build warnings.
9848         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9849
9850 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9851            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9852
9853         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9854         removed -penable-stack, added comment for stack pragma, added
9855         warning for not initializing the stack/frame registers, removed
9856         comment at interrupts section
9857
9858         Stack is made permanent, there is no ability to disable stack usage.
9859         * src/pic16/device.h,
9860         * src/pic16/device.c: removed all references to USE_STACK macro,
9861         * src/pic16/device.c (pic16_dump_section): when no elements in
9862         rlist, free rlist before return,
9863         * (pic16_dump_int_registers): NEW, internal registers are a new set
9864         of general purpose registers reused by each function,
9865         * (checkAddReg): returns 1 if registers is added to set,
9866         * (pic16_groupRegistersInSection): when a registers is of type
9867         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9868         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9869         SRCASECMP macro is moved here from device.c
9870         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9871         PO_PCLATU, PO_PRODL, PO_PRODH,
9872         * (pic16_pCodeOpType, genMinus,
9873         changed compares to "a" register, with AOP_ACC,
9874         * (pic16_genPlus): fixed some bugs and indented properly,
9875         * (pic16_addSign): changed size to size+offset in the MOVWF
9876         instruction,
9877         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9878         multiply 8-bit operand by literal, result is 8-bit,
9879         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9880         multiply 2 8-bit operand, result is 8-bit,
9881         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9882         genUMult8X*_16,
9883         * src/pic16/gen.c: changed accUse to contain WREG only,
9884         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9885         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9886         true, do not use immediate addressing any more unless sym is a
9887         pointer in codespace,
9888         * (aopForRemat): do not use immediate addressing when symbol not in
9889         codespace and when symbol's address is requested,
9890         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9891         accUse size (= 1),
9892         * (aopGet): added case for AOP_ACC and don't return "accumulator
9893         bug" but WREG instead,
9894         * (popGetTempReg): pushes contents of temporary register in stack,
9895         * (popReleaseTempReg): pops contents of temporary register from
9896         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9897         * (pic16_popGet): separated case AOP_ACC to return register WREG
9898         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9899         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9900         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9901         the use of immediate pointers to certain cases only.
9902
9903         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9904         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9905         * (assignResultValue, genCall, genRet): modified to use the new
9906         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9907         genPcall is still broken,
9908         * (genFunction): added code to create 'A' type pBlocks when
9909         interrupt functions are generated, code not extensively tested yet,
9910         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9911         * (genEndFunction): modified so ISRs pop stored registers from stack,
9912         * (genMultOneByte): cleanup,
9913         * (AccRsh): added flag andmask, to and result with appropriate mask,
9914         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9915         * (genDataPointerGet): fixed and reenabled its use,
9916         * (genNearDataPointerGet): bugs fixed,
9917         * (genDataPointerSet): bugs fixed,
9918         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9919         pic16_DumpSymbol, pic16_DumpOp,
9920         * src/pic16/genutils.h: function prototypes for the above functions,
9921         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9922         pointers,
9923         * (pic16emitRegularMap): many many many improvements, but needs a
9924         major cleanup,
9925         * src/pic16/main.c: enable_stack in pic16_options is removed,
9926         * (_pic16_parseOptions): removed command line options -penable-stack,
9927         * (_process_pragma): emit stack symbol only when stack pragma is
9928         processed,
9929         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9930         redirected to FSR0L/FSR0H pair,
9931         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9932         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9933         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9934         for immediates,
9935         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9936         * (dumpPicOptype): NEW,
9937         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9938         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9939         with movff instruction,
9940         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9941         added pic16_int_regs, some packRegsFor* functions are commented out,
9942         because produce errors,
9943         * src/pic16/NOTES: minor modifications
9944
9945 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9946
9947         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9948         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9949         --pack-iram.
9950         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9951         * as/mcs51/lkaomf51.c: fixed bug #895763
9952
9953 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9954
9955         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9956
9957 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9958
9959         * doc/sdccman.lyx: added details about the HC08 storage classes and
9960         interrupts, fixed the register usage info for z80 & gbz80
9961
9962 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9963
9964         * doc/sdccman.lyx: added more pic16 port documentation
9965         * device/include/pic16/: added header pic18fregs.h
9966
9967 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9968
9969         * doc/sdccman.lyx: added Vangelis' contribution
9970
9971 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9972
9973         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9974         extend to the next CALL or PCALL, not just to the next CALL.
9975
9976 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9977
9978         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9979
9980 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9981
9982         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9983         bug #895752 and a better fix for bug #716790
9984
9985 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9986
9987         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9988
9989 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9990
9991         * doc/sdccman.lyx: minor changes, minor changed
9992
9993 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9994
9995         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9996         which can't handle SDCC_NEWONEBYTEOPS,
9997         (geniCodeMultiply): removed conversion from mult to shift for pic14
9998         and pic16
9999
10000 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10001
10002         * src/hc08/gen.h,
10003         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10004         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10005         thus fixing bug #895406
10006
10007 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10008
10009         * device/lib/_modsint.c,
10010         * device/lib/_modslong.c: sign follows divisor only
10011         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10012         signs or signedness can be ignored
10013         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10014         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10015         added optimization for IFX,
10016         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10017         arguments;
10018         reenabled optimization for IFX, which was removed on 2004-01-11
10019         * src/SDCCast.h: added return type IFX
10020         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10021         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10022         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10023         SDCC_OLDONEBYTEOPS selects the old behaviour
10024         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10025         changed again and commented promotion rule
10026         * src/SDCCval.c (valDiv): promotion no longer necessary
10027         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10028         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10029         rewritten
10030         * support/regression/tests/onebyte.c: added
10031
10032 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10033
10034         * gen.c (genInline): reverted to old code for assemnling inline
10035         code because of bug reported James Chadd
10036
10037 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10038
10039         * ralloc.h: missing declarations from previous patch,
10040         seems that patch for ralloc.h was never applied, fixed
10041
10042 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10043            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10044
10045         * pcode.c,
10046         * pcode.h,
10047         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10048         indirect addressing. Marked FSR0 as deprecated
10049         * gen.c (pointerCode): commented out, not needed now
10050         (pic16_popGet2p): new MOVFF helper function
10051         (genGenPointerGet),
10052         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10053         (shiftRLong): removed duplicate debugging info
10054
10055 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10056
10057         * src/ds390/gen.c (genNearPointerGet),
10058         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10059         optimization with bits, but not bitfields.
10060         * src/ds390/ralloc.c (packRegisters),
10061         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10062
10063 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10064
10065         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10066
10067 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10068
10069         * src/SDCCsymt.h,
10070         * src/SDCCicode.c (operandFromSymbol),
10071         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10072         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10073         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10074         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10075         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10076         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10077         bug #892038
10078         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10079         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10080         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10081         * src/SDCCsymt.c (newSymbol),
10082         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10083         enumerator_list),
10084         * src/SDCCval.h,
10085         * src/SDCCval.c (newiList): fixed bug #885705
10086
10087 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10088
10089         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10090         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10091
10092 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10093
10094         * device/include/c8051f120.h,
10095         * device/include/c8051f300.h,
10096         * device/include/c8051f310.h: added/updated header files for Silicon
10097         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10098         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10099         in new section Submitting patches
10100
10101 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10102
10103         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10104         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10105         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10106         genGenPointerSet),
10107         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10108         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10109         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10110         genGenPointerSet),
10111         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10112         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10113         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10114         genGenPointerSet),
10115         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10116         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10117         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10118         genGenPointerSet): fixed bug #892400
10119         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10120         to eliminate build warnings.
10121         * src/SDCCast.c (processParms),
10122         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10123         fixed bug 751859
10124         * support/valdiag/valdiag.py: added GCC to the list of defines active
10125         when compiling with gcc
10126
10127 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10128
10129         * support/Util/SDCCerr.h,
10130         * support/Util/SDCCerr.c,
10131         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10132         with an incomplete type (fixed bug #883734)
10133         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10134
10135 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10136
10137         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10138
10139 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10140
10141         * src/SDCCast.c (decorateType),
10142         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10143         function pointer implementation
10144         * support/regression/tests/funptrs.c: added tests to verify both forms
10145         of function pointers work correctly. Added tests to verify parameters
10146         are passed in the correct order.
10147
10148 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10149
10150         * device.c (regCompare): registers are sorted by ascending
10151         address and increasing size,
10152         * main.c (_pic16_finaliseOptions): removed the declaration
10153         of compiler macro MCU. Now a macro of the format pic18fxxxx
10154         will be defined from the command line
10155
10156 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10157             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10158
10159         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10160         PCOP_RLCF was overwritten!
10161         * gen.c (genSkip): commented out calls to pic16_emitcode,
10162         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10163         * (genlshTwo),
10164         * (genRRC): added debugging info,
10165         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10166         overwritten while shifting,
10167         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10168         overwritten while shifting,
10169         * (AccLsh),
10170         * (AccRsh),
10171         * (shiftLLeftOrResult),
10172         * (shiftRLeftOrResult),
10173         * (shiftRLong),
10174         * (shiftLLong): Implemented with pic16_emitpcode
10175         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10176         * (genLeftShift): Fixed bug, operand for shift by variable always
10177         was "and"ed with 0x0f,
10178         * (genLeftShiftLiteral),
10179         * (genrshTwo),
10180         * (genRightShiftLiteral): added debugging info,
10181         * (genrshFour): added comment,
10182         * (genRightShift): determined signedness from operand "left"
10183         instead of "result"
10184
10185 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10186
10187         * src/SDCCicode.c (geniCodeParms),
10188         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10189         function pointers, fixed function pointer bugs #861242 and #861896
10190
10191 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10192
10193         * device/include/c8051f000.h,
10194         * device/include/c8051f120.h,
10195         * device/include/c8051f300.h: added header files for Silicon
10196         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10197
10198 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10199
10200         * src/SDCCast.c (processParams): added new type flow and restructured
10201         (gatherAutoInit): added new type flow
10202         (addCast): cosmetic changes
10203         (getLeftResultType): added new type flow for array indices, patch
10204         provided by Stas, see FR #877103
10205         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10206         array index patch by Stas
10207         * src/SDCCast.h: added prototype getResultTypeFromType()
10208         * src/SDCCval.h,
10209         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10210         * src/pic/glue.c (pic14emitStaticSeg),
10211         * src/pic16/glue.c (pic16emitStaticSeg),
10212         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10213         for initialization of symbols
10214         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10215         * support/Util/SDCCerr.h:
10216         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10217         * .version: bumped version number to 2.3.8
10218         * device/include/Makefile.in (install),
10219         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10220         avoid warnings
10221
10222 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10223
10224         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10225         Slade Rich fixed an optimization bug
10226         * src/pic/pcodepeep.c,
10227         * src/pic/pcoderegs.c
10228         * doc/Makefile (install): added test for directory
10229
10230 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10231
10232         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10233         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10234         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10235         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10236         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10237         * as/mcs51/asexpr.c (term),
10238         * as/hc08/asexpr.c (term): fixed bug #887146
10239
10240 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10241
10242         * src/z80/gen.c (genMult): handle single byte result product
10243         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10244         DUMMY_READ_VOLATILE (fixed bug #886367)
10245
10246 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10247
10248         * support/regression/tests/libmullong.c: fixed logic, on little endian
10249         hosts we ended without a mullong_wrapper()
10250
10251 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10252
10253         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10254         virus/worm forged address usage.
10255
10256 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10257
10258         Fixed promotion, it should be done on AST level:
10259         * src/SDCCast.c (addCast): added promotion to int
10260         (decorateType): updated call to upCast()
10261         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10262         usualUnaryConversions()
10263
10264 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10265
10266         * support/regression/tests/literalop.c (mulWrapper): Added a
10267         wrapper to remove integer overflow warnings.
10268
10269         * support/regression/tests/float_trans.c: Made work on host.
10270
10271         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10272         location of sz80.
10273
10274         * support/regression/generate-cases.py (main): Changed from inline
10275         to a main method.
10276
10277         * doc/Makefile (install): Changed to depth first to get rid of
10278         missing directory install warning.
10279
10280         * as/Makefile (install-doc): Made work on Mac.
10281
10282 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10283
10284         * src/SDCCast.c: added an additional type flow in decorateType() of
10285         opposite direction, see feature request #860006; it's enabled at runtime
10286         by setting the environment variable SDCC_NEWTYPEFLOW
10287         * src/SDCCast.h: changed prototype of decorateType()
10288         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10289         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10290         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10291         see feature request #877103
10292         * src/SDCCval.c: updated call of decorateType()
10293         (valBitwise): fixed bug #882876
10294         (valMinus): added promotion
10295         (valLogicAndOr): result is unsigned
10296         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10297         * src/SDCCsymt.c (computeType),
10298         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10299         must not cause an unsigned operation
10300         * src/pic/glue (pic14emitRegularMap),
10301         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10302
10303 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10304
10305         * src/pic/pcode.c (PCodeID): commented out left over debug code
10306
10307 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10308
10309         * support/valdiag/tests/overflow.c: added shift tests
10310         * src/pic/device.c,
10311         * src/pic/gen.c,
10312         * src/pic/gen.h,
10313         * src/pic/glue.c,
10314         * src/pic/main.c,
10315         * src/pic/pcode.c,
10316         * src/pic/pcode.h,
10317         * src/pic/pcodepeep.c,
10318         * src/pic/pcoderegs.c,
10319         * src/pic/ralloc.c,
10320         * src/pic/ralloc.h: applied patch from Slade Rich;
10321         added support for multiple code pages and multiple RAM banks on the
10322         PIC 14 port. The ASM files now no longer simply assume all the
10323         code / RAM are in the same page / bank. This means the linker can
10324         safely allocate code/RAM of separate ASM files to different pages/banks.
10325         * doc/sdccman.lyx: added Slade's tips
10326         * src/mcs51/peeph.def: fixed bug #880768
10327
10328 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10329
10330         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10331         * src/SDCCast.c (decorateType): fixed bug #880197
10332
10333 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10334
10335         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10336         getopt.h.
10337
10338         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10339         strtof is not part of C89 and isn't included with Mac OS X.
10340
10341 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10342
10343         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10344         shiftL2Left2Result): fixed bug #879326
10345         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10346         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10347         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10348         address fetch for clr instruction
10349         * device/lib/hc08/_mulint.c: created optimized assembly version
10350         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10351
10352 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10353
10354         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10355         proposed in FR #877103
10356
10357 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10358
10359         * src/SDCCval.c (cheapestVal): added missing checks
10360         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10361         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10362
10363 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10364
10365         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10366         equal operands
10367
10368 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10369
10370         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10371         loaded with the linker search paths (-L arguments) and the libraries
10372         to be linked with the current source (-l arguments). Changes
10373         currently will affect only the pic16 port.
10374         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10375         include path the port specific paths and port specific libraries,
10376         * gplink command now contains the $3 argument,
10377         * src/pic16/device.h,
10378         * src/pic16/device.c,: structure PIC_device is made public and
10379         renamed to PIC16_device, the same for variable Pics which is renamed
10380         to Pics16. Updated all references to them.
10381         * src/pic16/glue.c (pic16glue): corrected bug with code
10382         initialization which bypassed the variable initializations block.
10383
10384         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10385         COMPILE_FLAGS and added the --nostdinc option
10386
10387 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10388
10389         * device/include/mc68hc908jb8.h: Register defs for another member
10390         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10391
10392 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10393
10394         Documenting changes from previous commits.
10395         * configure.in (version 1.56),
10396         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10397         when generating output files to configure the pic16 library,
10398         but now I've commented it out, since gputils aren't installed in the
10399         SF compile farm, so library won't compile
10400
10401         * device/lib/Makefile.in (version 1.56): initially I've added in
10402         target 'all' the prerequestive 'model-pic16' so it compiled the
10403         pic16 library, but now I've commented it out for the same reasons
10404         above,
10405         * added targets 'model-pic16' and 'objects-pic16' to compile the
10406         library
10407         * added target 'port-specific-objects-pic16' to handle the
10408         generated libraries and copy them into the build/ directory
10409         * added target 'clean-intermediate-pic16' to clean intermediate
10410         files into pic16 directory
10411         * in target 'installdirs' added line to create directory pic16 in
10412         the installation path
10413
10414         * device/include/Makefile.in (version 1.11): in target 'install'
10415         added lines to copy all header files to installation path,
10416         * in target 'installdirs' added line create directory for pic16
10417         headers in the installation path
10418
10419 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10420
10421         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10422          a function call
10423
10424 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10425
10426         * configure,
10427         * device/lib/configure.in,
10428         * device/lib/configure: fixed for autoconf 2.57
10429
10430 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10431
10432         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10433         option so that it actually works. Made it specific to the z80, since
10434         the gbz80 doesn't have these kinds of I/O ports.
10435
10436 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10437
10438         * device/include/z180.h,
10439         * device/lib/_memcpy.c,
10440         * device/lib/_memmove.c,
10441         * device/lib/_mulint.c,
10442         * device/lib/ser_ir.c,
10443         * device/lib/ser_ir_cts_rts.c,
10444         * device/lib/_strcmp.c,
10445         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10446         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10447         portmode; added deprecation warning for bank= and protmode= forms.
10448         Also, guard against buffer overflow.
10449         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10450
10451 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10452
10453         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10454         changed interrupt vector table generation to only emit declared vectors.
10455         * device/include/Makefile.in: added missing backslash
10456         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10457
10458 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10459
10460         Mainly changes to support compilation of the device libraries
10461         * src/pic16/device.c: stack is allocated via symbol and not
10462         via literal number. The symbol is placed in the corresponding
10463         position of the data ram
10464         * (pic16_dump_section): relocatable and absolute uninitialized
10465         data are now emitted in sorted order to reduce section naming,
10466         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10467         weren't marked as being in the access bank,
10468
10469 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10470
10471         Added portion of GNU PIC Library under the directory
10472         device/include/pic16 and device/lib/pic16. These files
10473         contain the declarations of SFRs for the PIC18Fxx2 devices.
10474         The directory is initialized via configure from toplevel.
10475
10476 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10477
10478         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10479         the spilllocations to be compared correctly
10480
10481 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10482
10483         * src/SDCCast.c (decorateType): fixed bug introduced today
10484
10485 2004-01-12  Borut Razem <borut.razem AT siol.net>
10486
10487         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10488         doc/sdccman.lyx: upper case pragmas are deprecated
10489
10490 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10491
10492         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10493         in simpler and even better code
10494
10495 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10496
10497         * src/SDCCicode.c (operandOperation): fixed bug #874819
10498         * src/SDCCast.c (decorateType): fixed
10499         char foo (unsigned long ul) { return ul > 0; }
10500
10501 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10502
10503         * doc/sdccman.lyx: Moved and added some sections, small changes
10504         all over. Telling LaTeX to be less strict with word spacing
10505         to better keep the right margin. Changed some notes about
10506         maintainance of the ports in section 3.2.1 - is it OK like this?
10507
10508 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10509
10510         SDCC source changes:
10511         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10512         convilong): modified to inform the pic16 port that builtin functions
10513         are external
10514
10515         PIC16 PORT specific changes:
10516         * src/pic16/device.c pic16_dump_equates() added,
10517         processor registers declared internally by the port are emitted in
10518         the translation as equates,
10519         * src/pic16/gen.c: inline code is passed unprocessed to the
10520         translation,
10521         * (pic16_popGetLit2): fnuction modified to take second operand as
10522         pCodeOp pointer and not as literal,
10523         * (popRegFromIdx): prefixed with pic16_,
10524         * (pic16_popCombine2): modified to receive already allocated pCode
10525         operands,
10526         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10527         * (genFunction): initializes local stack frame and pushes on stack
10528         all the registers used by this function,
10529         * (genEndFunction): restores all registers from stack and restores
10530         stack frame,
10531         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10532         improvements,
10533         * (pic16glue): changed the program startup sequence,
10534         * added new dbName code 'A' for functions placed in absolute section
10535         * src/pic16/main.c: added function attribute _naked,
10536         * added pragma 'code' to place a fnuction at an absolute address,
10537         * added command line arguments --debug-ralloc and --pcode-verbose,
10538         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10539         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10540         * (pic16_newpCodeOpLit2): modified to take the second operand as
10541         pCodeOp pointer,
10542         * (pic16_printpBlock): modified to emit each function in a separate
10543         section,
10544         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10545         UPPER for immediate operands,
10546         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10547         instruction,
10548         * src/pic16/peeph.def: all peepholes with movff are commented out,
10549         because there is a problem in the pcode peep optimizer,
10550         * src/pic16/ralloc.c: the register allocator can now reuse local
10551         function symbols for another function. This saves register usage.
10552         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10553
10554         Added file src/pic16/NOTES with information about program writing on
10555         the current port version.
10556
10557 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10558
10559         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10560         and peephole 252 (array access)
10561
10562 2004-01-09  Borut Razem <borut.razem AT siol.net>
10563
10564         * src/SDCCmain.c : fixed #872250: -l command line defined library
10565           files are scanned before standard library files
10566
10567 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10568
10569         * src/SDCCast.c (decorateType): fixed bug #874046
10570
10571 2004-01-09  Borut Razem <borut.razem AT siol.net>
10572
10573         * support/scripts/sdcc.nsi: remove previous installation
10574
10575 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10576
10577         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10578         bytes for last interrupt vector (mcs51)
10579         * sdcc.spec: fixed typo
10580
10581 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10582
10583         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10584         gen51Code): more efficient parameter receive for --model-large
10585         ("bug" #845294)
10586
10587 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10588
10589         * src/ds390/main.c,
10590         * src/z80/main.c: added missed needLinkerScript flags (more than
10591         one port structure defined in these file)
10592         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10593         bug #795325
10594
10595 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10596
10597         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10598         * src/port.h: added flag needLinkerScript in port->linker
10599         structure to inform whether to create a .lnk file or not,
10600         * src/avr/main.c,
10601         * src/ds390/main.c,
10602         * src/hc08/main.c,
10603         * src/mcs51/main.c,
10604         * src/pic/main.c,
10605         * src/pic16/main.c,
10606         * src/xa51/main.c,
10607         * src/z80/main.c: changed appropriately to configure
10608         needLinkerScript flag
10609         * src/pic/gen.c,
10610         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10611         * src/pic/glue.c: added variable udata_section_name to
10612         override default uninitialized data segment definition for
10613         devices only with SHAREBANK memory (reported from Erik Epetrich)
10614         * (pic14emitOverlay): modified to emit a commented overlay segment
10615         directive when no overlay data exist
10616         * (picglue): modified to emit uninitialized data segment
10617         according to udata_section_name
10618         * src/pic/main.c (_pic14_parseOptions): added command line
10619         options --udata-section-name=[name] to override default
10620         udata definition name
10621         * modified _linkCmd and _asmCmd to include compiler passed
10622         arguments via -W option
10623         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10624         object file from '.rel' to '.o' in port->linker structure,
10625         changed size of fptr from 2 to 3 in port structure
10626
10627 2004-01-07  Borut Razem <borut.razem AT siol.net>
10628
10629         * support/scripts/sdcc.nsi: update PATH
10630         * support/scripts/sdcc.ico: craeted
10631
10632 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10633
10634         * device/include/Makefile.in: fix install
10635         * doc/Makefile: fix install
10636
10637 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10638
10639         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10640         in bug #860505
10641         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10642         how the function variable allocation summary is displayed; also
10643         include information about variables allocated to the overlay
10644         segment
10645
10646 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10647
10648         * as/mcs51/lkmain.c: Help about -Y option
10649         * as/mcs51/lkarea.c: Fixed gcc warnings
10650
10651 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10652
10653         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10654         fixed warning
10655         * support/valdiag/tests/overflow.c: added
10656         * src/SDCCast.c (decorateType),
10657         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10658         LEFT_OP (left shift)
10659
10660 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10661
10662         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10663         (default behaviour).
10664
10665 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10666
10667         A python script to validate compiler diagnostic messages. It can be
10668         used to verify that sdcc complains about bad c source code and
10669         gives a good location of the error.
10670         * support/valdiag/Makefile,
10671         * support/valdiag/valdiag.py,
10672         * support/valdiag/tests/*
10673
10674 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10675
10676         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10677         * src/SDCCsymt.c (newEnumType),
10678         * src/SDCCsymt.h
10679         * support/Util/SDCCerr.c,
10680         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10681         enum related bugs.
10682         * support/regression/tests/enum.c: added test for enum values that
10683         require at least 2 bytes of storage.
10684
10685 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10686
10687         * src/common.h: added ifndef/define/endif macros
10688         around the header file.
10689         Bug reported from Jesus Calvino-Fraga
10690
10691 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10692
10693         * sdcc.spec: updated
10694         * device/include/Makefile.in: don't install CVS directories
10695         * device/lib/Makefile.in: added removal of CVS directories after install
10696         * doc/Makefile: fixed install, added local_icons
10697         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10698         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10699         * src/ds390/gen.c (genRightShift): fixed bug #870788
10700         * src/SDCCast.c (decorateType): fixed bug #870781
10701
10702 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10703
10704         PIC16 port related changes:
10705         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10706         added variable stackPos,
10707
10708         * gen.c: genCall, assignResultValue: added support for
10709         pushing/retrieving function parameters to/from stack,
10710         genFunction,genEndFunction: setup stack frame for the
10711         generated function,
10712         genAddrOf: will be changed according to bug 863624
10713
10714         * added files genutils.c and genutils.h which contain gen*
10715         debugged and optimised functions extracted from gen.c
10716
10717         * glue.c: added variable 'externs' which holds extern symbols,
10718         pic16emitRegularMap: is modified to properly handle relocatable
10719          symbols under the new scheme,
10720         pic16createInterruptVect: is modified
10721         pic16printPublics: is modified to emit 'global' assembler directives,
10722         added pic16_printExterns to print extern symbols,
10723         pic16glue: initializes stack/frame pointer in the beginning of
10724         the assembly output. Temporary hack, will be corrected later,
10725         because gplink yet does not support stack and SDCC does not
10726         yet support a type of crt0.o object to create the final binary.
10727
10728         * Removed many lines that contain 8051 legacy code.
10729         * The code is finally placed under a 'code' directive.
10730         * Added port specific options.
10731
10732         * _process_pragma: simplified since now we do not need *special*
10733         include file to define SFR registers. But a separate header
10734         will be needed. This will be developed later.
10735         * _pic16_parseOptions: added, parses port specific options:
10736         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10737         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10738         --preplace-udata-with=
10739
10740         * _pic16_setDefaultOptions: modified to initialize section names,
10741         but hack is temporarly out of order since it needs improvement.
10742         * _pic16_genAssemblerPreamble: configuration words are emitted by
10743         their address instead of their name. This part is incomplete and
10744         supports only the 18Fxx2 devices. Other devices will emit an error
10745         during assembly since they do not contain the same set of config
10746         registers
10747         * _pic16_genIVT: is modified,
10748
10749         * pcode.c: added definitions for some hardware registers that are needed
10750         for stack support
10751         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10752         All PCI entries are updated. Now LFSR is supported.
10753         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10754         * added pic16_newpCodeOpLit2 to support instructions with
10755         two literal arguments
10756         * pic16_pCode2str: corrected code that emits assembler instructions
10757         with two literal operands and those that have an access bit modifier
10758         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10759         this fixes a bug which caused some labels to be lost, when an
10760         assembler directive was added, i.e. banksel,
10761         * pic16_FixRegisterBanking: improved logic that causes the insertion
10762         of bank switching,
10763         * InlineFunction: functions that are called once, are not any more
10764         inlined. This can be a port option in the future,
10765
10766         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10767
10768         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10769         hold the corresponding uninitialized symbols,
10770         * pic16_allocProcessorRegister: registers have explicit marked the
10771         accessBank field,
10772         * pic16_allocInternalRegister: registers are explicit marked as
10773         not used,
10774         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10775         processing list, so bit registers were lost,
10776         *
10777
10778         * ralloc.h: added field 'accessBank' and original symbol operand
10779         in register definition,
10780         * removed the field isMapped from register definition,
10781
10782         ** Several functions have been removed from various sources:
10783         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10784         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10785         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10786         pic16_assignRelocatableRegisters
10787
10788         ** others have been introduced:
10789         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10790         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10791
10792 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10793
10794         * support/scripts/inc2h.pl: changed definition of BIT_AT
10795         to emit 'sbit at' instead of 'bit at'. This was a request.
10796
10797         PIC16 port related preliminary changes:
10798         * gen.c: prefixed function popRegFromString with
10799         pic16_ and all references to it corrected
10800         * pcode.c: all pic16_pc_* hardware registers prefixed
10801         with underscore (_),
10802         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10803         * ralloc.c: newReg(): when register is REG_SFR then
10804         set address to rIdx,
10805         pic16_allocProcessorRegister(): marks register wasUsed=0
10806         pic16_writeUsedRegs(): added a call to assign processor
10807         registers via pic16_assignFixedRegisters
10808
10809 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10810
10811         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10812         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10813         variables in unused register banks.  Also the SSEG is placed
10814         wherever there is enough space for it, and IDATA can be anywhere
10815         in internal RAM.  For now compile using -Wl-Y[stack_size].
10816         The mem file is different for this option as well, since it
10817         makes no sense of talking about DSEG lenght.
10818
10819 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10820
10821         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10822         in certain cases, e.g. when ROM assignment, patch provided
10823         from Albert den Haan.
10824
10825 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10826
10827         Many signedness and type propagation fixes:
10828         * src/SDCCicode.c: made geniCodeCast() static
10829         replaced SPEC_ by IS_ (cosmetic)
10830         (operandOperation): fixed div and mod operation
10831         (usualBinaryConversions): added support for promotion of char
10832         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10833         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10834         (geniCodeAdd): an array index will stay unsigned, even if promoted
10835         from char to int
10836         (geniCodeArray): ditto
10837         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10838         * src/SDCCsymt.c (computeType): added more support for char;
10839         promotion of char is selectable by promoteCharToInt, fixed signedness
10840         for all cases
10841         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10842         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10843         * src/SDCCval (val*): replaced signedness calculation by
10844         computeType()
10845         rearranged if-branches (cosmetic)
10846         (valShift): added warning W_SHIFT_CHANGED
10847         (valCompare): fixed problem with different types
10848         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10849         * support/regression/tests/literalop.c: added many cases
10850         * support/regression/tests/ast_constant_folding.c: changed finally to
10851         'unsigned int'
10852         * .version: new year, new version: 2.3.7
10853         * src/SDCCmain.c (main): applied patch #866468
10854         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10855         provided by Scott Bronson
10856         * doc/sdccman.lyx: updated documentation for sdcdb
10857         updated and added chapter tips
10858
10859 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10860
10861         * src/SDCCsymt.h: missing from yesterday's commits
10862
10863 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10864
10865         * src/SDCC.y (struct_or_union_specifier),
10866         * support/Util/SDCCerr.c,
10867         * support/Util/SDCCerr.h: verify that struct & union tags are used
10868         as declared.
10869
10870 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10871
10872         * src/SDCCglobl.h: missing from yesterday's commits
10873
10874 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10875
10876         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10877         sft_attributes, struct_declaration, parameter_declaration,
10878         type_name, start_block, declaration_list),
10879         * src/SDCC.lex (check_type): support redefinition of typedef names
10880
10881 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10882
10883         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10884         aligned xdata arrays. Erik helped me with the if clause.
10885
10886 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10887
10888         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10889         warning
10890
10891 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10892
10893         * src/SDCCast.h,
10894         * src/SDCCast.c (newAst_),
10895         * src/SDCCicode.h,
10896         * src/SDCCicode.c (ast2iCode, newiCode),
10897         * src/SDCCglobl.h,
10898         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10899         expr, statement, expression_statement, selection_statement,
10900         iteration_statement, expr_opt, jump_statement): foundation for tracking
10901         sequence points
10902         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10903         point code too)
10904
10905 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10906
10907         * support/Util/SDCCerr.c,
10908         * src/SDCCast.h,
10909         * src/SDCCast.c (createCase, createDefault, decorateType),
10910         * src/SDCClabel.c (labelUnreach),
10911         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10912         to error messages.
10913         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10914         (with thanks to Stas Sergeev)
10915         * device/include/time.h,
10916         * device/lib/time.c (CheckTime): suppress unreachable code warning
10917
10918 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10919
10920         * src/SDCCast.c (createIvalCharPtr),
10921         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10922         bug #753752)
10923         * support/regression/tests/nullstring.c: tests for these two bugs
10924
10925 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10926
10927         * support/Util/SDCCerr.h,
10928         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10929         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10930         about storage class and 'at' used inside struct or union
10931         * src/SDCCBBlock.c (iCodeFromeBBlock),
10932         * src/SDCCcse.c (ifxOptimize),
10933         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10934         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10935         printIval, emitStaticSeg, emitOverlay),
10936         * src/SDCClabel.c (deleteIfx),
10937         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10938         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10939         gatherAutoInit, processParms),
10940         * support/Util/SDCCerr.h,
10941         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10942         reporting for post-parse errors.
10943
10944 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10945
10946         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10947         implicit casts via union; they don't work on big endian systems
10948         (possible fix for bug #861138)
10949
10950 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10951
10952         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10953         * src/mcs51/main.c: fixed the fix for bug #737001
10954
10955 2003-12-15  Borut Razem <borut.razem AT siol.net>
10956
10957         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10958
10959 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10960
10961         * support/makebin/makebin.c: put output in binary mode
10962
10963 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10964
10965         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10966         xdata and data memory on startup. Set the environment variable
10967         SDCC_NOGENRAMCLEAR to disable this.
10968         * src/mcs51/peephole.def,
10969         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10970         (allows non-interrupt and interrupt code to safely compete for a resource
10971         without the non-interrupt code having to disable interrupts)
10972
10973 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10974
10975         * src/SDCCicode.c (geniCodeAdd),
10976         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10977         with valFromType if type might be a pointer and host is big endian).
10978         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10979         types, not just integer types.
10980         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10981         multiply defined with mismatching "at" address.
10982
10983 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984
10985         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10986         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10987         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10988         with embedded nulls (fixed bug #753752)
10989
10990 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10991
10992         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10993         Apparently this did not see much testing (endless loop)
10994
10995 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10996
10997         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10998
10999 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11000
11001         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11002         gracefully handle NULL memmap pointers
11003
11004 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11005
11006         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11007         instead of deleting the iCode when an operand is volatile
11008         * src/z80/gen.c (genDummyRead),
11009         * src/mcs51/gen.c (genDummyRead),
11010         * src/ds390/gen.c (genDummyRead),
11011         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11012         not just IC_RIGHT
11013         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11014         * src/SDCC.y: fixed bug #850420
11015
11016 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11017
11018         Applied z80 i/o port patch from Peter Townson and fixed some operators
11019         to better handle operands in A register.
11020         * device/include/z180.h
11021         * src/SDCC.y
11022         * src/SDCCglue.c
11023         * src/z80/gen.c
11024         * src/z80/gen.h
11025         * src/z80/main.c
11026         * src/z80/peeph-z80.def
11027         * src/z80/peeph.def
11028         * src/z80/z80.h
11029
11030 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11031
11032         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11033
11034 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11035
11036         * device/lib/hc08/_mullong.c: Removed extra #endif
11037
11038 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11039
11040         * sim/ucsim/hc08.src/inst.cc,
11041         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11042         carries from x to h
11043         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11044         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11045         * device/include/stdarg.h: fixed varargs for hc08
11046         * device/lib/Makefile.in,
11047         * device/lib/hc08/Makefile,
11048         * device/lib/hc08/_mulint.c,
11049         * device/lib/hc08/_mullong.c: fixed some endian problems
11050
11051 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11052
11053         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11054         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11055         * device/lib/_gptrget.c,
11056         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11057
11058 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11059
11060         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11061         * src/SDCCast.c (astErrors): fixed bug #846007
11062         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11063
11064 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11065
11066         * src/SDCCast.c (decorateType): disabled a transformation I added in
11067         revision 1.188 (access to fields of a structure at an absolute address);
11068         it breaks with bitfields, extern declarations, and gcse analysis.
11069         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11070         could be assigned through a pointer, so don't complain.
11071         * src/SDCCast.c (astErrors),
11072         * src/SDCCast.h,
11073         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11074
11075 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11076
11077         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11078         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11079         output of __config directives, since gpasm now supports them
11080         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11081         pre-processor macro, i.e. -DMCU=p18f452
11082         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11083         and modified to handle 'cast' icode similarly to '=' icode
11084         * src/pic16/device.h (typedef struct PIC_device): added field
11085         'extMIface' to indicate that chip has external memory interface
11086         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11087         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11088         18F8720
11089
11090 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11091
11092         * src/SDCC.y (pointer): fixed bug #846006
11093         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11094         * src/SDCCast.c (decorateType): fixed bug #846009
11095         * src/ds390/peeph.def,
11096         * src/ds390/gen.c (genAnd, genOr),
11097         * src/mcs51/peeph.def,
11098         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11099
11100 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11101
11102         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11103         * src/SDCCdflow.c
11104         * src/SDCCcse.c
11105         * src/SDCCcse.h
11106         * src/SDCCBBlock.h
11107         * src/SDCCBBlock.c
11108
11109 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11110
11111         fixed bug #845089
11112         * src/SDCCbitv.h,
11113         * src/SDCCbitv.c: added function to free a bitvector
11114         * src/SDCClrange.h,
11115         * src/SDCClrange.c: added function to recompute the liveranges
11116         * src/avr/ralloc.c,
11117         * src/ds390/ralloc.c,
11118         * src/hc08/ralloc.c,
11119         * src/mcs51/ralloc.c,
11120         * src/pic/ralloc.c,
11121         * src/pic16/ralloc.c,
11122         * src/xa51/ralloc.c,
11123         * src/z80/ralloc.c: recompute the liveranges after register packing
11124
11125 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11126
11127         * src/SDCCloop.c (newInduction): fixed bug #845630
11128
11129 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11130
11131         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11132         inadvertantly left behind from my 2003-11-12 change
11133
11134 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11135
11136         Updated headers I neglected to commit yesterday.
11137         * src/SDCClrange.h,
11138         * src/SDCCicode.h
11139
11140 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11141
11142         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11143         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11144         * src/SDCCopt.c (eBBlockFromiCode),
11145         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11146         the creation of the key hash table from the sequencing so it can be used
11147         earlier (for some GCSE bug fixes still pending)
11148
11149 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11150
11151         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11152         * support/regression/tests/addsub.c: testing genPlus shortcut
11153
11154 2003-11-15  Borut Razem <borut.razem AT siol.net>
11155
11156         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11157
11158 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11159
11160         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11161         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11162         ordering is immaterial.
11163         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11164
11165 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11166
11167         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11168         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11169         (SIGSEV) of bug #840381
11170         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11171         unlink new file before rename if new and old filenames are the same)
11172
11173 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11174
11175         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11176         uninitialized variables) for the mcs51. Set environment variable
11177         SDCC_GENRAMCLEAR to test.
11178         xdata initialization slightly shorter
11179
11180 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11181
11182         * src/SDCCsymt.h,
11183         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11184         #838241 & 780691 (basicly the same bug)
11185         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11186         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11187
11188 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11189
11190         * src/SDCCmain.c (linkEdit): "fix" #834252
11191
11192 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11193
11194         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11195         * src/SDCCast.h,
11196         * src/SDCC.y: fixed bug #819403
11197
11198 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11199
11200         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11201         the reentrant attribute.
11202         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11203         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11204         simulation
11205         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11206         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11207         erroneously reduced to a literal.
11208         * src/hc08/ralloc.c (packRegisters, rematStr),
11209         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11210         some cases
11211
11212 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11213
11214         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11215         * doc/sdccman.lyx: changed from 'article' to 'book'
11216         * doc/Makefile: readded test_suite_spec and cdbfileformat
11217
11218 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11219
11220         * device/include/stdlib.h: include malloc.h to comply with ANSI
11221         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11222
11223 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11224
11225         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11226         * doc/clean.mk: also remove *.out files
11227         * doc/sdccman.lyx: some additions, larger top/bottom margins
11228
11229 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11230
11231         * src/SDCC.y: fixed bug #837365
11232         * support/regression/tests/bitopcse.c
11233         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11234         a symbol (might be valop instead)
11235         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11236         * device/lib/clean.mk: added hc08 to the cleaning list
11237
11238 2003-11-04  Borut Razem <borut.razem AT siol.net>
11239
11240         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11241           made 2003-11-04
11242         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11243           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11244           malloc is declared in standard stdlib.h
11245
11246 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11247
11248         * device/lib/hc08/Makefile: need to clean .rel not .o files
11249         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11250
11251 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11252
11253         * src/port.h,
11254         * src/hc08/main.c,
11255         * src/mcs51/main.c,
11256         * src/ds390/main.c,
11257         * src/z80/main.c,
11258         * src/avr/main.c,
11259         * src/pic/main.c,
11260         * src/pic16/main.c,
11261         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11262         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11263         tests (which uses the port's oclsExpense function)
11264         * src/SDCC.y,
11265         * src/SDCCast.c,
11266         * src/SDCCicode.c,
11267         * src/hc08/gen.c,
11268         * src/ds390/gen.c,
11269         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11270
11271 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11272
11273         * src/SDCCcse.c (ifxOptimize),
11274         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11275         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11276         deleting the IFX iCode.
11277         * src/hc08/ralloc.c: reduced unneeded slocs
11278         * src/hc08/gen.c: fixed bug in asmopToBoolean
11279
11280 2003-11-04  Borut Razem <borut.razem AT siol.net>
11281
11282         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11283           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11284           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11285           transferred to configure
11286
11287 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11288
11289         Use headers defined in the C[++] standards:
11290         * sim/ucsim/gui.src/serio.src/fileio.cc
11291         * sim/ucsim/gui.src/serio.src/frontend.cc
11292         * sim/ucsim/gui.src/serio.src/main.cc
11293         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11294         * support/Util/NewAlloc.c
11295         * as/hc08/lklibr.c
11296         * as/mcs51/lklibr.c
11297         * as/z80/aslist.c
11298         * as/z80/assym.c
11299
11300 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11301
11302         * Added MSVC projects for hc08 assembler and linker:
11303         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11304         /as/hc08/link_hc08.dsp
11305
11306 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11307
11308         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11309
11310 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11311
11312         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11313
11314 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11315
11316         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11317
11318 2003-10-31  Borut Razem <borut.razem AT siol.net>
11319
11320         * support/cpp2/cpplib.h,
11321           support/cpp2/cpplib.c,
11322           support/cpp2/cpplex.c,
11323           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11324           to switch _asm block preprocessing on / off. Default is
11325           #pragma preproc_asm +
11326
11327 2003-10-31  Borut Razem <borut.razem AT siol.net>
11328
11329         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11330           when outputting comment blocks (when executed with -C option) and
11331           _asm (SDCPP specific) blocks
11332
11333 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11334
11335         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11336
11337 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11338
11339         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11340
11341 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11342
11343         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11344         * src/SDCCast.c (decorateType): fixed bug #832664
11345
11346 2003-10-31  Borut Razem <borut.razem AT siol.net>
11347
11348         * support/cpp2/cpplex.c: fixed for SDCPP:
11349           comments(when executed with -C option) and _asm blocks
11350           were included even if they where in skipped #if block.
11351           Applied solution from GCC cpp 3.3.2
11352
11353 2003-10-31  Borut Razem <borut.razem AT siol.net>
11354
11355         * src/SDCC.lex: sdcc now understands both formats:
11356           '# <line_number> <file_name>' and
11357           '#line <line_number> <file_name>'
11358         * support/cpp2/cppmain.c: sdcpp now generates the standard
11359           '# <line_number> <file_name>' instead of former
11360           '#line <line_number> <file_name>'
11361
11362 2003-10-30  Borut Razem <borut.razem AT siol.net>
11363
11364         * support/cpp2/cpphash.h,
11365         * support/cpp2/cpplib.h
11366         * support/cpp2/cpplex.c,
11367         * support/cpp2/cppmain.c,
11368         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11369
11370 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11371
11372         Fixed a number of problems revealed by bug #827883.
11373         * src/SDCCloop.c (loopInvariants): Spill location of the
11374         result operand should be recomputed if extracted from
11375         a loop. Also, don't extract assignments of an iTemp
11376         from a literal.
11377         * src/SDCCast.c (isConformingBody): loop reversal should
11378         not occur if the control variable is involved with a
11379         relational operator.
11380
11381 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11382
11383         * .version: bumped to 2.3.6 to reflect the big improvements
11384         made by Erik and Klaus. Thanks!
11385
11386 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11387
11388         Replaced the livrange code.
11389         * src/SDCClrange.c: added new LR code
11390         * src/SDCCloop.c,
11391         * src/SDCCBBlock.h: removed remainig parts from old LR code
11392         * src/ds390/ralloc.c,
11393         * src/ds390/gen.c: minor fixes to make it work with new code
11394
11395 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11396
11397         * as/hc08/asm.h,
11398         * as/hc08/lkrloc.c,
11399         * src/hc08/gen.c,
11400         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11401         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11402         (tweaked fix for bug #818696)
11403
11404 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11405
11406         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11407
11408 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11409
11410         * src/SDCCmain.c,
11411         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11412         * src/mcs51/gen.c (gencjneshort),
11413         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11414         more efficient (per Scott Bronson's suggestion)
11415
11416 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11417
11418         Extended the semantics of the critical keyword to include
11419         individual statements. See RFE #827755 and #799831
11420         * src/SDCC.y
11421         * src/SDCCicode.c
11422         * src/SDCCopt.c
11423         * src/SDCCast.c
11424         * support/Util/SDCCerr.c
11425         * support/Util/SDCCerr.h
11426         * src/mcs51/gen.c
11427         * src/ds390/gen.c
11428         * src/hc08/gen.c
11429
11430 2003-10-19  Borut Razem <borut.razem AT siol.net>
11431
11432         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11433
11434 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11435
11436         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11437         Fixed bug #818696
11438         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11439         and predecrement operand is displayed
11440
11441 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11442
11443         * src/SDCCval.c (valMinus): fixed bug #826041
11444
11445 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11446
11447         Some hc08 related updates that I missed earlier
11448         * sim/ucsim/stypes.h
11449         * support/regression/ports/hc08/spec.mk
11450
11451 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11452
11453         New target "hc08" for the Motorola 68hc08 family of micros
11454
11455         * configure
11456         * configure.in
11457         * Makefile
11458         * src/hc08/*
11459         * src/SDCCmain.c
11460         * src/port.h
11461         * sim/ucsim/hc08.src/*
11462         * sim/ucsim/configure.in
11463         * src/ucsim/configure
11464         * sim/ucsim/packages_in.mk
11465         * as/hc08/*
11466         * as/Makefile
11467         * device/include/mc68hc908qy.h
11468         * device/lib/hc08/*
11469         * device/lib/Makefile.in
11470         * support/regression/ports/hc08/*
11471         * support/regression/Makefile
11472
11473 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11474
11475         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11476         regression test
11477         * src/ds390/gen.c (genCast): fixed bug #821957
11478
11479 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11480
11481         * device/lib/logf.c: "fixed" overlay bug
11482         * support/regression/ports/host/spec.mk: added m library
11483         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11484         * support/regression/tests/float_trans: added (for Eric)
11485
11486 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11487
11488         * src/mcs51/gen.c (genCpl): fixed bug
11489         http://sf.net/mailarchive/message.php?msg_id=6263915
11490
11491 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11492
11493         * src/SDCCast.c (decorateType): added extended constant folding
11494         * src/SDCCsymt.c (computeType): cleanup
11495         * src/SDCCval.c (valShift): minor optimization
11496         * support/regression/tests/ast_constant_folding.c: added
11497
11498 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11499
11500         * src/SDCCmain.c: removed some unintended changes
11501
11502 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11503
11504         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11505         * src/z80/gen.c: fixed part of bug #817589
11506         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11507
11508 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11509
11510         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11511         * src/SDCCcflow.c
11512         * src/SDCCcse.c
11513         * src/SDCCdflow.c
11514         * src/SDCClabel.c
11515         * src/SDCClrange.c
11516         * src/SDCCmem.c
11517         * src/SDCCopt.c
11518         * src/SDCCpeeph.c
11519         * src/SDCCset.c
11520         * src/avr/ralloc.c
11521         * src/ds390/ralloc.c
11522         * src/izt/ralloc.c
11523         * src/mcs51/ralloc.c
11524         * src/pic/ralloc.c
11525         * src/pic16/ralloc.c
11526         * src/xa51/ralloc.c
11527         * src/z80/ralloc.c
11528         * src/z80/gen.c: removed unused label "release:"
11529
11530 2003-10-06  Borut Razem <borut.razem AT siol.net>
11531
11532         * src/SDCC.lex: removed definition of unused variables
11533           save_optimize and save_options
11534
11535 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11536
11537         * clean.mk: removed '=' in "-maxdepth=1"
11538         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11539         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11540
11541 2003-10-06  Borut Razem <borut.razem AT siol.net>
11542
11543         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11544           my_unput() replaced by unput()
11545
11546 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11547
11548         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11549         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11550         type-punned pointer will break strict-aliasing rules"
11551         Old LR behaviour is again default; Klaus' LR can be choosen by
11552         defining the environment variable LRKLAUS
11553         * src/SDCCBBlock.h
11554         * src/SDCCloop.c
11555         * src/SDCClrange.c
11556         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11557         * clean.mk: fixed removal of files in bin/CVS/
11558         * device/lib/clean.mk: fixed removal of directories small and large
11559         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11560         * src/SDCCicode.c,
11561         * src/SDCCval.c: removed superflous test for pedantic
11562
11563 2003-10-05  Borut Razem <borut.razem AT siol.net>
11564
11565         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11566           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11567           message "unmatched #pragma SAVE and #pragma RESTORE"
11568
11569 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11570
11571         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11572           assembly, critical functions, atomic, nojtbound)
11573
11574 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11575
11576         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11577         * src/SDCCBBlock.h
11578         * src/SDCCloop.c
11579         * src/SDCCloop.h
11580         * src/SDCClrange.c
11581
11582 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11583
11584         * src/z80/gen.h,
11585         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11586         * src/mcs51/gen.h
11587         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11588         * src/ds390/gen.h
11589         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11590         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11591         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11592
11593 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11594
11595         * src/z80/gen.c (genRet): fixed bug #524753
11596         * src/z80/gen.c (genCast): fixed internal error on cast from
11597         pointer to long
11598         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11599         fix for bug #477835 to the z80
11600         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11601         for tracking iCodes in the peephole optimizer for z80
11602
11603 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11604
11605         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11606         the other part of bug #814548
11607         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11608
11609 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11610
11611         * src/SDCCcse.c: fixed part of bug #814548
11612
11613 2003-09-28  Borut Razem <borut.razem AT siol.net>
11614
11615         * src/asm.c: rewrite of printILine() to use temporary file instead
11616           a pipe
11617         * src/xa51/main.c: commented out declaration of int rewinds
11618
11619 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11620
11621         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11622
11623 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11624
11625         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11626         * src/asm.c (printILine): Fixed bug #811015
11627
11628 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11629
11630         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11631         freeing.
11632
11633 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11634
11635         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11636         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11637         to correctly handle general case of AOP_PAIRPTR
11638         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11639
11640 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11641
11642         * src/mcs51/ralloc.c (fillGaps),
11643         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11644         register positioning bug)
11645
11646 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11647
11648         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11649
11650 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11651
11652         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11653         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11654         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11655         (ralloc doesn't intentionally do this now, but perhaps later)
11656         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11657         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11658         register positioning bugs (Fixed bug #762602 and #795325)
11659         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11660         (Fixed bug #808779)
11661         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11662         lines that --i-code-in-asm generates
11663
11664 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11665
11666         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11667         trying to fclose a FILE* that was already closed.
11668
11669 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11670
11671         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11672         of const struct should be treated as if const themselves)
11673
11674 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11675
11676         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11677
11678 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11679
11680         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11681         Unix (/n) and DOS (/r/n) line terminations.
11682
11683 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11684
11685         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11686         bug #613775
11687
11688 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11689
11690         * src/mcs51/gen.c (genFunction, genEndFunction),
11691         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11692         and restore of EA so that stack offsets to parameters are
11693         correct when using both critical and reentrant/stack-auto.
11694         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11695         size (can be triggered in error if sloc is shared between
11696         different sized objects)
11697         * device/include/float.h: fixed macros to explicitly use
11698         unsigned long where needed
11699
11700 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11701
11702         Feature req. 799831: added code to allow nesting of critical functions
11703         * src/mcs51/gen.c (genFunction, genEndFunction)
11704         * src/ds390/gen.c (genFunction, genEndFunction)
11705
11706 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11707
11708         * src/SDCCsymt.c (sclsFromPtr),
11709         * src/SDCCsymt.h,
11710         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11711         support for standard C idiom of memory mapped variables; for
11712         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11713         to xdata int at 0x1234 tempvar = 1.
11714         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11715         provided by Akiya ISHIDA
11716
11717 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11718
11719         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11720         * src/SDCCval.c (constVal): added reduction from int to char
11721         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11722         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11723         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11724         to ignore the sign
11725         * support/regression/tests/shifts.c: fixed
11726
11727 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11728
11729         * src/z80/gen.c (genXor): Fixed bug #805445
11730
11731 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11732
11733         Fixed bug #621531 (const & volatile confusion in the type chain).
11734         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11735         refer to the const or volatile state of the pointer itself.
11736
11737         * src/SDCCast.c
11738         * src/SDCCglue.c
11739         * src/SDCCicode.c
11740         * src/SDCCsymt.c
11741         * src/SDCCval.c
11742         * src/SDCC.y
11743         * src/SDCCsymt.h
11744         * src/pic/gen.c
11745         * src/pic/ralloc.c
11746         * src/pic16/gen.c
11747         * src/pic16/ralloc.c
11748         * support/regression/tests/const.c
11749
11750 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11751
11752         When checking for duplicated modules, use absolute paths
11753         instead of relative paths.  Files changed:
11754
11755         * as/mcs51/lklib.c
11756         * link/z80/lklib.c
11757
11758 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11759
11760         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11761
11762 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11763
11764         * device/include/string.h: added size_t typedef, changed
11765         prototypes to use size_t, eliminated separate reentrant and
11766         non-reentrant declarations, added _memmove declaration
11767         * device/lib/_memcpy.c: changed to use size_t instead of int,
11768         changed /4 to >>2 to avoid division library call
11769         * device/lib/_memcmp.c,
11770         * device/lib/_memset.c,
11771         * device/lib/_strncat.c,
11772         * device/lib/_strncpy.c,
11773         * device/lib/_strncmp.c: changed to use size_t instead of int
11774         * device/lib/_memmove.c: new file (fixed bug #772294)
11775         * device/lib/Makefile.in: added _memmove.c
11776         * device/lib/z80/asm_strings.s: fixed bug #772290
11777         * support/regression/tests/bitfields.c: attempt to fix host assertion
11778         failure on amd64-unknown-linux2.2
11779
11780 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11781
11782         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11783         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11784         * as/z80/asmain.c (main): fixed bug #801766
11785
11786 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11787
11788         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11789         compilers
11790
11791 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11792
11793         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11794         reported in bug #800609
11795
11796 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11797
11798         * Top header beautifications in src/pic16 directory:
11799           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11800           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11801           pcoderegs.h, ralloc.c, ralloc.h
11802         * main.c: added top header and GPL license notice
11803         * pcode.c: fixed the if-conditional warning
11804
11805 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11806
11807         * device/lib/_mullong.c: replaced int by short for gcc
11808
11809 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11810
11811         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11812         and JUMPTABLE iCodes properly now (worked by accident before)
11813         * src/mcs51/gen.c (leftRightUseAcc),
11814         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11815         iCode properly now. Use getSize instead of nRegs since a & b
11816         aren't part of the nRegs tally.
11817
11818 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11819
11820         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11821         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11822           before instructions that use the _STATUS register
11823
11824 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11825
11826         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11827         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11828         fetching of the pointer
11829         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11830         copied from genNearPointerSet()
11831         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11832         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11833         If they pop r0/r1 they must be called in the opposite order than aopOp().
11834         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11835         (resp. --stack-auto), prepared for --xstack
11836
11837 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11838
11839         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11840
11841 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11842
11843         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11844         these ports have their own __sdcc_external_start()
11845
11846 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11847
11848         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11849         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11850         type for bits was changed. It resulted in bit variables becoming
11851         global, which is not permitted in PIC 14 assembly output.
11852
11853 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11854
11855         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11856
11857 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11858
11859         Z80 and MCS51 linkers complaint if a public symbol is defined
11860         in more than one library module:
11861
11862         * as/mcs51/lklib.c
11863         * link/z80/lklib.c
11864         * as/mcs51/Makefile.in
11865
11866 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11867
11868         A few small changes that speed up the peephole optimizer.
11869
11870         * src/SDCCpeeph.c
11871
11872 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11873
11874         Try to make the peephole optimizer smarter by maintaining
11875         an association between the assembly source code and the
11876         iCodes that originated them. Put this information to use
11877         with a new peephole rule condition "notVolatile" so that
11878         the rules can be aggressive yet still safe.
11879
11880         * src/SDCCpeeph.c
11881         * src/SDCCpeeph.h
11882         * src/mcs51/gen.c
11883         * src/mcs51/peeph.def
11884
11885 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11886
11887         Fixed bug #741761
11888
11889         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11890         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11891         if the left or right operand symbols have the accuse flag set.
11892
11893 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11894
11895         Changed the type of the result of the ! (NOT) operator to char;
11896         previously it returned the same type as the source. This allows
11897         us to eliminate all the genFloatNot functions (all of its target
11898         implementations were very buggy) since !float can use the same
11899         code as !long now.
11900
11901         * src/SDCCicode.c (ast2iCode): ! returns char
11902         * src/mcs51/gen.c (genNot, genNotFloat),
11903         * src/ds390/gen.c (genNot, genNotFloat),
11904         * src/z80/gen.c (genNot, genNotFloat),
11905         * src/pic/gen.c (genNot, genNotFloat),
11906         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11907
11908 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11909
11910         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11911         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11912            during interrupts. Ensure WSAVE is located at a shared bank address.
11913         2. Fixed page selection in some places
11914         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11915            the registers name strings.
11916         4. Fixed "signed / unsigned compare" compiler warnings.
11917         5. The PIC port manages its own allocation of the general purpose
11918            registers, but makes no attempt to reuse them. As a result when
11919            compiling it soon runs out of general purpose registers. Some
11920            additional code was added to the files pcode.c and device.c to walk
11921            through the function call tree and rename the registers so that they
11922            get reused.
11923
11924         * src/pic/device.c
11925         * src/pic/gen.c
11926         * src/pic/glue.c
11927         * src/pic/pcode.c
11928         * src/pic/pcode.h
11929         * src/pic/ralloc.c
11930         * src/pic/ralloc.h
11931         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11932         genPlus() & genMinus() when the result is the same as left or right
11933
11934 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11935
11936         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11937
11938 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11939
11940         Made bitfield a distinct type from bit so that bitfields
11941         convert as per ANSI C and bits retain their traditional
11942         boolean style behaviour. Implemented bitfield support in
11943         the z80 port.
11944
11945         * src/SDCCsymt.h,
11946         * src/SDCCsymt.c,
11947         * src/SDCCast.c,
11948         * src/cdbFile.c,
11949         * src/mcs51/gen.c,
11950         * src/ds390/gen.c: bit v bitfield split
11951         * src/z80/gen.c: New support for bitfields
11952         * support/regression/tests/bitfields.c: reenabled z80,
11953         added more tests
11954
11955 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11956
11957         Rules 246.x, 247.x relate to bitfields, the others speed up
11958         access to xdata mapped I/O devices.
11959
11960         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11961
11962 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11963
11964         Cleaned up genPackBits and genUnpackBits and added two helper
11965         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11966         for literal assignments in genPackBits (thanks to Frieder for
11967         reminding me).
11968
11969         * src/mcs51/gen.c
11970         * src/ds390/gen.c
11971
11972 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11973
11974         Fixed bug #748310 (pointer to function type mishandled when the
11975         function name is omitted). Also fixed a SIGSEGV when a function
11976         attribute (reentrant, etc) is used on a non-function or on a
11977         function but misplaced before the parameter list.
11978
11979         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11980         bug #748310
11981         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11982         * support/Util/SDCCerr.h,
11983         * support/Util/SDCCerr.c: Added func attr misuse error msg
11984
11985 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11986
11987         Fixed bug #787649 by anonymous
11988         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11989         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11990
11991 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11992
11993         Fixed numerous bitfield problems.
11994
11995         * src/SDCC.y: More bitfield related error checking
11996         * src/SDCCsymt.h,
11997         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11998         * support/Util/SDCCerr.h,
11999         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12000         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12001         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12002         * support/regression/tests/bitfields.c: tests added
12003
12004 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12005
12006         Made the constant following the "interrupt" keyword optional. If
12007         omitted, the function will not automatically be given an entry
12008         in the interrupt vector table (similar to #pragma NOIV, but
12009         less syntacticly kludgy). The interrupt number is also now
12010         range checked. Also fixed a bug in the high order bit example
12011         in the manual.
12012
12013         * src/SDCC.y
12014         * src/SDCCmem.c
12015         * src/SDCCglue.c
12016         * src/SDCCsymt.h
12017         * support/Util/SDCCerr.c
12018         * support/Util/SDCCerr.h
12019         * doc/sdccman.lyx
12020
12021 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12022
12023         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12024         * src/SDCCicode.c (operandOperation): rewritten some ops
12025         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12026         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12027         other type
12028         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12029         be re-activated by defining REDUCE_LITERALS)
12030         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12031         unsigned, but are signed by default
12032         * src/SDCCval.c (constVal): rearranged
12033         * src/SDCCval.c (valMod): preliminary fix
12034         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12035         * support/regression/literalop.c: added, work in progress
12036
12037 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12038
12039         Generate warnings for useless declarations like "char data;"
12040         that don't do what new users expect.
12041
12042         * src/SDCC.y
12043         * support/Util/SDCCerr.h
12044         * support/Util/SDCCerr.c
12045
12046 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12047
12048         * src/SDCCval.c (valMult): fix overflow detection of negative int
12049
12050 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12051
12052         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12053
12054         Changes to support big endian targets:
12055
12056         * src/ports.h
12057         * src/SDCCglue.c
12058         * src/avr/main.c
12059         * src/ds390/main.c
12060         * src/izt/i186.c
12061         * src/mcs51/main.c
12062         * src/pic/main.c
12063         * src/pic16/main.c
12064         * src/xa51/main.c
12065         * src/z80/main.c
12066
12067 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12068
12069         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12070         * device/lib/time.c: fixed warning "integer overflow in expression"
12071
12072 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12073
12074         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12075         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12076         constants are unsigned; added recognition of "u" flag for unsigned
12077         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12078         * src/SDCCval.c (valDiv, valMod): fixed signdness
12079         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12080         signedness of modulo, left and right shift
12081         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12082         * support/Util/SDCCerr.h: added warning W_INT_OVL
12083         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12084         * src/SDCCast.c (ast_print): improved output of constants
12085
12086 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12087
12088         Fixed some warnings when building with MSVC:
12089
12090         * as/mcs51/asdata.c
12091         * as/z80/asdata.c
12092         * as/mcs51/asm.h
12093         * as/z80/asm.h
12094         * link/z80/aslink.h
12095         * link/z80/lkdata.c
12096         * link/z80/lkeval.c
12097         * link/z80/lkgb.c
12098         * link/z80/lkihx.c
12099         * link/z80/lks19.c
12100         * link/z80/lksym.c
12101         * support/cpp2/cpplib.c
12102         * src/ds390/gen.c
12103         * src/mcs51/gen.c
12104
12105 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12106
12107         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12108
12109 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12110
12111         * support/librarian/clean.mk: Do not remove Makefile.
12112         * support/librarian/Makefile: added.
12113
12114 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12115
12116         Added librarian to MSVC build:
12117         * all.dsp
12118         * sdcc.dsw
12119         * support/librarian/librarian.dsp
12120
12121         'configure' not needed for librarian, removed:
12122         * support/librarian/configure
12123         * support/librarian/configure.in
12124         * support/librarian/config_in.h
12125         * support/librarian/Makefile.in
12126
12127         Hopefully these ones built the librarian and the rest of sdcc properly:
12128         * Makefile
12129         * Makefile.common.in
12130
12131         Messed up 'configure', so revert to previous version:
12132         * configure
12133         * configure.in
12134
12135 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12136
12137         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12138         there, while the mantissa of a double is "only" 53 bits wide.
12139
12140 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12141
12142         Adding sdcclib to the build.  MSVC project coming soon.
12143         Files added/changed:
12144
12145         * support/librarian/clean.mk
12146         * support/librarian/configure
12147         * support/librarian/configure.in
12148         * support/librarian/config_in.h
12149         * support/librarian/Makefile.bcc
12150         * support/librarian/Makefile.in
12151         * support/librarian/sdcclib.c
12152         * Makefile.bcc
12153         * Makefile
12154         * Makefile.common.in
12155         * configure
12156         * configure.in
12157
12158 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12159
12160         Linker now complaints if linked modules have conflicting options, for
12161         example, one compiled using --model-large and another one compiled with
12162         --model-small.  The following files were modified:
12163
12164         * as/mcs51/asdata.c
12165         * as/mcs51/aslink.h
12166         * as/mcs51/asm.h
12167         * as/mcs51/asmain.c
12168         * as/mcs51/asout.c
12169         * as/mcs51/i51pst.c
12170         * as/mcs51/lkdata.c
12171         * as/mcs51/lklibr.c
12172         * as/mcs51/lkmain.c
12173         * as/z80/asdata.c
12174         * as/z80/asm.h
12175         * as/z80/asmain.c
12176         * as/z80/asout.c
12177         * as/z80/z80pst.c
12178         * link/z80/aslink.h
12179         * link/z80/lkdata.c
12180         * link/z80/lklibr.c
12181         * link/z80/lkmain.c
12182         * src/SDCCglue.c
12183
12184 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12185
12186         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12187         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12188
12189 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12190
12191         * src/z80/mappings.i: fix _mul[us][int,long] entries
12192
12193 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12194
12195         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12196
12197 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12198
12199         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12200         * support/regression/tests/bitopcse.c: added
12201         fixed warning:
12202         * src/avr/gen.c:
12203         * src/pic/gen.c:
12204         * src/pic16/gen.c:
12205         * src/z80/gen.c:
12206         * src/xa51/gen.c:
12207
12208 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12209
12210         added support for new library format to z80, gbz80 linkers:
12211         *link/z80/aslink.h
12212         *link/z80/lklex.c
12213         *link/z80/lklib.c
12214         *link/z80/lklist.c
12215
12216 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12217
12218         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12219         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12220
12221 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12222
12223         added DUMMY_READ_VOLATILE:
12224         * src/SDCC.y:
12225         * src/avr/gen.c:
12226         * src/xa51/gen.c:
12227         * src/z80/gen.c:
12228         * src/pic/gen.c:
12229         * src/pic16/gen.c:
12230         * src/mcs51/gen.c:
12231         * src/ds390/gen.c:
12232         * src/SDCCcse.c (algebraicOpts): many improvements
12233         * src/SDCCcse.h: removed algebraicOpts()
12234         * src/SDCCicode.c (picDummyRead): added
12235
12236 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12237
12238         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12239         "Insufficient space in data memory".
12240
12241 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12242
12243         * src/mcs51/gen.c: fixed bug #771358
12244         * src/z80/gen.c: fixed bug #759087
12245
12246 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12247
12248         * src/pic16/glue.c: minor cleanup by Vangelis
12249
12250 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12251
12252         * device/include/regc515c.h: fixed #758477
12253         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12254         * device/lib/_gptrput.c: saved a few bytes
12255         * my tab spacing is 8, yours too?)
12256         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12257         * device/lib/serial.c: process RX bytes earlier than TX bytes
12258         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12259
12260 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12261
12262         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12263
12264 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12265
12266     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12267
12268 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12269
12270         * device/lib/Makefile.in: bad fix, reverted to 1.43
12271
12272 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12273
12274         * device/lib/Makefile.in: added missing z80 object files
12275
12276 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12277
12278         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12279         pic16 progress by Vangelis:
12280         * src/SDCCglobl.h:
12281         * src/SDCCmain.c:
12282         * src/pic/Makefile:
12283         * src/pic:
12284         * pic/Makefile:
12285         * pic16/device.c:
12286         * pic16/device.h:
12287         * pic16/gen.c:
12288         * pic16/gen.h:
12289         * pic16/genarith.c:
12290         * pic16/glue.c:
12291         * pic16/main.c:
12292         * pic16/pcode.c:
12293         * pic16/pcode.h:
12294         * pic16/pcodepeep.c:
12295         * pic16/peeph.def:
12296
12297 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12298
12299     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12300
12301 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12302
12303     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12304     added gbz80 build to MSVC project.
12305     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12306     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12307     from 8051 stuff and setup so it links using a .lnk file.
12308
12309 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12310
12311     * support/librarian/sdcclib.c: sdcc librarian.
12312     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12313     with sdcclib.
12314
12315 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12316
12317     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12318
12319 2003-07-02  Borut Razem <borut.razem AT siol.net>
12320
12321         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12322         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12323         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12324         src/xa51/main.c, src/z80/main.c:
12325         virtualization of glue() function: each port has it's own glue function,
12326         which is accessed by do_glue function pointer in PORT.general structure
12327
12328 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12329
12330         * DS800C400 fun, improved ROM interface and tinibios.
12331
12332 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12333
12334         * More support for DS80C400. Now includes beginning of interface to ROM.
12335
12336 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12337
12338         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12339
12340 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12341
12342         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12343
12344 2003-06-19  Borut Razem <borut.razem AT siol.net>
12345
12346         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12347
12348 2003-06-19  Borut Razem <borut.razem AT siol.net>
12349
12350         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12351         fixed Z80 port - crt0.o: cannot open.
12352
12353 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12354
12355         * support/Util/MySystem.c (merge_command): revert bad fix
12356
12357 2003-06-18  Borut Razem <borut.razem AT siol.net>
12358
12359         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12360
12361 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12362
12363         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12364         option --use-stdout sends errors to stdout instead of stderr.
12365
12366 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12367
12368         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12369
12370 2003-06-15  Borut Razem <borut.razem AT siol.net>
12371
12372         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12373         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12374         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12375         fixed width array of pointers replaced with sets;
12376         multiple include and lib paths ared transferred to preprocessor and linker
12377         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12378         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12379         fixed width array of pointers
12380         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12381         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12382         fixupPath(), getPathDifference()
12383         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12384         fixed width array of pointers
12385
12386 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12387
12388         * src/pic16/ralloc.c: fix warnings
12389         * src/pic16/pcode.c: fix warning
12390
12391 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12392
12393          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12394         know all the details, but essentially this set of changes enable
12395         the pic16 port to generate movff instructions and generate assembler
12396         directives,
12397         * src/SDCCmain.c:
12398         * src/pic16/gen.c:
12399         * src/pic16/glue.c:
12400         * src/pic16/pcode.c:
12401         * src/pic16/device.c:
12402         * src/pic16/main.c:
12403         * src/pic16/pcode.h:
12404         * src/pic16/pcoderegs.c:
12405         * src/pic16/ralloc.c:
12406         * src/pic16/ralloc.h:
12407
12408 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12409
12410         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12411         added option --vc, so sdcc errors and warnings are compatible with
12412         Microsoft Visual Studio.
12413
12414 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12415
12416         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12417           device/lib/libfloat.lib: added atof function.
12418
12419 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12420
12421         * doc/sdccman.lyx: updated to Lyx 1.3
12422         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12423         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12424         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12425
12426 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12427
12428         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12429
12430 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12431
12432         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12433           additions to the "related tools/documentation" section
12434
12435 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12436
12437         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12438
12439 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12440
12441         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12442         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12443
12444 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12445
12446         * doc/sdccman.lyx: fix double dash and other minor things
12447         * doc/Makefile: fix double dash
12448
12449 2003-05-28  Karl Bongers(patches from Martin Helmling)
12450         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12451           condition and ignore commands.
12452
12453 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12454
12455         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12456           is in parts still quite out of date, I did changes as far as I felt makes sense
12457           for a non-native english speaker.
12458           Please feel free to add to the manual or to correct my changes.
12459         * doc/Makefile: undid touching the date of intermediate tex files.
12460
12461 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12462
12463         * doc/sdccman.lyx: Manual has an index now
12464
12465 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12466
12467         Finalize muluint/mulsint and mululong/mulslong merging:
12468         * device/lib/_mulint.c
12469         * device/lib/_mullong.c
12470         * device/lib/gbz80/mul.s
12471         * device/lib/gbz80/stubs.s
12472         * device/lib/z80/mul.s
12473         * device/lib/z80/stubs.s
12474         * src/SDCCsymt.c (initCSupport)
12475
12476 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12477
12478         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12479         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12480           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12481           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12482           instead of /Zm500.
12483
12484 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12485
12486         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12487           the regression tests I'm not brave enough to enable 245.b, 245.c
12488         * doc/sdccman.lyx: added latex preamble for hyperref package.
12489           Using pdflatex this will give you a hyperlinked pdf file with
12490           bookmarks. (prepend '%' before /usepackage if this breaks something)
12491
12492 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12493
12494          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12495
12496 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12497
12498         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12499
12500 2003-05-21    <johan AT balder>
12501
12502         * src/SDCCglue.c (printIval): fixed bug #739934
12503
12504 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12505
12506         Applied patch from bug 737905 (renamed yylineo to mylineno):
12507         * src/altlex.c
12508         * src/SDCCast.c
12509         * src/SDCglobl.h
12510         * src/SDCC.lex
12511         * src/SDCCsymt.c
12512         * src/SDCCval.c
12513         * src/pic16/pcode.c: Cleaned warnings
12514         * src/pic16/pcodeflow.c: Cleaned warnings
12515         * src/pic16/pcoderegs.c: Cleaned warnings
12516
12517 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12518
12519         * src/pic16/pcode.c: Cleaned warnings
12520         * src/pic16/pcodepeep.c: Cleaned warnings
12521         * src/pic16/ralloc.c: Cleaned warnings
12522
12523 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12524
12525         * doc/sdccman.lyx: fixed bug 739745
12526         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12527
12528 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12529
12530         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12531         it can be defined with CFLAGS when running configure
12532         * src/SDCCmain.c: fixed compiling + linking with object files
12533
12534 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12535
12536         * configure.in: configure for pic16 port,
12537             added --disable-pic16-port
12538         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12539         * src/SDCCmain.c: linkOptions is changed to set *,
12540             added if/endif conditional macros to remove options help
12541             messages from optionsTable when a port is not configured, added
12542             support for the PIc16 port in the ports table, when executing
12543             the compiler with no port specified on command line, a default
12544             port is selected with the new macro DEFAULT_PORT which is
12545             defined in port.h, in setDefaultOptions() linkOptions is removed
12546             from initialization assignment, since now it is a set,
12547             parseCmdLine uses setParseWithComma for linkOptions, in
12548             linkEdit() linkOptions are accessed with new function indexSet()
12549             which returns the i'th item of a set variable. See SDCCset.c, in
12550             linkEdit() when calling buildCmdLine(), added linkOptions as
12551             last argument. Now users can pass arguments to gplink via the
12552             -Wl option, main() uses pic16glue() to glue up pic16 programs
12553         * src/SDCCpeeph.c: various changes to support pic16
12554         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12555             return the i'th item of the set
12556         * src/SDCCset.h: added function prototype for indexSet()
12557         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12558         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12559         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12560             added macro DEFAULT_PORT
12561         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12562         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12563             generated
12564         * src/pic16/glue.c: commented out some error producing lines
12565         * src/pic16/main.c: __config directives are commented out to stop
12566             gpasm complaining and test the linkage with gplink, _linkCmd and
12567             _asmCmd changed to be more gplink and gpasm friendly
12568         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12569             produced an error when parsed, peep rule 12 is added to utilize
12570             movff, but it is commented out since the pCode does not support
12571             yet a command with 2 address arguments
12572
12573 2003-05-18    <johan AT balder>
12574
12575         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12576         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12577 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12578
12579         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12580   Added feature to script commands from file.
12581
12582 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12583
12584         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12585         * src/SDCCutil.c: include ctype.h for win32
12586
12587 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12588
12589         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12590
12591 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12592
12593         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12594   Fixed so you can set breakpoints prior to run, run does not stop
12595   on entry now.  Add tbreak.  Other enhancements and fixes for use
12596   with ddd.
12597
12598 2003-05-12  Borut Razem <borut.razem AT siol.net>
12599
12600         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12601
12602 2003-05-11  Borut Razem <borut.razem AT siol.net>
12603
12604         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12605         the path of bin directory, so that PATH is the only env. variable, which has to be set
12606         in case of standard installation.
12607         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12608         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12609         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12610
12611 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12612
12613         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12614         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12615         temp files are in the port dir; clean the gen/test directory when
12616         generating new test.c
12617         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12618         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12619         * support/regression/tests/zeropad.c: added
12620
12621 2003-05-09    <johan AT balder>
12622
12623         * src/SDCCglue.c: fixed bug #597940
12624
12625 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12626
12627         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12628   cache sfr, optimize next,step, fix off by one sourceline,
12629   support ddd list function.
12630         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12631
12632 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12633
12634         * support/regression/HTMLgen.py: added compare_s2f()
12635         * support/regression/Makefile: redo 1.27
12636         * support/regression/generate-cases.py: redo 1.5
12637
12638 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12639
12640         * support/regression/tests/float.c: workaround 33 bit hex constant
12641         * support/regression/tests/simplefloat.c: fix division for host
12642
12643 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12644
12645         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12646         that tame's the PIC's over-aggressive optimizer.
12647
12648 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12649
12650          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12651          support for MSVC.
12652
12653 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12654
12655         Initial support for DS80C400. "Hello world" runs on TINIm400
12656         (with polled I/O).
12657
12658 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12659
12660          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12661          * Some notes on ddd usage added in debugger/README
12662          Martin Helmling adding more features and fixes for ddd GUI debugger.
12663          Code added for nexti, stepi, up, down, and other adjustments.
12664
12665 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12666
12667         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12668         * src/pic/peeph.def Added two rules to optimize carry manipulation
12669         * src/pic/* removed debug printfs
12670
12671 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12672
12673         * debugger/mcs51/cmd.c: added header newalloc.h
12674
12675 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12676
12677         * as/Makefile: new EXEEXT
12678         * as/z80/Makefile: remove trailing slash of BUILDIR
12679         * as/z80/clean.mk: new EXEEXT
12680         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12681         * support/cpp2/Makefile.in: new EXEEXT
12682         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12683
12684 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12685
12686         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12687         EXEEXT was introduced to fix all related problems with targets
12688         "clean", "install" and "uninstall"; a couple of further flaws
12689         especially with "clean" have been fixed too
12690         * as/mcs51/Makefile.in
12691         * as/mcs51/clean.mk
12692         * as/z80/Makefile
12693         * Makefile
12694         * clean.mk
12695         * debugger/mcs51/Makefile.in
12696         * debugger/mcs51/clean.mk
12697         * link/z80/Makefile
12698         * link/z80/Makefile.in
12699         * link/z80/clean.mk
12700         * link/Makefile
12701         * packihx/Makefile.in
12702         * packihx/clean.mk
12703         * sim/ucsim/Makefile
12704         * sim/ucsim/clean.mk
12705         * sim/ucsim/avr.src/Makefile.in
12706         * sim/ucsim/avr.src/clean.mk
12707         * sim/ucsim/s51.src/Makefile.in
12708         * sim/ucsim/s51.src/clean.mk
12709         * sim/ucsim/xa.src/Makefile.in
12710         * sim/ucsim/xa.src/clean.mk
12711         * sim/ucsim/z80.src/Makefile.in
12712         * sim/ucsim/z80.src/clean.mk
12713         * sim/ucsim/main_in.mk
12714         * sim/ucsim/packages_in.mk
12715         * sim/ucsim/gui.src/Makefile.in
12716         * sim/ucsim/gui.src/serio.src/Makefile.in
12717         * sim/ucsim/gui.src/serio.src/clean.mk
12718         * src/Makefile.in
12719         * src/clean.mk
12720         * support/cpp2/Makefile.in
12721         * support/cpp2/clean.mk
12722         * support/makebin/Makefile
12723         * support/makebin/clean.mk
12724         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12725         * doc/sdccman.lyx: --program-suffix no longer needed
12726
12727 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12728
12729          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12730          Martin Helmling added support for ddd GUI debugger.
12731          Code added to display assembly, set variables, and other commands
12732          to interface to ddd.
12733
12734 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12735
12736         * as/Makefile: fix target clean
12737         * as/clean.mk: fix target clean
12738         * as/z80/clean.mk: fix target clean
12739
12740 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12741
12742         * Makefile.common.in: added  AT EXEEXT AT
12743         * configure.in: removed all mingw32 stuff
12744         * configure: rebuilt from configure.in
12745         * doc/sdccman.lyx: updated section "installation"
12746         * support/scripts/sdcc_mingw32: adapted to configure
12747         * support/scripts/sdcc_cygwin_mingw32: added
12748
12749 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12750
12751         * src/pic Added object file support for the PIC port
12752         * src/pic Applied patch from Craig Franklin (this started the object file support)
12753         * src/regression Updated the PIC regression tests for object files
12754
12755 2003-04-20  Borut Razem <borut.razem AT siol.net>
12756
12757         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12758           lklex.c: In function `getfid':
12759           lklex.c:203: warning: array subscript has type `char'
12760         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12761           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12762         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12763           stack handling macros
12764
12765 2003-04-19  Borut Razem <borut.razem AT siol.net>
12766
12767         * "handling space characters in file path" task:
12768         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12769         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12770         * support/Util/MySystem.h: make it self-sufficient
12771         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12772           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12773           handling space characters in file path
12774         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12775           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12776         * support/Util/MySystem.c: handling space characters in executable's path
12777
12778 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12779
12780         * as/z80/Makefile: fix permanent rebuild of z80
12781         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12782         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12783
12784 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12785
12786         * src/SDCCopt.c: add special case optimization to replace modulo by
12787           a power of two with a bitwise AND.
12788
12789 2003-04-18    <johan AT balder>
12790
12791         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12792
12793 2003-04-17    <johan AT balder>
12794
12795         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12796         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12797
12798 2003-04-13  Borut Razem <borut.razem AT siol.net>
12799
12800         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12801         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12802           fixed mingw problem in adl_NORMALIZE_PATH
12803
12804 2003-04-12  Borut Razem <borut.razem AT siol.net>
12805
12806         * fixed "#pragma SAVE/RESTORE can not be nested":
12807         * src/SDCC.lex: reworked pragma handling functions
12808         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12809         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12810
12811 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12812
12813         * src/SDCCutil.c (pathEquivalent): defined but not used
12814         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12815         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12816         * configure: rebuilt from configure.in
12817         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12818         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12819         * device/include/Makefile.in: replace sdcc_datadir
12820         * device/lib/Makefile.in: replace sdcc_datadir
12821         * Makefile.common.in: add LDFLAGS from configure
12822         * packihx/Makefile.in: use LDFLAGS
12823         * src/Makefile.in: use LDFLAGS
12824         * support/cpp2/Makefile.in: add LDFLAGS from configure
12825         * support/makebin/Makefile: use LDFLAGS
12826         * .version: bumped version number to 2.3.5
12827
12828 2003-04-12  Borut Razem <borut.razem AT siol.net>
12829
12830         * completed "different paths" task:
12831         * src/SDCCmacro.c: fixed bug in handling quotes
12832         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12833         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12834
12835 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12836
12837         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12838
12839 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12840
12841         * ds390/gen.c ds390/peeph.def: fix bug 706781
12842
12843 2003-04-11  Borut Razem <borut.razem AT siol.net>
12844
12845         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12846
12847 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12848
12849         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12850         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12851          set - this bit used to not be set...).
12852         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12853           bad code in PIC Port
12854         * src/regression/and2.c added to test bug 609268
12855         * src/regression/Makefile added and2.c to regression test
12856
12857
12858 2003-04-08    <johan AT CP255758-A>
12859
12860         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12861         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12862         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12863
12864 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12865
12866         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12867         fix bug #487815
12868         * support/cpp2/Makefile.in: fix bug #487815
12869         * configure: rebuilt from configure.in
12870         * Makefile.common.in: docdir changed, new path suffixes
12871         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12872         * sdcc_vc_in.h: reflect changes from sdccconf.h
12873         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12874         * src/SDCCutil.h: remove BINDIR hack
12875         * doc/sdccman.lyx: update new path hierarchy
12876
12877 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12878
12879         * src/SDCCpeeph.c: added okToRemoveSLOC test
12880
12881 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12882
12883         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12884
12885 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12886
12887         * src/SDCCpeeph.c: added labelIsReturnOnly test
12888         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12889
12890 2003-04-05    <johan AT balder>
12891
12892         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12893         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12894         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12895         * src/SDCCast.c: fixed a warning
12896         * src/SDCCast.h: fixed a warning
12897         * src/SDCCicode.c (operandFromAst): fixed a warning
12898
12899 2003-04-04    <johan AT balder>
12900
12901         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12902         * src/SDCCast.c (decorateType): fixed bug #715076
12903         * src/SDCC.y: fixed bug #702907
12904
12905 2003-04-03    <johan AT balder>
12906
12907         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12908         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12909         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12910         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12911         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12912
12913 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12914
12915         * _decdptr.c: fix return values
12916         * _gptrget.c: fix return values
12917         * _gptrgetc.c: fix return values
12918         * _gptrput.c: fix return values
12919         * _mulint.c: fix return values
12920         * as/z80/Makefile: fix 'make -j' problem
12921
12922 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12923
12924         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12925         * configure.in: big cleanup, updated to autoconf 2.5x
12926         * configure: rebuilt from configure.in
12927         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12928         * sdcc_vc_in.h: reflect changes from sdccconf.h
12929         * doc/Makefile: fixed a flaw in "make install"
12930
12931 2003-04-02    <johan AT balder>
12932
12933         * src/ds390/gen.c (genCmp): no comments
12934         * src/mcs51/gen.c (genCmp): no comments
12935         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12936         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12937
12938 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12939
12940         * support/regression/generate-cases.py: place generated file in given sub directory
12941         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12942         * support/regression/Makefile: improvements for 'make -j';
12943         side effect: it's simpler and faster now
12944
12945 2003-03-31  Borut Razem <borut.razem AT siol.net>
12946
12947         * src/z80/main.c: link-{port} and as-{port} defined without path
12948         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12949
12950 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12951
12952         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12953
12954 2003-03-30  Borut Razem <borut.razem AT siol.net>
12955
12956         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12957           changed type of list parameter to set
12958         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12959         * src/port.h: changed type of do_assemble() parameter to set
12960         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12961           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12962           definition of "cppoutfilename" macro with NULL value in preProcess()
12963         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12964         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12965         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12966           replaced with set *binPathSet
12967         * shash_add() deallocates the item, if allready exsists, before adding the new one
12968         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12969
12970 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12971
12972         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12973           a nested for loop bug in the PIC port
12974         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12975           for loops
12976
12977 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12978
12979         * support/Util/dbuf.h: remove C++ stuff to make it portable
12980
12981 2003-03-28  Borut Razem <borut.razem AT siol.net>
12982
12983         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12984           literal strings in stringLiteral()
12985         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12986         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12987           to the project
12988
12989 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12990
12991         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12992
12993 2003-03-26    <johan AT balder>
12994
12995         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12996         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12997         * src/SDCCast.c (decorateType): fixed " -v < 3"
12998
12999 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13000
13001         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13002         Added Lenny Story's debug infrastructure changes:
13003         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13004         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13005         * src/cdbFile.c: added
13006         * src/SDCCdebug.c: added
13007         * src/SDCCdebug.h: added
13008         * src/SDCCast.c (createFunction)
13009         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13010         * src/SDCCmain.c (parseCmdLine, main)
13011         * src/SDCCmem.c (redoStackOffsets)
13012         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13013         * src/SDCCsymt.h
13014         * src/common.h
13015         * src/avr/gen.c (genAVRCode)
13016         * src/ds390/gen.c (gen390Code)
13017         * src/mcs51/gen.c (gen51Code)
13018         * src/pic/gen.c (genpic14Code)
13019         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13020         * src/xa51/gen.c (genXA51Code)
13021         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13022
13023 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13024
13025         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13026         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13027
13028 2003-03-22    <johan AT balder>
13029
13030         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13031
13032 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13033
13034         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13035         * doc/cdbfileformat.lyx: added, written by Lenny Story
13036         * doc/Makefile: added cdbfileformat.lyx
13037         * doc/clean.mk: added cdbfileformat.lyx
13038
13039 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13040
13041         * src/mcs51/peeph.def: fix bug #705773
13042
13043 2003-03-20    <johan AT balder>
13044
13045         An sfr/sbit can have an "at #" AND an initializer
13046         * src/SDCCsymt.c (checkSClass):
13047         * src/SDCCmem.c (allocGlobal):
13048         * src/SDCCmem.c (allocLocal):
13049         * src/SDCCast.c (createBlock):
13050
13051 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13052
13053         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13054
13055 2003-03-16    <johan AT balder>
13056
13057         Undid the hackup of const and volatile, the problem is much bigger
13058         * src/SDCC.y:1.65
13059         * src/SDCCast.c:1.171
13060         * src/SDCCglue.c:1.138
13061         * src/SDCCicode.c:1.146
13062         * src/SDCCsymt.c:1.150
13063         * src/SDCCval.c:1.65
13064
13065 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13066
13067         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13068         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13069
13070 2003-03-13    <johan AT balder>
13071
13072         Hackup const and volatile modifiers in type chains a bit:
13073         * src/SDCC.y:1.63
13074         * src/SDCCast.c:1.169
13075         * src/SDCCglue.c:1.136
13076         * src/SDCCicode.c:1.143
13077         * src/SDCCsymt.c1.146
13078         * src/SDCCsymt.h1.59
13079         * src/SDCCval.c:1.63
13080
13081 2003-03-12    <johan AT balder>
13082
13083         * src/SDCCBBlock.h: more LRH debugging junk
13084         * src/SDCCcflow.h: more LRH debugging junk
13085         * src/SDCCloop.c: more LRH debugging junk
13086         * src/SDCC.y (struct_declaration): fixed bug #697590
13087         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13088         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13089         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13090
13091 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13092         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13093         test function names must now match exactly).
13094         * src/SDCCcse.c: added special case in findCheaperOp to allow
13095         extending a short integer. Makes less awful code for bug 700121 test case.
13096
13097 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13098
13099         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13100         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13101
13102 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13103
13104         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13105         actually called (operandsNotEqual() was called for all
13106         operandsNotEqualX tests).
13107
13108 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13109
13110         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13111         with shorter literals. Fixes bug 700121.
13112
13113 2003-03-11    <johan AT balder>
13114
13115         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13116
13117 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13118
13119         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13120         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13121
13122 2003-03-10  Borut Razem <borut.razem AT siol.net>
13123
13124         * src/SDCCmain.c: pipe preprocessor's output
13125         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13126         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13127         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13128         which closes all pipes in pipeSet set
13129         * src/SDCCset.c: free deleted item in function deleteSetItem()
13130         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13131         moved from z80 to src subproject
13132         * .version: increased version number to 2.3.4
13133
13134 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13135
13136         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13137         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13138         * support/regression/ports/xa51/spec.mk: fix typo
13139
13140 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13141
13142         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13143
13144 2003-03-09  Borut Razem <borut.razem AT siol.net>
13145
13146         * src/SDCCmain.c: pipe preprocessor's output
13147         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13148         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13149         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13150         which closes all pipes in pipeSet set
13151         * src/SDCCset.c: free deleted item in function deleteSetItem()
13152         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13153         moved from z80 to src subproject
13154
13155 2003-03-09  Borut Razem <borut.razem AT siol.net>
13156
13157         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13158         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13159         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13160         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13161         * src/SDCCglobl.h: unification of WIN32 native definitions
13162
13163 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13164
13165         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13166
13167 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13168
13169         * src/configure.in:   check for endianess (even while cross-compiling)
13170         * src/configure:      check for endianess (even while cross-compiling)
13171         * src/configure_in.h: check for endianess (even while cross-compiling)
13172         * src/avr/gen.c:        remove old endianess stuff
13173         * src/mcs51/gen.c:      remove old endianess stuff
13174         * src/ds390/gen.c:      remove old endianess stuff
13175         * src/pic/gen.c:        remove old endianess stuff
13176         * src/pic/genarith.c:   remove old endianess stuff
13177         * src/pic/glue.c:       fix endianess check
13178         * src/pic16/gen.c:      remove old endianess stuff
13179         * src/pic16/genarith.c: remove old endianess stuff
13180         * src/pic16/glue.c:     fix endianess check
13181         * src/xa51/gen.c:       remove old endianess stuff
13182         * src/z80/gen.c:        fix endianess check
13183         * src/SDCCglue.c:       fix endianess check
13184         * src/ds390/peeph.def: fix bug 700036
13185
13186 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13187
13188         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13189         * src/configure: find appropriate data-types on host for SDCC's int and long
13190         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13191         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13192         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13193
13194 2003-03-07    <johan AT balder>
13195
13196         Just a big NOOP:
13197                 some minor cleanups before the big shot
13198                 OP_DEFS and OP_USES now use Kevin's protection
13199                 new option --nolabelopt
13200
13201         * src/SDCCBBlock.c:
13202         * src/SDCCast.c,:
13203         * src/SDCCcflow.c:
13204         * src/SDCCcse.c:
13205         * src/SDCCicode.c:
13206         * src/SDCCicode.h:
13207         * src/SDCClabel.c:
13208         * src/SDCCloop.c:
13209         * src/SDCCmain.c:
13210         * src/ds390/ralloc.c:
13211         * src/mcs51/ralloc.c:
13212         * src/pic/ralloc.c:
13213         * src/xa51/ralloc.c:
13214         * src/z80/ralloc.c:
13215
13216 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13217
13218         * src/pic/pcode.c (get_op): fix 64 bit warnings
13219         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13220         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13221         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13222         * support/regression/tests/malloc.c: fix 64 bit warnings
13223
13224 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13225
13226         * src/mcs51/gen.c (genMinus): fixed bug 696436
13227
13228 2003-03-02  Borut Razem <borut.razem AT siol.net>
13229
13230         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13231
13232 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13233
13234         * configure.in: test for mkstemp
13235         * sdccconf_in.h: add HAVE_MKSTEMP
13236
13237 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13238
13239         * device/include/ctype.h: removed warning while using --stack-auto
13240         * device/include/malloc.h: removed warning while using --stack-auto
13241         * device/include/string.h: removed warning while using --stack-auto
13242
13243 2003-02-23  Borut Razem <borut.razem AT siol.net>
13244
13245         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13246         because NDEBUG is defined (see man assert)
13247         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13248
13249 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13250
13251         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13252         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13253
13254 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13255
13256         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13257         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13258
13259 2003-02-18    <johan AT balder>
13260
13261         * as/mcs51/asmain.c (asmbl): module can start with a digit
13262         * as/z80/asmain.c (asmbl): module can start with a digit
13263
13264 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13265
13266         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13267         * src/asm.c: fix pipe() for Mingw32
13268
13269 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13270
13271         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13272         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13273         make -V work again; --c1mode reads now from stdin
13274         * doc/sdccman.lyx: added --c1mode
13275         * support/Util/SDCCerr.c: new messages for c1 mode
13276         * support/Util/SDCCerr.h: new messages for c1 mode
13277         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13278
13279 2003-02-15    <johan AT balder>
13280
13281         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13282
13283 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13284
13285         * doc/sdccman.lyx: Environment variables, -o and other minor things
13286
13287 2003-02-14    <johan AT balder>
13288
13289         * src/xa51/main.c: before anyone really tries to use it :)
13290
13291         * Install doc's in share/sdcc/doc
13292         * removed some obsolete files
13293         * Do a proper make distclean and uninstall
13294         M Makefile.common.in
13295         R sdccbuild.sh
13296         M as/Makefile
13297         M device/include/Makefile.in
13298         M device/lib/Makefile.in
13299         M doc/sdccman.lyx
13300         M link/Makefile
13301         M sim/ucsim/doc/Makefile.in
13302         M src/clean.mk
13303         R src/avr/peeph.rul
13304         R src/xa51/peeph.rul
13305         M support/cpp2/Makefile.in
13306         M support/makebin/Makefile
13307
13308
13309 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13310
13311         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13312
13313 2003-02-10  Borut Razem <borut.razem AT siol.net>
13314
13315         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13316         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13317         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13318         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13319         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13320         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13321         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13322         src/z80/Makefile.bcc: Borland Makefile cleanup
13323         * as/z80/Makefile.bcc: Added Borland Makefile
13324         * support/cpp2/borland.h: Removed
13325
13326 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13327
13328         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13329         * src/SDCC.lex: new pragma NOIV
13330         * src/SDCCglobl.h: new pragma NOIV
13331         * src/SDCCmem.c: new pragma NOIV
13332
13333 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13334
13335         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13336
13337 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13338
13339         * src/SDCCmain.c: signal handling is switched off by --debug
13340         * doc/Makefile: small fix for install; use clean.mk again
13341         * doc/clean.mk: clean *.pdf and *.html too
13342
13343 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13344
13345         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13346         * device/lib/printfl.c: fix a ds390 bug by making it portable
13347         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13348         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13349         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13350         * debugger/mcs51/cmd.c: converted multi-line string literals
13351         * sim/ucsim/globals.cc: converted multi-line string literals
13352         * src/SDCCmain.c: introduced signal handler to remove temp files
13353         * doc/Makefile: small tweaks, implement clean
13354         * doc: removed generated files
13355
13356 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13357
13358         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13359         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13360         Address Record is not correctly generated for DS390."
13361
13362 2003-02-02  Borut Razem <borut.razem AT siol.net>
13363
13364         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13365         * as/mcs51/asm.h: fixed compilation with Borland C
13366         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13367         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13368         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13369         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13370         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13371         src/z80/Makefile.bcc: delete $(LIB) only if exist
13372         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13373
13374 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13375
13376         * device/include/malloc.h: introduced NULL
13377         * device/include/string.h: introduced NULL
13378         * device/include/stdlib.h: introduced NULL
13379         * device/lib/_memcpy.c: removed NULL
13380         * device/lib/_strcat.c: removed NULL
13381         * device/lib/_strchr.c: removed NULL
13382         * device/lib/_strcmp.c: removed NULL
13383         * device/lib/_strcpy.c: removed NULL
13384         * device/lib/_strcspn.c: removed NULL
13385         * device/lib/_strlen.c: removed NULL
13386         * device/lib/_strncat.c: removed NULL
13387         * device/lib/_strncmp.c: removed NULL
13388         * device/lib/_strncpy.c: removed NULL
13389         * device/lib/_strpbrk.c: removed NULL
13390         * device/lib/_strrchr.c: removed NULL
13391         * device/lib/_strspn.c: removed NULL
13392         * device/lib/_strstr.c: removed NULL
13393         * device/lib/_strtok.c: removed NULL
13394         * device/lib/malloc.c: removed NULL, include own header
13395
13396 2003-02-02    <johan AT balder>
13397
13398         * 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
13399         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13400         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13401         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13402         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13403         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13404
13405 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13406
13407         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13408         area 'DATA'"
13409
13410 2003-02-01    <johan AT balder>
13411
13412         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13413
13414 2003-01-31    <johan AT CP255758-A>
13415
13416         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13417
13418 2003-01-30    <johan AT balder>
13419
13420         * src/SDCCBBlock.c: automatic bug detection
13421         * src/SDCCicode.c: automatic bug detection
13422
13423 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13424
13425         * src/SDCCglobl.h:   now --xram-size 0 works
13426         * src/SDCCmain.c:    now --xram-size 0 works
13427
13428 2003-01-29    <johan AT balder>
13429
13430         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13431
13432 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13433
13434         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13435         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13436         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13437         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13438         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13439         * src/SDCCmain.c:    Added options --xram-size and --code-size
13440
13441 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13442
13443         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13444         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13445
13446 2003-01-27    <johan AT balder>
13447
13448         * src/SDCC.y: fixed bug #613764
13449
13450 2003-01-26    <johan AT balder>
13451
13452         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13453         * src/SDCCsymt.h: fixed bug #673374
13454         * src/SDCCglue.c: fixed bug #661910
13455         * src/SDCCast.c: fixed bug #458099 and 673374
13456
13457 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13458
13459         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13460         * as/mcs51/strcmpi.h: added
13461         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13462         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13463         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13464         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13465         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13466         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13467         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13468         * as/mcs51/Makefile.aslink: new module strcmpi
13469         * as/mcs51/Makefile.asx8051: new module strcmpi
13470         * as/mcs51/Makefil.bcc: new module strcmpi
13471         * as/mcs51/Makefile.in: new module strcmpi
13472         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13473
13474 2003-01-26    <johan AT balder>
13475
13476         * src/SDCCglue.c: reverted back to 1.124
13477         * src/SDCCast.c: reverted back to 1.156
13478         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13479
13480 2003-01-25    <johan AT balder>
13481
13482         * src/SDCCglue.c: A better fix for bug #661910
13483         * src/SDCCast.c: A better fix for bug #661910
13484         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13485
13486 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13487
13488         * src/Makefile.in: remove spawn.o
13489         * src/SDCCmain.c: remove spawn.h
13490         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13491         * src/spawn.c: removed
13492         * src/spawn.h: removed
13493         * support/regression/ports/ds390/spec.mk: link with -r
13494
13495 2003-01-24    <johan AT CP255758-A>
13496
13497         * src/ds390/gen.c (aopOp): fixed bug #667458
13498         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13499         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13500         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13501
13502 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13503
13504         * src/mcs51/peeph.def: better assembler identation by Frieder
13505         * src/mcs51/gen.c: better assembler identation by Frieder
13506
13507 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13508
13509         * as/z80/string.h: removed for gcc 3.2
13510         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13511         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13512
13513 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13514
13515         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13516         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13517         * support/regression/Makefile: separate temp files for ports
13518         * support/regression/generate-cases.py: separate temp files for ports
13519         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13520         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13521
13522 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13523
13524         * moved tinitalk to device/examples/ds390
13525
13526 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13527
13528         * as/mcs51/lkmem.c: rflag is for DS390
13529         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13530         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13531                          (linkEdit): move mem- and map-files the same way as ihx-files
13532         * src/z80/main.c (_setDefaultOptions): removed --generic
13533         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13534         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13535         * src/pic/glue.c (picglue): --c1mode works again
13536         * src/pic16/glue.c (pic16glue): --c1mode works again
13537         * src/asm.c (printCLine): fix #660034
13538
13539 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13540
13541         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13542         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13543         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13544         * as/mcs51/lkmem (summary): better fix for sp problem
13545         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13546         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13547         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13548                                               remove --stack-after-data
13549
13550 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13551
13552         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13553         * src/SDCCutil.c (join): ugly bug: missing '\0'
13554         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13555
13556 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13557
13558         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13559         * src/port.h: typo
13560         * src/pic/main.c (_asmCmd): gpasm supports -o
13561         * src/z80/main.c: more general macros
13562         * device/lib/Makefile.in: remove intermediate files
13563
13564 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13565
13566         * .version: Bumped version number to 2.3.3
13567         * src/SDCCBBlock.c: new option -o
13568         * src/SDCCglobl.h: new option -o
13569         * src/SDCCglue.c: new option -o
13570         * src/SDCCmain.c: new option -o
13571         * src/asm.c: new option -o
13572         * src/ds390/main.c: new option -o
13573         * src/pic/glue.c: new option -o
13574         * src/pic/pcode.c: new option -o
13575         * src/pic/ralloc.c: new option -o
13576         * src/pic16/glue.c: new option -o
13577         * src/pic16/pcode.c: new option -o
13578         * src/pic16/ralloc.c: new option -o
13579         * src/z80/main.c: new option -o
13580         * device/lib/Makefile.in: use -o
13581         * support/regression/ports/ds390/spec.mk: use -o
13582         * support/regression/ports/gbz80/spec.mk: use -o
13583         * support/regression/ports/mcs51/spec.mk: use -o
13584         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13585         * support/regression/ports/z80/spec.mk: use -o
13586         * support/regression/ports/ucz80/spec.mk: use -o
13587         * support/regression/ports/xa51/spec.mk: use -o
13588         * support/regression/fwk/lib/timeout.c: fix usage string
13589
13590 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13591         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13592
13593 2003-01-07    <johan AT balder>
13594
13595         * src/SDCCast.c (decorateType): fixed bug #600035
13596
13597 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13598         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13599         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13600         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13601         * src/pic/pcode.c: outcommented unused variable to remove warnings
13602         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13603
13604 2003-01-06    <karl AT turbobit.com>
13605         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13606    regression tests.
13607
13608 2003-01-06    <johan AT balder>
13609
13610         * src/SDCCicode.c: fixed array add
13611
13612 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13613         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13614         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13615
13616 2003-01-04    <johan AT balder>
13617
13618         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13619
13620 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13621         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13622
13623 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13624         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13625         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13626
13627 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13628         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13629
13630 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13631         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13632
13633 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13634         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13635
13636 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13637
13638     * in /sdcc/as/mcs51/ changed these files in order to create an
13639     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13640     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13641     following files to include the previous two files: aslink.dsp,
13642     Makefile.aslink, Makefile.bcc, and Makefile.in.
13643
13644     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13645     .adb instead of .cdb
13646
13647 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13648
13649         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13650         value from option --iram-size.
13651
13652 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13653
13654         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13655         dram[] array.
13656
13657 2002-09-18    <wiml AT hhhh.org>
13658
13659         * SDCClrange.h: exposed setFromRange() and setToRange()
13660         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13661           packRegsForAccUse() (bug 542397)
13662         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13663           multiple times and emitting the fetch operations more than once
13664           added aopGetUsesAcc() function to allow binary operators to
13665           fetch their operands in the correct order; made genMinus() emit
13666           compact code for X = LITERAL - Y
13667
13668 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13669         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13670         sprintf() in line 1267.
13671
13672 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13673         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13674         like ports.
13675
13676 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13677         Changes to aslink (All the changes are marked with 'JCF'):
13678
13679         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13680         summary().
13681
13682         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13683         area BSEG.  Also moves, if possible, the DATA area down into the internal
13684         ram so more space is available.
13685
13686         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13687         sflag.
13688
13689         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13690         not bytes.  Function summary() which creates a memory usage summary
13691         file with extension .mem.  Reports of overlaping stack and small stack
13692         size.  If the space for the stack is less than 16 bytes aslink trows a
13693         warning.
13694
13695         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13696         the 8051.  Option 'y' for memory summary output file.
13697
13698         Changes to sdcc (All the changes are marked with 'JCF'):
13699
13700         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13701
13702         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13703         overlaying area for it (uses RegBankUsed[4]).
13704
13705         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13706         bank zero as used by default.  By default aslink locates the stack
13707         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13708         the creation of the .mem file.  Delegates the allocation of data area
13709         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13710         the begining of the stack area to aslink.
13711
13712         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13713         glue() in SDCCglue.c creates an area for it.
13714
13715 2002-09-03  Borut Razem <borut.razem AT siol.net>
13716         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13717         sdcc/src/pic/glue.c:
13718         introduced atexit() handler for teporay files removal in case of
13719         errors, assertions, ...
13720
13721 2002-08-29  Borut Razem <borut.razem AT siol.net>
13722         * sdcc/support/cpp2/auto-host_vc_in.h:
13723         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13724         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13725         Maybe there is a similar problem with BORLANDC? It should be checked!
13726
13727         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13728         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13729         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13730         was not executed, and the compiler (cl) launched a warning:
13731         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13732
13733 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13734         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13735
13736 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13737         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13738
13739         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13740           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13741           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13742           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13743           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13744           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13745           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13746         - added Release configuration in VS projects
13747         - review of compiler an linker options
13748         - VC .exe files are generated in bin_vc directory, not to interfere
13749           with binaries generated from other projects (cygwin, mingw, bcc ...)
13750
13751         * sdcc/src/yacc.dsp: added
13752
13753         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13754         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13755         and insert the version number definitions from .version
13756
13757         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13758
13759         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13760         added - genarate auto-host.h using auto-host_vc_in.h as template
13761
13762         * sdcc/sdcc_vc.h,
13763         removed from CVS, generated automatically
13764
13765 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13766         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13767
13768 2002-08-11  Borut Razem <borut.razem AT siol.net>
13769         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13770
13771 2002-08-10  Borut Razem <borut.razem AT siol.net>
13772         * src/SDCCmain.c (main):
13773         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13774         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13775         The consequence was that some temporary files were not removed.
13776
13777         * src/SDCCglue.c:
13778         unification of code in functions tempfilename() and tempfile():
13779         function tempnam() is defined in Visual Studio 6.0 and .NET
13780
13781         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13782
13783         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13784           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13785         - removed compiler command line option /WX: Treats all warnings as errors
13786         - update a list of source files, included into the project
13787
13788         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13789           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13790         changed project type to Generic Project so that can be correcly converted to VS.NET project
13791
13792         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13793
13794         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13795
13796         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13797
13798         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13799         added return 0 statements after assert() to make compiler happy
13800
13801         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13802         added newline in the def file to keep MSC compiler satisfied
13803
13804         * sdcc/src/z80/gen.c:
13805         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13806           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13807         - solved MSC error in function aopDump()
13808
13809         * sdcc_vc.h: define PREFIX as "\\sdcc"
13810
13811 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13812         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13813
13814 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13815         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13816         - Rewrote the register banking algorithm.
13817         - Added pCode live-range analysis to registers (for now, only non-used and
13818         singly-used registers optimized away)
13819
13820         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13821
13822         * 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.
13823
13824 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13825         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13826
13827 2002-04-22  Michael Hope  <michaelh AT vroom>
13828
13829         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13830
13831         * configure.in (DD_COPT): Added include support required for gbdk.
13832
13833         * .version: Bumped version number just to increase it.
13834
13835         * src/SDCCmain.c: Added -nostdinc to the default options.
13836
13837 2002-04-15  Michael Hope  <michaelh AT vroom>
13838
13839         * device/lib/z80/printf.c (sprintf): Added.
13840
13841         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13842
13843         * src/z80/peeph.def: Added transpose redundent load rule.
13844
13845         * src/z80/main.c: Added force callee saves for jaune.
13846
13847         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13848
13849         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13850
13851 2002-03-28  Johan Knol  <johan AT balder>
13852
13853         * src/SDCCval.c: fixed bug #532436
13854
13855 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13856         * /src/port.h:
13857         Added "char *Processor" field to the port structure.
13858
13859         * /src/SDCCmain.c:
13860         Added -p option. Allows port dependent processor to be specified.
13861
13862         * all ports:
13863         Initialized the new field char *Processor field to NULL in all ports
13864
13865         * /src/pic/*:
13866         Compiler generated registers for interrupt context saving
13867         were not getting allocated.
13868
13869 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13870
13871         * /src/SDCCast.c:
13872         Fixed left shift. Will promote the left side of a left shift
13873         if a) left shifting more than size of operand or b) when assigned
13874         to something size > size of left side
13875
13876 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13877         * src/pic/*
13878         tons of changes. Register allocation has been
13879         rewritten. Added customization for the various PICs. Flow
13880         analysis is restructured. ...
13881
13882         * src/pic/device.h:
13883         Added
13884
13885         * src/pic/device.c:
13886         Added. device.c is a PIC port hack to accomodate variations
13887         in PIC devices.
13888
13889 2002-03-13  Michael Hope  <michaelh AT vroom>
13890
13891         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13892
13893 2002-03-04  johanknol  <johanknol AT manik>
13894
13895         * /src/SDCCval.c: fixed
13896
13897         const unsigned char arr[][2] = { { 0, 1 } };
13898         t18.c:1: error: Initializer element is not constant
13899
13900 2002-03-04  bela  <bela AT manik>
13901
13902         * /device/include/mcs51reg.h:
13903         ds89c420 register definition update
13904
13905 2002-03-03    <johan AT FRIJA>
13906
13907         * support/Util/SDCCerr.c: did something, but don't no why anymore
13908
13909         * support/regression/tests/bug-524691.c: made it a little less shy
13910
13911         * src/SDCCast.c (decorateType): fixed bug #524697
13912
13913         * src/SDCCast.c: made some lineno improvements
13914
13915         * src/SDCCval.c (getNelements): changed warning to error
13916
13917         * src/SDCCglue.c (printIvalArray): changed warning to error
13918
13919         * src/SDCCicode.c: fixed a warning for mingw
13920
13921         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13922
13923         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13924
13925 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13926
13927         * src/ds390/peeph.def:
13928         Added some more peephole rules
13929
13930         * src/ds390/gen.c: Various fixes & enhancements
13931
13932         * src/SDCClrange.c, src/SDCClrange.h:
13933         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13934
13935         * src/ds390/ralloc.c:
13936         various fixes & enhancements (ds390) specific
13937
13938         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13939         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13940         from rallocs.
13941
13942         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13943
13944 2002-03-02    <johan AT FRIJA>
13945
13946         * src/SDCCast.c (decorateType): fixed bug #524708
13947
13948         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13949
13950         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13951
13952 2002-03-01  Michael Hope  <michaelh AT vroom>
13953
13954         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13955
13956         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13957
13958 2002-03-01    <johan AT FRIJA>
13959
13960         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13961
13962         * src/SDCCast.c (decorateType): fixed bug #524209
13963
13964         * src/SDCCval.c (valNot): fixed bug #524195
13965
13966 2002-02-26    <johan AT balder>
13967
13968         * src/xa51/gen.c: fixed a warning
13969
13970         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13971
13972         * src/SDCCast.c (decorateType): fixed bug #522534
13973
13974 2002-02-23    <johan AT balder>
13975
13976         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13977
13978 2002-02-22    <johan AT balder>
13979
13980         * src/SDCCast.c: fixed bug #514865
13981
13982         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13983
13984 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13985
13986         * sdcc/src/SDCCloop.c:
13987         Previous fix was not good. basic blocks that have "break" or "return" are
13988         not really partof a loop , but live ranges used in these blocks should
13989         be live thru the entire loop, so set partOfLoop but don't add them to
13990         loop region
13991
13992 2002-02-21    <johan AT FRIJA>
13993
13994         * src/SDCCcse.c: fixed bug #514308
13995
13996 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13997
13998         * src/SDCCloop.c:
13999         Fixed BUG #519583. If a conditional block ended in a return/break
14000         statement inside a loop, it was not being considered part of the loop.
14001
14002         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14003
14004 2002-02-10  Karl Bongers <karl AT turbobit.com>
14005
14006         * debugger/*:
14007         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14008         with lots of comments and notes.
14009
14010         * device/examples/test2.c:
14011         Fix bug, "red" variable not being initialized(compiler complained).
14012
14013         * device/examples/Makefile, examples/test3.c:
14014         Add Makefile in device/examples folder, compiles test3.c
14015         for use as a multiple module SDCDB test case.
14016
14017         * sim/ucsim/cmd.src/cmdset.cc:
14018         Took out debug printfs in ucsim "next" command.
14019
14020         * sim/ucsim/xa.src:
14021         Karl and Johan start ucsim XA support.  Most dissassembly working,
14022         about 75% emulation done(plenty of work remaining).
14023
14024         * sim/ucsim/z80.src:
14025         Add Z80 support to ucsim, add test-ucz80 regression test,
14026         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14027         Notice z80 compiler fails on examples/test3.c/crc code.
14028
14029 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14030
14031         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14032         Added support for --parms-in-bank1
14033
14034         * src/ds390/peeph.def:
14035         added a few more peephole optimzations
14036
14037         * src/ds390/main.c:
14038         1) added __builtin_inp & __builtin_outp used to read in data of given length
14039            from a memory mapped port
14040         2) added __builtin_memcmp
14041         3) added __builtin_swapw swap bytes of a short
14042
14043         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14044         1) handle multiple send & receives from register bank1
14045         2) ralloc can now allocate DPTR1 to some liveRanges
14046
14047         * src/SDCCsymt.c, src/SDCCsymt.h:
14048         changes to handle multiple sends & receives
14049
14050         * src/SDCCptropt.h:
14051         added some pointer arithmetic optimization
14052
14053         * src/SDCCptropt.c:
14054         added some pointer arithmetic optimizations but not stable yet so not
14055         called from anywhere (will get this working shortly)
14056
14057         * src/SDCCopt.c: fixed for multiple sends & receives
14058
14059         * src/SDCCmain.c:
14060         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14061         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14062            set preprocessor defines (depending on options)
14063
14064         * src/SDCCicode.c, src/SDCCicode.h:
14065         changes made to handle multiple sends & receives
14066
14067         * src/SDCCglobl.h:
14068         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14069
14070         * src/SDCCcse.c, src/SDCCcse.h:
14071         added function findbackward def (to be used in upcoming optimization)
14072
14073         * src/SDCCcflow.c, src/SDCCcflow.h:
14074         added function returnAtEnd - to determine if a basic block terminates with
14075         a RETURN iCode
14076
14077         * src/SDCCast.c, src/SDCCast.h:
14078         added option parms-in-bank1
14079
14080         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14081         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14082         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14083         adjusted for --parms-in-bank1 option
14084
14085         * device/include/string.h:
14086         donot redefine "reentrant" keyword
14087
14088         * device/include/ds80c390.h: Added some more SFRs
14089
14090 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14091
14092         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14093
14094 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14095
14096         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14097
14098 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14099
14100         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14101
14102 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14103
14104         * Added --xram-movc option
14105
14106 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14107
14108         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14109
14110 2002-01-11  Johan Knol
14111
14112         * Added math lib of Jesus Calvino-Fraga
14113
14114 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14115
14116         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14117         * support/regression/Makefile: new target test-mcs51-stack-auto
14118         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14119
14120 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14121
14122         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14123
14124 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14125
14126         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14127
14128 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14129
14130         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14131
14132         * src/SDCCglue.h: add definition for printIvalChar()
14133
14134 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14135
14136         * src/SDCCast.c: fix #498138 by Johan
14137
14138         * src/SDCCglue.c: fix #498138 by Johan
14139
14140 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14141
14142         * support/regression/Makefile: fix clean
14143
14144         * support/regression/ports/ds390/support.c: fix transmission of last character
14145
14146 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14147
14148         * /sdcc/src/ds390/gen.c:
14149         a) improved computing address of stack variable
14150         b) took out some #if 0 code
14151         c) improved parmBytes adjustment
14152         d) improved genPlusIncr & genMinusIncr
14153         e) genCmp could generate bad code (when left assigned to DPTR)
14154         f) Fixed bug in hasInc
14155
14156         * /sdcc/src/ds390/ralloc.c:
14157         a) packRegsForSupport could mess up live information (Fixed)
14158         b) packRegsDPTRuse could be incorrect for left & right shift
14159
14160         * /sdcc/src/mcs51/ralloc.c:
14161         packRegsForSupport could mess up the live information (Fixed)
14162
14163         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14164
14165         * /sdcc/src/SDCCast.c:
14166         can reverse a loop even if function call is present as long
14167         as the loop control variable is local & is not passed as parameter
14168
14169 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14170
14171         * /sdcc/ChangeLog: *** empty log message ***
14172
14173         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14174         More builtin function additions for TININative
14175
14176         * /sdcc/src/ds390/ralloc.c:
14177         Had broken the regression testsuite
14178
14179         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14180
14181         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14182         Added funcattr hasStackParms will be set for reentrant functions when there
14183         are paramteres on the stack, this helps in minimizing frame pointer generation
14184         typeFromStr can handle function pointers now
14185
14186         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14187         *** empty log message ***
14188
14189 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14190
14191         * /src/ds390/gen.c, /src/ds390/main.c:
14192         More builtin function additions for TININative
14193
14194         * /src/ds390/ralloc.c:
14195         Had broken the regression testsuite
14196
14197         * /src/SDCCast.c: Fixed a bug in dumptree
14198
14199         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14200         Added funcattr hasStackParms will be set for reentrant functions when there
14201         are paramteres on the stack, this helps in minimizing frame pointer generation
14202         typeFromStr can handle function pointers now
14203
14204         * /doc/builtins.txt, /doc/TININative.txt:
14205         *** empty log message ***
14206
14207
14208 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14209
14210         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14211         ALPHA version for -mTININative
14212
14213         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14214         updated to reflect changes in the port structure
14215
14216         * /src/port.h:
14217         added function do_assemble (similar to do_link) if non-null this function
14218         will be called to do assembly (-mTININative) requires a multi command
14219         assembly
14220         added function genAssemblerEnd will be called to generate assembler Epilogue
14221
14222         * /src/SDCCsymt.c:
14223         added _JavaNative to debug info printing
14224
14225         * /src/SDCCmain.c: added option --tini-libid
14226         added port->do_assemble function (-mTININative) has a multi command assemble
14227
14228         * /src/SDCCglue.c: Disabled "constExpr" check
14229         added port->genAssemblerEnd function
14230
14231         * /src/SDCCglobl.h: Added option --tini-libid value
14232
14233         * /src/SDCCast.h:
14234         tookout optimizeCompare from the header (has no external references)
14235
14236         * /src/SDCCast.c: made one more function "static"
14237
14238 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14239
14240         * src/z80/mappings.i: Added z80asm support.
14241
14242         * src/z80/main.c: Added z80asm support on --asm=z80asm
14243
14244         * src/z80/gen.c: Fixed asm portability issues.
14245
14246         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14247
14248         * src/SDCCglue.c (printExterns): Added global/extern split.
14249
14250 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14251
14252         * support/regression/Makefile: added test for mcs51 model large
14253
14254         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14255
14256         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14257
14258 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14259
14260         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14261
14262 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14263
14264         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14265
14266         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14267
14268 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14269
14270         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14271
14272         * support/regression/tests/simplefloat.c: Port to mcs51.
14273
14274 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14275         * support/regression/tests/bug-485362.c: Added.
14276
14277         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14278
14279         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14280
14281         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14282
14283         * src/z80/gen.c (aopDump): Added a dump function.
14284
14285 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14286         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14287
14288         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14289
14290         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14291
14292         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14293
14294         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14295
14296         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14297
14298         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14299
14300         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14301
14302         * support/regression/ports/ds390/support.c: Use tinibios.
14303
14304         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14305
14306 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14307
14308         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14309         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14310
14311         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14312
14313         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14314
14315 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14316
14317         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14318
14319         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14320         (packRegsForIYUse): Created and optimised.
14321
14322 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14323
14324         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14325 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14326
14327         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14328
14329         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14330
14331         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14332
14333 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14334
14335         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14336
14337         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14338
14339 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14340
14341         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14342
14343         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14344
14345         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14346
14347 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14348
14349         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14350         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14351         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14352
14353         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14354
14355         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14356         (genNotFloat): Added.
14357         (genUminusFloat): Added.
14358
14359         * device/lib/z80/Makefile: Added floating pt stubs.
14360
14361         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14362
14363         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14364
14365         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14366
14367 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14368
14369         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14370
14371         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14372
14373         * sdcc/support/regression/Makefile: Add port ds390.
14374
14375         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14376
14377         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14378
14379         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14380
14381         * sdcc/support/regression/ports/ds390/support.c: Added.
14382
14383         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14384
14385         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14386
14387         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14388
14389 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14390
14391         * device/include/malloc.h: Added z80 and gbz80 support.
14392
14393         * device/lib/gbz80/heap.s: Added.
14394
14395         * device/lib/z80/heap.s: Added.
14396
14397         * device/lib/malloc.c: Added z80 and gbz80 support.
14398
14399         * support/regression/tests/malloc.c (testMalloc): Added.
14400
14401         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14402
14403         * support/regression/tests/bug-478094.c: Added.
14404
14405         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14406
14407 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14408
14409         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14410
14411         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14412
14413         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14414
14415         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14416
14417         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14418
14419 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14420
14421         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14422
14423 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14424
14425         * support/regression/tests/bug-477927.c: Added.
14426
14427         * src/z80/peeph.def: Added minor rules.
14428
14429         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14430
14431         * src/z80/peeph.def: Added jump optimisation modification.
14432
14433 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14434
14435         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14436
14437 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14438
14439         * support/regression/tests/funptrs.c: Added.
14440
14441 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14442
14443         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14444
14445 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14446
14447         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14448
14449         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14450
14451         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14452         (movLeft2ResultLong): Created.
14453
14454         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14455         (joinPushes): Added.  Joins two char pushes into a word push.
14456
14457 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14458
14459         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14460
14461         * support/makebin/Makefile (install): Added creation of dest dir.
14462
14463 2001-10-24 Karl Bongers <karl AT turbobit.com>
14464
14465         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14466
14467 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14468
14469         * src/z80/ralloc.c: Turned off faulty pack for one use.
14470
14471         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14472
14473         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14474
14475 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14476
14477         * support/regression/Makefile: Improved clean
14478
14479         * support/regression/ports/gbz80/spec.mk: Added clean
14480
14481         * support/regression/ports/host/spec.mk: Added clean
14482
14483         * support/regression/ports/z80/spec.mk: Added clean
14484
14485         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14486
14487         * support/regression/ports/mcs51/timeout.c: little improvements
14488
14489 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14490
14491         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14492
14493         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14494
14495         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14496
14497 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14498
14499         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14500
14501         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14502
14503 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14504         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14505
14506         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14507
14508         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14509
14510         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14511
14512         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14513
14514         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14515
14516         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14517
14518         * support/regression/tests/longor.c: Added.
14519
14520 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14521
14522         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14523
14524         * as/mcs51/aslink.h: define PATH_MAX
14525
14526         * as/mcs51/asm.h: define PATH_MAX
14527
14528         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14529
14530         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14531
14532         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14533
14534         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14535
14536         * src/SDCCglobl.h: define PATH_MAX
14537
14538         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14539
14540         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14541
14542 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14543
14544         * src/z80/gen.c (gencjneshort): Fixed
14545
14546         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14547
14548 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14549
14550         * support/regression/tests/bug-469671.c: Added.
14551
14552         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14553
14554 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14555
14556         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14557
14558         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14559
14560 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14561
14562         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14563
14564         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14565
14566         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14567
14568         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14569
14570         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14571
14572         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14573
14574         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14575
14576 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14577
14578         * 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.
14579
14580         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14581
14582         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14583
14584 2001-10-07    <johan AT FRIJA>
14585
14586         * device/lib/gets.c (gets): fixed the return value.
14587
14588 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14589         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14590
14591         * 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.
14592
14593         * 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.
14594
14595         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14596
14597         * src/pic/gen.c: Removed Safe_strdup.
14598
14599         * configure.in: Added option to enable libgc support.
14600
14601         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14602         (bitVectUnion): Optimised.
14603         (bitVectIntersect): Optimised.
14604         (bitVectBitsInCommon): Optimised.
14605         (bitVectCplAnd): Optimised.
14606
14607         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14608
14609 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14610
14611         * src/SDCCmain.c: distinguish between assembler debug and plain options
14612
14613         * src/avr/main.c:   remove standard assembler options
14614
14615         * src/ds390/main.c: remove standard assembler options
14616
14617         * src/mcs51/main.c: remove standard assembler options
14618
14619         * src/port.h: removed "PENDING" comment
14620
14621 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14622
14623         * src/device/lib/_mulint.c  : new, with assember functions
14624
14625         * src/device/lib/_mullong.c : new, with assember functions
14626
14627         * src/device/lib/_divuint.c : with assember functions
14628
14629         * src/device/lib/_divsint.c : with assember functions
14630
14631         * src/device/lib/_divulong.c: with assember functions
14632
14633         * src/device/lib/_divslong.c: with assember functions
14634
14635         * src/device/lib/_moduint.c : with assember functions
14636
14637         * src/device/lib/_modsint.c : with assember functions
14638
14639         * src/device/lib/_modulong.c: with assember functions
14640
14641         * src/device/lib/_modslong.c: with assember functions
14642
14643         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14644
14645         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14646
14647         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14648                                       replaced _mululong.c and _mulslong.c by _mullong.c
14649
14650 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14651
14652         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14653
14654 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14655
14656         * src/SDCCglue.c: test, if win32api is available for MINGW
14657
14658 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14659
14660         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14661         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14662         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14663         * support/regression/ports/host/spec.mk: removed GENERIC
14664         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14665         * support/regression/ports/z80/spec.mk: removed GENERIC
14666
14667 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14668
14669         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14670
14671         * support/regression/tests/bug-467035.c: Created.
14672
14673 2001-10-01    <johan AT FRIJA>
14674
14675         * src/SDCC.y: fixed bug #466586 part 1
14676
14677 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14678
14679         * SDCCicode.c: z80 has no generic pointers
14680         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14681
14682 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14683
14684         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14685
14686 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14687
14688         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14689
14690         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14691
14692 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14693
14694         * configure.in: Fixed up so that ucsim is only configured once.
14695
14696         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14697
14698         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14699         (getPathDifference): As above.
14700
14701         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14702
14703         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14704
14705 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14706         * .version: Updated to 2.3.1
14707
14708         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14709         Added copyright header.
14710
14711         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14712         (assemble): Added support for macro based assembler commands.
14713         (linkEdit): Added support for macro based linker commands.
14714         (preProcess): Changed the pre-processor to use macros.
14715         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14716         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14717
14718         * device/lib/z80/crt0.s: Added module name for debugging.
14719
14720 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14721
14722         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14723
14724         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14725
14726         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14727
14728         * src/Makefile.in: Added SDCCmacro and SDCCutil
14729
14730 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14731
14732         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14733
14734 2001-09-16    <johan AT FRIJA>
14735
14736         * 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.
14737
14738 2001-09-15    <johan AT FRIJA>
14739
14740         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14741         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14742
14743 2001-09-11    <johan AT FRIJA>
14744
14745         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14746
14747 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14748
14749         * support/regression/tests/bug-460444.c: Added test case.
14750
14751         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14752         (genCast): Added justification for all of the asserts.
14753
14754 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14755
14756         * support/regression/support.c: _xdata replaced by xdata
14757
14758         * support/regression/spec.mk: removed _generic
14759
14760 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14761
14762         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14763
14764         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14765         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14766
14767         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14768
14769         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14770
14771         * support/regression/tests/bug-460010.c: Added test case.
14772
14773         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14774
14775 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14776
14777         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14778
14779         * support/regression/testfwk.c: removed workaround for bug #436344
14780
14781         * support/regression/tests/bp.c: use less memory with mcs51
14782
14783         * support/regression/tests/bug-441448.c: use less memory
14784
14785         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14786
14787         * support/regression/collate-results.py: typo
14788
14789 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14790
14791         * support/regression/tests/fetchoverlap.c: Added new test case.
14792
14793         * support/regression/tests/bp.c: Added new test case.
14794
14795         * support/regression/tests/bug-448984.c: Added new test case.
14796
14797         * support/regression/tests/pow2shifts.c: Added new test case.
14798
14799         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14800         (genlshTwo): Fixed right shift for count > 8.
14801
14802         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14803
14804 2001-09-08    <johan AT FRIJA>
14805
14806         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14807
14808 2001-09-07    <johan AT FRIJA>
14809
14810         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14811
14812         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14813
14814 2001-09-06    <johan AT FRIJA>
14815
14816         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14817         * bernhard noted me at this: "() equals to (void)" (1.38)
14818
14819 2001-09-05    <johan AT FRIJA>
14820
14821         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14822
14823 2001-09-04    <johan AT FRIJA>
14824
14825         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14826
14827
14828 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14829
14830         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14831
14832 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14833
14834         * link/z80/aslink.h: Fixed path for PATH_MAX
14835
14836 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14837
14838         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14839
14840         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14841
14842         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14843
14844         * 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.
14845
14846 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14847
14848         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14849         (genCmp): Fixed up genCmp for the GB with longs.
14850
14851         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14852
14853         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14854
14855         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14856
14857         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14858
14859 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14860
14861         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14862
14863 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14864
14865         * 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.
14866
14867         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14868
14869 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14870
14871         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14872
14873         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14874
14875 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14876
14877   * sim/ucsim/configure:    little improvement of Cygwin-detection
14878   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14879   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14880   * support/regression/tests/bug-221100.c: small changes for mcs51
14881   * support/regression/tests/bug-221168.c: small changes for mcs51
14882   * support/regression/tests/bug-227710.c: small changes for mcs51
14883   * support/regression/tests/staticinit.c: small changes for mcs51
14884   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14885   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14886   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14887
14888 $Revision$