* src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
[fw/sdcc] / ChangeLog
1 2007-01-15 Borut Razem <borut.razem AT siol.net>
2
3         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
4           removed terminal symbol ELIPSIS, since it was never generated by the
5           lexer and it was wrongly used in parameter_identifier_list rule
6
7 2007-01-15 Raphael Neider <rneider AT web.de>
8
9         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
10             code page and data banking description
11         * src/pic/genarith.c,
12         * src/pic/gen.h: removed bit arithmetic functions,
13             updated exit(1) to exit(EXIT_FAILURE)
14         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
15         * device/include/pic16/pic18f2455.h,
16         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
17             TRISD and TRISE, fixed/added some bit names
18         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
19         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
20             updated pic18f2455.{c,h} instead of duplicating them
21
22 2007-01-14 Borut Razem <borut.razem AT siol.net>
23
24         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
25           Cannot debug files that contain spaces in the path name
26           by converting spaces in asm file name to underscores
27
28 2007-01-13 Borut Razem <borut.razem AT siol.net>
29
30         * doc/sdccman.lyx: fixed format errors
31
32 2007-01-10 Borut Razem <borut.razem AT siol.net>
33
34         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
35           codeseg/constseg #pragma fail
36         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
37         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
38           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
39           suppoprt/cpp2/sdcpp.[ch]: house cleaning
40
41 2007-01-09 Borut Razem <borut.razem AT siol.net>
42
43         * get rid of diagnistic.[ch], pretty-print.[ch],
44           c-pretty-print.[ch], ... used just for error, warning, ...
45           message formatting
46         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
47           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
48           suppoprt/cpp2/pretty-print.[ch]:
49           removed
50         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
51           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
52           suppoprt/cpp2/sdcpp.dsp:
53           changed
54
55 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
56
57         * device/lib/printf_large.c (output_float): removed recursion,
58           use smaller buffer on stack for mcs51,
59           fixed bug printing 1.96
60         * support/regression/tests/snprintf.c: added test
61
62 2007-01-07 Borut Razem <borut.razem AT siol.net>
63
64         * use dynamic memory buffers instead temporary files
65         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
66           added
67         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
68           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
69           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
70           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
71           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
72           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
73           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
74           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
75           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
76           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
77           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
78           support/Util/dbuf.c, support/Util/dbuf.h:
79           modified
80         * .version, sdcc.spec: bumped version to 2.6.4
81
82 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * src/port.h: added TARGET_Z80_LIKE macro
85         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
86           output PSEG location if --xram-loc or --xstack-loc was used
87         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
88
89 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
90
91         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
92         * as/as_z80.dsp,   as/z80/as_z80.dsp,
93         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
94         * sdcc.dsw: moved project files into subdir
95         * as/hc08/as_hc08.dsp,
96         * as/hc08/Makefile.bcc,
97         * as/hc08/Makefile.in,
98         * as/mcs51/Makefile.bcc,
99         * as/mcs51/Makefile.in,
100         * as/z80/Makefile.bcc,
101         * as/z80/Makefile.in,
102         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
103         * as/hc08/asm.h,
104         * as/mcs51/asm.h,
105         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
106         * as/hc08/asmain.c,
107         * as/hc08/assym.c,
108         * as/mcs51/asmain.c,
109         * as/mcs51/assym.c,
110         * as/z80/assym.c: removed include "strcmpi.h"
111         * as/hc08/strcmpi.c,
112         * as/hc08/strcmpi.h,
113         * as/mcs51/strcmpi.c,
114         * as/mcs51/strcmpi.h,
115         * support/Util/strcmpi.c,
116         * support/Util/strcmpi.h: removed files
117         * as/strcmpi.c: added as_strncmpi()
118
119 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
120
121         * sdcc.dsw: Added some dependencies on project config.dsp
122
123 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
124
125         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
126           with [di]ram_start to fix a regresion
127
128 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
129
130         * configure.in: added missing mcs51 in status output
131         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
132         directory
133         * debugger/mcs51/clean.mk (distclean): remove config.h
134         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
135         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
136         options.h, s-options-h and options.c
137         * support/cpp2/clean.mk: unused, removed
138         * Makefile.common.in,
139         * main_in.mk,
140         * as/Makefile.in,
141         * as/hc08/Makefile.in,
142         * as/hc08/clean.mk,
143         * as/mcs51/Makefile.in,
144         * as/mcs51/clean.mk,
145         * as/z80/clean.mk,
146         * as/z80/conf.mk,
147         * as/z80/Makefile.in,
148         * as/z80/clean.mk,
149         * as/link/Makefile.in,
150         * as/link/hc08/Makefile.in,
151         * as/link/hc08/clean.mk,
152         * as/link/mcs51/Makefile.in,
153         * as/link/mcs51/clean.mk,
154         * as/link/z80/Makefile.in,
155         * as/link/z80/clean.mk,
156         * as/link/z80/conf.mk,
157         * debugger/mcs51/Makefile.in,
158         * debugger/mcs51/clean.mk,
159         * device/include/Makefile.in,
160         * device/lib/Makefile.in,
161         * device/lib/mcs51/Makefile.in,
162         * device/lib/pic/Makefile.in,
163         * device/lib/pic/Makefile.common.in,
164         * device/lib/pic/Makefile.subdir,
165         * device/lib/pic/Makefile.rules,
166         * device/lib/pic16/libio/Makefile.in,
167         * device/lib/pic16/Makefile.subdir,
168         * device/lib/pic16/libdev/Makefile.in,
169         * device/lib/pic16/Makefile.rules,
170         * device/lib/pic16/Makefile.common.in,
171         * sim/ucsim/avr.src/Makefile.in,
172         * sim/ucsim/main_in.mk,
173         * sim/ucsim/cmd.src/Makefile.in,
174         * sim/ucsim/doc/Makefile.in,
175         * sim/ucsim/gui.src/Makefile.in,
176         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
177         * sim/ucsim/gui.src/serio.src/Makefile.in,
178         * sim/ucsim/hc08.src/Makefile.in,
179         * sim/ucsim/libltdl/Makefile.in,
180         * sim/ucsim/s51.src/Makefile.in,
181         * sim/ucsim/sim.src/Makefile.in,
182         * sim/ucsim/sim.src/conf.mk,
183         * sim/ucsim/xa.src/Makefile.in,
184         * sim/ucsim/z80.src/Makefile.in,
185         * src/Makefile.in,
186         * src/clean.mk,
187         * src/port.mk,
188         * support/cpp2/Makefile.in,
189         * support/librarian/Makefile.in,
190         * support/librarian/clean.mk,
191         * support/makebin/Makefile.in,
192         * support/makebin/clean.mk,
193         * support/packihx/Makefile.in,
194         * support/regression/Makefile.in,
195         * support/regression/ports/ds390/spec.mk,
196         * support/regression/ports/gbz80/spec.mk,
197         * support/regression/ports/hc08/spec.mk,
198         * support/regression/ports/mcs51/spec.mk,
199         * support/regression/ports/mcs51-large/spec.mk,
200         * support/regression/ports/mcs51-medium/spec.mk,
201         * support/regression/ports/mcs51-xstack-auto/spec.mk,
202         * support/regression/ports/pic14/spec.mk,
203         * support/regression/ports/pic16/spec.mk,
204         * support/regression/ports/mcs51-stack-auto/spec.mk,
205         * support/regression/ports/ucz80/spec.mk,
206         * support/regression/ports/xa51/spec.mk,
207         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
208         adding a slash after $(top_builddir) and/or adding @datarootdir@
209         * configure.in,
210         * debugger/mcs51/configure.in,
211         * device/lib/pic/configure.in,
212         * device/lib/pic16/configure.in,
213         * sim/ucsim/configure.in,
214         * support/cpp2/configure.in,
215         * support/packihx/configure.in: changed AC_PREREQ to 2.60
216         * configure,
217         * debugger/mcs51/configure,
218         * device/lib/pic/configure,
219         * device/lib/pic16/configure,
220         * sim/ucsim/configure,
221         * support/cpp2/configure,
222         * support/packihx/configure: generated with autoconf 2.60
223
224 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
225
226         * as/link/hc08/lkihx.c (newArea),
227         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
228
229 2007-01-02 Borut Razem <borut.razem AT siol.net>
230
231         * doc/sdccman.lyx: documented #pragma sdcc_hash
232         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
233           initialized to 0
234         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
235
236 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
237
238         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
239         empty 'while'-loop to work correctly, see regression test 'while.c'
240         * support/regression/tests/while.c: added
241
242 2007-01-01 Borut Razem <borut.razem AT siol.net>
243
244         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
245           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
246           support/cpp2/libcpp/sdcpp.c:
247           sdcpp specific pragma/directive/option handling moved to sdcpp.c
248         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
249         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
250
251 2006-12-31 Borut Razem <borut.razem AT siol.net>
252
253         * SDCPP synchronized with GCC CPP release version 4.1.1,
254           currently the latest release:
255         * support/cpp2/libcpp, support/cpp2/libcpp/include,
256           support/cpp2/libcpp/include/cpp-id-data.h
257           support/cpp2/libiberty/fopen_unlocked.c
258           support/cpp2/libiberty/md5.c
259           support/cpp2/md5.h
260           support/cpp2/opt-functions.awk
261           support/cpp2/opt-gather.awk
262           support/cpp2/optc-gen.awk
263           support/cpp2/opth-gen.awk:
264           added
265         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
266           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
267           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
268           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
269           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
270           support/cpp2/diagnostic.h, support/cpp2/except.h,
271           support/cpp2/hwint.h, support/cpp2/input.h,
272           support/cpp2/intl.h, support/cpp2/move-if-change,
273           support/cpp2/opts.c, support/cpp2/opts.h,
274           support/cpp2/output.h, support/cpp2/prefix.c,
275           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
276           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
277           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
278           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
279           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
280           support/cpp2/version.c:
281           modified
282         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
283           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
284           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
285           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
286           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
287           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
288           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
289           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
290           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
291           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
292           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
293           moved
294         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
295           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
296           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
297           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
298           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
299           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
300           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
301           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
302           support/cpp2/hashtable.h, support/cpp2/line-map.c,
303           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
304           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
305           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
306           support/cpp2/system.h:
307           deleted / moved
308
309 2006-12-31 Borut Razem <borut.razem AT siol.net>
310
311         * configure.in, configure: fixed bug #1538756: configure dies if bison
312           and flex are not installed, 2nd try
313
314 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
315
316         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
317         400.x for better code in RFE 899102
318
319 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
320
321         * src/SDCCpeeph.c (deadMove),
322         * src/port.h,
323         * src/mcs51/peep.h: renamed 'op' by 'reg'
324         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
325         (scan4op): small change for removeDeadMove(), added support for
326         'callee saves' and/or PACLL function calls,
327         (removeDeadMove): added, removes superflous 'mov r%1,%2',
328         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
329         left in new dispatcher mcs51DeadMove()
330         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
331         removeDeadMove()
332         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
333
334 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
335
336         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
337           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
338
339 2006-12-30 Borut Razem <borut.razem AT siol.net>
340
341         * support/cpp2/spacs.h: deleted from svn
342         * configure.in, configure: fixed bug #1538756: configure dies if bison
343           and flex are not installed
344
345 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
346
347         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
348           with this z80 passes printf float test when enabled
349         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
350
351 2006-12-28 Borut Razem <borut.razem AT siol.net>
352
353         * support/cpp2/config.in, support/cpp2/configure.in,
354           support/cpp2/configure, support/cpp2/Makefile.in:
355           fix for the solaris build
356
357 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
358
359         * src/SDCC.y (type_specifier2, pointer),
360         * src/SDCCsymt.h,
361         * src/SDCCsymt.c (mergeSpec, checkSClass),
362         * support/Util/SDCCerr.c,
363         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
364         * support/valdiag/valdiag.py: Allow test cases to specify
365           required language standard
366         * support/valdiag/tests/restrict.c: New file to test restrict keyword
367         * support/valdiag/tests/tentdecl.c: Supress empty source file error
368
369 2006-12-27 Borut Razem <borut.razem AT siol.net>
370
371         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
372         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
373           mbchar removed
374         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
375           fixed for borland C
376         * support/cpp2/libiberty/Makefile.bcc: updated
377         * src/pic16/main.c: fixed #pragma udata handling
378         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
379
380 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
381
382         * src/SDCCpeeph.c: made labelHashEntry global,
383         made pcDistance, FBYNAME static,
384         (pcDistance): made static, use isComment and isLabel,
385         (deadMove): added,
386         (getLabelRef): added, extracted from labelRefCount(),
387         (labelRefCount): use new getLabelRef(),
388         (callFuncByName): made static, added deadMove,
389         use isComment and isLabel,
390         (newPeepRule): made static, set isLabel,
391         (isLabelDefinition): added parameter isPeepRule to allow '%' in
392         labels from peephole rules,
393         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
394         when isComment or isLabel is set
395         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
396         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
397         to make them global
398         * src/mcs51/peep.h: added
399         * src/mcs51/peep.c: added, implements mcs51DeadMove()
400         * src/port.h: added peep->deadMove to port structure
401         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
402         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
403         deadMove, finally removed no. 1 and 2
404         * src/mcs51/gen.c,
405         * src/pic/gen.c,
406         * src/z80/gen.c,
407         * src/z80/ralloc.c,
408         * src/pic16/gen.c,
409         * src/ds390/gen.c,
410         * src/hc08/gen.c: mark lines with isComment or isLabel
411         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
412         * .version,
413         * sdcc.spec: bumped version to 2.6.3
414
415 2006-12-26 Borut Razem <borut.razem AT siol.net>
416
417         * support/cpp2/Makefile.in: added dependency on options.h
418         * configure: regenerated
419         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
420         * support/cpp2/Makefile.in: added vasprintf.c
421
422 2006-12-25 Borut Razem <borut.razem AT siol.net>
423
424         * SDCPP synchronized with GCC CPP release version 3.4.6,
425           the latest release before 4.x:
426         * support/cpp2/Makefile.in, support/cpp2/config.h,
427           support/cpp2/configure, support/cpp2/configure.in,
428           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
429           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
430           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
431           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
432           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
433           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
434           support/cpp2/cpptrad.c, support/cpp2/except.h,
435           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
436           support/cpp2/hwint.h, support/cpp2/intl.h,
437           support/cpp2/line-map.c, support/cpp2/line-map.h,
438           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
439           support/cpp2/output.h, support/cpp2/prefix.c,
440           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
441           support/cpp2/system.h, support/cpp2/version.c:
442           modified
443         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
444           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
445           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
446           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
447           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
448           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
449           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
450           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
451           support/cpp2/move-if-change, support/cpp2/opts.c,
452           support/cpp2/opts.h, support/cpp2/opts.sh,
453           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
454           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
455           support/cpp2/win32, support/cpp2/win32/dirent.c,
456           support/cpp2/win32/dirent.h:
457           added
458         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
459         * support/cpp2/sdcpp.h: renamed from sdcc.h
460         * sdcppinit.c: deleted
461
462 2006-12-23 Borut Razem <borut.razem AT siol.net>
463
464         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
465           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
466           preproc.c: an other try to fix bug #982435: introduced
467           -pedantic-parse-number command line option and pedantic_parse_number
468           pragma
469
470 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
471
472         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
473            BSEG handling,
474           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
475            corrected overlayed areax addresses, warn about memory overlaps
476         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
477         * src/avr/main.c,
478         * src/ds390/main.c,
479         * src/hc08/main.c,
480         * src/mcs51/main.c,
481         * src/pic16/main.c,
482         * src/pic/main.c,
483         * src/xa51/main.c,
484         * src/z80/main.c,
485         * src/port.h: added xabs_name and iabs_name
486         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
487           (glue, emitMaps): create and emit maps d_abs and i_abs
488         * src/SDCCglue.h: cosmetic changes
489         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
490         * src/SDCCmem.h,
491         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
492           (allocDefault): put absolute, initialized globals in them
493         * support/regression/tests/absolute.c: added absolute bdata test
494         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
495
496 2006-12-20 Borut Razem <borut.razem AT siol.net>
497
498         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
499         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
500           added regression test for bug #982435
501
502 2006-12-18 Borut Razem <borut.razem AT siol.net>
503
504         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
505         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
506           small cosmetic changes
507         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
508         * support/regression/tests/bug-1351710.c: added regression test
509
510 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
511
512         * doc/sdccman.lyx: added the long missed iCode table
513           "<where is figure II?>", added links to wiki
514
515 2006-12-17 Borut Razem <borut.razem AT siol.net>
516
517         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
518           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
519           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
520           unified table driven pragma handling, pragma argument type checking
521         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
522           current one - version 1.1.3
523         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
524
525 2006-12-13 Raphael Neider <rneider AT web.de>
526
527         * src/pic/device.h: removed AssignedMemory structure and macros
528         * src/pic/device.c: removed global finalMapping (linker assigns
529             memory locations),
530           (register_map): add SFRs to remembered memRanges
531           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
532           assignFixedRegisters,assignRelocatableRegisters): removed,
533           (setMaxRAM,validAddress): adapted accordingly,
534           (pic14_hasSharebank,pic14_getSharedStack): only report and use
535             reasonably sized sharebanks,
536         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
537           (allDefsOutOfRange): removed unused code,
538         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
539             handling
540         * src/pic/pcode.c (register_reassign): removed recursion warning,
541             fired far too often,
542         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
543             to use existing pic14_stringInSet() to avoid duplicate symbols,
544             tidied up the code a bit,
545           (pic14printLocals): added in symmetry to printExterns, replaces
546             writeUsedRegs more or less,
547           (picglue): call new pic14_printLocals(),
548         * device/include/pic/pic*.h: removed #pragma memmap directives,
549             information gathered from include/pic/pic14devices.txt
550         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
551
552 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
553
554         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
555
556 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
557
558         * device/include/mcs51/cc2430.h: fixed missing ';'
559
560 2006-12-10 Raphael Neider <rneider AT web.de>
561
562         * device/lib/pic16/libc/stdio/vfprintf.c,
563         * device/lib/pic16/libc/stdio/printf_small.c,
564         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
565           char arguments, as char varargs are cast to int by the caller,
566           hopefully fixes #1604915 (other device libraries are still affected)
567
568 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
569
570         * src/mcs51/ralloc.c (packRegsForAssign),
571         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
572
573 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
574
575         * device/include/malloc.h: removed init_dynamic_memory
576         * device/lib/malloc.c: made init_dynamic_memory static and automatically
577           call it once from malloc. Also use _sdcc_heap[] from _heap.c
578         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
579         * device/lib/libsdcc.lib,
580         * device/lib/Makefile.in,
581         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
582         * doc/sdccman.lyx: documented use of new _heap.c
583         * support/regression/tests/malloc.c: removed init_dynamic_memory
584         * src/cdbFile.c(spacesToUnderscores): new function,
585           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
586           1068030
587         * device/include/tinibios.h: removed defines for putchar and getchar
588         * device/lib/ds390/Makefile.in: added putchar.c
589         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
590
591 2006-12-09 Borut Razem <borut.razem AT siol.net>
592
593         * support/cpp2/sdcc.h: prevent multiple inclusion
594         * support/cpp2/options.h: deleted
595
596 2006-12-08 Borut Razem <borut.razem AT siol.net>
597
598         * support/cpp2/sdcc.h: removed x*alloc() macros
599         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
600         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
601           support/cpp2/sdcpp.sdc: x*alloc files added to the project
602         * support/cpp2/system.h: moved #include "sdcc.h"
603         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
604           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
605           added
606         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
607           -funsigned-char options
608         * support/cpp2/sdcppmain.c: fixed bug 1611411
609
610 2006-12-07 Borut Razem <borut.razem AT siol.net>
611
612         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
613           directive
614
615 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
616
617         * src/SDCCsymt.c (addDecl): fixed bug 1609244
618         * src/SDCCmain.c (linkEdit): fixed bug 1609279
619         * doc/sdccman.lyx,
620         * .version: bumped to 2.6.2 because a) it's been a while
621           b) the linker sources have moved c) the preprocessor is upgraded
622
623 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
624
625         * support/regression/tests/snprintf.c: some checks
626         * lib/src/printf_large.c: %bc: read char instead of int from stack
627
628 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
629
630         * device/include/mcs51/cc2430.h: inserted _XPAGE
631
632 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
633
634         * device/include/mcs51/cc2430.h: added
635
636 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
637
638         * device/include/asm/default/features.h,
639         * device/include/asm/ds390/features.h,
640         * device/include/mcs51/at89s53.h,
641         * device/include/ser.h,
642         * device/include/ser_ir.h,
643         * device/include/serial.h: changed keywords to double underscore variants,
644           fixes bug 1590261 some more, thanks Steven Borley
645
646 2006-12-01 Raphael Neider <rneider AT web.de>
647
648         * src/pic/pcode.c (register_reassign): do not crash on recursive code
649           but emit warning (recursion is not supported for pic14)
650
651 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
652
653         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
654         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
655
656 2006-11-30 Raphael Neider <rneider AT web.de>
657
658         * src/pic/device.c (dump_sfr): always emit symbols
659         * src/pic/glue.c (pic14printPublics): fixed typo
660
661 2006-11-30 Raphael Neider <rneider AT web.de>
662
663         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
664           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
665           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
666            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
667            a sharebank, use a non-shared bank for the stack if none available
668         * src/pic/device.h (struct memRange): added linked list next field,
669           added prototypes for above functions
670         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
671           (typeRegWithIdx): accept fixed and unfixed stack registers
672         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
673           the stack, handle shared and banked stack (except for WSAVE),
674           (insertBankSel): removed useless optimization (will never fire),
675           (FixRegisterBanking): added optimization for devices with only one
676           possibly aliased bank of memory, like 16f84
677         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
678           devices have no SHAREBANK in the linker script
679         * device/include/pic/pic14devices.txt: documented memmap
680         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
681
682 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
683
684         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
685           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
686           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
687           genhc08Code): switched most of the D (debug) macros to DD (detailed
688           debug) macros to better control clutter in the generated .asm file.
689         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
690           genRightShift): fixed bug with non-constant bit shift stored to
691           a volatile result (SF Open Discussion forum thread #1616749).
692           Single byte case is not yet optimized.
693
694 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
695
696         * device/include/asm/mcs51/features.h,
697         * device/include/malloc.h,
698         * device/include/stdio.h: changed keywords to double underscore variants,
699           fixes bug 1590261
700
701 2006-11-27 Borut Razem <borut.razem AT siol.net>
702
703         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
704           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
705           support/cpp2/output.h, support/cpp2/cppinit.c,
706           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
707           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
708           support/cpp2/cppdefault.c, support/cpp2/system.h,
709           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
710           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
711           support/cpp2/prefix.c, support/cpp2/except.h,
712           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
713           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
714           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
715           support/cpp2/version.c, support/cpp2/cppmain.c,
716           support/cpp2/version.h, support/cpp2/hashtable.c,
717           support/cpp2/cpperror.c:
718           synchronized with GCC CPP release version 3.3.6,
719           the latest where cppmain.c still exists.
720         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
721           support/cpp2/sdcppinit.c: added
722
723 2006-11-27 Borut Razem <borut.razem AT siol.net>
724
725         * support/cpp2/cpplex.c:
726           fixed _asm ... _endasm handling bug, introduce with GCC CPP
727           synchronization
728         * support/cpp2/cpplib.c: removed definitions of unused variables
729
730 2006-11-26 Borut Razem <borut.razem AT siol.net>
731
732         * support/cpp2/libiberty.h: commented out x*alloc() declarations
733           since they are redefined by macros in support/cpp2/sdcc.h
734         * support/cpp2/sdcc.h: x*alloc macro redefinition
735
736 2006-11-25 Borut Razem <borut.razem AT siol.net>
737
738         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
739           support/cpp2/configure, support/cpp2/Makefile.in,
740           support/cpp2/cppfiles.c, support/cpp2/output.h,
741           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
742           support/cpp2/config.h, support/cpp2/cpplib.h,
743           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
744           support/cpp2/cppdefault.c, support/cpp2/config.in,
745           support/cpp2/system.h, support/cpp2/cpplex.c,
746           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
747           support/cpp2/cppdefault.h, support/cpp2/prefix.c
748           support/cpp2/hwint.h, support/cpp2/mbchar.h,
749           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
750           support/cpp2/configure.in, support/cpp2/intl.h,
751           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
752           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
753           support/cpp2/version.c, support/cpp2/cppmain.c,
754           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
755           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
756           support/cpp2/cpperror.c,
757           support/cpp2/libiberty/safe-ctype.c,
758           support/cpp2/libiberty/safe-ctype.h,
759           support/cpp2/libiberty/splay-tree.c,
760           support/cpp2/libiberty/obstack.c,
761           support/cpp2/libiberty/lbasename.c,
762           support/cpp2/libiberty/splay-tree.h,
763           support/cpp2/libiberty/obstack.h:
764           synchronized with GCC CPP release version 3.2.3,
765           the latest before integration of cpp into gcc
766         * support/cpp2/except.h, support/cpp2/line-map.c,
767           support/cpp2/line-map.h,
768           support/cpp2/libiberty/hex.c,
769           support/cpp2/libiberty/concat.c,
770           support/cpp2/libiberty/filenames.h: added
771         * support/cpp2/intl.c: deleted
772
773 2006-11-24 Borut Razem <borut.razem AT siol.net>
774
775         * src/SDCC.y: enabled compilation of empty source file
776         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
777           "ISO C forbids an empty source file"
778         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
779           if all the code is ifdefed out.
780
781 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
782
783         * src/hc08/gen.c (genPcall): fix for bug #1601032
784
785 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
786
787         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
788         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
789         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
790         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
791         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
792         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
793         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
794         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
795         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
796         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
797         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
798         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
799         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
800         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
801         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
802           Renamed to all upper case as per the standard set by SiLabs
803
804 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
805
806         * device/include/mcs51/C8051F520.h: new, added
807         * device/include/mcs51/compiler.h: added link about predefined macros
808
809 2006-11-23 Raphael Neider <rneider AT web.de>
810
811         * src/regression/Makefile: add -L path to fresh library
812         * src/regression/simulate: emphasize FAILED output
813         * src/regression/create_stc: output _failures from gpsim
814         * src/regression/compare4.c,
815         * src/regression/rotate6.c: fixed char literals,
816           all compile, all run =8-D
817
818         * src/pic/pcode.h: added isPCASMDIR macro
819         * src/pic/gen.c (genAnd): fixed bit offset
820         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
821           packBits): unified register numbering schemes,
822           (newReg): do not insert stack registers into hash table,
823           (initStack): unpinned pseudo stack, simplified,
824           (typeRegWithIdx): fixed retrieval of stack registers,
825         * src/pic/pcode.c (addpCodeComment,sameBank): added,
826           (pCodeReplace): removed invalid assertion,
827           (insertPCodeInstruction): fixed newly added labels,
828           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
829           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
830           DumpFlow): removed unsed (broken?) code,
831           (insertBankSel): prevent STATUS from being BANKSELed,
832           (FixRegisterBanking): rewritten from scratch, implemented generic
833             optimizations (suppress BANKSELs to same register and to registers
834             present in all banks),
835           (AnalyzeBanking): update flow after BANKSELection
836
837         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
838             sharebank, let linker place it, mark STKxx symbols as emitted
839
840 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
841
842         * src/regression/arrays.c,
843         * src/regression/bank1.c,
844         * src/regression/bool2.c,
845         * src/regression/compare7.c,
846         * src/regression/compare8.c,
847         * src/regression/compare9.c,
848         * src/regression/compare10.c,
849         * src/regression/configword.c,
850         * src/regression/for.c,
851         * src/regression/mult1.c,
852         * src/regression/pointer1.c,
853         * src/regression/rotate6.c,
854         * src/regression/string1.c,
855         * src/regression/struct1.c,
856         * src/regression/Makefile: make PIC14 regression tests run again
857           (3 fail, 6 won't compile)
858
859 2006-11-21 Raphael Neider <rneider AT web.de>
860
861         * device/include/pic16/pic18f4550.h,
862         * device/include/pic16/pic18f4455.h,
863         * device/lib/pic16/libdev/pic18f4550.c,
864         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
865         * configure.in: removed superfluous closing bracket
866
867 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
868
869         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
870           always positive.
871
872 2006-11-21 Raphael Neider <rneider AT web.de>
873
874         * src/pic/device.{c,h}: added pic14_getPIC()
875         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
876           (genAnd): added PIC code for one case, fixes #1597044
877         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
878           SFRs that are present in all banks (e.g., STATUS)
879
880 2006-11-20 Raphael Neider <rneider AT web.de>
881
882         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
883           INCFSZ/INCFSZW and declared them as changing Z bit,
884           (insertPCodeInstruction): correctly invert the above instructions,
885           fixes #1599333,
886           (DoBankSelect): don't panic on po_immediates
887
888 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
889
890         * as/link/aslink.h,
891         * as/link/mcs51/lkihx.c (newArea),
892         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
893         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
894
895 2006-11-11 Raphael Neider <rneider AT web.de>
896
897         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
898           bitfield symbols, fixes #1579535 (once more...).
899
900 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
901
902         * support/regression/generate-cases.py,
903         * support/regression/fwk/include/testfwk.h,
904         * support/regression/fwk/lib/testfwk.c: used code pointers,
905           (about 50kByte less code generated for mcs51)
906
907 2006-11-06 Borut Razem <borut.razem AT siol.net>
908
909         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
910           debugger/mcs51/configure: fixed failed check because the function
911           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
912           who submitted the patch for gpsim.
913         * debugger/mcs51/configure.in: removed the result message
914         * debugger/mcs51/Makefile.in: fixed the config.status warning
915           "... seems to ignore the --datarootdir setting"
916
917 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
918
919         * device/include/mcs51/c8051f020.h,
920         * device/include/mcs51/c8051f040.h,
921         * device/include/mcs51/c8051f060.h,
922         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
923         * src/z80/gen.c (gencjneshort),
924         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
925
926 2006-10-31 Borut Razem <borut.razem AT siol.net>
927
928         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
929           debugger/mcs51/configure: get readline version
930
931 2006-10-30 Borut Razem <borut.razem AT siol.net>
932
933         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
934         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
935           debugger/mcs51/configure: locate readline even when cross compiling
936         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
937
938 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
939
940         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
941           serial port.
942
943 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
944
945         * device/include/malloc.h,
946         * device/lib/calloc.c,
947         * device/lib/free.c,
948         * device/lib/malloc.c,
949         * device/lib/realloc.c: moved definition of struct into sources
950         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
951
952 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
953
954         * as/asx8051.dsp: corrected output directories
955         * as/link/hc08: new directory for hc08 linker
956         * as/hc08/aslink.h,             as/link/aslink.h,
957         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
958         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
959         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
960         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
961         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
962         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
963         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
964         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
965         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
966         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
967         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
968         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
969         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
970         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
971         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
972         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
973         * as/link/hc08/conf.mk,
974         * configure,
975         * configure.in,
976         * Makefile.in,
977         * sdcc.dsw: moved hc08 linker to as/link/hc08
978         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
979         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
980         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
981         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
982         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
983         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
984         * as/link/mcs51/aslink.dsp,
985         * as/link/mcs51/Makefile.in: factored out the common files
986         * as/hc08/lkstore.c: deleted, use the one already in as/link/
987         * as/clean.mk: extra cleaning common files
988         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
989         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
990         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
991
992 2006-10-29 Raphael Neider <rneider AT web.de>
993
994         * src/pic/ralloc.c (newReg): create aliases for registers with
995           multiple names to fix #1579535 and #1584001,
996           (regWithIdx,dirregWithName): resolve aliases on lookup
997         * src/pic/pcode.c (DoBankSelect): die with error message on failing
998           bankselect
999         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1000           to prevent build errors on small devices
1001
1002 2006-10-28 Raphael Neider <rneider AT web.de>
1003
1004         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1005           assumption within interrupt handlers, fixes #1584940
1006         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1007           "emitted" to avoid emitting them again in udata
1008
1009 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1010
1011         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1012         Removed.
1013
1014 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1015
1016         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1017         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1018         on/off CR to CRLF conversion.
1019
1020 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1021
1022         * doc/sdccman.lyx: updated IRQ section
1023
1024 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1025
1026         * device/lib/serial_io.c: removed
1027         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1028         replacements for serial_io.c
1029
1030 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1031
1032         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1033
1034 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1035
1036         * device/lib/serial_io.c: Default putchar() and getchar() for
1037           mcs51 uses serial port.
1038
1039 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1040
1041         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1042
1043 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1044
1045         * support/regression/ports/mcs51/support.c: smaller
1046         _sdcc_external_startup()
1047         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1048
1049 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1050
1051         * device/lib/gbz80/crt0.s,
1052         * device/lib/gbz80/crt0_rle.s,
1053         * device/lib/gbz80/div.s,
1054         * device/lib/gbz80/fstubs.s,
1055         * device/lib/gbz80/heap.s,
1056         * device/lib/gbz80/mul.s,
1057         * device/lib/gbz80/putchar.s,
1058         * device/lib/gbz80/stubs.s,
1059         * device/lib/z80/crt0.s,
1060         * device/lib/z80/crt0_rle.s,
1061         * device/lib/z80/div.s,
1062         * device/lib/z80/fstubs.s,
1063         * device/lib/z80/heap.s,
1064         * device/lib/z80/mul.s,
1065         * device/lib/z80/putchar.s,
1066         * device/lib/z80/stubs.s: reverted, I was mistaken
1067
1068 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1069
1070         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1071         * support/regression/ports/mcs51/support.c: removed race
1072         condition on TI in _putchar allowing to use serial port mode 0
1073
1074 2006-10-20 Borut Razem <borut.razem AT siol.net>
1075
1076         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
1077
1078 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1079
1080         * device/lib/gbz80/crt0.s,
1081         * device/lib/gbz80/crt0_rle.s,
1082         * device/lib/gbz80/div.s,
1083         * device/lib/gbz80/fstubs.s,
1084         * device/lib/gbz80/heap.s,
1085         * device/lib/gbz80/mul.s,
1086         * device/lib/gbz80/putchar.s,
1087         * device/lib/gbz80/stubs.s,
1088         * device/lib/z80/crt0.s,
1089         * device/lib/z80/crt0_rle.s,
1090         * device/lib/z80/div.s,
1091         * device/lib/z80/fstubs.s,
1092         * device/lib/z80/heap.s,
1093         * device/lib/z80/mul.s,
1094         * device/lib/z80/putchar.s,
1095         * device/lib/z80/stubs.s: removed all leading underscores from area names
1096
1097 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
1098
1099         * support/regression/ports/mcs51/support.c: use highest baudrate so the
1100           regression tests are not waiting in the simulator for simulated
1101           transmission of debug output
1102
1103 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1104
1105         * device/lib/printf_large.c: slightly smaller
1106         * doc/sdccman.lyx: do not use spaces within html links
1107
1108 2006-10-16 Borut Razem <borut.razem AT siol.net>
1109
1110         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
1111           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
1112           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
1113           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
1114           debugger/mcs51/configure:
1115           [ 1185668 ] add gnu readline support to sdcdb - enabled
1116
1117 2006-10-16 Raphael Neider <rneider AT web.de>
1118
1119         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
1120           fixes #1577882, removes close to all banking optimizations
1121
1122 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
1123
1124         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
1125           variables in code memory
1126         * support/regression/tests/absolute.c: added test for this
1127
1128 2006-10-15 Raphael Neider <rneider AT web.de>
1129
1130         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
1131           devices,
1132           (BankSelect): emit BANKSEL before touching linker-placed regs,
1133           fixes #1570934
1134
1135 2006-10-10 Raphael Neider <rneider AT web.de>
1136
1137         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
1138         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
1139         * src/pic/main.c (_pic14_parseOptions),
1140         * src/pic/main.h: mostly reverted to previous state, now use results
1141             from SDCCmain.c's argument parsing
1142
1143 2006-10-10 Borut Razem <borut.razem AT siol.net>
1144
1145         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
1146           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
1147           [ 1185668 ] add gnu readline support to sdcdb -
1148           prepared for READLINE, not enabled yet,
1149           thanks to <tal.bav AT gmail.com>
1150
1151 2006-10-10 Raphael Neider <rneider AT web.de>
1152
1153         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
1154         * src/pic16/devices.inc,
1155         * device/include/pic16 (pic18f[24]620.h),
1156         * device/include/pic18fregs.h,
1157         * device/lib/pic16/pics.all,
1158         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
1159             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
1160             Gary Plumbridge and Anton Strobl
1161
1162 2006-10-10 Raphael Neider <rneider AT web.de>
1163
1164         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
1165           --stack-siz=NUM options to configure the argument passing stack
1166         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
1167         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
1168           (pic14_getSharebankSize): obey --stack-siz=NUM,
1169           (pic14_getSharebankAddress): obey --stack-loc=NUM
1170
1171 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1172
1173         * doc/sdccman.lyx: added to the manual
1174         * doc/figures/ddd_example.png: added (neither pdflatex nor
1175         most browsers seem to like the .eps file)
1176
1177 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1178
1179         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
1180         to /tmp and /var/tmp acc. LSB
1181         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
1182         RESULT_TYPE_IFX
1183         * support/regression/tests/onebyte.c: added test
1184
1185 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1186
1187         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
1188
1189 2006-10-05 Borut Razem <borut.razem AT siol.net>
1190
1191         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
1192           thanks to dfulab:
1193           - sdcc.dsw: changed property eol-style to CRLF
1194           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
1195
1196 2006-10-04 Raphael Neider <rneider AT web.de>
1197
1198         * device/include/pic/{pic16f84.h,pic16f84a.h},
1199         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
1200           from patch #1522504, thanks to Robas Teodor
1201
1202 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
1203
1204         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
1205           fixes bug 1566015
1206
1207 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
1208
1209         * src/pic16/glue.c (pic16emitMaps),
1210         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
1211         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
1212         * device/lib/pic16/libc/string/memcpypgm2ram.c,
1213         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
1214           Philipp Krause
1215         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
1216         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
1217
1218 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1219
1220         * support/librarian/sdcclib.c: Added option -l.
1221         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
1222           usage totals.
1223         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
1224           using Windows command prompt.
1225
1226 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1227
1228         * device/lib/libsdcc.lib: added module rand
1229         * src/ds390/ralloc.c (rematStr),
1230         * src/hc08/ralloc.c (rematStr),
1231         * src/mcs51/ralloc.c (rematStr),
1232         * src/z80/ralloc.c (rematStr): made output more consistent
1233         * src/mcs51/gen.c: cosmetic changes
1234
1235 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1236
1237         * src/port.h: added mem.cabs_name to PORT
1238         * src/ds390/main.c,
1239         * src/hc08/main.c,
1240         * src/mcs51/main.c,
1241         * src/pic16/main.c,
1242         * src/pic/main.c,
1243         * src/xa51/main.c,
1244         * src/z80/main.c: added cabs_name initializers
1245         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
1246           constants
1247           (emitMaps): emit absolutes in code memory into cabs_name
1248         * src/SDCCmem.c,
1249         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
1250         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
1251         * support/regression/fwk/include/testfwk.h: added define for at
1252         * support/regression/tests/absolute.c: added, new
1253
1254 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
1255
1256         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
1257           optimizations, see also patch 887161 by Stas Sergeev
1258         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
1259           to be necessary anymore,
1260           (102, 103, 104, 127): renamed all occurances of bp to _bp
1261
1262 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
1263
1264         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
1265           thanks Weston T. Schmidt for patch 1555221
1266         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
1267         * src/SDCCicode.c(geniCodeMultiply): small optimization
1268
1269 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1270
1271         * device/include/stdlib.h: added rand prototypes
1272         * device/lib/rand.c: new, added
1273         * device/lib/Makefile.in: added rand.c
1274         * src/z80/peeph.def,
1275         * src/z80/peeph-gbz80.def,
1276         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
1277
1278 2006-09-20 Raphael Neider <rneider AT web.de>
1279
1280         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
1281
1282 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * as/link/aslink.h: cosmetic changes
1285         * as/link/mcs51/Makefile.in,
1286         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
1287
1288 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
1289
1290         * as/link/aslink.h,
1291         * as/link/mcs51/aslink.h,
1292         * as/link/z80/aslink.h: merged and moved to as/link/
1293         * as/link/lkstore.c,
1294         * as/link/mcs51/lkstore.c: moved to as/link/
1295         * as/link/clean.mk: remove *.o
1296         * as/link/mcs51/alloc.h: deleted
1297         * as/link/mcs51/lkarea.c: added lnksect prototype
1298         * as/link/mcs51/lkdata.c,
1299         * as/link/mcs51/lklex.c,
1300         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
1301         * as/link/mcs51/lkmem.c,
1302         * as/link/mcs51/lknoice.c: removed include strcmpi.h
1303         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
1304         * as/link/mcs51/aslink.dsp,
1305         * as/link/mcs51/Makefile.aslink,
1306         * as/link/mcs51/Makefile.bcc,
1307         * as/link/mcs51/Makefile.in: updated for moved files
1308         * as/link/z80/lkarea.c,
1309         * as/link/z80/lkhead.c,
1310         * as/link/z80/lklex.c,
1311         * as/link/z80/lklibr.c,
1312         * as/link/z80/lklist.c,
1313         * as/link/z80/lkmain.c,
1314         * as/link/z80/lkrloc.c,
1315         * as/link/z80/lksym.c: synced with mcs51
1316         * as/link/z80/lkdata.c,
1317         * as/link/z80/lkeval.c,
1318         * as/link/z80/lkihx.c,
1319         * as/link/z80/lks19.c: cosmetic changes
1320         * as/link/z80/Makefile.in,
1321         * as/link/z80/linkgbz80.dsp,
1322         * as/link/z80/linkz80.dsp: updated for moved files
1323
1324 2006-09-16 Borut Razem <borut.razem AT siol.net>
1325
1326         * debugger/mcs51/sdcdb.c: partially fixed
1327           [ 1203664 ] sdcdb fails to open files w. two "." periods
1328         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
1329           debugger/mcs51/symtab.h: fixed indenting
1330         * configure.in, configure: up to date with latest Maarten's changes
1331
1332 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         as/link/mcs51
1335         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
1336         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
1337         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
1338         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
1339         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
1340         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
1341         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
1342         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
1343         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
1344         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
1345         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
1346         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
1347         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
1348         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
1349         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
1350         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
1351         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
1352         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
1353         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
1354         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
1355         as/link/mcs51/alloc.h,
1356         as/link/mcs51/clean.mk,
1357         as/link/mcs51/conf.mk,
1358         as/link/mcs51/Makefile.bcc,
1359         as/link/mcs51/Makefile.in,
1360         as/link/mcs51/readme.390,
1361         as/link/mcs51/strcmpi.c,
1362         as/link/mcs51/strcmpi.h,
1363         as/mcs51/clean.mk,
1364         as/mcs51/Makefile.bcc,
1365         as/mcs51/Makefile.in,
1366         configure,
1367         Makefile.in,
1368         sdcc.dsw: moved mcs51 linker to as/link/mcs51
1369
1370 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
1371
1372         * as/link,
1373         * as/link/Makefile.in,
1374         * as/link/z80/linkgbz80.dsp,
1375         * as/link/z80/linkz80.dsp,
1376         * configure,
1377         * link,
1378         * link/clean.mk,
1379         * link/Makefile.in,
1380         * link/README,
1381         * link/z80,
1382         * link/z80/aslink.h,
1383         * link/z80/clean.mk,
1384         * link/z80/conf.mk,
1385         * link/z80/linkgbz80.dsp,
1386         * link/z80/linkz80.dsp,
1387         * link/z80/lkarea.c,
1388         * link/z80/lkdata.c,
1389         * link/z80/lkeval.c,
1390         * link/z80/lkgb.c,
1391         * link/z80/lkgg.c,
1392         * link/z80/lkhead.c,
1393         * link/z80/lkihx.c,
1394         * link/z80/lklex.c,
1395         * link/z80/lklibr.c,
1396         * link/z80/lklist.c,
1397         * link/z80/lkmain.c,
1398         * link/z80/lkrloc.c,
1399         * link/z80/lks19.c,
1400         * link/z80/lksym.c,
1401         * link/z80/Makefile.in,
1402         * Makefile.in,
1403         * sdcc.dsw: moved link/ to as/link/
1404
1405 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
1406
1407         * as/mcs51/i51mch.c (machine): fixed warning
1408
1409 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1410
1411         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
1412
1413 2006-09-09 Borut Razem <borut.razem AT siol.net>
1414
1415         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
1416           sdcdb WIN32 native port
1417         * src/clean.mk: fixed
1418
1419 2006-09-08 Borut Razem <borut.razem AT siol.net>
1420
1421         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
1422
1423 2006-09-08 Raphael Neider <rneider AT web.de>
1424
1425         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
1426         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
1427             to gplink to disable processor mismatch warning and to allow
1428             the use of devices with only aliased (shared) memory banks,
1429           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
1430
1431 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1432
1433         * doc/sdccman.lyx: Some re-formating plus example on using
1434           #pragma preproc_asm +/-
1435
1436 2006-09-07 Borut Razem <borut.razem AT siol.net>
1437
1438         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
1439           section
1440
1441 2006-09-06 Borut Razem <borut.razem AT siol.net>
1442
1443         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
1444           line at sdcc.nsi:153
1445         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
1446
1447 2006-09-05 Borut Razem <borut.razem AT siol.net>
1448
1449         * configure.in, configure: support for winsock2
1450         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
1451           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
1452           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
1453           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
1454           debugger/mcs51/symtab.h: sdcdb WIN32 native port
1455
1456 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1457
1458         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
1459           and OP_DEFS
1460         * support/regression/tests/bug1551947.c: new, added
1461         * src/SDCCsymt.h: strings are char* not byte*
1462
1463 2006-09-05 Raphael Neider <rneider AT web.de>
1464
1465         * device/lib/pic16/libdev/pic18f4550.c,
1466           device/include/pic16/pic18f4550.h: added PORTD/TRISD
1467             declarations/definitions from patch #1520949
1468
1469 2006-09-05 Raphael Neider <rneider AT web.de>
1470
1471         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
1472           byte-aligned bitfields, fixes #1539278
1473
1474 2006-09-05 Raphael Neider <rneider AT web.de>
1475
1476         * src/pic/gen.c (genReceive): skip unreferenced arguments,
1477           fixes #1544120
1478
1479 2006-09-04 Borut Razem <borut.razem AT siol.net>
1480
1481         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
1482         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
1483           -mno-cygwin is a part of the compiler name
1484         * support/scripts/sdcc_mingw32: don't disable ucsim
1485
1486 2006-09-03 Borut Razem <borut.razem AT siol.net>
1487
1488         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
1489         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
1490
1491 2006-09-03 Raphael Neider <rneider AT web.de>
1492
1493         * src/pic/ralloc.c,
1494         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
1495           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
1496           fixes #1550049
1497
1498 2006-09-01 Borut Razem <borut.razem AT siol.net>
1499
1500         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
1501           to make ppc-osx happy
1502
1503 2006-08-31 Borut Razem <borut.razem AT siol.net>
1504
1505         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
1506         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
1507         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
1508         * support/regression/ports/ds390/spec.mk,
1509           support/regression/ports/mcs51/spec.mk,
1510           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
1511           To run regression tests in mingw environment:
1512           make DEV_NULL=NUL CC=gcc
1513
1514 2006-08-30 Borut Razem <borut.razem AT siol.net>
1515
1516         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
1517           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
1518           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
1519           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
1520           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
1521           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
1522           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
1523           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
1524           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
1525           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
1526           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
1527           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
1528           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1529           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
1530           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
1531           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
1532           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
1533           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
1534           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1535           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
1536           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
1537           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
1538           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
1539           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
1540           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
1541           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
1542           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
1543           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
1544           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
1545           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
1546           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
1547           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
1548           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
1549           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
1550           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
1551           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
1552           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1553           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1554           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
1555           ucsim WIN32 native port
1556
1557 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1558
1559         * doc/sdccman.lyx: added note on dynamic memory heap initialization
1560
1561 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1562
1563         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1564         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
1565
1566 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
1567
1568         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1569         * support/regression/tests/bug1546986.c: new, added
1570         * as/mcs51/.cvsignore,
1571         * debugger/mcs51/.cvsignore,
1572         * src/.cvsignore: deleted
1573
1574 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1575
1576         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
1577           definitions)
1578
1579 2006-08-20 Borut Razem <borut.razem AT siol.net>
1580
1581         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
1582           removed cl_listen_console::match(), cl_console::match(),
1583           restructured cl_commander::proc_input()
1584
1585 2006-08-16 Borut Razem <borut.razem AT siol.net>
1586
1587         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
1588           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1589           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
1590
1591 2006-08-14 Borut Razem <borut.razem AT siol.net>
1592
1593         * support/regression/Makefile.in,
1594           support/regression/ports/pic14/gpsim.cmd,
1595           support/regression/ports/pic14/spec.mk,
1596           support/regression/ports/pic14/support.c:
1597           added pic14 regression test
1598
1599 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
1600
1601         * as/doc/asxhtm.html: documented changed ABS behaviour
1602         * as/doc/README: fixed some typos
1603
1604 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
1605
1606         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
1607           not defined on host
1608
1609 2006-08-12 Borut Razem <borut.razem AT siol.net>
1610
1611         * support/regression/fwk/include/testfwk.h,
1612           support/regression/fwk/lib/testfwk.c,
1613           support/regression/generate-cases.py,
1614           support/regression/Makefile.in:
1615           regression test framework does not depend on function pointers and
1616           variable arguments
1617
1618 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1619
1620         * device/include/stddef.h: c temporary hack to fix bug 1518273
1621
1622 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1623
1624         * device/include/mcs51/cc2510fx.h: added
1625         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
1626           to projects.
1627
1628 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1629
1630         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
1631         * as/z80/Makefile.in: added strcmpi.c
1632         * as/z80/z80adr.c: added upper case registers and lower case conditionals
1633         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
1634
1635 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
1636
1637         * device/lib/gbz80/asm_strings.s,
1638         * device/lib/gbz80/crt0_rle.s,
1639         * device/lib/gbz80/div.s,
1640         * device/lib/gbz80/mul.s,
1641         * device/lib/gbz80/shift.s,
1642         * device/lib/z80/asm_strings.s,
1643         * device/lib/z80/crt0_rle.s,
1644         * device/lib/z80/div.s,
1645         * device/lib/z80/mul.s,
1646         * device/lib/z80/shift.s: changed to all lower case menmonics except the
1647           flags which are all upper case
1648
1649 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1650
1651         * as/z80/asm.h: made CASE_SENSITIVE 1
1652         * link/z80/aslink.h: made CASE_SENSITIVE 1
1653         * src/z80/gen.c (throughout): made all conditionals upper case
1654         * support/regression/tests/bug1503067.c: new
1655
1656 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1657
1658         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
1659           (shiftIntoPair): added case 2 for PAIR_IY,
1660           (setupToPreserveCarry): replaced parameters with iCode and check if
1661            PAIR_DE is in use to fix bug 1399290,
1662           (genPlus, genMinus): updated call to setupToPreserveCarry
1663         * support/regression/tests/bug1399290.c: new
1664
1665 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
1666
1667         * device/lib/Makefile.in (Z80SOURCES): enabled float support
1668         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
1669         * src/ds390/gen.c (shiftRLong),
1670         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
1671         * src/mcs51/gen.c (sameReg): changed to sameByte,
1672           (xch_a_aopGet): new,
1673           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
1674            shiftRLong): fixed bug 1533966
1675         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
1676           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
1677         * support/regression/Makefile.in: disabled z80, enabled ucz80
1678         * support/regression/tests/float_trans.c: enabled test for z80 and host
1679         * support/regression/tests/shifts2.c: new, for testing bug 1533966
1680
1681 2006-08-01 Borut Razem <borut.razem AT siol.net>
1682
1683         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
1684           comparison is always false due to limited range of data type
1685           on PPC64 machine (openpower-linux1) where "char = unsigned char"
1686
1687 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
1688
1689         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
1690         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
1691         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
1692         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
1693
1694 2006-07-31 Borut Razem <borut.razem AT siol.net>
1695
1696         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
1697           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
1698           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
1699           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
1700           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
1701           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
1702           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
1703           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
1704           enable ucsim mingw compilation. Serial port is disabled,
1705           since it uses termios.h API, which is not available on native
1706           WIN32
1707
1708 2006-07-31 Borut Razem <borut.razem AT siol.net>
1709
1710         * Small Device C Compiler 2.6.0 released
1711         * support/scripts/sdcc.nsi: added FULL_DOC option
1712         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
1713
1714 2006-07-28 Borut Razem <borut.razem AT siol.net>
1715
1716         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
1717         * doc/INSTALL.txt: updated
1718
1719 2006-07-27 Borut Razem <borut.razem AT siol.net>
1720
1721         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
1722           device/lib/pic/libdev/Makefile.in: fixed bug
1723           [ 1438354 ] pic libsdcc: distclean doesn't work
1724         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
1725           device/lib/pic16/libio/Makefile.in: fixed bug
1726           [ 1438344 ] pic16 lib: clean doesn't work properly
1727         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
1728
1729 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
1730
1731         * device/lib/pic/libsdcc/fsdiv.c,
1732         * device/lib/pic/libsdcc/fsmul.c,
1733         * device/lib/pic16/libsdcc/float/fsdiv.c,
1734         * device/lib/pic16/libsdcc/float/fsmul.c,
1735         * device/lib/_fsdiv.c,
1736         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
1737         * support/regression/tests/bug1520966.c: added
1738         * doc/knownbugs.html: removed [ 1520966 ] from the list
1739
1740 2006-07-25 Borut Razem <borut.razem AT siol.net>
1741
1742         * configure.in, configure, sdccconf_in.h: fixed bug
1743           [ 1519095 ] regression test onebyte.c fails on ppc64 host
1744         * doc/knownbugs.html: removed [ 1519095 ] from the list
1745
1746 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
1747
1748         * doc/knownbugs.html: added, contains list of known bugs at release
1749         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
1750
1751 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * device/include/mcs51/compiler.h: added SFRX for xdata based special
1754           function registers and corrected defaults with additional warning
1755         * device/lib/malloc.c: cosmetic changes
1756         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
1757         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
1758           (fillGaps): and used it
1759
1760 2006-07-20 Raphael Neider <rneider AT web.de>
1761
1762         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
1763           output unless SDCCPICDEBUG is set
1764         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
1765           output if SILENT is set
1766
1767 2006-07-11 Borut Razem <borut.razem AT siol.net>
1768
1769         * doc/README.txt: updated
1770
1771 2006-07-10 Borut Razem <borut.razem AT siol.net>
1772
1773         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
1774           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
1775           in WIN32 installation
1776         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
1777           release candidate 1
1778
1779 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
1780
1781         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
1782         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
1783
1784 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
1785
1786         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
1787
1788 2006-07-06 Borut Razem <borut.razem AT siol.net>
1789
1790         * support/regression/tests/bitfields.c:
1791           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
1792         * support/regression/tests/constantRange.c:
1793           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
1794
1795 2006-07-04 Borut Razem <borut.razem AT siol.net>
1796
1797         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
1798           src/port.mk,
1799           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1800           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1801           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1802           reverted changes from 2006-07-03
1803         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
1804         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
1805           added CPPFLAGS, used by the host port
1806
1807 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
1808
1809         * support/regression/valdiag/tests/switch.c,
1810         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
1811         * support/regression/tests/libmullong.c: fixed for host
1812         * support/regression/ports/host/spec.mk: disable all warnings for host,
1813         SDCC runs with --less-pedantic too
1814
1815 2006-07-03 Borut Razem <borut.razem AT siol.net>
1816
1817         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
1818           defined CPPFLAGS
1819         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
1820         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1821           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1822           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1823           include ../port.mk
1824         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
1825           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1826           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1827           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
1828
1829 2006-07-02 Raphael Neider <rneider AT web.de>
1830
1831         * src/pic16/devices.inc,
1832         * device/include/pic16/pic18fregs.h,
1833         * device/include/pic16/pic18f4550.h,
1834         * device/lib/pic16/pics.all,
1835         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
1836
1837 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
1838
1839         * as/hc08/lkaomf51.c (OutputName),
1840         * as/mcs51/lkaomf51.c (OutputName),
1841         * as/z80/asmain.c (asmbl),
1842         * src/ds390/main.c (asmLineNodeFromLineNode),
1843         * src/hc08/ralloc.c (hc08_assignRegisters),
1844         * src/mcs51/main.c (asmLineNodeFromLineNode),
1845         * src/xa51/ralloc.c (checkRegMask),
1846         * src/xa51/gen.c (emitcode),
1847         * src/z80/gen.c (_emit2),
1848         * src/SDCCast.c (searchLitOp),
1849         * src/SDCCglobl.h,
1850         * support/packihx/packihx.c,
1851         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
1852         * src/ds390/gen.c (aopPutUsesAcc),
1853         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
1854         * support/regression/tests/libmullong.c (mullong_wrapper),
1855         * src/SDCCsymt.c (powof2),
1856         * src/SDCCast.c,
1857         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
1858         * src/SDCCsymt.h: added TYPE_TARGET_*
1859         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
1860         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
1861         SDCCast because 1) header problems 2) this is the right place
1862         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
1863         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
1864         prototype
1865
1866 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
1867
1868         * src/SDCCicode.h: removed buggy semicolon in unused macro
1869         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
1870         search for previous definiton of auto symbols too,
1871         (findPrevUse): fixed logic of emitWarnings
1872
1873 2006-06-26 Raphael Neider <rneider AT web.de>
1874
1875         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
1876           PCLATH and PCLATU on interrupts, potentially fixes #1505141
1877
1878 2006-06-25 Raphael Neider <rneider AT web.de>
1879
1880         * device/lib/pic/libm: NEW, added math library functions
1881         * device/lib/pic/libsdcc: NEW; added float support functions
1882         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
1883         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
1884           NEW, added math related headers
1885         * device/include/asm/pic/features.h: NEW
1886         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
1887           (popGet): allow larger offsets for AOP_PCODE,
1888           (genDataPointerSet): handle literals explicitly, more debug output,
1889           (genAssign): fixed for float using aopLiteral ;-)
1890         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
1891           GOTO initialisation routine
1892         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
1893           flag on registers, fixes #1469043 (local variables do not work)
1894         * src/pic/main.c (_pic14_do_link),
1895         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
1896           available
1897
1898 2006-06-25 Borut Razem <borut.razem AT siol.net>
1899
1900         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
1901           characters printed (not including the trailing '\0' used to end
1902           output to strings). Problem detected in regression test bug-927659.c.
1903           NOTE: printf() family functions should return int instead
1904           unsigned int!
1905         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
1906           specifier are printed as themselves
1907         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
1908           support flags, width and precision specifiers
1909
1910 2006-06-24 Borut Razem <borut.razem AT siol.net>
1911
1912         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
1913           to the list of sdcc tagrets not supporting bit type
1914         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
1915           testfor pic16 due to bug:
1916           [ 1511794 ] pic16: regression test bug-895992.c fails
1917
1918 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
1919
1920         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
1921         * src/SDCCglue.c (initPointer), fixed bug 1496419
1922         * support/regression/tests/bug1496419.c: new, added
1923
1924 2006-06-22 Borut Razem <borut.razem AT siol.net>
1925
1926         * support/regression/ports/pic16/support.c: use gpsim usart module from
1927           libgpsim_modules library
1928
1929 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1930
1931         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
1932         IP0H to IPH0.
1933
1934 2006-06-19 Raphael Neider <rneider AT web.de>
1935
1936         * src/pic/glue.h,src/pic16/glue.h: added prototypes
1937         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
1938           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
1939           (pic14printExterns,pic14printPublics,pic16printPublics,
1940           pic16_printExterns): use new functions to emit symbols
1941           (picglue,pic16glue): emit publics before emitting externs
1942         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
1943           locally defined functions to avoid bug #1443651
1944         * support/regression/tests/bug-716242.c: removed pic16 workaround
1945         * support/regression/ports/pic16/spec.mk: ignore errors during build
1946
1947 2006-06-19 Raphael Neider <rneider AT web.de>
1948
1949         * src/pic/glue.h: added pic14aopLiteral prototype
1950         * src/pic/glue.c (pic14aopLiteral): return unsigned int
1951         * src/pic/gen.c: removed stdint.h dependency
1952           (aopGet): use Safe_strdup()
1953           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
1954           (genDataPointerSet): use pic14aopLiteral()
1955         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
1956           for pic16; thanks to Bernhard and Maarten
1957
1958 2006-06-18 Borut Razem <borut.razem AT siol.net>
1959
1960         * support/regression/tests/structflexarray.c: flexible array members
1961           not supported by gcc < 3
1962         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
1963           GUI tool by default
1964         * src/pic/gen.c: don't include [p]strdin.h on solaris
1965         * support/Util/pstdint.h: addad svn attributes
1966         * support/regression/tests/constantRange.c,
1967           support/regression/tests/rotate.c: include inttypes.h instead
1968           stdint.h on solaris, addad svn attributes
1969
1970 2006-06-18 Raphael Neider <rneider AT web.de>
1971
1972         * src/SDCCsymt.c (initCSupport): change return type of divschar to
1973           int for PIC16
1974         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
1975           (pic16_genMinusBits): simplified sign-extension
1976           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
1977             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
1978             adjusted to correctly handle mixed-signed operands, disabled
1979             now unused multiplciation routines
1980         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
1981           (assignResultValue): added argument denoting the size of the result
1982             as returned by the function (fixes upcasts in assigning from
1983             function calls: char foo(); int i = foo();)
1984           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
1985             function result to assignResultValue
1986           (genMult): disabled inlined multiplication code
1987           (genDiv): augmented to also handle the modulus operator, fixed to
1988             handle mixed-signed operands correctly
1989           (genMod): simply call genDiv, disabled unused code
1990           (genAssign): fixed missing (sign-)extension on result
1991         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
1992             valid char operands, allow signed operands for native code, added
1993             division and modulo operator handling
1994         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
1995
1996         As a consequence, onebyte.c (if split into two files) and muldiv.c
1997         pass regression tests.
1998
1999 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2000
2001         * doc/Makefile.in: two runs of makeindex seem needed to get
2002         correct page references in the index of sdccman.pdf
2003         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2004
2005 2006-06-17 Borut Razem <borut.razem AT siol.net>
2006
2007         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2008
2009 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2010
2011         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2012         mentioned ec2drv and paulmon
2013
2014 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2015
2016         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2017           consecutive abs areas
2018           (find_empty_space, allocate_space): added map to handle codemap or
2019            xdatamap,
2020           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2021            absolute idata and xdata
2022         * as/mcs51/lkmem.c (summary2): updated legend
2023
2024 2006-06-16 Raphael Neider <rneider AT web.de>
2025
2026         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2027
2028 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2029
2030         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2031           1208515
2032         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2033
2034 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2035
2036         * src/port.h (struct PORT): added field gp_tags, to hold the tag
2037         value of generic pointers,
2038         * src/avr/main.c,
2039           src/ds390/main.c,
2040           src/hc08/main.c,
2041           src/izt/i186.c,
2042           src/izt/tlcs900h.c,
2043           src/mcs51/main.c,
2044           src/pic/main.c,
2045           src/pic16/main.c,
2046           src/xa51/main.c,
2047           src/z80/main.c: PORT structure, added elements for gp_tags field,
2048         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2049         fields in the PORT structure of each port,
2050         * src/SDCCast.c (decorateType): allow processing of generic pointers
2051         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2052         S_FIXED symbols
2053
2054 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2055
2056         * link/z80/lkgb.c,
2057         * link/z80/lkgg.c,
2058         * src/pic16/gen.c,
2059         * src/pic16/main.c,
2060         * src/pic16/pcode.c,
2061         * src/pic/main.c,
2062         * src/pic/pcoderegs.c,
2063         * src/SDCCicode.c,
2064         * src/SDCCmain.c,
2065         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2066           bug 1504689 on minGW
2067
2068 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2069
2070         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2071
2072 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2073
2074         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
2075
2076 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2077
2078         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
2079           for optimization
2080
2081 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
2082
2083         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
2084         to a char variable. Fixed bug #1504211
2085         * device/include/pic16/adc.h,
2086         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
2087         and fixed bug #1364390
2088
2089 2006-06-10 Borut Razem <borut.razem AT siol.net>
2090
2091         * CVSROOT: removed the CVS left-over
2092
2093 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2094
2095         * as/hc08/asmain.c (asexit),
2096         * as/hc08/lkmain.c (lkexit),
2097         * as/mcs51/asmain.c (asexit),
2098         * as/mcs51/lkmain.c (lkexit),
2099         * src/SDCCglue.c (DEFSETFUNC),
2100         * src/SDCCmain.c (linkEdit, assemble),
2101         * support/librarian/sdcclib.c (AddRel),
2102           replaced unlink() by standard C remove()
2103         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
2104         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
2105           gatherImplicitVariables): new, added to fix bug 608752,
2106           (createFunction): added gatherImplicitVariables()
2107         * src/SDCCast.h: added createRMW prototype
2108         * src/SDCCsymt.h (struct symbol): added infertype
2109         * support/regression/tests/bug608752.c: new, added
2110
2111 2006-06-10 Raphael Neider <rneider AT web.de>
2112
2113         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
2114           multibyte dummy reads (fixes #1503234)
2115
2116 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2117
2118         * device/include/mcs51/compiler.h: new, added header file to enable
2119           creating common sfr definition header files for different compilers
2120
2121 2006-06-05 Raphael Neider <rneider AT web.de>
2122
2123         * src/pic16/{pcode.h,genarith.c}:
2124           introduced pCodeOp combining any two pCodeOps (previously only
2125           two register operands could be combined), removed pcop2 from
2126           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
2127         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
2128         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
2129           rewritten to use new PO_TWO_OPS
2130         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
2131         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
2132           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
2133           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
2134           (pic16_get_op): embraced return arg to allow #define return(x),
2135             added new case for combined opcodes
2136           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
2137           (pic16_pCode2str,pic16_getRegFrompCodeOp,
2138            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
2139
2140 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2141
2142         * src/SDCCval.c (checkConstantRange): added
2143         * src/SDCCval.h: added checkConstantRange
2144         * support/Util/SDCCerr.c,
2145         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
2146         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
2147         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
2148         * src/SDCCast.c (decorateType): added checkConstantRange,
2149         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
2150         can be emitted with the correct always true/false warning,
2151         added optimization for double '!';
2152         result of decorateType() must be assigned back to the tree, because
2153         decorateType() can change the tree
2154         * src/SDCCicode.c (geniCodeLogic),
2155         (geniCodeAssign): replaced new checkConstantRange, added warnings,
2156         (checkConstantRange): removed, it was only a fragment which never
2157         emitted a warning
2158         * src/SDCCsymt.c (computeType): fixed promotion for
2159         "-1 < (unsigned bit) b"
2160         * src/pic/ralloc.c (packRegsForAssign),
2161         * src/pic16/ralloc.c (packRegsForAssign),
2162         * src/hc08/ralloc.c (packRegsForAssign),
2163         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
2164         from mcs51
2165         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
2166         * support/regression/tests/constantRange.c: added
2167         * support/valdiag/tests/constantRange.c: added
2168         * support/valdiag/valdiag.py: added -DPORT_HOST=1
2169
2170 2006-06-02 Borut Razem <borut.razem AT siol.net>
2171
2172         * support/regression/ports/pic16/support.c: increase stack size
2173           to 255 bytes
2174         * support/regression/Makefile.in: sort tests by name so that the
2175           resutlts can be compared on different machines / platforms
2176
2177 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2178
2179         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
2180         * src/ds390/gen.c (emitLabel): new, added,
2181           (genDjnz): fixed stack overflow bug,
2182           (throughout): cosmetic changes to sync with mcs51/gen.c,
2183           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
2184         * src/mcs51/gen.c (genEndFunction): small optimization,
2185           (throughout): cosmetic changes to sync with ds390/gen.c
2186
2187 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2188
2189         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
2190           (_print_format): fixed printing pointers
2191         * src/mcs51/gen.c (emitLabel, movb): new, added,
2192           (genAssign): small optimization,
2193           (genDjnz): fixed stack overflow bug,
2194           (throughout): replaced sprintf with SNPRINTF,
2195           replaced mcs51_regWithIdx with REG_WITH_INDEX,
2196           replaced emitcode("mov", "b,...") with MOVB(...),
2197           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
2198           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2199         * src/mcs51/peeph.def: added rules 140 and 264
2200         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
2201           so they may get optimized into registers
2202
2203 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
2204
2205         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
2206           immediately when encountered,
2207           (printUsage): always use stderr even on windows
2208
2209 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
2210
2211         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
2212         (processParms): fixed bug #1247551
2213         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
2214         parseCmdLine, main): print '--version' to stdout,
2215         print 'help' to stdout if --help is given,
2216         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
2217         arguments are given; fixed --help
2218
2219 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
2220
2221         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
2222         * support/regression/tests/bug-1493710.c: added
2223
2224 2006-05-27 Borut Razem <borut.razem AT siol.net>
2225
2226         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
2227           static instead auto
2228         * support/regression/ports/pic16/support.c: increase stack size
2229           from default 64 bytes to 128 bytes
2230         * support/regression/tests/staticinit.c,
2231           support/regression/tests/float.c: regression tests fully enabled
2232           for pic16 port by putting the initialized data arrays into the code
2233           section
2234         * support/regression/ports/pic16/spec.mk: don't link default libraries.
2235           This was changed by mistake in the previous version.
2236
2237 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
2238
2239         * src/pic16/gen.c (genFunction, genEndFunction): some
2240         beautifications, fixed bug with falsely restoring FSR2 in large
2241         stack model, thanks to Beau E. Cox for reporting the bug
2242
2243 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2244
2245         * debugger/mcs51/break.c,
2246         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
2247           use %p to print pointers, made address variables unsigned
2248         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
2249         * debugger/mcs51/symtab.c (parseSymbol): must return something
2250         * src/mcs51/gen.c (aopForSym): small optimization,
2251            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
2252           (freeAsmop): added missing break,
2253           (aopPut): removed parameter bvolatile, determine it inside the function,
2254           (saveRegisters, unsaveRegisters): small optimization,
2255           (genIpush): removed pointless check,
2256           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
2257           replaced sprintf with SNPRINTF,
2258           replaced strcpy with strncpyz,
2259           updated aopPut calls,
2260           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2261         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
2262
2263 2006-05-24 Borut Razem <borut.razem AT siol.net>
2264
2265         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
2266           modification of test for the pic16 port, put the array to the code
2267           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
2268
2269 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2270
2271         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
2272         * support/Util/pstdint.h: added
2273
2274 2006-05-22 Borut Razem <borut.razem AT siol.net>
2275
2276         * src/regression/Makefile: removed bool2.c test, added -q linker option
2277         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
2278           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
2279           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
2280           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
2281           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
2282           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
2283           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
2284           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
2285           define SUPPORT_BIT_TYPES 0, removed unused bit variables
2286
2287 2006-05-22 Raphael Neider <rneider AT web.de>
2288
2289         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
2290           bug #1492360 (problematic due to generic pointers, see code)
2291
2292 2006-05-22 Borut Razem <borut.razem AT siol.net>
2293
2294         * support/regression/ports/pic16/specs.mk: removed stack size linker
2295           directive
2296         * support/regression/tests/array.c,
2297           support/regression/tests/bitopcse.c,
2298           support/regression/tests/bug-908454.c,
2299           support/regression/tests/malloc.c: modified for pic16 regression test
2300         * support/regression/tests/bitfields.c:
2301           pic16 - excluded bitfileds of size > 8
2302         * support/regression/tests/bp.c: pic16 - reduced data size
2303         * support/regression/tests/bug-221100.c: pic16 - reduced data size
2304         * support/regression/tests/bug-460010.c:
2305           pic16 - used the absolute address the fits in memory
2306         * support/regression/tests/bug-716242.c:
2307           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
2308         * support/regression/tests/float.c:
2309           pic16 - excluded - data size too big
2310         * support/regression/tests/onebyte.c:
2311           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
2312         * support/regression/tests/shifts.c:
2313           pic16 - function names probably have to differ in first X characters
2314           (gpasm limitation?)
2315         * support/regression/tests/staticinit.c:
2316           pic16 - excluded some tests due error: no target memory available for
2317           section ".idata"
2318
2319 2006-05-22 Borut Razem <borut.razem AT siol.net>
2320
2321         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2322           second try. Thanks Stas Sergeev once more.
2323
2324 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2325
2326         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
2327           (genLeftShift, genRightShift): fixed bug 1491627
2328         * src/hc08/peeph.def (rules 7, 8.x): added
2329         * support/regression/tests/shifts.c (ShiftLeftByParam,
2330           ShiftRightByParam, testShiftByParam): added to test variable shifting
2331
2332 2006-05-20 Raphael Neider <rneider AT web.de>
2333
2334         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
2335         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
2336           (allocReg): add only new registers to dynAllocRegs,
2337           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
2338             #1489055, #1445850, and probably #1483693
2339
2340 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
2341
2342         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
2343         bug in for-loop that didn't emit the last of CONFIG and ID registers
2344
2345 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
2346
2347         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
2348           with offset
2349         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
2350           1489016, 1434401 and 1490124
2351         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
2352           1489016, 1434401 and 1490124
2353
2354 2006-05-17 Borut Razem <borut.razem AT siol.net>
2355
2356         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2357           thanks Stas Sergeev
2358
2359 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2360
2361         * device/include/mcs51/P89c51RD2.h,
2362         * device/include/mcs51/P89LPC901.h,
2363         * device/include/mcs51/P89LPC922.h,
2364         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
2365
2366 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2367
2368         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
2369         to fix missing stack pragma in compiled binary object file,
2370
2371 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2372
2373         * support/packihx/configure.in,
2374         * support/packihx/configure: removed warning, autoconf >= 2.5x can
2375         determine sizeof basic types even while cross compiling
2376
2377 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2378
2379         * src/avr/gen.c (aopop),
2380         * src/ds390/gen.c (aopOp),
2381         * src/hc08/gen.c (aopOp),
2382         * src/mcs51/gen.c (aopop),
2383         * src/pic16/gen.c (pic16_aopOp),
2384         * src/pic/gen.c (aopOp),
2385         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
2386         if size of operand is smaller than spill location
2387
2388 2006-05-12 Borut Razem <borut.razem AT siol.net>
2389
2390         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
2391           have to have CR/LF line endings even if they are checked out on *nix
2392           or on WIN32 in cygwin binmode
2393
2394 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
2395
2396         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
2397         * device/include/ds80c390.h: added sfr16 definitions
2398         * src/ds390/gen.c,
2399         * src/ds390/gen.h,
2400         * src/ds390/main.c,
2401         * src/ds390/ralloc.c,
2402         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
2403           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
2404           bit returning functions
2405         * support/regression/tests/sfr16.c: enabled test on ds390
2406
2407 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2408
2409         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
2410         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
2411
2412 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2413
2414         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
2415         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
2416           (cl_address_space constructor): removed expensive initialization,
2417           (cl_address_space::get_cell): extended for late initialization,
2418           (cl_address_space::*): use late initialization,
2419           (cl_address_decoder::activate): removed expensive initialization,
2420           This reduced regression test running time by 25%
2421
2422 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
2423
2424         * packihx/,
2425         * configure.in,
2426         * configure,
2427         * sdcc.dsw,
2428         * Makefile.bcc,
2429         * Makefile.in,
2430         * support/packihx/Makefile.in,
2431         * support/packihx/clean.mk,
2432         * support/packihx/Makefile.bcc,
2433         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
2434
2435 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2436
2437         * src/SDCCval.c (valNot): fix for regression test failure
2438           of not.c on big endian hosts
2439
2440 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2441
2442         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
2443
2444 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2445
2446         * device/lib/mcs51/Makefile.in: changed string comparison operator
2447           to = for POSIX compliance; == is bash extension
2448
2449 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2450
2451         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
2452           kosmonaut_pirx
2453
2454 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
2455
2456         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
2457         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
2458         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
2459         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
2460         bug report #1478657,
2461
2462 2006-05-05 Borut Razem <borut.razem AT siol.net>
2463
2464         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
2465           making the html
2466
2467 2006-05-02 Borut Razem <borut.razem AT siol.net>
2468
2469         * doc/Makefile.in: removed *.ind dependency since there is no rule to
2470           create *.ind, which made make to fail if invoked with -j 2
2471
2472 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
2473
2474         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
2475           Hubert Sack for patch 1479782
2476
2477 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
2478
2479         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
2480
2481 2006-05-01 Raphael Neider <rneider AT web.de>
2482
2483         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
2484           (create_pic): store only prefix-free device name,
2485           (init_pic): check for device names with "16" prefix,
2486           (list_valid_pics),
2487         * src/pic/device.h (struct PIC_device),
2488         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
2489             stored device name,
2490         * device/include/pic/pic12f{635,675,629,683}.h,
2491         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
2492         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
2493         * device/include/pic/pic16f505.h,
2494         * device/lib/pic/libdev/pic16f505.c: removed
2495         * device/include/pic/pic14devices.txt: added support for pic12f
2496             devices, removed unsupported non 16-bit devices
2497             [above changes provided by patch from Zik Saleeba]
2498         * src/pic/*, src/pic16/*, device/include/pic16/*,
2499           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
2500
2501 2006-05-01 Borut Razem <borut.razem AT siol.net>
2502
2503         * configure.in, configure, doc/Makefile.in:
2504           sync with nightly build makefile - latex, dvipdf and dvips
2505           not needed any more
2506
2507 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2508
2509         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
2510         in the library source
2511
2512 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
2513
2514         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
2515
2516 2006-04-28 Raphael Neider <rneider AT web.de>
2517
2518         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
2519         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
2520           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
2521         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
2522
2523 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2524
2525         * device/lib/pic/libdev/Makefile.in,
2526         * device/lib/hc08/Makefile.in,
2527         * device/lib/gbz80/Makefile.in,
2528         * device/lib/z80/Makefile.in,
2529         * device/lib/ds390/Makefile.in,
2530         * device/lib/ds400/Makefile.in: added srcdir to include search path,
2531         thanks to Borut for the bug report
2532         * configure.in,
2533         * configure: always create doc/Makefile independent from --enable-doc
2534         * Makefile.in: always install from directory doc independent from
2535         --enable-doc
2536         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
2537         removed
2538         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
2539         * doc/Makefile.in: install *.txt if present
2540         * device/include/Makefile.in (install): added installation of pic/*.inc
2541         and pic/*.txt files again, they were erroneously removed
2542
2543 2006-04-28 Raphael Neider <rneider AT web.de>
2544
2545         * src/pic/{gen.c,main.h,pcode.c},
2546         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
2547             concerning signedness with casts
2548
2549 2006-04-28 Raphael Neider <rneider AT web.de>
2550
2551         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
2552             definition of an interrupt handler,
2553         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
2554             interrupt handler stuff from picglue() to separate routine,
2555           (picglue): enabled definition of intr handlers in files w/o main()
2556
2557 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2558
2559         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
2560           compilation with MSVC 2005 Express Edition (VC8)
2561
2562 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2563
2564         * device/lib/Makefile: fixed build of gbz80 lib
2565
2566 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2567
2568         * support/regression/tests/bug-460010.c,
2569         * support/regression/tests/bug-524691.c,
2570         * support/regression/tests/bug-716242.c: removed conditional defines
2571           that are already in testfwk.h
2572
2573 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2574
2575         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
2576           (AccAXRsh1): added, shift right by 1,
2577           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
2578            AccAXLrl1
2579         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
2580
2581 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
2582
2583         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
2584         remove cast to same type
2585         * src/SDCCast.c (decorateType): fix for RFE 1475742,
2586         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
2587         * as/z80/Makefile,
2588         * link/z80/Makefile: removed, they have moved to
2589         Makefile.in files
2590         * configure,
2591         * configure.in: replaced duplicate message about ucsim by missing sdcpp
2592         * install-sh: fix bug #1204398 by setting umask 0022
2593         * device/lib/Makefile: separate build of z80 and gbz80 lib
2594
2595 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2596
2597         Enabled VPATH feature: changed nearly all Makefiles (149 files).
2598         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
2599
2600         One basic decision: e.g. src/clean.mk includes further files. In order
2601         to make this work there are two solutions:
2602         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
2603           run configure on them. This way they can use
2604           'include $(srcdir)/port-clean.mk'
2605         - always include clean.mk by the Makefile at the same level. To avoid
2606           that `make clean` tries to include and build Makefile.dep the
2607           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
2608           implemented, because now even `make uninstall` doesn't create
2609           Makefile.in. clean.mk could be eliminated by pasting it in
2610           Makefile.in.
2611
2612         * debugger/mcs51/Makefile.in: build own objects from library sources
2613         (SLIB, SDCC) in current directory
2614
2615         * configure, configure.in: renamed --disable-device-lib-build in
2616         --disable-device-lib; added --enable-doc, the required tools are
2617         searched by configure; added result message; the toolchain for the
2618         belonging ports are now only built, if the port is enabled.
2619
2620         * support/regression/*: all output is written in directory gen, because
2621         the fwk and ports directories don't livet in the build tree using vpath
2622
2623         * doc/sdccman.lyx: renamed --disable-device-lib-build to
2624         --disable-device-lib, added --enable-doc, added section VPATH
2625
2626         * sim/ucsim/configure.in,
2627         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
2628         z80 are enabled by default
2629
2630 2006-04-24 Raphael Neider <rneider AT web.de>
2631
2632         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
2633             to config word, "pic14_"-prefixed some extern functions
2634           (pic14_emitConfigWord): emit __config directive(s) if assignment to
2635             config word has been found
2636         * src/pic/device.h: added prototypes
2637         * src/pic/pcode.c: added "pic14_"-prefix where needed
2638         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
2639             fixup
2640         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
2641             words,
2642           (pic14emitRegularMap): ignore config words,
2643           (pic14createInterruptVect): moved generating __config directives away
2644           (picglue): have __config directives emitted
2645
2646 2006-04-24 Borut Razem <borut.razem AT siol.net>
2647
2648         * doc/Makefile: sync with nightly build makefile
2649
2650 2006-04-24 Raphael Neider <rneider AT web.de>
2651
2652         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
2653             registers that have not been assigned proper liveranges,
2654             fixes #1469504 and #1474602,
2655           (pCodeRegOptimizeRegUsage): fixed typo in comment
2656
2657 2006-04-24 Borut Razem <borut.razem AT siol.net>
2658
2659         * device/examples/main8051.c: deleted - it was removed from CVS
2660           24.mar.2000 and after that modified 18.feb.2001, so it reappered
2661           after the transition to Subversion
2662         * src/SDCCalloc.h: deleted - it was removed  from CVS
2663           3.feb.2001 and after that modified 18.feb.2001, so it reappered
2664           after the transition to Subversion
2665         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
2666           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
2667           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
2668           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
2669
2670 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
2671
2672         * as/asx8051.dsp: added mcs51/strcmpi.h
2673         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
2674         * as/hc08/aslink.h: updated lnksect prototype
2675         * as/hc08/asm.h,
2676         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
2677         * as/hc08/asmain.c,
2678         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
2679           (newdot): handle A_ABS
2680         * as/hc08/asout.c,
2681         * as/mcs51/asout.c (outarea): output address
2682         * as/hc08/lkaomf51.c,
2683         * as/mcs51/lkaomf51.c: disabled unused array UsageType
2684         * as/hc08/m08pst.c,
2685         * as/mcs51/i51pst.c,
2686         * as/z80/z80pst.c: "ABS" is not A_OVR
2687         * as/hc08/lkarea.c (newarea): read a_addr,
2688           (lnkarea): added codemap array, sort absolute areas to the front,
2689            combine all GSINITx/GSFINAL,
2690           (find_empty_space, allocate_space): new functions,
2691           (lnksect): return next address, handle absolute sections
2692         * as/mcs51/lkarea.c (newarea): read a_addr,
2693           lnksect2 prototype changed,
2694           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
2695           (find_empty_space, allocate_space): new, factored out of lnksect2,
2696           (lnksect2): return next address, handle absolute sections
2697         * as/hc08/lkhead.c,
2698         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
2699         * as/hc08/lklibr.c (addfile, fndsym),
2700         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
2701           index out of range and detect both '\' and '/'
2702         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
2703         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
2704           regression tests (ds390 cannot return bool yet)
2705         * doc/sdccman.lyx: changed version number, document changed --no-peep,
2706           document critical interrupts on z80, document changed SDCC define
2707         * src/asm.c (_asxxxx_mapping): fixed .org directive,
2708           (_a390_mapping): added .org directive
2709         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
2710           (genMultOneByte): fixed warnings
2711         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
2712           ones
2713         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
2714         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
2715           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
2716         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
2717         * src/pic16/main.c: removed newReg prototype
2718         * src/pic16/pcode.c,
2719         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
2720           warnings
2721         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
2722           ones
2723         * src/pic16/ralloc.c
2724         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
2725           to fix warnings
2726         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
2727           from short to PIC_OPTYPE
2728         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
2729         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
2730           optype from short to PIC_OPTYPE
2731         * src/port.h: made int_size unsigned to fix warnings
2732         * src/SDCC.y: fixed warning on MSVC
2733         * src/SDCCicode.c (getArraySizePtr): return unsigned int
2734         * src/SDCCopt.c (convertToFcall): fixed warnings
2735         * src/SDCCsymt.h: removed double prototype for genSymName
2736         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
2737           offset int to fix warnings
2738
2739 2006-04-22 Borut Razem <borut.razem AT siol.net>
2740
2741         * doc/sdccman.lyx, */Makefile, */Makefile.in:
2742           references to CVS replaced with Subversion
2743
2744 2006-04-21 Borut Razem <borut.razem AT siol.net>
2745
2746         * doc/sdccman.lyx, */Makefile, */Makefile.in:
2747           references to CVS replaced with Subversion
2748
2749 2006-04-19 Borut Razem <borut.razem AT siol.net>
2750
2751         * src/version.awk: adapted for svn
2752         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
2753           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
2754           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
2755           /binutils-avr/etc/*.vi, *.jin: removed all properties
2756           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
2757
2758 2006-04-19 Borut Razem <borut.razem AT siol.net>
2759
2760         * CVS to Subversion migration completed
2761
2762 2006-04-18 Borut Razem <borut.razem AT siol.net>
2763
2764         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
2765           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
2766
2767 2006-04-17 Borut Razem <borut.razem AT siol.net>
2768
2769         * device/include/Makefile.in: added pic/*.inc to the installation
2770
2771 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
2772
2773         * support/regression/collate-results.py: fixed output in case of
2774         a valdiag error
2775         * support/regression/generate-cases.py: fixed splitting of pathnames
2776         with dots
2777         * as/hc08/lklibr.c (addfile),
2778         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
2779
2780 2006-04-11 Raphael Neider <rneider AT web.de>
2781
2782         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
2783         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
2784         * src/pic16/pcode.c (assignValnums): fixed #1460578
2785
2786 2006-04-11 Raphael Neider <rneider AT web.de>
2787
2788         * device/lib/pic/libdev/*.c,
2789         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
2790           fixes #1468739, enables compilation in --std-c99 mode
2791         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
2792
2793 2006-04-11 Raphael Neider <rneider AT web.de>
2794
2795         * src/pic/device.c (find_device): removed debug output
2796           (list_valid_pics): enabled verbose listing of supported devices
2797         * device/include/stdbool.h: define bool as char for pic14/16 as well
2798
2799 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2800
2801         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
2802
2803 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2804
2805         * .version: bumped version to 2.5.6
2806         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
2807
2808 2006-04-06 Raphael Neider <rneider AT web.de>
2809
2810         * .version: bumped version to 2.5.6 (pic14 ABI changed)
2811         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
2812         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
2813           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
2814             pic14_constructAbsMap
2815           (pic14printPublics): declare absolute global symbols as global
2816           (pic14createInterruptVect),
2817         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
2818           (newReg): assume new registers unused, use correct name in
2819             hashtable (reg->name instead of name), more debugLog output
2820         * src/pic/device.h (PIC_device): added fields for verbose output
2821         * src/pic/device.c: moved device definition to pic14devices.txt,
2822             added routines for runtime parsing of pic14devices.txt,
2823             added support for second config word
2824         * src/pic/main.c (_process_pragma): removed #pragma maxram,
2825           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
2826           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
2827           (_pic14_parseOptions): moved pCodeInitRegisters here
2828           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
2829         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
2830           (pCodeInitRegisters): rewrapped comments, perpared new approach to
2831             handling the pseudo stack
2832         * device/lib/Makefile.in: ignore failures in objects-pic16,
2833         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
2834         * device/lib/pic/NEWS: document new dependency on picXXX.lib
2835         * device/lib/pic/Makefile.subdir,
2836         * device/lib/pic16/Makefile.subdir: improved clean rules
2837         * device/lib/pic/libdev/: NEW, pic14 device libraries
2838         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
2839         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
2840         * device/include/Makefile.in: create subdir and install pic14 headers
2841         * device/include/pic/p16f_common.inc: removed unused declarations
2842         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
2843             PICs from inc2h.pl v1.6,
2844             replaced BIT_AT macros with struct declarations
2845         * device/include/pic/pic14devices.txt: definition of supported devices,
2846             all above improvements contributed by Zik Saleeba, thanks
2847         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
2848         * support/scripts/sdcc.nsi: also install pic14 device libraries and
2849             headers
2850
2851 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2852
2853         * device/include/mcs51/c8051f410.h: added interrupt numbers,
2854         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
2855           thanks to Charles Olds
2856
2857 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2858
2859         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
2860
2861 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2862
2863         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
2864         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
2865         * support/regression/bug1464657.c: added, new test
2866
2867 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2868
2869         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
2870           version number
2871
2872 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2873
2874         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
2875           --no-peep and --peep-file <file> are used don't use default rules but
2876           do use the <file>
2877
2878 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2879
2880         * src/mcs51/gen.c (genCall): fixed bug 1457608
2881
2882 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2883
2884         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
2885         changes seem to cause (trigger?) problems with the build system.
2886
2887 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
2888
2889         * src/SDCCpeeph.c (operandsLiteral): new, added,
2890           (callFuncByName): inserted operandsLiteral
2891         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
2892
2893 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2894
2895         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
2896         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
2897
2898 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2899
2900         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
2901           implemented patch 1120823 Thanks to Willy De la Court (normal
2902           interrupts need an interrupt number now if they are made critical),
2903           and enabled nesting of critical functions though not for gbz80
2904           (genCritical, genEndCritical): added functions
2905           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
2906         * src/z80/mappings.i: added "ei" to all mappings
2907
2908 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2909
2910         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
2911         submitted by the Debian SDCC maintainer Aurelien Jarno:
2912         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
2913         archive with gcc 4.1 on mips and wrote the patch"
2914
2915 2006-03-16 Raphael Neider <rneider AT web.de>
2916
2917         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
2918           the left operand is shorter than the result (c* = lit-c* + int),
2919           fixes bug #1450796
2920         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
2921           OP_SYMBOL
2922
2923 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2924
2925         * src/.version: increased version number to 2.5.5
2926         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
2927         linking is done manually in pic16 port's _linkEdit,
2928         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
2929         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
2930         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
2931         allocate asmop as AOP_ACC,
2932         (aopForRemat): added parameter 'bool result' in function declaration,
2933         (pic16_aopGet): return AOP_ACC when accessing WREG,
2934         (pic16_popGetTempReg): minor modification,
2935         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
2936         'pic16_allocWithIdx',
2937         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
2938         calling function in absolute addresses,
2939         (genAssign): take into account AOP_ACC asmop,
2940         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
2941         * src/pic16/pcoderegs.c: some debug functions and lines added,
2942         * src/pic16/ralloc.c (decodeRegType): added but commented out,
2943         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
2944         register too,
2945         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
2946         call to allocReg, not by manually allocating a new one,
2947         (pic16_assignRegisters): now before going through the register
2948         allocating functions mark all registers as free. This eliminates some
2949         side effects resulting from peephole parser done earlier in the backbone
2950
2951 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * src/SDCCicode.c (geniCodeLogic),
2954         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
2955
2956 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
2957
2958         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
2959           (genSend): bugfix, do not allocate and free twice,
2960           (shiftRLong): handle partially overlapping aops
2961         * support/regression/tests/bitopcse.c: fixed warning redefined idata
2962
2963 2006-03-08 Borut Razem <borut.razem AT siol.net>
2964
2965         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
2966           for pic16
2967
2968 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
2969
2970         * support/regression/tests/bug1409955.c: new, added
2971         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
2972         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
2973           (aopForSym, aopOp): increment asmop.allocated if reused,
2974           (freeAsmop): decrement asmop.allocated and check for zero instead of
2975           using asmop.freed,
2976           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
2977           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
2978            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
2979            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
2980            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
2981            genSignedRightShift, genRightShift, genDataPointerGet,
2982            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
2983            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
2984             in reverse order from allocation,
2985           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
2986             added swappedLR to keep track
2987         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
2988           pdata & code for GCC, z80, gbz80 & hc08
2989         * support/regression/tests/zeropad.c: moved defines to testfwk.h
2990
2991 2006-03-08 Raphael Neider <rneider AT web.de>
2992
2993         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
2994
2995 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
2996
2997         * device/include/mcs51/c8051f410.h: new SiLabs mcu
2998         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
2999         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3000
3001 2006-03-06 Borut Razem <borut.razem AT siol.net>
3002
3003         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3004           made the linker quiet
3005
3006 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3007
3008         * src/pic16/gen.c (genPcall): fixed bug #1443644
3009         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3010         which dumps before the function entry point a data byte which represents
3011         the number of the local variables used by the specified function, added
3012         'xinst' for initial support for Extended Instruction Support,
3013         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3014         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3015         port->fun_prefix anymore (may change later),
3016         (genFunction, genEndFunction): do not store/restore local registers for
3017         _main (this should take care the --main-return command line option in
3018         the future),
3019         (genOr): removed some legacy pic-port instructions,
3020         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3021         performing operations with SFR's causes data to be written more than
3022         once to each SFR. Perhaps SFRs should be handled in special cases...
3023         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3024         pcode.h
3025         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3026         into account for stack starting position,
3027         (struct OPTIONS pic16_optionsTable): added command line argument
3028         --extended or -y for Extended Instruction Support,
3029         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3030         (deassignLRs): *** perhaps the most important change, old 'for' code
3031         (commented out for reference), didn't account for some registers which
3032         were left marked 'not free' after a pointer operation. The change
3033         reduces register usage a lot in some cases
3034
3035 2006-03-04 Borut Razem <borut.razem AT siol.net>
3036
3037         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3038           _clean
3039         * support/regression/tests/bug-524697.c: decreased array size for
3040           mcs51 to fit into the internal RAM
3041         * support/regression/Makefile.in: a little bit more verbose
3042
3043 2006-03-03 Borut Razem <borut.razem AT siol.net>
3044
3045         * support/regression/fwk/lib/testfwk.c,
3046           support/regression/fwk/include/testfwk.h: introduced function
3047           _prints(), nonrecursive _printn(), call _initEmu() from main()
3048         * support/regression/ports/gbz80/support.asm,
3049           support/regression/ports/ucz80/support.asm,
3050           support/regression/ports/z80/support.asm,
3051           support/regression/ports/ds390/support.c,
3052           support/regression/ports/hc08/support.c,
3053           support/regression/ports/host/support.c,
3054           support/regression/ports/mcs51/support.c,
3055           support/regression/ports/xa51/support.c: added empty _initEmu()
3056           function
3057         * support/regression/ports/pic16/gpsim.cmd,
3058           support/regression/ports/pic16/spec.mk,
3059           support/regression/ports/pic16/support.c,
3060           support/regression/Makefile.in: added pic16 regression test
3061
3062 2006-03-01 Raphael Neider <rneider AT web.de>
3063
3064         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3065           genConstPointerGet): use safe way of generating MOVFF to cover
3066             literals as well as registers, fixes bug #1440527
3067         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3068             dereference
3069           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3070             more correctly, fixes bug #1232186
3071           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3072         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3073             gplink guess the correct processor in more cases, applied patch
3074             from Till Riedel attached to and fixing bug #1436552
3075
3076 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3077
3078         * support/regression/tests/array.c: added, contains check for #1434401
3079         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
3080
3081 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3082
3083         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
3084         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
3085         * device/include/mcs51/c8051f326.h,
3086         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
3087         * device/include/mcs51/c8051f000.h,
3088         * device/include/mcs51/c8051f018.h,
3089         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
3090           PCON_IDLE,PCON_STOP and added sfr16 definitions
3091
3092 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3093
3094         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
3095           genGetWord): fixed bug 1409955
3096
3097 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3098
3099         * device/include/hc08/mc68hc908gp32.h,
3100         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
3101
3102 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
3103
3104         * src/SDCCast.c (constExprValue): return NULL if not a value
3105         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
3106         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
3107         * support/regression/tests/bitfields.c: enabled signed bitfield for all
3108
3109 2006-02-13 Borut Razem <borut.razem AT siol.net>
3110
3111         * src/regression/ptrarg.c: added, fails due to bug #1430967
3112         * src/regression/Makefile: ptrarg.c added, ...
3113
3114 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3115
3116         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
3117         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
3118
3119 2006-02-11 Borut Razem <borut.razem AT siol.net>
3120
3121         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
3122           print "Processor: xxx" message to stdout only if --verbose
3123
3124 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3125
3126         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
3127         * support/regression/tests/bug1426356.c: added
3128         * support/regression/tests/bitfields.c: removed 2 tests
3129
3130 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3131
3132         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
3133         * device/include/mcs51/c8051f330.h,
3134         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
3135           PCON_IDLE,PCON_STOP and added sfr16 definitions
3136         * device/lib/_divsint.c,
3137         * device/lib/_divuint.c,
3138         * device/lib/_divulong.c,
3139         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
3140           register bank bug for small stackauto
3141
3142 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3143
3144         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
3145
3146 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
3147
3148         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
3149         * all.dsp: corrected several bin paths
3150         * device/include/mcs51/c8051f120.h,
3151         * device/include/mcs51/c8051f300.h,
3152         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
3153           to PCON_IDLE,PCON_STOP
3154         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
3155         * device/lib/printf_large.c (output_float): fixed bug 1388703
3156         * support/regression/tests/bug1057979.c: added test for bug 1388703
3157
3158 2006-02-08 Raphael Neider <rneider AT web.de>
3159
3160         * src/pic/pcode.c (pciTRIS): fixed typo,
3161           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
3162           (LinkFlow): fixed handling of flows that end in a call,
3163           (ReuseReg): perform safety check earlier
3164         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
3165             to work with flows at the beginning of a pBlock,
3166             fixes #1426557 (Symbol not previously defined),
3167           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
3168             usage information
3169           (RemoveUnusedRegisters): update register usage info
3170         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
3171             created, reuse existing ones instead
3172         * src/pic/gen.c (genPcall): fixed #1424719
3173
3174 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
3175
3176         * link/z80/lkmain.c,
3177         * link/z80/lklex.c,
3178         * link/z80/lkdata.c,
3179         * link/z80/aslink.h: fixed build on current cygwin:
3180         replaced getline() by lk_getline()
3181
3182 2006-02-01 Borut Razem <borut.razem AT siol.net>
3183
3184         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
3185           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
3186           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
3187           src/regression/bool1.c, src/regression/bool2.c,
3188           src/regression/bool3.c, src/regression/call1.c,
3189           src/regression/compare.c, src/regression/compare10.c,
3190           src/regression/compare2.c, src/regression/compare3.c,
3191           src/regression/compare4.c, src/regression/compare5.c,
3192           src/regression/compare6.c, src/regression/compare7.c,
3193           src/regression/compare8.c, src/regression/compare9.c,
3194           src/regression/configword.c, src/regression/for.c,
3195           src/regression/inline.c, src/regression/mult1.c,
3196           src/regression/nestfor.c, src/regression/or1.c,
3197           src/regression/pointer1.c, src/regression/ptrfunc.c,
3198           src/regression/rotate1.c, src/regression/rotate2.c,
3199           src/regression/rotate3.c, src/regression/rotate4.c,
3200           src/regression/rotate5.c, src/regression/rotate6.c,
3201           src/regression/rotate7.c, src/regression/string1.c,
3202           src/regression/struct1.c, src/regression/sub.c,
3203           src/regression/sub2.c, src/regression/switch1.c,
3204           src/regression/while.c, src/regression/xor.c,
3205           src/regression/create_stc, src/regression/simulate,
3206           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
3207           regression tests
3208         * src/regression/gpsim_assert.h: added
3209
3210 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3211
3212         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
3213         ((void (code *) (void)) 0) ();
3214         * as/hc08/aslex.c,
3215         * as/hc08/aslink.h,
3216         * as/hc08/asm.h,
3217         * as/hc08/asmain.c,
3218         * as/hc08/lkdata.c,
3219         * as/hc08/lklex.c,
3220         * as/hc08/lkmain.c,
3221         * as/mcs51/aslex.c,
3222         * as/mcs51/aslink.h,
3223         * as/mcs51/asm.h,
3224         * as/mcs51/asmain.c,
3225         * as/mcs51/lkdata.c,
3226         * as/mcs51/lklex.c,
3227         * as/mcs51/lkmain.c,
3228         * as/z80/aslex.c,
3229         * as/z80/asm.h,
3230         * as/z80/asmain.c: fixed build on current cygwin:
3231         replaced getline() by as_getline()
3232
3233 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3234
3235         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
3236         declarator in the symbol chain
3237         * src/SDCCsymt.h,
3238         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
3239         parameter list for function pointers
3240         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
3241         * support/regression/tests/bug-716242.c: added
3242
3243 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
3244
3245         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
3246         offset if possible
3247         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
3248
3249 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
3250
3251         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
3252         inifinitely recurseable, added static
3253         * support/regression/tests/bug-1408066.c: added
3254
3255 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
3256
3257         * src/SDCCicode.h,
3258         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
3259         renamed, added possibility to create "postLoopLbl"-labels
3260         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
3261         newiTempLoopHeaderLabel
3262         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
3263         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
3264         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
3265         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
3266         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
3267         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
3268         (basicInduction): fixed bug #136564, made static,
3269         (loopInduction): changed parameter of basicInduction, made static,
3270         (addPostLoopBlock): added
3271         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
3272         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
3273         findLoopEndSeq
3274         * support/regression/tests/bug-136564.c: added
3275         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
3276         --std-sdcc99 to LIBSDCCFLAGS
3277
3278 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
3279
3280         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
3281         while loop
3282         * support/regression/tests/bug-1406131.c: added
3283
3284 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
3285
3286         * src/SDCCast.c (decorateType): fix promotion of unary minus
3287         * src/SDCCsymt.c (computeType): beautified
3288         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
3289         (valUnaryPM, valComplement): fix sign and promotion,
3290         (valNot): ANSI: result type is int (SDCC: unsigned char)
3291         * support/regression/tests/uminus.c: speedup by removing superflous
3292         test case 'int'
3293         * support/regression/tests/onebyte.c: added promotion and signedness
3294         tests for unary minus
3295         * support/regressions/tests/bug-477927.c: disable warning about
3296         uninitialized variables
3297         * support/regression/tests/not.c: added
3298
3299 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3300
3301         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
3302         * src/mcs51/gen.c (gen51Code): show final register usage after
3303         fillGaps in asm with --i-code-in-asm
3304         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
3305         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
3306         incUsed, rliveClear, adjustIChain): made static,
3307         (setFromRange): excluded because it's unused,
3308         (findPrevUseSym, markWholeLoop): added,
3309         (findPrevUse): rewritten; fixes bug 895992; now a complete search
3310         through all branches of predecessors enables sdcc to emit the warning
3311         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
3312         (rlivePoint): made static, added parameter emitWarnings which is only
3313         true during the first run out of two,
3314         (findRecursiveSucc, findRecursivePred): removed,
3315         (computeLiveRanges): made static, added parameter emitWarnings,
3316         (dumpIcRlive): added for debugging only
3317         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
3318         removed prototype of setFromRange()
3319         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
3320         in call of computeLiveRanges()
3321         * support/regression/tests/bug-895992.c: added
3322         * support/regression/tests/bug-971834.c: added
3323         * support/valdiag/tests/bug-895992.c: added
3324         * support/valdiag/tests/bug-971834.c: added
3325
3326 2005-12-18 Raphael Neider <rneider AT web.de>
3327
3328         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
3329           (genUnpackBits): improved code for direct operands,
3330           (genPackBits): improved code for literal assignment to bitfields
3331             and for direct destination operands (no FSR indirection),
3332             prevented redundant AND, fixes #1362800,
3333           (AccLsh): added parameter to disable masking of the result
3334         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
3335           skip instructions with side-effects (like incfsz),
3336           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
3337         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
3338         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
3339           fixes #1375263
3340
3341 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
3342
3343         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
3344         volatile variables as spill location
3345
3346 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
3347
3348         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
3349         replacing literals
3350         * support/regression/tests/bug-1376320.c: added
3351
3352 2005-12-08 Raphael Neider <rneider AT web.de>
3353
3354         * src/pic/device.c: renamed is_shared to pic14_is_shared
3355         * src/pic/gen.c (genIfx): re-enabled handling of sbits
3356         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
3357           (is_valid_identifier): added for above workaround
3358
3359 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
3360
3361         * device/lib/Makefile.in: fixed to enable port-specific-objects
3362         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
3363           char, thanks Hubert Sack
3364         * doc/sdccman.lyx: documented --xstack-loc,
3365           elaborated a bit more on interrupts and pitfalls,
3366           removed "setjmp/longjmp unsupported",
3367           documented some unsupported C99 features
3368         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
3369         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
3370           if, thanks Hubert Sack
3371         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
3372         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
3373           make make_library
3374         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
3375           regression tests can report resource usage (rfe 700441)
3376         * support/regression/collate-results.py: report resource usage
3377         * support/regression/ports/ds390/spec.mk,
3378         * support/regression/ports/hc08/spec.mk,
3379         * support/regression/ports/mcs51/spec.mk,
3380         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
3381         * support/regression/ports/ds390/uCsim.cmd,
3382         * support/regression/ports/hc08/uCsim.cmd,
3383         * support/regression/ports/mcs51/uCsim.cmd,
3384         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
3385         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
3386           library, use the default one
3387         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
3388           building the library
3389
3390 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3391
3392         * config.dsp: added dependency on .version and configure_vc.awk
3393         * device/include/setjmp.h: updated for --stack-auto and --xstack
3394         * device/include/mcs51/at89c51snd1c.h: corrected line endings
3395         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
3396         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
3397         * device/lib/libsdcc.lib: added _setjmp
3398         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
3399           (decorateType): fixed bug 1372851,
3400           (optimizeGetHbit): fixed warning
3401         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
3402           array initialisation
3403         * support/regression/tests/bug1057979.c: added test for bug 1358192
3404         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
3405
3406 2005-12-03 Borut Razem <borut.razem AT siol.net>
3407
3408         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
3409           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
3410
3411 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3412
3413         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
3414         createIval): implement symbol independant "flexible array member",
3415         (createIvalCharPtr): implemented flexible array initialisation with a
3416         string
3417         * src/SDCCsymt.c (copyStruct): removed,
3418         (getSize): fixed misleading comment,
3419         (getAllocSize): removed, the additional allocation size is now in
3420         sym->flexArrayLength,
3421         (checkStructFlexArray): new, syntax checks for flexible array members,
3422         (compStructSize): added syntax checks for "flexible array members"
3423         (copyStruct): removed,
3424         (copyLinkChain): removed inefficient fix for bug 770487
3425         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
3426         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
3427         symbol->flexArrayLength
3428         * src/SDCCerr.c,
3429         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
3430         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
3431         * support/regression/tests/structflexarray.c: added
3432         * support/valdiag/tests/structflexiblearray.c: added
3433
3434 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3435
3436         * src/SDCCast.c (decorateType): fixed bug 1368489
3437         * support/Util/SDCCerr.c,
3438         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
3439
3440 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3441
3442         * device/include/mcs51/at89c51snd1c.h: added file submitted by
3443           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
3444
3445 2005-11-27 Borut Razem <borut.razem AT siol.net>
3446
3447         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
3448           support/cpp2/mkdeps.h: added command line option
3449           -obj-ext=<extension> to SDCPP to define object file externion, used
3450           for generation of make dependencies (-M)
3451         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
3452
3453 2005-11-26 Borut Razem <borut.razem AT siol.net>
3454
3455         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
3456           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
3457           added pic and pic16 libraries
3458
3459 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3460
3461         * device/include/float.h: Corrected typo in prototype of __fsgt
3462
3463 2005-11-25 Borut Razem <borut.razem AT siol.net>
3464
3465         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
3466           added creation of model-mcs51-stack-auto libraries
3467
3468 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
3469
3470         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
3471         and fields-list too
3472         * src/SDCCast.c (createIvalArray): removed obsolete comment
3473
3474 2005-11-24 Borut Razem <borut.razem AT siol.net>
3475
3476         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
3477           added missing device/lib/mcs51/crt*.asm sources
3478
3479 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
3480
3481         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
3482
3483 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
3484
3485         * device/lib/_fs2schar.c,
3486         * device/lib/_fs2sint.c,
3487         * device/lib/_fs2slong.c: optimized inline asm
3488
3489 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3490
3491         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
3492           Better handling of floats between -1.0 and 0.0.
3493
3494 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3495
3496         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
3497           (the missing "if"s prohibited removal of redundant labels)
3498
3499 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3500
3501         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
3502           Properly convert floats between -1.0 and 0.0 to long, int, and char
3503           types (max integer value of negative floats tends to zero).
3504         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3505           Removed changes made so to work properly with floats between
3506           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
3507           and _fs2char.c
3508
3509 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3510
3511         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
3512         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
3513         (genCast) cosmetic change
3514         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
3515         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
3516         from mcs51
3517         * support/regression/tests/bitfields (testSignedBitfields): added
3518
3519 2005-11-18 Borut Razem <borut.razem AT siol.net>
3520
3521         * sdcc/device/lib/Makefile.in: remove all unnecessary files
3522         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
3523           introduced SILENT option to make building of pic16 libraries less
3524
3525 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3526
3527         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3528           Now they work properly with floats between -1.0 and 0.0
3529         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
3530
3531 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3532
3533         * src/SDCCicode.c (printOperand): added missing else
3534
3535 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3536
3537         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
3538         reformatted for better readability
3539         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
3540         signed bitfields
3541
3542 2005-11-17 Borut Razem <borut.razem AT siol.net>
3543
3544         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
3545           introduced SILENT option to make building of pic16 libraries less
3546           verbose - used for nightly snapshot build
3547         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
3548           available on Win32 platforms.
3549         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
3550           medium, large, pic and pic16
3551
3552 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3553
3554         * device/lib/printf_large.c: Temporary patch for bug 1358192:
3555           printf("%f"...) sets fraction to zero.
3556
3557 2005-11-16 Raphael Neider <rneider AT web.de>
3558
3559         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
3560           fixes #1357221
3561         * src/pic/gen.c (genIfx): implemented for CARRY bit
3562         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
3563           to generic pointers, fixes #1357332,
3564           (pic16_movLit2f): NEW,
3565           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
3566
3567 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3568
3569         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
3570
3571 2005-11-11 Raphael Neider <rneider AT web.de>
3572
3573         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
3574         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
3575           compute pointer's type from operand,
3576           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
3577           improved single bit reads, fixes bug #1353379
3578
3579 2005-11-09 Borut Razem <borut.razem AT siol.net>
3580
3581         * support/scripts/sdcc.nsi: added lib/pic to the package
3582
3583 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
3584
3585         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
3586
3587 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3588
3589         * support/regression/tests/bug1348008.c: added
3590         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
3591         * support/regression/tests/bug1337835.c: updated comment
3592
3593 2005-11-06 Borut Razem <borut.razem AT siol.net>
3594
3595         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3596           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3597           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3598           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3599           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
3600           dynamic construction of cl_error_class and derivates - 2.nd try
3601
3602 2005-11-05 Borut Razem <borut.razem AT siol.net>
3603
3604         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
3605           bug, which caused Bus Errors on sparc solaris
3606
3607 2005-11-04 Borut Razem <borut.razem AT siol.net>
3608
3609         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3610           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3611           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3612           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3613           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
3614           and derivates to resolve the initialization problem on OSX
3615
3616 2005-11-02 Borut Razem <borut.razem AT siol.net>
3617
3618         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3619           corrected typo - #include <winsock2.h>
3620
3621 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
3622
3623         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
3624           (_asxxxx_mapping): added org directive for future enhancements
3625
3626 2005-11-01 Borut Razem <borut.razem AT siol.net>
3627
3628         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3629           enabled sockets on WIN32
3630         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
3631
3632 2005-10-31 Borut Razem <borut.razem AT siol.net>
3633
3634         * support/regression/generate-cases.py: escape backslashes in {testcase}:
3635           WIN32 backslash path delimiters should be escaped when used in C strings
3636         * support/regression/tests/bitfields.c: exclude failing assertions for
3637           __CYGWIN32__ and __MINGW32__ hosts
3638
3639 2005-10-30 Borut Razem <borut.razem AT siol.net>
3640
3641         * src/SDCCutil.c: corrected double comparison typo
3642
3643 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
3644
3645         * device/lib/medium/Makefile: added for new memory model medium
3646         * device/include/asm/mcs51/features.h: updated for medium/pdata
3647         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
3648           added Multiply & Accumulate sbit's and MAC0_PAGE define
3649         * device/include/mcs51/c8051f300.h: added sfr16 definitions
3650         * device/include/mcs51/c8051f310.h: added sfr16 definitions
3651         * device/lib/_mullong.c: update for medium model
3652         * device/lib/incl.mk: added medium model
3653         * doc/sdccman.lyx: documented medium model
3654         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
3655         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
3656         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
3657         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
3658           (allocParms): set SCLS and OCLS to pdata for medium model
3659         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
3660           for pdata,
3661           (powof2): return <0 if not power of 2
3662         * src/avr/gen.c (genBitWise): use updated powof2
3663         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
3664           (shiftR2Left2Result): small optimization in setup, save acc when storing,
3665           (shiftLLeftOrResult): use B if necessary
3666         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
3667         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
3668         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
3669         * support/regression/Makefile.in: added test-mcs51-medium
3670         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
3671
3672 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3673
3674         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
3675         specifier unsigned
3676         * device/lib/time.c (mktime): fixed bug 1334315
3677
3678 2005-10-28 Raphael Neider <rneider AT web.de>
3679
3680         * device/include/pic/p16f_common.inc: added common declarations
3681         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
3682
3683 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3684
3685         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
3686           (aopPutUsesAcc): added to predict accumulator use,
3687           (assignResultValue): save acc if necessary,
3688           (genMinusDec): store result if indirectly addressed,
3689           (genDivOneByte):  save acc if necessary,
3690           (movLeft2Result): bugfix if left already in acc,
3691           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
3692             attention to accumulator use (esp. pdata),
3693           (genReceive): receive pdata correctly
3694         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
3695         * src/SDCCicode.h: added isOperandInPagedSpace prototype
3696
3697 2005-10-27 Raphael Neider <rneider AT web.de>
3698
3699         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
3700
3701 2005-10-27 Raphael Neider <rneider AT web.de>
3702
3703         * .version: changed version to 2.5.4
3704         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
3705         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
3706           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
3707             arithmetics support routines
3708         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
3709         * device/lib/Makefile.in: also create installdir for pic
3710
3711         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
3712           pic14 port as well
3713         * src/pic/device.c (dump_sfr): rewritten to delegate register
3714           placement to the linker (use `extern sym' rather than sym EQU addr),
3715           (validAddress): fixed to check last specified address
3716         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
3717           (popGetLit): truncate literal value to 8 bit,
3718           (popGet): moved assert to more appropriate place
3719           (popGetExternal): create pCode operand from and mark the according
3720             symbol as being `extern'
3721           (popGetAddr): added sanity check on immediate's offset, provide
3722             GPOINTER tag on demand
3723           (aopPut): fixed for immediates,
3724           (mov2w_op): move operand's address or contents to WREG (depending on
3725             operand type), safer variant of mov2w,
3726           (movwf,call_libraryfunc): NEW, handy abbreviations,
3727           (get_argument_pcop,get_return_val_pcop,pass_argument,
3728           get_returnvalue): interface for accessing function parameters and
3729             return values,
3730           (assignResultValuei,genRet): use new parameter/return value interface
3731           (pic14_getDataSize): back to old version handling generic pointers,
3732           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
3733             provided implementation and/or fixed old one,
3734           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
3735             calls, removed legacy 8051 reference code
3736           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
3737           (loadSignToC): NEW, move the operands sign bit to CARRY,
3738           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
3739             genRightShiftSigned, accepts negative shift counts,
3740           (setup_fsr): load FSR and adjust IRP (indirect memory access),
3741           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
3742             generic pointers, __data pointers and __code pointers,
3743           (genUnpackBits,genPackBits): rewritten to work with generic pointers
3744             and signed bitfields, limit bitfields to 8 bit,
3745           (genDataPointerGet): fixed number of bytes read,
3746           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
3747           (genPointerGet,genPointerSet): fixed handling of __code pointers,
3748             pointers to constant data are no longer assumed to point to __code
3749             space, removed invalid pointer types,
3750           (bitpatternFromVal): retrieve the PICs representation of an integer
3751             or float literal,
3752           (genDataPointerSet): fixed assigning to po_immediate operands,
3753           (genGenPointerSet): implemented as library call,
3754           (genIfx): fixed incorrect condition,
3755           (genAddrOf): limit generic pointers' addresses to 2 bytes,
3756             provide GPOINTER tag according to destination's storage class,
3757           (genCast): added code to handle casting to generic pointers, added
3758             sign-/zero extension of the result
3759           (aop_isLitLike,op_isLitLike): fixed handling of immediates
3760         * src/pic/gen.h: added macros to access IRP bit in STATUS register
3761         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
3762           extend the result
3763         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
3764           address/register resides in the shared banks
3765           (emitSymbolToFile): improved to handle global and `pinned' symbols,
3766             put all variables into separate sections (have the linker arrange
3767             them)
3768           (picglue): put init code and interrupt handlers in separate sections
3769         * src/pic/main.c: added port specific options table, modified to PORT
3770           structure to make GPOINTERs 3 byte, added pic14_options
3771           (_pic14_do_link): private linking routine (update paths to libraries,
3772             add libsdcc.lib by default)
3773         * src/pic/main.h: declare pic14_options
3774         * src/pic/pcode.c: fixed instructions i/o relations,
3775           (RegCond): reverted to correct version,
3776           (newpCodeOpLit): truncate literals to 8 bit,
3777           (genericPrint): added debug output,
3778           (getRegFromInstruction): fixed for various operand types, simplified
3779           (BuildFlow): fixed broken handling of isntructions with labels
3780           (LinkFlow): start at last instruction in flow (skip trailing comments),
3781             pass the flow on to the next instruction after CALL
3782           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
3783           (insertPCodeInstruction): fixed inserting after a skip instruction,
3784           (DoBankSelect): fixed for labeled instructions
3785           (OptimizepBlock): honor --nopeep switch
3786           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
3787         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
3788         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
3789           (pCodeOptime2pCodes): allow disabling this optimization via
3790             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
3791             but is still buggy), started implementation of a dataflow based
3792             pCode optimization (CSE + dead code elimination)
3793           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
3794         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
3795           names are independant of the stack location and therefore portable across
3796           devices
3797
3798 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3799
3800         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
3801           (selectSpil): fixed bug 1337835 by not spilling bit variables
3802         * support/regression/tests/bug1337835.c: added test for this bug
3803         * src/mcs51/peeph.def: restart after rule 3.c,
3804           addded rules 263.x to optimize loading constants
3805
3806 2005-10-26 Raphael Neider <rneider AT web.de>
3807
3808         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
3809         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
3810           (genAssign): emit warning when casting literals to generic pointer
3811             type, also applies when taking the address of a fixed variable,
3812           (genCast): improved casting to generic pointers
3813         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
3814           extern variables, added verbose error message
3815         * device/include/pic16/{string.h,errno.h}: added #pragma library c
3816
3817 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
3818
3819         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
3820         carry must be complemented too
3821         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
3822         could be emitted by genMinus
3823         * src/SDCCval.c (constVal): fixed bug 1305065
3824
3825 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
3826
3827         * src/SDCCast.c (addCast): added promotion for bit variables
3828         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
3829         promotion casts + optimisation
3830         (optimizeGetWord): fix warning 'i' might be used uninitialized
3831         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
3832         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
3833
3834 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
3835
3836         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
3837         all chars are promoted to int; promotion should be handled in SDCCast.c
3838
3839 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3840
3841         * device/lib/_strcmp.c: Fixed bug 1326457
3842
3843 2005-10-11 Raphael Neider <rneider AT web.de>
3844
3845         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
3846         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
3847
3848 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3849
3850         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
3851         * support/regression/tests/sfr16.c: added test for the sfr32 bug
3852
3853 2005-10-04 Raphael Neider <rneider AT web.de>
3854
3855         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
3856           device/lib/pic16/pics.all: added pic18f1320
3857         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
3858
3859 2005-09-30 Raphael Neider <rneider AT web.de>
3860
3861         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
3862         * src/pic16/devices.inc: NEW, provides device descriptions
3863         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
3864
3865 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3866
3867         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
3868           GETHBIT
3869
3870 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
3871
3872         * doc/sdccman.lyx: updated Highest Order Bit documentation,
3873           documented Any Order Bit, Higher Order Byte and Higher Order Word
3874         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
3875         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
3876           (optimizeGetAbit): new, to get any bit, not only the high bit,
3877           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
3878           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
3879           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
3880           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
3881             RIGHT_OP: also try GETBYTE, GETWORD optimization,
3882             GETABIT, GETBYTE, GETWORD: decorate them,
3883           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
3884           (ast_print): added GETABIT, GETBYTE, GETWORD
3885         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
3886         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
3887           (geniCodeBinary): new generic binary icode,
3888           (ast2iCode): added GETABIT, GETBYTE, GETWORD
3889         * src/port.h: updated comment for PORT.hasExtBitOp
3890         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
3891           (genGetByte): new, to get a single byte,
3892           (genGetWord): new, to get a word from a long,
3893           (gen51Code): added GETABIT, GETBYTE, GETWORD
3894         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
3895
3896 2005-09-23 Raphael Neider <rneider AT web.de>
3897
3898         * configure.in, configure: have device/lib/pic configured
3899         * device/lib/Makefile.in: added model-pic14
3900         * device/lib/clean.mk: added pic/ to clean rule
3901         * device/lib/pic: added rudimentary pic14 library providing support
3902           functions for multiplication/division/generic pointer access
3903         * src/SDCCopt.c (convilong): mark support functions as extern
3904           for pic14 port as well
3905         * src/pic/gen.c (genMult): added assertions,
3906           (genpic14Code): emit warning on unhandled iCodes
3907         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
3908         * src/pic/pcode.c (pCodeOpCopy),
3909         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
3910           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
3911           SFR_REGISTER}), made safe for future extensions
3912         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
3913           instructions even if preceeded by SKIP instructions (also remove
3914           them); removed unused code
3915         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
3916           prevents leaving parts of the structure uninitialized after copying
3917
3918 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
3919
3920         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
3921           ago by me
3922         * support/regression/tests/addsub.c: added test for the bug
3923
3924 2005-09-21 Raphael Neider <rneider AT web.de>
3925
3926         * device/include/pic16/pic18f1220.h,
3927           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
3928         * device/lib/pic16/Makefile.rules: added missing opening paren
3929         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
3930           are provided in genutils.c,
3931           (genUminusFloat,genUminus,genCmpEq): added asserts on different
3932           operand/result sizes,
3933           (genCmp): assert on NULL pointers first, then check deref'ed values
3934         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
3935           result size
3936
3937 2005-09-18 Raphael Neider <rneider AT web.de>
3938
3939         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
3940           as these are now unused,
3941           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
3942         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
3943           local, avoids uninitialized pointer dereference on r->name
3944         * src/pic16/ralloc.c (newReg): fixed indentation
3945
3946 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
3947
3948         * src/SDCCval.c (constVal): fixed bug 730366
3949         * support/Util/SDCCerr.c,
3950         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
3951
3952 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3953
3954         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
3955
3956 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
3957
3958         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
3959
3960 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3961
3962         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
3963           (hex2dec): made hex_digit unsigned char, removed ascii dependance
3964         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
3965           (hex2dec): made hex_digit unsigned char, removed ascii dependance
3966         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
3967         * packihx/packihx.c (hexDigit): made c unsigned char
3968         * as/mcs51/lklibr.c (fndsym),
3969         * link/z80/lkgb.c (gb),
3970         * link/z80/lklibr.c (fndsym),
3971         * link/z80/lkrloc.c (relr),
3972         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
3973         * src/SDCC.lex (checkCurrFile, process_pragma),
3974         * src/SDCCglue.c (spacesToUnderscores),
3975         * src/SDCCmain.c (setParseWithComma, processFile),
3976         * src/asm.c (tvsprintf, printCLine),
3977         * src/avr/gen.c (emitcode, aopPut),
3978         * src/ds390/gen.c (emitcode),
3979         * src/hc08/gen.c (emitcode, emitinline),
3980         * src/mcs51/gen.c (emitcode, genInline),
3981         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3982           tokenizeLineNode),
3983         * src/pic/ralloc.c (debugLog),
3984         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3985           tokenizeLineNode),
3986         * src/pic16/ralloc.c (debugLog),
3987         * src/z80/main.c (_process_pragma):
3988            made all ctype.h function calls safe
3989         * src/SDCCopt.c: include math.h for fabs
3990         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
3991           and used them throughout the code to make ctype.h function calls safe
3992         * src/ds390/main.c (asmLineNodeFromLineNode),
3993         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
3994         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
3995            unsigned char*
3996         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
3997           (newpCodeAsmDir): made ctype.h function calls safe
3998         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
3999           pic16_emitcode):  made lbp unsigned char*
4000         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4001           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4002         * src/xa51/gen.c (emitcode),
4003         * src/z80/gen.c (_emit2): made lbp unsigned char*
4004         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4005            char*
4006
4007 2005-09-05 Raphael Neider <rneider AT web.de>
4008
4009         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4010           access bank splitpoint
4011
4012 2005-09-05 Raphael Neider <rneider AT web.de>
4013
4014         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4015
4016 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4017
4018         * .version: changed to version 2.5.3
4019         * doc/sdccman.lyx: changed version to 2.5.3,
4020           documented --codeseg and --constseg and pragma codeseg and constseg,
4021           documented bit parameters (reentrant) and bit returning
4022         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4023            currFunc->recvSize, but is this ok for all ports?
4024           (ast2iCode): result of ~ on unsigned char must be cast to int for
4025            bool to work
4026         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4027           function pointers in bit space
4028         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4029           (processFuncArgs): call port.reg_parm() with reentrancy info
4030         * src/port.h,
4031         * src/avr/main.c,
4032         * src/ds390/main.c,
4033         * src/hc08/main.c,
4034         * src/pic/main.c,
4035         * src/pic16/main.c,
4036         * src/xa51/main.c,
4037         * src/z80/main.c: port.reg_parm prototype extended with
4038           "bool reentrant" parameter
4039         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4040           options.stackAuto for allocating bit register parameters
4041         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4042           (genSend): set BitBankUsed if it is,
4043           (selectRegBank): factored out of genCall for use in genPcall,
4044           (genCall): removed redundant dtype assignmen, use selectRegBank,
4045           (genPcall): handle returning in Carry properly, save in F0 if needed,
4046           (genReceive): handle bit register parameters
4047         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4048           (mcs51_assignRegisters): enable bit registers for all reentrant
4049            functions and don't set BitBankUsed unconditionally
4050         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4051         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4052         * support/regression/tests/funptrs.c: added tests for BOOL and for return
4053
4054 2005-08-27 Borut Razem <borut.razem AT siol.net>
4055
4056         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4057         ppc-osx (Darwin) does not support -u option. It seems that it is
4058         supported only on Linux - GNU cp
4059
4060 2005-08-25 Borut Razem <borut.razem AT siol.net>
4061
4062         * sim/ucsim/gui.src/serio.src/Makefile.in,
4063           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4064           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4065           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4066           install and strip, since the strip at /usr/ccs/bin should be used
4067           on solaris
4068
4069 2005-08-24 Borut Razem <borut.razem AT siol.net>
4070
4071         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4072
4073 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4074
4075         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
4076         ffffffffu
4077
4078 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
4079
4080         * as/mcs51/aslink.h: completed lkrloc.c prototypes
4081         * as/mcs51/lkmain.c (link_main): fixed warning
4082         * device/include/stdbool.h: ds390 has no advanced bit support yet
4083         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
4084         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
4085         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
4086           and updated their macros
4087         * src/SDCCval.c (constVal): updated comment for renamed b_long
4088
4089 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
4090
4091         * as/mcs51/asdata.c: changed ctype['['] to BINOP
4092         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
4093           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
4094           (oprio): set priority for '['
4095         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
4096            and adb_24_bit
4097         * as/mcs51/asm.h: added defines R_BIT and S_BIT
4098         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
4099         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
4100         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
4101           added overlayable BIT_BANK area
4102         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
4103           (summary2): explain 'T' in legenda
4104         * as/mcs51/lkrloc.c: replaced old K&R style,
4105           (relr): added R_BIT processing,
4106           (errmsg): added "Bit-addressable relocation error",
4107           (adb_bit): added for converting from byte- to bit-addressable space,
4108           (adb_24_bit): added for converting from byte- to bit-addressable space
4109         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
4110            used in reentrant functions now even as return value
4111         * device/lib/_gptrput.c (_gptrput): removed obsolete code
4112         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
4113           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
4114         * src/SDCCglobl.h: added indicator BitBankUsed
4115         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
4116            the bit registers b0-b7
4117         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
4118           (geniCodeCast): fixed bug 1263853,
4119           (geniCodeLogicAndOr): put result in bool or char,
4120           (geniCodeReceive): added parameter func for accessing the return type,
4121           (geniCodeFunctionBody): pass func to geniCodeReceive
4122         * src/SDCCmain.c: added indicator BitBankUsed
4123         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
4124         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
4125           (checkSClass): don't put automatic bool/bit on stack,
4126           (checkFunction): removed check on function cannot return bit
4127         * src/SDCCsymt.h: added newBoolLink prototype
4128         * src/mcs51/gen.c (rb1regs): added bit registers,
4129           (movc): created for assigning to carry,
4130           (pushReg, popReg): created for pushing registers,
4131           (sameRegs): check both AOP_REG and AOP_CRY types,
4132           (aopOp): handle bit registers,
4133           (aopPut): optimization no self-assign,
4134           (saveRegisters): push reg->base (bits) only once for bit registers,
4135            and use pushReg,
4136           (unsaveRegisters): pop reg->base only once and use popReg,
4137           (assignResultValue): added parameter func and return in carry for bits,
4138           (genIpush): optimization no reload in A if not changed,
4139           (genSend): bit parameters in reentrant functions are passed in bit
4140            registers by first assigning to bits in B, then save registers and
4141            copy B to bits,
4142           (genCall): handle returning in Carry properly, save it in F0 if needed,
4143           (genPcall): updated assignResultValue call, this is not safe yet for bit
4144            returning function !!!
4145           (genFunction): don't generate equ's for bit registers and use pushReg,
4146           (genEndFunction): take care of bit returning functions and use popReg,
4147           (genRet): return bit in Carry,
4148           (genIfx): optimize bit registers and other directly addressable bits,
4149           (genReceive): updated assignResultValue call
4150         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
4151           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
4152            registers when using stack-auto
4153         * src/mcs51/ralloc.c (_G): added allBitregs,
4154           (regs8051): added the bit registers,
4155           (createStackSpil): use macro IS_BIT,
4156           (getRegBit): added to allocate a bit register, else spill,
4157           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
4158           (updateRegUsage): factored out to ease stepping while debugging,
4159           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
4160            also allocate bit registers,
4161           (fillGaps): handle bit registers,
4162           (findAllBitregs): added to create bit vector with all bit registers,
4163           (mcs51_allBitregs): returns this bit vector,
4164           (mcs51_assignRegisters): when using stack-auto use bit registers for
4165            passing parameters and creating local variables
4166         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
4167
4168 2005-08-22 Borut Razem <borut.razem AT siol.net>
4169
4170         * device/lib/Makefile.in: replaced find option -or with -o
4171           to make it run on solaris
4172
4173 2005-08-22 Raphael Neider <rneider AT web.de>
4174
4175         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
4176           fixes #1265442 (crash on Solaris)
4177
4178 2005-08-20 Borut Razem <borut.razem AT siol.net>
4179
4180         * configure, configure.in: added tests for libsocket and libnsl libraries,
4181           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
4182           from support/regression/Makefile.in
4183         * support/regression/Makefile.in: added
4184         * device/lib/pic16/Makefile.common.in: force make to use bash shell
4185         * sim/ucsim/libtool: regenerated on sparc-solaris
4186         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4187           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
4188           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
4189           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
4190           sparc-solaris, which doesn't use GNU ld linker
4191         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
4192         * as/Makefile: find on sparc-solaris does not support -maxdepth option
4193
4194 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
4195
4196         * src/mcs51/peeph.def: updated comments
4197
4198 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4199
4200         * device/lib/_gptrget.c,
4201         * device/lib/_gptrput.c: slightly shorter
4202         * doc/sdccman.lyx: incremented version
4203         * src/mcs51/peeph.def: moved peephole comments to the line of first
4204           change to better keep line correlation, reanimated 186.e
4205         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
4206
4207 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4208
4209         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
4210           David Saxton with quotes around file name.
4211
4212 2005-08-15 Borut Razem <borut.razem AT siol.net>
4213
4214         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
4215           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
4216           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
4217           make tests run on x86_64 platform
4218
4219 2005-08-13 Raphael Neider <rneider AT web.de>
4220
4221         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
4222           as it might be executed DURING a build (parallel make is wonderful)
4223
4224 2005-08-13 Raphael Neider <rneider AT web.de>
4225
4226         * device/lib/Makefile.in (port-specific-objects-pic16):
4227           revert to cp $(PORT)/bin/*.* $(PORTDIR)
4228         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
4229           dependency
4230         * device/lib/pic16/Makefile.rules: build subdirs before creating
4231           the library, removed builddir rule, create $(builddir) early in
4232           recurse rule, use empty recurse rule for leaf directories
4233         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
4234           mkdir errors (race condition), removed duplicate suffix "hex"
4235           from clean rules
4236         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
4237         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
4238           prevents mkdir -p from aborting on Alpha
4239
4240 2005-08-12 Raphael Neider <rneider AT web.de>
4241
4242         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
4243           db-statements in order to allow for arrays of pointers in code
4244           sections to be placed without interspersed 0-padding, fixes
4245           bug #1256215
4246         * (emitStatistics): fixed division by zero for pic18f1220
4247         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
4248           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
4249         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
4250         * (pic16_pCodeConstString): keep track of already emitted string
4251           literals to prevent "duplicate definitions of symbol _str_NR"
4252         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
4253           debug message
4254         * device/lib/Makefile.in: ignore failing PIC16 library builds
4255         * device/lib/pic16/Makefile: do not build if gputils are missing
4256         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
4257
4258 2005-08-10 Raphael Neider <rneider AT web.de>
4259
4260         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
4261           my last commit)
4262
4263 2005-08-10 Raphael Neider <rneider AT web.de>
4264
4265         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
4266           Rokas' patch to add the new fixed point type "__fixed16x16"
4267         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
4268           functions for __fixed16x16 arithmetics
4269         * device/lib/pic16: reimplemented the build system to support
4270           a separate build directory, better handling of libio (create
4271           the library in a separate subdir for each architecture) and
4272           easier configuration (centralized in Makefile.common)
4273
4274 2005-08-07 Raphael Neider <rneider AT web.de>
4275
4276         * src/pic16/gen.c (genrshTwo): fixed sign extension
4277         * src/pic16/device.c: added pic18f2320, 4220 and 4320
4278         * device/include/pic16/pic18f2220.h: changed some bit definitions,
4279           added T0CONbits
4280         * device/include/pic16/pic18f4220.h: NEW, header for
4281           pic18f4220 and pic18f4320
4282         * device/include/pic16/pic18fregs.h: added new devices,
4283           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
4284         * device/include/pic16/signal.h: resolved name clashes
4285           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
4286           to also allow testing for interrupt enable bits, added
4287           comments on how to use the macros
4288         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
4289         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
4290           register definitions for the devices
4291         * device/lib/pic16/pics.all: added new devices
4292         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
4293           allocated memory
4294         * device/lib/pic16/libc/stdlib/memfree: do not count
4295           the block header as free memory
4296         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
4297           simplified and added missing end-of-blocklist-marker
4298           (reported by Peter Onion, fixes #1252814)
4299         * (_mergeHeapBlock): fixed loop condition
4300         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
4301           len==0, restructured code
4302         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
4303           up a bit, reduced bitfield accesses, prevent endless loops
4304           in case of heap corruption
4305         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
4306           "unreferenced arguments/must return a value" warnings
4307         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
4308           replaced BAUDREG with SPBRG
4309         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
4310           device/lib/pic16/debug/gstack/gstack.c: replaced
4311           _naked, _asm, _endasm with __naked, __asm, __endasm
4312
4313 2005-08-05 Raphael Neider <rneider AT web.de>
4314
4315         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
4316           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
4317
4318 2005-08-05 Borut Razem <borut.razem AT siol.net>
4319
4320         * device/lib/Makefile.in: added missing ';'
4321         * configure: removed ^M characters
4322
4323 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4324
4325         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
4326           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
4327           License
4328
4329 2005-08-04 Borut Razem <borut.razem AT siol.net>
4330
4331         * configure.in: pic16 libraries build 2nd try - enable running
4332           configure in device/lib/pic16
4333         * configure: regenerated from configure.in
4334         * device/lib/Makefile.in: create $(PORT)/bin directory
4335
4336 2005-08-03 Raphael Neider <rneider AT web.de>
4337
4338         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
4339           to get/set values via pointers
4340         * (genUnpackBits,genPackBits): changed detection of
4341           ptr->bitfield vs. sym.bitfield, fixed access via generic
4342           pointers, removed dead (wrong) code for multibyte bitfields
4343         * (genNearPointerGet, genGenPointerGet): removed useless code,
4344           fixed bitfield detection, fixes #1250594
4345         * (genNearPointerSet): removed useless code
4346         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
4347           and introduced macro pic16_emitpcode that conditionally emits
4348           the origin of the following pCode (useful for debugging SDCC)
4349         * src/pic16/pcode.c: changed (and disabled) some debug outputs
4350         * (createDefmap): fixed handling of LFSR for --optimize-df
4351
4352 2005-08-02 Borut Razem <borut.razem AT siol.net>
4353
4354         * device/lib/Makefile.in: pic16 libraries build enabled since
4355           gputils-0.13.2 are now localy installed at sourceforge's compile farm
4356
4357 2005-08-02 Raphael Neider <rneider AT web.de>
4358
4359         * src/pic16/gen.c (genPackBits): removed deprecated warning
4360         * (genGenPointerSet): fixed bitfield detection
4361
4362 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4363
4364         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
4365
4366 2005-07-31 Raphael Neider <rneider AT web.de>
4367
4368         * device/lib/pic16/libdev/pic18f458.c,
4369           device/include/pic16/pic18f458.h: added missing T0CONbits
4370
4371 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4372
4373         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
4374
4375 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
4376
4377         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
4378
4379 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4380
4381         * device/include/mcs51/at89c51ed2.h: added.
4382
4383 2005-07-23 Raphael Neider <rneider AT web.de>
4384
4385         * src/pic/gen.h: added emitpcode macro for debugging
4386         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
4387           and replace by macro adding debug information on demand
4388         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
4389         * (gencjne): tried to fix; replaced with correct (slower) code
4390         * (gen{Unp,P}ackBits): fixed single bit access
4391         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
4392         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
4393           previous instruction
4394         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
4395           register has to be handled with care (forbidding movement
4396           of assignments/uses, removing assignments completely, ...)
4397         * (pCodeOptime2pCodes): make use of regIsSpecial
4398         * added lots of debugging output (commented out)
4399         * src/pic/rallloc.c (deassignLRs): prevent operand registers
4400           from being reused as result UNLESS it is known to work
4401
4402 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4403
4404         * support/Util/dbuf.h: include <stddef.h> for size_t
4405         * .version: changed to version 2.5.2
4406
4407 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4408
4409         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
4410
4411 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4412
4413         * src/hc08/gen.c (genMinus): fixed bug #1241835,
4414           (genModOneByte): removed needless psha/pula
4415
4416 2005-07-22 Raphael Neider <rneider AT web.de>
4417
4418         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
4419           have PIC14 handled like PIC16, fixes broken pic14 linker calls
4420         * src/pic/gen.c (resolveIfx): do not "invent" labels
4421         * (genSkipc): changed to positive logic
4422         * (genSkipCond): removed as no longer needed
4423         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
4424           backport from PIC16
4425         * (genLeftShift): check operands are in different registers
4426         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
4427           INCF does not update CARRY...
4428         * src/pic/main.c: fixed _linkCmd
4429         * src/pic/pcode.c (unlinkpCode): added inactive code
4430         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
4431           alive (do not assign result and operand overlapping registers)
4432
4433 2005-07-22 Raphael Neider <rneider AT web.de>
4434
4435         * src/pic/device.c (dump_sfr): replaced register declaration with
4436           call to emitSymbolToFile() to avoid duplicate symbols
4437         * (assignRelocatableRegisters): do not declare external symbols
4438         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
4439           right (take size of type, not etype)
4440         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
4441         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
4442         * (packRegsForAccUse): disabled assignment of WREG as
4443           the result reg to prevent occurence of just fixed #1235003,
4444           fixes #1242954
4445         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
4446           symbols (avoids duplicate symbols in .asm file)
4447         * (pic14emitRegularMap): use emitSymbolToFile()
4448         * src/pic/gen.c (aopOp): fixed spillLocation handling
4449         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
4450         * (genDataPointerSet): removed unneccessary variables/output
4451
4452 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
4453
4454         * as/mcs51/lkarea.c: enlarged codemap for banked memory
4455         * device/lib/mcs51/crtbank.asm: added # to 0x0F
4456
4457 2005-07-21 Raphael Neider <rneider AT web.de>
4458
4459         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
4460           architecture cannot handle them efficiently, fixes bug #1235003
4461         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
4462           check for empty sets before using them (fixes bug #1232190)
4463
4464 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
4465
4466         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
4467           (lnksect2): generate warnings for memory overlap
4468         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
4469           constseg to set the name of these segments so you can instruct the linker
4470           to place them in banks
4471         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
4472         * src/SDCCglobl.h: added MODEL_HUGE to enum,
4473           added code_seg and const_seg to options
4474         * src/SDCCglue.c (emitMaps): use options.const_seg,
4475           (createInterruptVect): put interrupt vectors in segment HOME,
4476           (glue): put HOME before static segment and put the main glue in HOME,
4477           (glue): use options.code_seg
4478         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
4479         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
4480           these segments so you can instruct the linker to place them in banks
4481           (linkEdit): use code_loc for HOME segment which should be the first
4482           segment in code memory now
4483         * src/SDCCmem.c: fixed more stuff like bug 1238386
4484         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
4485           (changePointer): don't change function pointers to code pointers for
4486           banked functions,
4487           (compareType): added exceptional check for banked function pointers
4488         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
4489         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
4490           after static in code memory
4491         * src/mcs51/gen.c: added aopLiteralLong prototype,
4492           (aopForSym): use getSize for functions,
4493           (genCall): generate banked calls over one trampoline __sdcc_banked_call
4494           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
4495           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
4496           the segment,
4497           (genPcall): use call for literal function pointers and generate banked
4498           calls over the one trampoline so there's only one place for the user to
4499           modify according to his/hers hardware,
4500           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
4501           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
4502         * src/mcs51/main.c: added keyword banked,
4503           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
4504         * support/Util/SDCCerr.c,
4505         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
4506           needed for passing the bank and address to the trampoline
4507         * device/lib/mcs51/crtbank.asm: added for bankswitching
4508         * device/lib/mcs51/Makefile: added crtbank
4509
4510 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4511
4512         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
4513           for fields at offset 0 of a struct or union as reported
4514           on 2005-07-07 in the developer mailing list.
4515
4516 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
4517
4518         * src/SDCCmem.c: fixed bug 1238386
4519
4520 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4521
4522         * src/mcs51/peeph.def: added labelrefcounting for peepholes
4523           (patch #1144962), added peephole 300, enabled 259.x
4524         * doc/sdccman.lyx: removed screenshot and provided link instead
4525
4526 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4527
4528         * doc/sdccman.lyx: added section about debugging with ddd
4529         * doc/figures/ddd_example.eps: screenshot of debugging session
4530
4531 2005-07-04 Raphael Neider <rneider AT web.de>
4532
4533         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
4534           like CODE pointers, fixes #1115683
4535         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
4536           call, fixes bugs #1232211, #1228110,
4537           fixed wrong casts to pCodeFlow from pCodeInstructions
4538
4539 2005-07-04 Raphael Neider <rneider AT web.de>
4540
4541         * src/pic/gen.c (popGet): changed assert to allow for
4542           bit operands
4543         * (popGetAddr): changed signature to provide
4544           an additional index, patched all call sites
4545         * (genCmpEq): handle literal-like operands correctly
4546         * (genAddrOf): added sanity checks on __code/__data pointers
4547         * (genAssign): added handling of symbols from __code section
4548         * (gencjne): do not generate code for comparisons whose result
4549           is neither stored nor used, fixes bug #1171114
4550         * (AccLsh, AccRsh): operate on operand instead of WREG
4551         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
4552           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
4553           by known count
4554         * rewrote complete shift-by-literal logic, commented unused
4555           functions out
4556         * (genConstPointerGet): get multiple bytes (if result size > 1),
4557           fixed handling of non-immediate addresses
4558         * (genPointerGet): handle CODE pointers like CONST pointers
4559         * (genpic14Code): insert C-SRC lines as Cource-pCodes
4560         * ({aop,op}_isLitLike): NEW, single place to decide whether an
4561           operand is to be treated as a literal or not
4562         * (mov2w,genPcall,genCmpEq),
4563           src/pic/genarith.c: use aop_isLitLike() to decide between
4564           literal/register contents
4565         * (addSign): added missing offset
4566         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
4567           only emit comment in debug-mode,
4568           use {aop,op}_isLitLike throughout the file
4569         * src/pic/glue.c: fix initializers for pointers (work in progress)
4570         * src/pic/pcode.c (get_op): honor index on _const symbols
4571         * ({reset,dump}pCodeStatistics): NEW, estimate code size
4572         * (dumppBlock): added pCode size estimation
4573         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
4574           check for IS_SYMOP before OP_SYMBOL'ing
4575         * fixed indentation, compacted switch-statements
4576         * (allocReg): find free register and allocate it instead of
4577           allocating new registers all the time
4578         * (deassignLRs): prevent POINTER_GET's from being assigned the same
4579           registers as its operands (necessary only for multibyte GETs)
4580
4581 2005-07-01 Raphael Neider <rneider AT web.de>
4582
4583         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
4584           debugging .asm-output macros FENTRY + FEXIT
4585         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
4586           way... I wonder...
4587         * (emitpComment): NEW, printf to pCode
4588         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
4589           offset handling
4590         * (popGetAddr): NEW, variant of popGet to access an immediates
4591           high(er) bytes instead of the n'th byte of memory they reference,
4592           replaced popGet with popGetAddr where neccessary
4593         * (genDataPointerGet): reactivated and fixed implementation
4594         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
4595           accesses
4596         * (genDataPointerSet): fixed multibyte assignments
4597         * (genpic14Code): fixed --i-code-in-asm handling
4598         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
4599         * (genPlus): fixed index-out-of-bounds error
4600         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
4601         * src/pic/ralloc.c: added debugging output macro FENTRY2
4602         * (spillThis): fixed indentation, enbraced for-body for clarity
4603         * (rematStr): commented out as now unused
4604         * (regTypeNum): commented out special spill case (overwrites
4605           arbitrary values)
4606         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
4607
4608 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
4609
4610         * doc/sdccman.lyx: documented sfr16/sfr32,
4611           added example for using storage class with function pointers
4612         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
4613
4614 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
4615
4616         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
4617         * device/lib/_itoa.c,
4618         * device/lib/_ltoa.c: optimized codesize
4619         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
4620           but don't know how to suppress the double warning.
4621         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
4622         * support/Util/SDCCerr.c,
4623         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
4624
4625 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
4626
4627         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
4628           fixed old K&R prototypes
4629         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
4630         * device/lib/_gptrget.c,
4631         * device/lib/_gptrgetc.c,
4632         * device/lib/_gptrput.c: changed versions for new memory indicator values,
4633           also new versions for small generic pointers and banked generic pointers
4634         * src/port.h: added const_name
4635         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
4636         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
4637         * src/SDCCcse.c (findPrevIc): check all associative operators
4638         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
4639         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
4640         * src/SDCCmem.c: updated comments,
4641           set far-space to 0 for pdata, results in optimized code
4642         * src/SDCCmem.h: added macro CONST_NAME
4643         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
4644           moving the info into the highest bits, see also gptrget/gptrput
4645         * src/src.dsp: added sdcc.ico to project files
4646         * src/avr/gen.c (genCast): fixed bug 0x%d
4647         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
4648         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
4649           relation between ptr_type and DCL_TYPE,
4650           (genCast): fixed bug 0x%d
4651         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
4652           (CODE)" for const_name
4653         * src/hc08/gen.c (genCast): fixed bug 0x%d
4654         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
4655           (hc08_port): added "CONST (CODE)" for const_name
4656         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
4657           (aopForRemat, adjustArithmeticResult): disconnected direct relation
4658           between ptr_type and DCL_TYPE,
4659           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
4660           operand* and took AOP() inside function so sfr-ness can be checked,
4661           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
4662           new prototype,
4663           (genFunction, genEndFunction): optimized stack setup,
4664           (genMinus): optimized for literals with ending zeroes (in bytes),
4665           (genCast): fixed bug 0x%d
4666         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
4667           (mcs51_port): added "CONST (CODE)" for const_name
4668         * src/mcs51/peeph.def: made rule 226 more generic
4669         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
4670         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
4671         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
4672         * src/z80/main.c (z80_port): added NULL for const_name,
4673           (gbz80_port): added NULL for const_name
4674         * support/regression/tests/bug663539.c,
4675         * support/regression/tests/sfr16.c: new tests
4676
4677 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4678
4679         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
4680
4681 2005-06-24 Raphael Neider <rneider AT web.de>
4682
4683         * device/lib/pic16/libdev/pic18f[68][567]20.c:
4684           corrected typos...
4685         * device/include/pic16/signal.h: added USBIF
4686           and SIG_USB
4687
4688 2005-06-24 Raphael Neider <rneider AT web.de>
4689
4690         * device/lib/pic16/libdev/pic18f2455.c,
4691           device/include/pic16/pic18f2455.h: NEW
4692         * device/include/pic16/pic18fregs.h,
4693           device/lib/pic16/pics.all,
4694           src/pic16/device.c: added 18f2455
4695         * device/lib/pic16/libdev/pic18f[68][567]20.c,
4696           device/include/pic16/{pic18f[68][567].h,usart.h}:
4697           replaced MULTIPLE_USARTS define with more relaible
4698           compatibility sfrs (for USART access)
4699
4700 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
4701
4702         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
4703           and the output asm file line is printed on two lines.
4704
4705 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4706
4707         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
4708           BGT, BLE, BHI, and BLS instructions
4709         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
4710           genCmpEq): removed
4711         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
4712           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
4713           fixes bug #1216342
4714         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
4715
4716 2005-06-15 Raphael Neider <rneider AT web.de>
4717
4718         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
4719         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
4720         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
4721           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
4722           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
4723
4724 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4725
4726         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
4727           Marcel Telka in bug #1215704
4728
4729 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
4730
4731         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
4732           located in shared memory bank.
4733
4734 2005-05-31 Raphael Neider <rneider AT web.de>
4735
4736         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
4737           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
4738           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
4739
4740 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
4741
4742         * device/lib/_strncpy.c: fixed the fix
4743
4744 2005-05-26 Raphael Neider <rneider AT web.de>
4745
4746         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
4747           initializers with \0, bug #1208187
4748         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
4749           intializers with \0, bug #1208187
4750
4751 2005-05-26 Raphael Neider <rneider AT web.de>
4752
4753         * src/pic16/glue.c (pic16_printIvalChar): fixed string
4754           initializers with \0, bug #1208187
4755         * src/pic16/main.c (_process_pragma): added sanity checks
4756           for stack position and size, emit warnings when appropriate
4757
4758 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4759
4760         * device/lib/_strncpy.c: fixed not filling with \0
4761
4762 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4763
4764         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
4765           createFunction),
4766         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
4767           compound_statement),
4768         * src/SDCCsymt.h,
4769         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
4770
4771 2005-05-24 Raphael Neider <rneider AT web.de>
4772
4773         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
4774
4775 2005-05-24 Raphael Neider <rneider AT web.de>
4776
4777         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
4778           TRISE definitions, closes bug #1162453
4779
4780 2005-05-22 Raphael Neider <rneider AT web.de>
4781
4782         * src/pic16/main.c (_process_pragma): check for missing
4783           arguments to pragmas code and udata
4784         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
4785           consistency fixes to match other headers (thanks to Jim Paris)
4786         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
4787
4788 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4789
4790         * src/SDCCicode.c (isOperandEqual): fixed missing ;
4791
4792 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
4793
4794         * support/regression/tests/bug1198642.c: new test
4795         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
4796         * src/SDCCcse.c (findPrevIc): added comment, please have a look
4797         * support/scripts/resource.h,
4798         * support/scripts/resource.rc,
4799         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
4800         * support/scripts/sdcc.ico: added 32x32 icon
4801
4802 2005-05-18 Raphael Neider <rneider AT web.de>
4803
4804         * device/lib/pic16/libdev/pic18f*.c,
4805         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
4806           keywords to "__sfr" and "__at (X)"
4807         * device/include/pic16/pic18fregs.h: added pic18f4520
4808         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
4809           #1203088 (MPLAB compatibility)
4810
4811 2005-05-17 Raphael Neider <rneider AT web.de>
4812
4813         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
4814         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
4815         * device/lib/pic16/pics.all: added new devices
4816         * src/pic16/device.c: added support for pic18f4520
4817
4818 2005-05-16 Raphael Neider <rneider AT web.de>
4819         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
4820         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
4821         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
4822           convenience function for bit access
4823
4824 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4825
4826         * device/lib/printf_large.c: fixed bug 1193299
4827         * support/regression/tests/bug1057979.c: added test %3.3s
4828
4829 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4830
4831         * device/include/mcs51/8051.h,
4832         * device/include/mcs51/8052.h: made parseable with lint
4833         * device/include/mcs51/lint.h: added include file for (sp)lint
4834         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
4835         * doc/cdbfileformat.lyx,
4836         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
4837
4838 2005-05-14 Raphael Neider <rneider AT web.de>
4839
4840         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
4841         * device/lib/pic16/libc/stdlib/itoa.c (new)
4842         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
4843         * device/lib/pic16/libio/Makefile: exclude subdir according to
4844           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
4845         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
4846         * src/pic16/gen.c (genFunction): prevent annoying warning
4847         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
4848           nameclashes on BeOS
4849         * support/cpp2/cppmain.c (cpp_output_string): new
4850         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
4851           fixes bug 1116802
4852
4853 2005-05-13 Borut Razem <borut.razem AT siol.net>
4854
4855         * src/SDCCmain.c (linkEdit): fixed bug 1195202
4856
4857 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4858
4859         * .version: changed to version 2.5.1; back to bleeding edge development
4860
4861 2005-05-11 Borut Razem <borut.razem AT siol.net>
4862
4863         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
4864           generate PDF version 1.3 documents
4865
4866 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4867
4868         * .version: changed to version 2.5.0
4869
4870 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4871
4872         * doc/sdccman.lyx: updated weblinks, index and smaller updates
4873
4874 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4875
4876         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
4877         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
4878         well as many smaller updates.
4879         * .version: changed to version 2.5.0-pre1
4880
4881 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4882
4883         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
4884
4885 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4886
4887         * support/regression/tests/bug1185672.c: added
4888         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
4889           bug 1185672
4890         * src/mcs51/gen.c (genCall): added comments, made it look safer
4891         * src/mcs51/gen.c (genEndFunction): simplified
4892
4893 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4894
4895         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
4896
4897 2005-04-14 Borut Razem <borut.razem AT siol.net>
4898
4899         * fixed bug 1045046 - SIGSEGV with really simple code?:
4900           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
4901           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
4902
4903 2005-04-14 Borut Razem <borut.razem AT siol.net>
4904
4905         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
4906           src/pic16/device.h: temporarily disabled experimental #inline pragma
4907           for 2.5.0 release
4908
4909 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
4910
4911         * device/include/z80/stdio.h,
4912         * device/include/z80/string.h: removed these highly incomplete files so
4913           SDCC can use the default ones in device/include/
4914
4915 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4916
4917         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
4918         gcc warning.
4919         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
4920         fix sdcpp warnings.
4921
4922 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4923
4924         * device/include/malloc.h: removed redundant __reentrant prototypes
4925         * device/lib/_mullong.c: added working xstack variant in asm (C version
4926           doesn't pass regression tests)
4927         * device/lib/bpx.c: used __data and made bpx char for mcs51
4928         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
4929           (createFunction): fixed bug with xstackPtr
4930         * src/SDCCcse.c: corrected comments
4931         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
4932           (killDeadCode, eBBlockFromiCode): removed unused code
4933         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
4934           corrected comments
4935         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
4936           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
4937           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
4938           (genModOneByte): fixed warning in MSVC
4939         * src/mcs51/main.c (): added comments
4940         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
4941
4942 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * src/SDCCmain.c (linkEdit): oops, changed one line too many
4945
4946 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
4947
4948         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
4949
4950 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
4951
4952         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
4953         characters arrays of larger size than the declared one.
4954
4955 2005-04-10 Borut Razem <borut.razem AT siol.net>
4956
4957         * src/pic/gen.c (genInline),
4958           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
4959           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
4960           (findNextInstruction), (findPrevInstruction),
4961           (findInstructionUsingLabel),
4962           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
4963         * src/pic/pcode.c (findLabel): added missing '\n'
4964         * src/src.dsp: added SDCCdwarf2.c to the project
4965
4966 2005-04-09 Borut Razem <borut.razem AT siol.net>
4967
4968         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
4969
4970 2005-04-08 Raphael Neider <rneider AT web.de>
4971
4972         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
4973           into the chain after a given one) and mergeDefmapSymbols (combine
4974           defmap entries for each symbol per pcode)
4975         * (createDefmap): have defmap entries merged in the end
4976         * (defmapReplaceSymRef): split defmap entries covering two accesses to
4977           a symbol before replacing one access type's symbol, merge symbols in
4978           the end (replacement symbol might already have an entry)
4979         * (assignValnums): keep reference to written WREG intact
4980
4981 2005-04-08 Raphael Neider <rneider AT web.de>
4982
4983         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
4984           Alpha)
4985
4986 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
4987
4988         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
4989         bytes
4990
4991 2005-04-07 Raphael Neider <rneider AT web.de>
4992
4993         * device/include/pic16/usart.h: added compatibility defines for
4994           devices with more than one USART
4995         * device/include/pic16/pic18f[68][567]20.h: activated above defines
4996
4997 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4998
4999         * device/lib/Makefile.in: updated for port specific include
5000
5001 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5002
5003         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5004
5005 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5006
5007         * device/include/8051.h,
5008         * device/include/8052.h,
5009         * device/include/at89S8252.h,
5010         * device/include/at89c55.h,
5011         * device/include/at89x051.h,
5012         * device/include/at89x51.h,
5013         * device/include/at89x52.h,
5014         * device/include/mcs51reg.h,
5015         * device/include/reg51.h,
5016         * device/include/reg764.h,
5017         * device/include/regc515c.h,
5018         * device/include/sab80515.h: (re)moved these 12 files
5019         * device/include/mcs51/8051.h,
5020         * device/include/mcs51/8052.h,
5021         * device/include/mcs51/at89S8252.h,
5022         * device/include/mcs51/at89c55.h,
5023         * device/include/mcs51/at89x051.h,
5024         * device/include/mcs51/at89x51.h,
5025         * device/include/mcs51/at89x52.h,
5026         * device/include/mcs51/mcs51reg.h,
5027         * device/include/mcs51/reg51.h,
5028         * device/include/mcs51/reg764.h,
5029         * device/include/mcs51/regc515c.h,
5030         * device/include/mcs51/sab80515.h: and added them here
5031
5032 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5033
5034         * device/include/stdarg.h: changed SDCC specific keywords to double
5035           underlined form.
5036         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5037           mcs51 and ds390.
5038         * device/include/hc08/mc68hc908gp32.h,
5039         * device/include/hc08/mc68hc908jb8.h,
5040         * device/include/hc08/mc68hc908jkjl.h,
5041         * device/include/hc08/mc68hc908qy.h: fixed comments
5042         * device/include/mcs51/README: updated
5043         * device/include/mcs51/c8051f120.h: added PINRSF
5044         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5045         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5046           amidst code. Also inline is not supported.
5047
5048 2005-04-06 Raphael Neider <rneider AT web.de>
5049
5050         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5051         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5052           callers stack/frame pointers
5053
5054 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5055
5056         * device/include/pic16/usart.h: added, missing in previous commit,
5057         * device/include/pic16/adc.h: fixed typo,
5058         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5059         commit,
5060         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5061         <p18fxxx.inc>
5062         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5063         uninitialized because a bug appears with gplink
5064         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5065         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5066         complains for unrecognised option
5067
5068 2005-04-05 Raphael Neider <rneider AT web.de>
5069
5070         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5071           structs as well (using memcpy)
5072         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5073           on ISRs (GOTO has no label)
5074         * src/pic16/device.h: added OF_OPTIMIZE_DF
5075         * src/pic16/main.c: added compiler switch --optimize-df to enable the
5076           new data flow analysis/optimization
5077         * src/pic16/pcode.c: added (prototypes for and implementation of)
5078           dataflow analysis functions, fixed pCodeInstructions' inCond and
5079           outCond values, made RCALL a branch instruction
5080         * (pic16_unlinkpCode): keep C line if possible
5081         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
5082           C line moved if possible
5083         * (pic16_getRegFrompCodeOp): NEW, improved version of...
5084         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
5085           to use new pic16_getRegFrompCodeOp (works for more SFRs)
5086         * (pic16_BuildFlow): fixed skip instructions with label (did not start
5087           new flow)
5088         * (pic16_getJumptabpCode): NEW, needed in...
5089         * (LinkFlow): fixed handling of jumptables, calls and conditional
5090           branches
5091         * (pic16_InsertCommentAfter): NEW
5092         * (pic16_pCodeReplace): made verbose and flow preserving
5093         * (AnalyzeFlow): added call to data flow analysis
5094         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
5095         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
5096         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
5097
5098 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5099
5100         * src/SDCCast.c (decorateType): fixed bug #1105626
5101
5102 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
5103
5104         * device/include/asm/pic16/features.h,
5105         * pic18f*.h headers,
5106         * device/include/pic16/adc.h,
5107         * device/include/pic16/delay.h,
5108         * device/include/pic16/i2c.h,
5109         * device/include/pic16/malloc.h,
5110         * device/include/pic16/stdio.h,
5111         * device/include/pic16/stdlib.h,
5112         * device/include/pic16/string.h,
5113         * device/lib/pic16/libc/stdio/printf_tiny.c,
5114         * device/lib/pic16/libc/stdio/printf_small.c,
5115         * device/lib/pic16/libc/stdio/strmgpsim.c,
5116         * device/lib/pic16/libc/stdio/strmmssp.c,
5117         * device/lib/pic16/libc/stdio/strmusart.c,
5118         * device/lib/pic16/libc/stdio/vfprintf.c,
5119         * device/lib/pic16/libc/stdlib/ltoa.c,
5120         * device/lib/pic16/libc/stdlib/putchar.c,
5121         * device/lib/pic16/libc/stdlib/x_ftoa.c,
5122         * device/lib/pic16/libc/stdlib/memchrpgm.c,
5123         * device/lib/pic16/libc/stdlib/memchrram.c,
5124         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
5125         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
5126         * device/lib/pic16/libio/adc/adcbusy.c,
5127         * device/lib/pic16/libio/adc/adcread.c,
5128         * device/lib/pic16/libio/adc/adcsetch.c,
5129         * device/lib/pic16/libio/usart/ubaud.c,
5130         * device/lib/pic16/libio/usart/ubusy.c,
5131         * device/lib/pic16/libio/usart/udrdy.c,
5132         * device/lib/pic16/libio/usart/uopen.c,
5133         * device/lib/pic16/libio/usart/uputc.c,
5134         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
5135         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
5136         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
5137         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
5138         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
5139         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
5140         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
5141         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
5142         specific keywords to double underlined form,
5143         * device/lib/pic16/libc/Makefile.rules,
5144         * device/lib/pic16/libsdcc/Makefile.rules,
5145         * device/lib/pic16/libm/Makefile,
5146         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
5147         to compile with C standard set in Makefile.common
5148         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
5149         rand.c and crc.c in compilation process,
5150         * device/lib/pic16/libsdcc/int/divuint.c,
5151         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
5152         `c' from signed to unsigned,
5153         * device/lib/pic16/startup/crt0.c,
5154         * device/lib/pic16/startup/crt0i.c,
5155         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
5156         keywords to double underlined form, bug fixes in _do_cinit function
5157         which prevented the correct initialization of the .idata segment,
5158         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
5159         core to enter a infinite loop
5160         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
5161
5162 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5163
5164         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
5165
5166 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5167
5168         * device/include/Makefile.in: add support for hc08 subdirectory
5169         * device/include/hc08/: new subdirectory
5170         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
5171         Lucas Loizaga, thanks!
5172         * device/include/hc08/mc68hc908qy.h,
5173         * device/include/hc08/mc68hc908gp32.h,
5174         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
5175         their own directory. Changed internal macro names to use the compiler
5176         reserved namespace. Changed SDCC specific keywords to double
5177         underlined form.
5178         * device/include/math.h,
5179         * device/include/malloc.h,
5180         * device/include/stdarg.h,
5181         * device/include/stdbool.h
5182         * device/include/string.h,
5183         * device/include/tinibios.h,
5184         * device/include/ds400rom.h,
5185         * device/include/8051.h,
5186         * device/include/8052.h,
5187         * device/include/80c51xa.h,
5188         * device/include/at89c55.h,
5189         * device/include/at89S8252.h,
5190         * device/include/at89x51.h,
5191         * device/include/at89x52.h,
5192         * device/include/ds80c390.h,
5193         * device/include/reg764.h,
5194         * device/include/regc515c.h,
5195         * device/include/sab80515.h,
5196         * device/include/mcs51/c8051f000.h,
5197         * device/include/mcs51/c8051f018.h,
5198         * device/include/mcs51/c8051f020.h,
5199         * device/include/mcs51/c8051f040.h,
5200         * device/include/mcs51/c8051f060.h,
5201         * device/include/mcs51/c8051f120.h,
5202         * device/include/mcs51/c8051f300.h,
5203         * device/include/mcs51/c8051f310.h,
5204         * device/include/mcs51/c8051f320.h,
5205         * device/include/mcs51/c8051f330.h,
5206         * device/include/mcs51/c8051f350.h,
5207         * device/include/z180.h: Changed SDCC specific keywords to double
5208         underlined form.
5209
5210 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
5211
5212         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
5213         18F4455,
5214         * (pic16_assignConfigWordValue): disable testing of configuration
5215         register value with config mask,
5216         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
5217         function with port->fun_prefix,
5218         * (genFunction): when generating a naked interrupt function never
5219         create an absolute segment placed in interrupt vector address, place
5220         the actual interrupt function at IVA instead, when an interrupt
5221         function is generated with unspecified interrupt then do not create
5222         the absolute section,
5223         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
5224         code for generating a call to generic pointer get/put function with
5225         a call to function pic16_callGenericPointer(),
5226         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
5227         the call to the generic pointer get/put functions with prefixing the
5228         function name with port->fun_prefix,
5229         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
5230         * src/pic16/main.c (_process_pragma): prefix function with
5231         port->fun_prefix,
5232         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
5233         calling assembler, old 18Fxxxx macro is deprecated,
5234         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
5235         PC_ASMDIR in while condition,
5236         * (findInstruction): add PC_ASMDIR in while condition,
5237         * (buildCallTree): prefix main with port->fun_prefix,
5238         * (pic16_pCode2str): fixed bug that didn't emit the memory access
5239         identifier for variable with banked access in instructions BTFSS,
5240         BTFSC, BCF, BSF, BTG
5241         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
5242         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
5243         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
5244         perform optimization when enviroment variable NO_REG_OPT is set,
5245         * (insideLRBlock): NEW, return 1 if register is inside an
5246         INF_LOCALREGS block,
5247         * (RemoveRegFromLRBlock): remove a register that is completely
5248         eliminated by register optimization, but it is still left in local
5249         register store/restore in/from stack block,
5250         * (Remove2pcodes): after removing register, check to see if it
5251         should be removed from local register store/restore in/from stack
5252         block,
5253         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
5254         DUMMY_READ_VOLATILE,
5255
5256         * device/include/pic16/adc.h: minor prototype modifications and
5257         update,
5258         * device/include/pic16/malloc.h: added GPL notice various
5259         modifications,
5260         * device/include/pic16/stdint.h: NEW, standard header for ints
5261         * device/include/pic16/delay.h: NEW, header for delay functions,
5262         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
5263         delay1mtcy,
5264         * device/include/pic16/signal.h: NEW, header providing helper macros
5265         for implementing signal handlers,
5266         * device/include/pic16/stdio.h: added prototypes for functions,
5267         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
5268         prototypes for stdin and stdout, added macro PUTCHAR to
5269         automatically implement putchar function prototype,
5270         * device/include/pic16/usart.h: modified and updated USART library,
5271         * device/lib/pic16/libio/adc/,
5272         * device/lib/pic16/libio/i2c: some modifications to improve library
5273         performance,
5274         * device/lib/pic16/libc/stdio/: modifications for the new printf*
5275         family of functions,
5276         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
5277         family of functions and other sources,
5278         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
5279         of the PIC18Fxx[28] devices,
5280         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
5281         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
5282         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
5283         _do_cinit function, because the previous failed when local variables
5284         where not placed in the same memory bank,
5285         * device/lib/pic16/libsdcc/char/: various modifications to improve
5286         library performance,
5287         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
5288         information on the new functions of the c library and more...
5289
5290 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5291
5292         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
5293
5294 2005-03-26 Raphael Neider <rneider AT web.de>
5295
5296         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
5297           if condition == CARRY)
5298         * (genCmp): adapted to new genSkipc semantics
5299         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
5300           on rIfx (genCmp was broken)
5301
5302 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5303
5304         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
5305         * src/z80/main.c (_keywords[]),
5306         * src/SDCCglobal.h (struct options),
5307         * src/SDCC.y,
5308         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
5309         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
5310         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
5311         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
5312         always available in leading double underscore form. The C99 support is
5313         mostly missing, but it's a start.
5314         * support/regression/tests/bug-227710.c: fixed nonconforming use of
5315         reserved identifier "__data".
5316
5317 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5318
5319         * src/mcs51/peeph.def: fixed bug 1170013
5320
5321 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
5322
5323         * device/include/mcs51reg.h: fixed bug 842007
5324
5325 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5326
5327         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
5328         last time.
5329
5330 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5331
5332         * src/port.h (struct PORT),
5333         * src/avr/ralloc.c (avr_assignRegisters),
5334         * src/avr/main.c,
5335         * src/ds390/ralloc.c (ds390_assignRegisters),
5336         * src/ds390/main.c,
5337         * src/hc08/ralloc.c (hc08_assignRegisters),
5338         * src/hc08/main.c,
5339         * src/mcs51/ralloc.c (mcs51_assignRegisters),
5340         * src/mcs51/main.c,
5341         * src/pic/ralloc.c (pic14_assignRegisters),
5342         * src/pic/main.c,
5343         * src/pic16/ralloc.c (pic16_assignRegisters),
5344         * src/pic16/main.c,
5345         * src/xa51/ralloc.c (xa51_assignRegisters),
5346         * src/xa51/main.c,
5347         * src/z80/ralloc.c (z80_assignRegisters),
5348         * src/z80/ralloc.h,
5349         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
5350         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
5351         * src/SDCCcse.h,
5352         * src/SDCCdflow.c (computeDataFlow),
5353         * src/SDCCdflow.h,
5354         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
5355         * src/SDCCloop.h,
5356         * src/SDCCcflow.c (*),
5357         * src/SDCCcflow.h,
5358         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
5359         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
5360         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
5361         immedDom() returning wrong block; probably fixes bug #1160833)
5362
5363 2005-03-20 Borut Razem <borut.razem AT siol.net>
5364
5365         * support/scripts/inc2h.pl: WIN32 port
5366
5367 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
5368
5369         * device/lib/makefile.in: added abs.c and labs.c
5370
5371 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
5372
5373         * device/include/stdint.h: added
5374         * device/lib/abs.c: added
5375         * device/lib/labs.c: added
5376         * device/include/stdlib.h: added abs() and labs() prototypes
5377         * device/lib/libsdcc.lib: added abs and labs
5378         * device/include/float.h,
5379         * device/lib/_fsmul.c,
5380         * device/lib/printf_fast.c,
5381         * device/lib/printf_tiny.c: updated comments
5382
5383 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5384
5385         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
5386         bug #1164313
5387
5388 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5389
5390         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
5391         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
5392
5393 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
5394
5395         * device/lib/printf_large.c: removed inline assembly for portability and
5396           readability. Use printf_fast if speed or size are more important.
5397         * src/pic16/gen.c: removed conditions around use of DEBUGpc
5398         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
5399
5400 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
5401
5402         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
5403         prevent compiler warning
5404
5405 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5406
5407         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
5408         moved to level 0 and declared as static. Also they are explicit
5409         placed in access bank. This was necessery because some times they
5410         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
5411         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
5412         optimizations. Currently only compare to unsigned char is implemented,
5413         * src/pic16/gen.c: added fReturnIdx array,
5414         * (struct resolvedIfx) is moved to gen.h and made public,
5415         * (struct _G): added sregsAlloc and sregsAllocSet fields,
5416         * (aopForSym): added an optimization to directly store in stack of
5417         the operand of a SEND iCode,
5418         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
5419         but as registers instead (AOP_REG) using the fReturnIdx array,
5420         * (pic16_freeAsmop): remove the freed register from the
5421         _G.sregsAlloc field,
5422         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
5423         a compare of 'WREG',
5424         * (pic16_popGetTempRegCond): changed function prototype, now
5425         function takes also a bitVector argument v which holds the current
5426         set of registers that are allocated for stack access by aopForSym,
5427         registers allocated in aopForSym for accessing stack symbols are not
5428         any more part of the functions usedRegs field,
5429         * (genCall): some times aopOp is called for a stack variable to be
5430         send, aopForSym might perform the push, if this is true make sure
5431         that genCall doesn't push the variable twice by testing _G.resDirect,
5432         * (genFunction): changed testing for unspecified interrupt number
5433         from 256 to INTNO_UNSPEC,
5434         * modified selection scheme of frame pointer generation. Previously
5435         if function did use local registers a frame pointer was generated,
5436         now a frame pointer is generated only if function has arguments
5437         (that need PLUSW2 register access), or has stack arguments, or the
5438         compiler is not instructed to omit the frame pointer,
5439         * (genEndFunction): before restoring local registers that were saved
5440         in the function preamble, also restore the registers that *might*
5441         have been allocated for stack access,
5442         * (genRet): removed some old comments,
5443         * (genCmp, the active (RN's) version): added a call to the
5444         pic16_genCmp_special function to perform the compare with a more
5445         robust and optimized way,
5446         * (genInline): a feature has been added in inline code generation,
5447         which allows a wildcard variable substitution when writing inline
5448         assembly. Code is incomplete and experimental therefore undocumented,
5449         * (genCast): changed order of aopOp for result and right to allow
5450         aopForSym to directly load the result if possible,
5451         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
5452         perform an optimized compare on some selected special occasions,
5453         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
5454         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
5455         generate an IVT any more,
5456         * src/pic16/main.c (pic16_optionsTable): added command line option
5457         --optimize-cmp,
5458         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
5459         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
5460         macros,
5461         * src/pic16/NOTES: Raphael Neider added in list of active developers
5462         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
5463         jumptable_end to prevent bug #,
5464         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
5465         inCond and outCond fields,
5466         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
5467         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
5468         turn off register spilling,
5469         * (packRegsForOneUse): synced with other ports' versions although it
5470         is not used currently,
5471         * (pic16_packRegisters): added an optimization while reading
5472         structure bitfields, some registers may be saved (malloc code is
5473         decreased by 80 bytes)
5474
5475 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
5476
5477         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
5478         left is a bitfield, if yes, then don't optimize assignment. Perhaps
5479         this can be optimized more?
5480
5481 2005-03-10 Raphael Neider <rneider AT web.de>
5482
5483         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
5484           genNearPointerGet): (hopefully) fixed access to bitfields via
5485           pointers (p->bitN = x; and x = p->bitN; failed)
5486
5487 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
5488
5489         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
5490
5491 2005-03-09 Raphael Neider <rneider AT web.de>
5492
5493         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
5494
5495 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
5496
5497         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
5498         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
5499           (regTypeNum): set REG_BIT type if necessary
5500         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
5501         * support/regression/tests/critical.c: check bug 1144613
5502
5503 2005-03-02 Raphael Neider <rneider AT web.de>
5504
5505         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
5506
5507 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5508
5509         * src/avr/ralloc.c (serialRegAssign),
5510         * src/ds390/ralloc.c (serialRegAssign),
5511         * src/hc08/ralloc.c (serialRegAssign),
5512         * src/mcs51/ralloc.c (serialRegAssign),
5513         * src/pic/ralloc.c (serialRegAssign),
5514         * src/pic16/ralloc.c (serialRegAssign),
5515         * src/xa51/ralloc.c (serialRegAssign),
5516         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
5517
5518 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
5519
5520         * src/SDCCast.c (decorateType): fixed bug 1124787
5521
5522 2005-02-20 Hubert Sack <sack AT digiplan.de>
5523         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5524
5525         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
5526         patch #1121755
5527
5528 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5529
5530         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
5531         to keep the correct label reference count when adding/removing references
5532         to labels. A peephole file using this is appended to patch #1144962.
5533
5534 2005-02-14 Raphael Neider <rneider AT web.de>
5535
5536         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
5537         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
5538         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
5539           retrievals of result operand's value on assignment
5540
5541 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
5542
5543         * device/include/pic16/string.h: modified prototype for memccpy()
5544         to memccpy(void *, void *, char, size_t)
5545         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
5546         check whether to omit frame pointer or not,
5547         * (genInline): convert all occurences of "\n" to LF in inline
5548         assembler blocks, this helps formatting the inline text,
5549         * (pic16_loadFSR0): modified prototype,
5550         * (genNearPointerGet, genNearPointerSet): reorganization of code,
5551         removed some 8051 legacy code,
5552         * (genPackBits): enabled handling bitfields exceeding one byte in size,
5553         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
5554         before allocating temporary registers in functions,
5555
5556 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5557
5558         * support/regression/tests/bitvars.c: corrected the "fix"
5559
5560 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5561
5562         * support/regression/tests/bitvars.c,
5563         * support/regression/tests/bitwise.c,
5564         * support/regression/tests/rotate.c: "fixed" problems on Alpha
5565
5566 2005-02-10 Raphael Neider <rneider AT web.de>
5567
5568         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
5569           different size for Alpha
5570         * src/pic16/gen.c (genCmpEq) : improved compare with 0
5571
5572 2005-02-09 Raphael Neider <rneider AT web.de>
5573
5574         * src/SDCC.lex(doPragma) : save and restore warning options as well
5575           (also added new stack plus clone- and copyAndFreeSDCCERRG())
5576         * have #pragma less_pedantic set the errorlevel to WARNING
5577           (fixes #1117001)
5578         * (cloneOptimize) : fixed wrong malloc's size
5579         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
5580           facilitate correct handling of #pragma (save|restore)
5581
5582 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5583
5584         * src/mcs51/gen.c: removed non-standard C nameless struct/union
5585
5586 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
5587
5588         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
5589
5590 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
5591
5592         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
5593
5594 2005-02-02 Raphael Neider <rneider AT web.de>
5595
5596         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
5597         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
5598         * (pic16_storeForReturn): fixed to allow returning function pointers
5599         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
5600         * device/include/pic16/{stddef.h,stdbool.h}: added
5601
5602 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
5603
5604         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
5605
5606 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
5607
5608         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
5609         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
5610          appeared to be required
5611
5612 2005-01-31 Borut Razem <borut.razem AT siol.net>
5613
5614         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
5615           include/mcs51 and include/z80 directories to the package
5616
5617 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5618
5619         * src/hc08/gen.c (genFunction): fixed bug #1112752
5620
5621 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5622
5623         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
5624
5625 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5626
5627         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
5628
5629 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
5630
5631         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
5632
5633 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
5634
5635         * device/include/c8051fxxx.h: removed these 6 files
5636         * device/include/mcs51/c8051fxxx.h: added these 11 new files
5637
5638 2005-01-26 Raphael Neider <rneider AT web.de>
5639
5640         * src/pic16/gen.c (genAssign): fixed assignment from longs
5641           in codespace (were cut to three bytes)
5642         * (genDummyRead): implemented (except for CODESPACE...),
5643           fixed bug #1108575
5644         * src/pic16/glue.c (emitStatistics): beautified
5645         * device/lib/pic16/libm/Makefile: added include path
5646
5647 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5648
5649         * src/z80/gen.c (aopPut): fixed bug #1103902
5650
5651 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5652
5653         * device/lib/expf.c: fixed bug #1095792
5654
5655 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
5656
5657         * device/lib/pic16/libm: added Math library sources
5658
5659 2005-01-24 Raphael Neider <rneider AT web.de>
5660
5661         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
5662           to enable upcast to pCodeOpReg2 (there is no type tag to
5663           differenciate the two and pic16_popGet2p cast into PCOR2)
5664         * src/pic16/main.c (_process_pragma): fixed another malloc bug
5665           (sizeof(sectNames) changed to sizeof(sectName))
5666           Both patches fix segfaults under MinGW.
5667
5668 2005-01-23 Raphael Neider <rneider AT web.de>
5669
5670         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
5671           Safe_[mc]?alloc()'ed variables
5672         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
5673           of (byte sized) temporaries (assign them to WREG for now)
5674         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
5675           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
5676           this might fix SIGSEGVs on MinGW...
5677         * src/SDCCopt.c (killDeadCode): restored original behaviour
5678           (volatile operands might get thrown away though)
5679
5680 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
5681
5682         * src/pic16/gen.c: fixed bug #1106975,
5683         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
5684         pointer update, INTCON is saved, global interrupts are disabled and
5685         restored after updateing TOS.
5686         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
5687         * added function attribute 'shadowregs' to take advantage of shadow
5688         registers,
5689         * added function attribute 'wparam' as an alternative to the wparam
5690         pragma,
5691         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
5692         user declares a non-ISR function as 'shadowregs',
5693         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
5694
5695 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
5696
5697         * .version: bumped version number to 2.4.8
5698         * device/lib/pic16/pics.all: list of PIC18F devices supported by
5699         pic16 port,
5700         * device/lib/pic16/libio/i2c/: I2C module support library,
5701         * device/include/pic16/i2c.h: I2C support library header,
5702         * device/lib/pic16/libc/stdio/: standard IO support sources,
5703         * (printf_small.c): printf_small() source, supports float print,
5704         * (printf_tiny.c): printf_tiny() source, does not support floats,
5705         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
5706         enable global optimizations for entire library source, other
5707         Makefiles in the source tree are also modified to reflect this,
5708         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
5709         function,
5710         * doc/sdccman.lyx: updated to reflect new changes,
5711         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
5712         sym->onStack if-case,
5713         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
5714         sbit, idata, _idata, xdata, _xdata,
5715         * added pragma library, to link an external library, (see doc),
5716         * removed command line options, --pomit-config-words, --pomit-ivt,
5717         --pleave-reset-vector,
5718         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
5719         when calling assembler to reflect memory model used, also define
5720         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
5721         reflect stack model used,
5722         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
5723         on stack return NULL,
5724
5725 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5726
5727         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
5728           of the operands is volatile. Fixes #1020220
5729
5730 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5731
5732         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
5733         * (OptimizeRegUsage): make sure that there is really no other flow where
5734           the first pCode is used
5735
5736 2005-01-22 Raphael Neider <rneider AT web.de>
5737
5738         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
5739           to fix #1106967 (pCode->seq are not set up correctly)
5740
5741 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5742
5743         * src/SDCCglue.c (glue): make sure code area is declared before the
5744         static initialization area.
5745
5746 2005-01-21 Raphael Neider <rneider AT web.de>
5747
5748         * device/lib/Makefile.in: fixed test for pic16 install dir
5749         * device/lib/pic16/*/Makefile*: modified compile flags to enable
5750           optimizations
5751         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
5752           added --optimize-goto compiler switch and pragma wparam documentation
5753         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
5754         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
5755           and PRODH closing bug #1071770 (peephole optimizer)
5756
5757 2005-01-19 Raphael Neider <rneider AT web.de>
5758
5759         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
5760           cmdLine buffers (used when calling sdcpp...) are large enough
5761           (MAX_PATH=256 truncates arguments leading to system halts when
5762           used in MinGW...)
5763         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
5764         * (genUminus): rewritten to for efficiency
5765         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
5766           used uninitialized in some cases)
5767         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
5768           copy the third byte from the int -- now assumes 0x80 (data memory)
5769         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
5770           operands (genAddLit expects the iCode's operands to swapped as
5771           well), fixed leftover bytes (crashed for short left operands)
5772         * (pic16_genMinusDec): performance improvements, removed false
5773           PIC14 emitSKPNCs
5774         * (pic16_genMinus): fixed to cope with differently sized operands
5775         * src/pic16/glue.c (pic16_glue): added new banksel optimization
5776           for --obanksel > 1
5777         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
5778         * src/pic16/graph.[ch]: implementation of directed graphs, used by
5779           new banksel optimization
5780         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
5781           analysis for temporary registers (segfaults...)
5782         * src/pic16/peeph.def: added rule
5783
5784 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
5785
5786         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
5787         which converts a float number to its ASCII representation
5788         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
5789         functions to convert the fractional and integer part of a float to ASCII,
5790         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
5791         realloc.c): added _MALLOC_SPEC to explicit place variables in data
5792         ram
5793         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
5794         _STATMEM macros,
5795         * device/include/pic16/adc.h: added GPL info,
5796         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
5797         a pCodeOp as tested operand,
5798         * (genNearPointerGet): optimized bit testing, does not use
5799         intermediate register for bit value, test directly instead with
5800         BTFSS, BTFSC, works only for single bits,
5801         * (genpic16Code): dump the name of the iCode in the asm,
5802         * src/pic16/ralloc.c (decodeOp): removed static declaration and
5803         renamed to pic16_decodeOp,
5804         * (serialRegAssign): do not allocate a temporary register for iCode
5805         sequences that test a single bit for 1/0
5806
5807 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
5808
5809         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
5810         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
5811         access stack and frame pointers. They are initially assigned to
5812         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
5813         accessing SFRs. Updated all occurences of modification of stack or
5814         frame pointer in gen.c and pcode.c,
5815         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
5816         assigning of a literal value to pointers,
5817         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
5818         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
5819         selected
5820
5821 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5822
5823         * doc/sdccman.lyx: update documentation about stack pragma, added
5824         some info for stack memory models
5825
5826 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5827
5828         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
5829
5830 2005-01-08 Raphael Neider <rneider AT web.de>
5831
5832         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
5833           udata sections to fix bug #1097823
5834
5835 2005-01-05 Raphael Neider <rneider AT web.de>
5836
5837         * src/pic16/gen.c (genGenericShift): added handling of differently
5838           sized left operand and result
5839
5840 2005-01-04 Raphael Neider <rneider AT web.de>
5841
5842         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
5843         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
5844           to hold the condition bit)
5845         * added new version of genCmp (old code available via #define)
5846         * added new version of genShiftLeft/genShiftRight in a generic
5847           way, now supports shifting by negative values
5848         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
5849           shiftCount (expected by genGenericShift)
5850         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
5851         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
5852           dump
5853         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
5854           is an invalid literal too...)
5855
5856 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
5857
5858         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
5859         from Raphael Neider,
5860         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
5861         for 8-bit literals. This fixes some literal operands which are sign
5862         extended to 16-bits ints when instruction needs only 8-bits.
5863
5864 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
5865
5866         * device/lib/logf.c: added mcs51 assembly version
5867         * device/lib/expf.c: added mcs51 assembly version
5868         * device/lib/_logexpf.c: new shared asm code for expf and logf
5869         * device/include/math.h: add defines for assembly math library
5870         * device/lib/Makefile.in: build new _logexpf.c
5871         * device/lib/libfloat.lib: use new _logexpf.c
5872
5873 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5874
5875         * src/pic/device.c
5876         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
5877           device types which have less than 0x7f registers.
5878
5879 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5880
5881         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
5882
5883 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5884
5885         * device/lib/printf_fast.c: only build on supported arch.
5886         * device/lib/printf_tiny.c: only build on supported arch.
5887         * device/lib/printf_fast_f.c: only build if asm float lib
5888         * device/lib/_fsget1arg.c: only build if asm float lib
5889         * device/lib/_fsget2args.c: only build if asm float lib
5890         * device/lib/_fsnormalize.c: only build if asm float lib
5891         * device/lib/_fsreturnval.c: only build if asm float lib
5892         * device/lib/_fsrshift.c: only build if asm float lib
5893         * device/lib/_fsswapargs.c: only build if asm float lib
5894         * device/include/stdio.h: don't provide print_fast,
5895           print_fast_f, print_tiny prototypes if --xstack used
5896
5897 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
5898
5899         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
5900         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
5901           to the SOURCES
5902
5903 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5904
5905         * device/lib/printf_fast_f.c: same as printf_fast, but
5906           with floating point enabled
5907         * device/lib/printf_fast.c: minor tweaks
5908         * device/include/stdio.h: add printf_fast_f
5909
5910 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5911
5912         * src/SDCCmain.c: make --float-reent default for mcs51
5913         * device/lib/_fsadd.c: added mcs51 assembly version
5914         * device/lib/_fssub.c: added mcs51 assembly version
5915         * device/lib/_fsmul.c: added mcs51 assembly version
5916         * device/lib/_fsdiv.c: added mcs51 assembly version
5917         * device/lib/_fseq.c: added mcs51 assembly version
5918         * device/lib/_fsneq.c: added mcs51 assembly version
5919         * device/lib/_fsgt.c: added mcs51 assembly version
5920         * device/lib/_fslt.c: added mcs51 assembly version
5921         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
5922         * device/lib/Makefile.in: add _fscmp to build
5923         * device/lib/libfloat.lib: add _fscmp to build
5924
5925 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5926
5927         * device/lib/_fs2slong.c: added mcs51 assembly version
5928         * device/lib/_fs2sint.c: added mcs51 assembly version
5929         * device/lib/_fs2schar.c: added mcs51 assembly version
5930         * device/lib/_fs2ulong.c: added mcs51 assembly version
5931         * device/lib/_fs2uint.c: added mcs51 assembly version
5932         * device/lib/_fs2uchar.c: added mcs51 assembly version
5933         * device/lib/_slong2fs.c: added mcs51 assembly version
5934         * device/lib/_sint2fs.c: added mcs51 assembly version
5935         * device/lib/_schar2fs.c: added mcs51 assembly version
5936         * device/lib/_ulong2fs.c: added mcs51 assembly version
5937         * device/lib/_uint2fs.c: added mcs51 assembly version
5938         * device/lib/_uchar2fs.c: added mcs51 assembly version
5939         * device/include/float.h: added #define to select asm vs c
5940
5941 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
5942
5943         * device/lib/printf_fast.c: improvements to float output
5944         * device/include/float.h: add defines for assembly float library
5945         * device/lib/_fsget1arg.c: receive 1 float arg
5946         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
5947         * device/lib/_fsnormalize.c: normalize a float
5948         * device/lib/_fsreturnval.c: return float, various helper routines
5949         * device/lib/_fsrshift.c: right shift a float's mantissa
5950         * device/lib/_fsswapargs.c: swap 2 floats
5951         * device/lib/Makefile.in: build these 6 new files for mcs51
5952         * device/lib/libfloat.lib: add these 6 files to the library
5953
5954 2004-12-26 Borut Razem <borut.razem AT siol.net>
5955
5956         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
5957           built by gcc 3.4.2
5958
5959 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
5960
5961         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
5962           and fully reentrant and register bank neutral.
5963         * device/lib/printf_fast.c: added float (not enabled by default),
5964           added compact/slower integer (also not enabled by default),
5965           improved size/speed of fast integer code, other minor changes
5966         * device/include/stdio.h, device/lib/Makefile.in,
5967           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
5968
5969 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
5970
5971         * src/pic16/pcode.c: declaring variables other than at the start of a
5972           block is not supported in C by VC6.
5973
5974 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
5975
5976         * applied a previous patch from Raphael Neider that wasn't included
5977         in the previous commits, which fixes infinite loops within jumptable
5978         improvements,
5979         * made some fixes that previous patches introduced
5980
5981 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
5982
5983         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
5984         that fixes an issue with AOP_PCODE asmop's offset,
5985         * (pic16_popCopyReg): update instance field too,
5986         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
5987         function of pic port,
5988         * (genCmp, genAnd, genAssign),
5989         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
5990
5991 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
5992
5993         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
5994         variables initial values to idata section,
5995         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
5996         variables in some functions. This utilizes parmBytes field of iCode
5997         structure to hold the offset of the variable in stack. (might be
5998         able to use the stack field too?)
5999         * applied patch from Raphael Neider # ### , # ###
6000         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6001         variable initial values in idata section,
6002         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6003         for static variables with initial value
6004         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6005         applied fix in while loop from Raphael Neider.
6006
6007 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6008
6009         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6010         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6011         * src/ds390/ralloc.c (serialRegAssign): spill bits
6012         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6013         * support/Util/SDCCerr.c,
6014         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6015         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6016         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6017
6018 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6019
6020         * device/include/sdcc-lib.h: inserted LGPL, added includes
6021           asm/ds390/features.h and asm/mcs51/features.h
6022         * device/include/asm/default/features.h,
6023         * device/include/asm/gbz80/features.h,
6024         * device/include/asm/z80/features.h: added empty _AUTOMEM
6025           and _STATMEM
6026         * device/include/asm/ds390/features.h,
6027         * device/include/asm/mcs51/features.h: added files with defines for
6028           _AUTOMEM and _STATMEM indicating automatic and static storage class
6029         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6030         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6031         * src/SDCCicode.c (geniCodeCast),
6032         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6033         * src/SDCCloop.c (loopInduction): removed unused variable lr
6034         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6035           to convertToFcall to include char modulo (RFE 1065037), added check
6036           if left operand is unsigned and use abs of literal value
6037         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6038           as it doesn't work after conversion from peephole.def to peephole.rul
6039         * src/mcs51/gen.c (toBoolean): added check for size,
6040           (genModOneByte): optimized code for signed char modulo a literal
6041           power of 2 (thanks to Hubert Sack),
6042           (genRRC): removed unnecessary "clr c",
6043           (genRLC): replaced "add a,acc" with cheaper "rlc a"
6044         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6045           jump optimization,
6046           swapped rules 256.c and 256.d,
6047           extended 256.d by using new multiple checks (thanks Erik),
6048           added rules 256.e and 256.f,
6049           updated rule 261.a and 261.b to new generated code
6050         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6051
6052 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6053
6054         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6055           induction related bugs, including first part of bug #1074377
6056
6057 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6058
6059         * applied patch from bug-report #1076292,
6060         * applied patches for genAnd and Goto-optimizations for Raphael
6061         Neider,
6062         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6063         dump a less iCode information,
6064         * src/pic16/device.h (pic16_options_t): added field debgen,
6065         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6066         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6067         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6068         puclic,
6069         * (various functions): added macros FENTRY and FENTRY2 to functions,
6070         to emit function prologue,
6071         * (various functions): fixed indentation,
6072         * (genNearPointerGet): fixed loading of FSR0,
6073         * (genPackBits): applied patch from Raphael Neider to fix updating
6074         of FSR0 and touching only the modified bits,
6075         * src/pic16/genarith.c (various functions): added macros FENTRY to
6076         emit function prologue in comments,
6077         * src/pic16/pcode.h: added functions debugf2, debugf3,
6078         * src/pic16/ralloc.c: partial fix for packForPush caused
6079         segmentation fault,
6080
6081 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6082
6083         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
6084           <stsp AT users.sourceforge.net> with reversed byte order
6085         * support/regression/tests/rotate.c: added (ds390 skips some tests)
6086
6087 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6088
6089         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
6090           bug #1074377
6091         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
6092         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
6093
6094 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6095
6096         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
6097
6098 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6099
6100         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
6101           conditions,
6102           (setFromConditionArgs): friendly operand parser for peephole rules,
6103           (operandBaseName, operandsNotRelated): new peephole condition
6104           "operandsNotRelated" -- similar to "operandsNotSame", but takes
6105           architecture specific register naming into account, handles n-way
6106           comparisons, and supports quoted literals
6107         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
6108
6109 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6110
6111         * src/mcs51/peeph.def: fixed bug #1076940
6112
6113 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6114
6115         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
6116
6117 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6118
6119         Adding support for replacing ljmps with sjmps in jumptables
6120         generated for switch statements. For now you need to set the
6121         environment variable SDCC_SJMP_JUMPTABLE to enable this.
6122         Now 4 algorithms for mcs51 jumptable generation are used:
6123         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
6124         addresses loaded pc-relative for up to 112 cases and stack-pushing
6125         target addresses loaded with offset from dptr for up to 256 cases.
6126
6127         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
6128         * src/mcs51/main.c: adapted constants for switch table generation
6129         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
6130
6131 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
6132
6133         * device/lib/printf_large.c (_print_format): fixed bug 1073386
6134         * support/regression/tests/bug1057979.c: added test for bug 1073386
6135
6136 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6137
6138         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
6139         compilers
6140
6141 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6142
6143         * src/pic16/device.h,
6144         * src/pic16/genarith.c,
6145         * src/pic16/glue.c,
6146         * src/pic16/main.c,
6147         * src/pic16/pcode.c: applied patches #1068154 and #1070213
6148
6149 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
6150
6151         Large cummulative patch for pic16 port.
6152         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
6153         to call when a stack overflow occurs,
6154         * (malloc.h): added CVS Id tag,
6155         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
6156         variable,
6157         * added libc directory. The current version of LibC contains string
6158         functions, ctype functions and macros and some functions of the
6159         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
6160         be extensively tested in the future. Standard disclaimer here.
6161         Library is not automatically build yet. But one can build it by
6162         invoking 'make' inside the libc directory.
6163         * added ADC library under libio. Preliminary version yet.
6164
6165         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
6166         * src/pic16/gen.c (aopForRemat): asmop size is filled by
6167         aopForRemat() now and not by pic16_aopOp(),
6168         * (pic16_popGetTempReg): removed warning messgae when allocating
6169         temporary registers, its a buggy feature and will be removed,
6170         * (pic16_popGet): set register instance field in AOP_CRY,
6171         * (pic16_outBitC): fixed for results in size greater than 1,
6172         * (genUminusFloat): fixed for pic16, ported code from mcs51,
6173         * (pic16_storeForReturn): optimized return of 0,
6174         * (genCmp): experimental code for new genCmp which uses PIC18's
6175         special compare&skip instructions. Initial tests fail some times
6176         with variables grater than 1 byte in size, so new code is disabled,
6177         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
6178         a single bit,
6179         * (genCast): began a fix to optimize the casting of a bit to another
6180         bit, now assigning a bitfield to another bitfield will fail, sorry,
6181         * src/pic16/main.c: disabled the use of lr-support feature,
6182         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
6183         * added some function prototypes, added function _debugf prototype,
6184         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
6185         bits with offset (case PO_GPR_BIT),
6186         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
6187         command line,
6188         * (isBankInstruction): modified to return 0 for no banking instruction,
6189         and 1 for banking instruction,
6190         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
6191         caused stop processing pCodes after a inline assembly block,
6192         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
6193         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
6194         registers when it shouldn't,
6195         * src/pic16/ralloc.c (allocReg): add preliminary support for
6196         supporting a limited set of temporary registers,
6197
6198 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6199
6200         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
6201           genDataPointerSet): ensure assignments always copy in MSB to LSB
6202           order,
6203           (loadRegFromAop): recognize CLRH optimization,
6204           (genFunction): optimize RECEIVE iCodes in reentrant functions
6205
6206 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6207
6208         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
6209           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
6210           selected.
6211         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
6212         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
6213           contiguous with data
6214
6215 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6216
6217         * device/lib/_gptrget.c (_gptrget),
6218         * device/lib/_gptrgetc.c (_gptrgetc),
6219         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
6220           instead of sjmp to ret
6221         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
6222           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
6223
6224 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6225
6226         * .version: bumped version to 2.4.7
6227         * device/lib/_gptrget.c (_gptrget): is now _naked
6228         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
6229         * device/lib/_gptrput.c (_gptrput): is now _naked
6230         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
6231           (createFunction): fixed xstack
6232         * src/SDCCglue.c (emitMaps): set allocation required for bit area
6233         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
6234           or bit either,
6235           (geniCodeCritical): store original interrupt state in an iTemp bit
6236           var unless stack-auto
6237         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
6238         * src/SDCCmain.c (setIncludePath): added include/target to search path
6239         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
6240         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
6241           prototype,
6242           (processFuncArgs): put bit vars in bit area
6243         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
6244           unsaveRBank): fixed xstack,
6245           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
6246           (genFunction, genEndFunction): fixed xstack,
6247           (genAssign): optimization don't walk backwards through mem
6248         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
6249         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
6250         * support/regression/Makefile: also make library (for stack-auto) when
6251           making "all" and added "test-mcs51-xstack-auto"
6252         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
6253         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
6254         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
6255         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
6256         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
6257           make-library by MAKE_LIBRARY
6258         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
6259           regression tests for xstack
6260         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
6261         * support/regression/tests/critical.c: test for critical on mcs51
6262
6263 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6264
6265         * support/regression/ports/ucz80/spec.mk: use include and lib files from
6266           built version of sdcc instead of installed version
6267
6268 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6269
6270         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
6271         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
6272           vprintf.c now
6273         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
6274         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
6275           WARNING: remove device/lib/build/z80/printf.o by hand when
6276           updating from previous build!
6277         * device/lib/z80/printf.c: updated comment
6278         * support/regression/tests/bug1057979.c: test all ports now
6279         * support/regression/tests/bug1065458.c: file added
6280
6281 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6282
6283         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
6284           *_start and *_end symbols for static functions
6285
6286 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
6287
6288         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
6289           and search crt0.o in all library paths,
6290           (setIncludePath): proper handling of --nostdinc,
6291           (setLibPath): proper handling of --nostdlib
6292         * support/regression/Makefile,
6293         * support/regression/ports/ds390/spec.mk,
6294         * support/regression/ports/gbz80/spec.mk,
6295         * support/regression/ports/hc08/spec.mk,
6296         * support/regression/ports/mcs51/spec.mk,
6297         * support/regression/ports/mcs51-large/spec.mk,
6298         * support/regression/ports/mcs51-stack-auto/spec.mk,
6299         * support/regression/ports/z80/spec.mk: use include and lib files from
6300           built version of sdcc instead of installed version
6301         * doc/sdccman.lyx: fixed typo in --nostdinc
6302
6303 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
6304
6305         * src/pic/pcode.c,
6306         * src/pic/device.c,
6307         * src/pic/ralloc.c,
6308         * src/pic/gen.c : added support to generate code for struct bit fields.
6309
6310 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6311
6312         * as/xa51/xa_version.h,
6313         * device/include/errno.h,
6314         * device/include/regc515c.h,
6315         * device/lib/_itoa.c,
6316         * device/lib/_ltoa.c,
6317         * device/lib/ser_ir_cts_rts.c,
6318         * sim/ucsim/xa.src/glob.cc,
6319         * sim/ucsim/xa.src/inst_gen.cc,
6320         * sim/ucsim/xa.src/xa_bit.cc,
6321         * sim/ucsim/xa.src/xa_sfr.cc,
6322         * sim/ucsim/z80.src/inst_dd.cc,
6323         * sim/ucsim/z80.src/inst_fdcb.cc,
6324         * support/scripts/keil2sdcc.pl,
6325         * src/pic16/pic16.dsp,
6326         * src/pic16/pic16a.dsp: corrected cvs line endings
6327         * device/lib/printf_large.c: fixed bug 1057979
6328         * src/pic16/gen.c: fixed non-C standard code
6329         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
6330         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
6331         * support/regression/ports/mcs51/support.c: reload T1 asap
6332         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
6333           pdata use and clear idata startup behaviour
6334         * support/regression/tests/bug1057979.c: added
6335
6336 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
6337
6338         * device/examples/ds390/ow390/ad26.h,
6339         * device/examples/ds390/ow390/cnt1d.h,
6340         * device/examples/ds390/ow390/crcutil.c,
6341         * device/examples/ds390/ow390/ownet.h,
6342         * device/examples/ds390/ow390/owsesu.c,
6343         * device/examples/ds390/ow390/swt12.h,
6344         * device/examples/ds390/ow390/swtoper.c,
6345         * device/examples/ds390/ow390/temp10.h,
6346         * device/examples/ds390/ow390/thermodl.c,
6347         * device/examples/ds390/tinitalk/tinitalk.dsp,
6348         * device/examples/ds390/tinitalk/tinitalk.dsw,
6349         * device/examples/mcs51/clock/hw.h,
6350         * device/examples/mcs51/simple2/go.bat,
6351         * device/examples/serialcomm/windows/serial.h,
6352         * device/examples/xa51/dummy.c,
6353         * device/examples/xa51/hello.c,
6354         * device/include/80c51xa.h,
6355         * device/include/at89x051.h: corrected cvs line endings
6356
6357 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
6358
6359         * src/pic16/main.c (options): added command line --gstack, to trace
6360         stack over/under flows,
6361         * added pragma 'wparam' to allow passing first byte of function
6362         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
6363         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
6364         call to __gstack_test function and sets up the symbol as extern,
6365         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
6366         * popaop): added call to pic16_testStackOverflow,
6367         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
6368         wparamList list,
6369         * (genCall, genPcall): now all parameters are passed via stack
6370         except in functions that are pass to wparam pragma in which WREG is
6371         used too,
6372         * (genPcall): REENTRANT flag is checked to see if variable prototype
6373         contains reentrant keyword, don't call a non-reentrant function, via
6374         a reentrant function pointer or vice versa, functions are never
6375         passed via WREG,
6376         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
6377         D.Winkler,
6378         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
6379         SIGSEGV when accessing a NULL register stucture,
6380         * (pic16_printGPointerType): modified to handle UPPER modifier for
6381         function initializers, changed prototype of function to simpler one,
6382         * (pic16_printIvalFuncPtr): check to see if function is already
6383         added in externs list,
6384         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
6385         optimized a move from W to SFR with a move to the same register
6386         later after a CALL,
6387         * device/lib/pic16/debug: NEW directory, contains debug features
6388         which are enabled when linking with libdebug.lib, currently command
6389         line option --gstack enables stack pointer tracing for over/under
6390         flow, corresponding sources are in debug/gstack
6391
6392 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
6393
6394         * doc/sdccman.lyx: updated SDCC version,
6395         * (PIC16 port): update list of command line options,
6396         * src/pic16/device.h (structure pic16_options_t): added field gstack
6397         to enable stack overflow tracing on push/pops,
6398         * src/pic16/device.c (statistics structure): added statistics
6399         structure,
6400         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
6401         pic16_dump_int_registers): increase statistics counters for each
6402         * variable which is encountered
6403         * (pic16_dump_usection): emit each .udata variable to its own udata
6404         section,
6405         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
6406         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
6407         parameters via stack, otherwise use old scheme,
6408         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
6409         assembler output file,
6410         * src/pic16/main.c: added command line options --gstack to enable
6411         push/pop tracing for stack overflow,
6412         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
6413         instructions): added size of each instruction,
6414         * (pic16_countInstruction): estimate size of instructions in
6415         the_pFile list, inline assembly blocks are not counted,
6416         * (pic16_FixRegisterBanking): trace previous register usage, when
6417         banksel optimizations is greater than 0, don't emit a redudant
6418         banksel directive,
6419
6420 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
6421
6422         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
6423         * src/pic16/ralloc.c : applied same fix for pic16.
6424         * src/pic/gen.c : tidied it up a little.
6425
6426 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6427
6428         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
6429         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
6430
6431 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6432
6433         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
6434
6435 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6436
6437         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
6438         non-reentrant function __modsint in the interrupt function (thus
6439         corrupting math operations during serial I/O)
6440         * device/lib/ser_ir.c: as above, changed buffersize
6441         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
6442         256.c,d for zeroing
6443         * doc/Makefile: added option -t for rsync
6444
6445 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6446
6447         * src/SDCCast.h (struct ast),
6448         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
6449
6450 2004-10-20 Borut Razem <borut.razem AT siol.net>
6451
6452         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
6453         package
6454
6455 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
6456
6457         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
6458         makefile targets,
6459         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
6460         support functions to replace long sequences of MOVFF's from access
6461         bank registers to stack and vice versa,
6462         * src/pic16/device.h: added new field opt_flags, where optimization
6463         flags can be set to enable certain features,
6464         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
6465         * pBlock, (genFunction, genEndFunction): surroung loop for
6466         saving/loading used registers in stack with PC_INFO pCodes,
6467         INF_LREGS. Code in between can then be optimized by pCode optimizer
6468         to support function calls,
6469         * (genDataPointerSet): fixed bug which loaded float fields in
6470         structures with corrupt data,
6471         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
6472         in a standard way debug info on stderr. Feature used for developing
6473         and debugging only,
6474         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
6475         obsolete chunks of code,
6476         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
6477         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
6478         * pic16/src/pcode.c (pic16_newpCodeInfo,
6479         * (pic16_newpCodeOpLocalRegs),
6480         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
6481         feature,
6482         * (pic16_pCodeConstString): printing of the initial value of a
6483         symbol as a comment is inhibited since parsing was already done by
6484         copyStr and output is corrupt,
6485         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
6486
6487 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6488
6489         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
6490
6491 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
6492
6493         * as/mcs51/lkarea.c: removed old K&R style,
6494           (lnksect): changed check on boundary error,
6495           (lnksect2): changed check on boundary error,
6496           (lnksect2): extend XSTK to end of page if size = 1
6497         * as/mcs51/lkmain.c: removed old K&R style,
6498           (Areas51): create l_IRAM symbol
6499         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
6500         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
6501           model-mcs51-stack-auto, added model-mcs51-xstack-auto
6502         * device/lib/_mullong.c: added version to be compiled with xstack
6503         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
6504         * device/lib/mcs51/crtxclear.asm: clear pdata as well
6505         * device/lib/mcs51/crtxstack.asm: fixed comment
6506         * src/SDCCglue.c: maxInterrupts defaults to 0,
6507           (emitMaps): added pdata,
6508           (createInterruptVect): (re)moved default,
6509           (glue): added pdata,
6510           (glue): moved __start__xstack to XSTK with default size 1
6511         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
6512           and options.float_rent when options.stackAuto is set,
6513           (linkEdit): only write XDATA_NAME if provided on command line
6514         * src/SDCCmem.h,
6515         * src/SDCCmem.c: added pdata
6516         * src/port.h: added pdata_name to PORT
6517         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
6518           (saveRegisters, unsaveRegisters): removed usage of B,
6519           (genMinus): fixed accumulator clash,
6520           (genJumpTab): added comment, this needs another look
6521         * src/mcs51/gen.c: added check for "B in use" paranoia,
6522           added pushB() and popB()
6523         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
6524           chance
6525         * src/avr/main.c,
6526         * src/ds390/main.c,
6527         * src/hc08/main.c,
6528         * src/mcs51/main.c,
6529         * src/pic/main.c,
6530         * src/pic16/main.c,
6531         * src/xa51/main.c,
6532         * src/z80/main.c: (reset_regparms) made void parameter explicit and
6533           added PSEG (PAG,XDATA) or NULL to port specifier
6534         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
6535         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
6536           (_mcs51_genInitStartup): removed __start__xstack equ,
6537           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
6538         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
6539         * src/z80/gen.c (_rleAppend): fixed warnings
6540         * support/regression/tests/zeropad.c: added pdata test
6541         * .version: bumped to 2.4.6
6542
6543 2004-10-17 Borut Razem <borut.razem AT siol.net>
6544
6545         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
6546         as a part of nightly build
6547
6548 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
6549
6550         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
6551         WREG holds the first byte function parameters,
6552         * (aopForSym): take special case for symbols which are in FARSPACE
6553         but in CODESPACE too,
6554         * (assignResultValue): modified to take into account _G.useWreg,
6555         * (genCall): don't use wreg for parameter passing when function is
6556         declared as reentrant, too, added optimization INCF to stack
6557         pointer when stack parameter count is 1,
6558         * (genFunction, genEndFunction): refurnished and fixed to not using
6559         wreg for passing parameters when function has varargs or is
6560         reentrant, fixed bug with symbol name compare for generating
6561         functions in absolute address,
6562         * (pic16_storeForReturn): refurnished,
6563         * (genCmp): began writing a new version of the function, not ready
6564         yet, therefore it is disabled,
6565         * (genAssign): do not read code memory when assigning a function to
6566         a pointer function,
6567         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
6568         array of characters, not pointer,
6569         * (pic16initialComments): in debug mode emit an .ident directive for
6570         the assembler,
6571         * (_process_pragma): emit a new warning type (internal to pic16)
6572         when setting stack to default length, emit a similar warning when
6573         placing a function at absolute address and address is not word aligned
6574         * (_pic16_parseOptions): added 'return TRUE' statement,
6575         * (_pic16_linkEdit): if compiling a source, then add the source's
6576         file object, first in the list of objects to link,
6577
6578 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
6579
6580         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
6581         * src/pic/main.c : removed VC warning.
6582         * src/pic/gen.c : changed comment.
6583
6584 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
6585
6586         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
6587         reference to a deprecated symbol _GPTRREG was causing failure to
6588         link. Thanks G. M. Gallant for the info.
6589
6590 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
6591
6592         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
6593         comments for Bugs item #954788.
6594
6595 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
6596
6597         * src/pic16/device.c (pic16_dump_gsection,
6598         * pic16_groupRegistersInSection): handle symbols declared to be in
6599         access bank differently,
6600         * src/pic16/gen.c (struct _G): added field resDirect,
6601         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
6602         send values read from stack directly to result and don't allocate
6603         temporary values,
6604         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
6605         same registers,
6606         * (pic16_sameRegsOfs): NEW,
6607         * (freeAsmop): if _G.resDirect is set then do not mark registers as
6608         free because they were not allocated from temporary pool,
6609         * pic16_popRegFromString): workaround to fix a problem with
6610         allocating variables twice or never,
6611         * (genGenPointerGet): using PRODL instead of FSR0H,
6612         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
6613         instead of FSR0H,
6614         * (genAssign): take advantage of the _G.resDirect flag,
6615         * (genCast): around line 11844, use mov2f instead of directly
6616         MOVFF'ing between operands to account for literal values,
6617         * src/pic16/genutils.c: some new debug functions for gpsim have been
6618         added,
6619         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
6620         float with integer part only,
6621         * src/pic16/main.c (_process_pragma): handle pragma udata access to
6622         place variables in access bank
6623         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
6624         updated sources to reflect recent changes in gen.c
6625
6626 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
6627
6628         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
6629         sources that searched for headers in installation path, now the
6630         device/include/pic16 is used,
6631         * src/pic16/glue.c (pic16glue),
6632         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
6633         .line directives if not in debug mode, this suppresses assembler's
6634         warnings for ignored directives
6635
6636 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6637
6638         * src/port.h: made reset_regparms prototype void parameter explicit.
6639         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
6640         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
6641         * doc/sdccman.lyx: documented warning disabling and how to use
6642           printf_large to make it print floats.
6643         * device/include/stdbool.h: NEW
6644         * device/lib/_atof.c,
6645         * device/lib/_divuint.c,
6646         * device/lib/_divulong.c,
6647         * device/lib/expf.c,
6648         * device/lib/printf_large.c,
6649         * device/lib/sincosf.c,
6650         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
6651         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
6652           a completely reentrant lib.
6653
6654 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
6655
6656         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
6657         * device/include/pic16/stdio.h: fixed bug with colon
6658
6659 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
6660
6661         * device/include/pic16/stdio.h,
6662         * device/include/pic16/stdlib.h,
6663         * device/include/pic16/math.h: NEW
6664         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
6665         declared as _naked to reduce overhead
6666         * device/lib/Makefile.in (target port-specific-objects-pic16):
6667         changed * to *.* so to ignore the CVS directory,
6668         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
6669         stacked variables back in stack,
6670         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
6671         corruption
6672
6673 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
6674
6675         * .version: bumped version number to 2.4.5
6676         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
6677         * support/Util/SDCCerr.c (messages structure): added entry for
6678         W_POSSBUG2
6679
6680         Large cumulative patch for pic16 port and libraries.
6681         * device/include/pic16/sdcc-lib.h,
6682         * device/include/pic16/stdarg.h,
6683         * device/include/asm/pic16/features.h,
6684         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
6685         * device/include/pic16/float.h: changes reentrant keyword with
6686         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
6687         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
6688         updated target build-libraries to include objects from gptr,
6689         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
6690         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
6691         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
6692         all function headings,
6693         * src/SDCCmain.c: added global parameter userIncDirsSet,
6694         * (parseCmdLine): when option -I is encountered add directory to
6695         userIncDirsSet too,
6696         * src/version.awk: added space between control and long,
6697         * src/pic16/NOTES: added some notes for the port,
6698         * src/pic16/gen.c: added prototype for mov2fp function,
6699         * (fReturnpic16[]): properly named return value registers,
6700         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
6701         * (aopForSym): added code to handle symbols with onStack flag set,
6702         symbols onStack are allocated PTRSIZE bytes,
6703         * (aopFreeAsmop): handles special case where asmops are stack objects,
6704         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
6705         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
6706         added argument lock to trace flaws in allocating temporary registers
6707         when developing port,
6708         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
6709         * (pic16_popRegFromString): reenabled allocating a direct register
6710         from string,
6711         * (assignResultValue): various beautifications,
6712         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
6713         referenced function argument,
6714         * (genIpush): reenabled to allow stacked arguments, handles only
6715         ic->parmPush iCodes,
6716         * (genCall, genPcall): major changes to allow for variable argument
6717         functions, fixed a bug with falsely restoring stack pointer after
6718         returning from call,
6719         * (genFunction): pending code for critical function,
6720         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
6721         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
6722         * (genNearPointerGet): fixed bug with indirect reading, was always
6723         reading from INDF0
6724         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
6725         pointers,
6726         * (genAddrOf): rewrote code to take address of a stacked function parameter
6727         * (genCast): fixed casting to generic pointer type,
6728         * src/pic16/gen.h: added AOP_STA,
6729         * (struct asmop): added field stk,
6730         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
6731         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
6732         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
6733         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
6734         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
6735         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
6736         generic pointers,
6737         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
6738         and library paths,
6739         * (pic16_port structure): generic pointer size is set to 3,
6740         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
6741         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
6742         compiler warning,
6743         * src/pic16/ralloc.c (allocReg): prevent allocating register when
6744         operand is an iTemp,
6745
6746 2004-09-24 Martin Helmling <mh AT octo-soft.de>
6747
6748         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
6749         * debugger/mcs51/simi.c: addapt new syntax of s51
6750
6751 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
6752
6753         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
6754         * src/pic16/pcode.c: commented out some calls to free() in order to
6755         fix bug #989576,
6756
6757 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6758
6759         * src/SDCCicode.h,
6760         * src/SDCCicode.c (isiCodeInFunctionCall),
6761         * src/avr/ralloc.c (selectSpil),
6762         * src/pic/ralloc.c (selectSpil),
6763         * src/pic16/ralloc.c (selectSpil),
6764         * src/ds390/ralloc.c (selectSpil),
6765         * src/hc08/ralloc.c (selectSpil),
6766         * src/xa51/ralloc.c (selectSpil),
6767         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
6768         stack in the middle of a function call sequence (fixes bug #1020268)
6769         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
6770         costs associated with the minimum switch case.
6771
6772 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6773
6774         * src/SDCC.lex: fixed bug #1030549
6775
6776 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6777
6778         * src/SDCCcse.h (struct cseDef),
6779         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
6780         over a function call if the CSE is derived from a symbol whose
6781         address has been taken (fixes bug #1029883)
6782         * support/regression/tests/bug-1029883: a new regression test for
6783         this bug
6784
6785 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6786
6787         * src/hc08/gen.c (emitinline): fixed bug #1029778
6788         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
6789         to a cast object is no longer a syntax error ("fixes" bug #1030006,
6790         and starts toward RFE #905167)
6791
6792 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
6793
6794         * src/pic16/gen.c (mov2f): New function to move an operand to
6795         another without considering if it is a literal or a register,
6796         * (pic16_sameRegs): don't check if they are both AOP_REG,
6797         * (AccRsh): removed andmask=0 lines,
6798         * (genLeftShift): duplicated to be improved in future versions,
6799         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
6800         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
6801         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
6802         * (pic16initMnemonics): added initialization for POC_INFSNZW,
6803         * (insertBankSwitch): fixed inserting banksel directives algorithm
6804         for instructions that follow a skip instruction, this fixes a report
6805         for broken subtraction code generation,
6806         * src/pic16/ralloc.c (deassignLRs): do not free register if current
6807         iCode is a left op, just in case result and right share the same
6808         registers
6809
6810 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6811
6812         * src/hc08/main.c,
6813         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
6814         preservation of HX
6815         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
6816         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
6817         on 2004-09-12; it was buggy
6818
6819 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
6820
6821         * src/SDCCsymt.h: removed RESULT_CHECK
6822         * src/SDCCast.c,
6823         * src/SDCCglue.c,
6824         * src/SDCCval.c,
6825         * src/pic/glue.c,
6826         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
6827
6828 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
6829
6830         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
6831         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
6832         configuration values no more rejected by compiler, they are assigned
6833         to configuration registers with a warning message instead,
6834         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
6835         the for-loop so last conf register is emitted too,
6836         * (_pic16_initPaths): link library libsdcc.lib by default,
6837         * (_hasNativeMulFor): modified test for multiplication according to
6838         Raphael Neider's remarks. Integer multiplication is also done with
6839         support functions,
6840         * device/include/pic16/pic18fregs.h: corrected type error in while
6841         testing and including 18f6720 header file
6842
6843 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
6844
6845         * src/pic16/device.h (pic16_options): removed field use_crt,
6846         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
6847         until an optimization to handle single bits is added,
6848         * (pic16_loadFSR0): moved before genUnpackBits,
6849         * (genAnd): some white lines removed,
6850         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
6851         leave_reset flags in pic16_options when using crt modules,
6852
6853 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
6854
6855         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
6856           for bugs 898889 & 979599. Also used some safer print instructions.
6857
6858 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
6859
6860         * src/pic16/device.h (pic16_options_t): added field use_crt,
6861         crt_name, no_crt,
6862         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
6863         catch a probable future bug,
6864         * src/pic16/gen.c: aopIdx function commented out,
6865         * (genAssign): commented out old code which used aopIdx,
6866         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
6867         code, added if conditionals to take into account the --use-crt
6868         command line options,
6869         * src/pic16/main.c (pic16_optionsTable): added new command line
6870         options, --use-crt= and --no-crt,
6871         * (_pic16_linkEdit): now the proper crt object is added in the
6872         linker command line except than when --no-crt is specified,
6873         * src/pic16/pcode.c,
6874         * src/pic16/pcode.h: added some structures and functions for a new
6875         optimization scheme to compansate for instruction overhead between
6876         same iCodes, this scheme is currently under development and is not
6877         working in any way,
6878         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
6879         to && operator,
6880         * device/lib/pic16/startup/crt0i.c,
6881         * device/lib/pic16/startup/crt0iz.c: added global char variable
6882         __uflags to force the generation of an idata section
6883
6884 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
6885
6886         * doc/Makefile,
6887         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
6888         * doc/sdccman.lyx: updated sdcc version to 2.4.4
6889
6890 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6891
6892         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
6893         Frieder) and clarified the default code optimization mode
6894
6895 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6896
6897         * src/SDCC.lex (doPragma, process_pragma),
6898         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
6899         "opt_code_size", and "opt_code_balanced"
6900         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
6901         regrouped options by category, added support for category headers
6902         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
6903         and "--opt-code-size"
6904         * doc/sdccman.lyx: documented these new options and pragmas
6905         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
6906         preference into account
6907
6908 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6909
6910         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
6911           geniCodePreDec): Fixed bug 904237 by generating a warning
6912         * src/SDCCerr.h,
6913         * src/SDCCerr.c: added warning W_SIZEOF_VOID
6914
6915 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
6916
6917         * src/pic/device.c : When no max ram set validate full memory range.
6918         * src/pic/pcode.c,
6919         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
6920
6921 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6922
6923         * device/lib/_gptrget.c,
6924         * device/lib/_gptrput.c: updated comment
6925         * device/lib/calloc.c,
6926         * device/lib/free.c,
6927         * device/lib/malloc.c,
6928         * device/lib/realloc.c: added LGPL, made them reentrant-safe
6929         * src/SDCCcse.c (cseBBlock),
6930         * src/SDCCicode.c (printOperand, geniCodeArray),
6931         * src/SDCCicode.h (struct operand): fixed bug 868103
6932         * support/regression/tests/bug-868103.c: added
6933         * src/SDCCast.c (searchLitOp),
6934         * src/SDCCcse.h (struct cseDef),
6935         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
6936         * src/SDCCicode.h (struct operand),
6937         * src/SDCCsymt.h (struct sym_link),
6938         * src/avr/gen.c (hasInc),
6939         * src/ds390/gen.c (hasInc),
6940         * src/hc08/gen.c (genPlusIncr, hasInc),
6941         * src/mcs51/gen.c (hasInc),
6942         * src/pic16/glue.c (pic16_printIvalChar),
6943         * src/pic16/ralloc.c (regWithIdx),
6944         * src/xa51/gen.c (hasInc) : removed warnings
6945         * src/SDCCast.c (createBlock): added comment ???
6946         * src/hc08/ralloc.c: updated comments
6947
6948 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6949
6950         * doc/sdccman.lyx: updated section on switch statements, added
6951         section about semaphore locking
6952         * doc/Makefile: added option -info for latex2html
6953         * device/lib/_gptrget.c,
6954         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
6955
6956 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6957
6958         * src/pic/device.h,
6959         * src/pic/device.c,
6960         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
6961          maxram is less than 0x100.
6962
6963 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6964
6965         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
6966
6967 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6968
6969         * src/port.h,
6970         * src/mcs51/main.c,
6971         * src/ds390/main.c,
6972         * src/z80/main.c,
6973         * src/hc08/main.c,
6974         * src/pic/main.c,
6975         * src/pic16/main.c,
6976         * src/avr/main.c,
6977         * src/xa51/main.c
6978         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
6979         a jump table is the best form for a switch statement, including
6980         automatic insertion of missing cases to make the case range
6981         continuous. Developed in collaboration with Frieder Ferlemann.
6982
6983 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6984
6985         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
6986         accumulator result if it needs sign extension
6987
6988 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6989
6990         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
6991
6992 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6993
6994         * device/lib/gbz80/printf.c,
6995         * device/lib/z80/printf.c: removed define for NULL
6996
6997 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6998
6999         * as/xa51/xa_link.c,
7000         * device/examples/ds390/ow390/ad26.c,
7001         * device/examples/ds390/ow390/cnt1d.c,
7002         * device/examples/ds390/ow390/counter.c,
7003         * device/examples/ds390/ow390/ds2480.h,
7004         * device/examples/ds390/ow390/ds2480ut.c,
7005         * device/examples/ds390/ow390/findtype.c,
7006         * device/examples/ds390/ow390/gethumd.c,
7007         * device/examples/ds390/ow390/owllu.c,
7008         * device/examples/ds390/ow390/ownetu.c,
7009         * device/examples/ds390/ow390/swt12.c,
7010         * device/examples/ds390/ow390/swtloop.c,
7011         * device/examples/ds390/ow390/temp.c,
7012         * device/examples/ds390/ow390/temp10.c,
7013         * device/examples/ds390/ow390/thermo21.c,
7014         * device/examples/ds390/ow390/tinilnk.c,
7015         * device/examples/ds390/ow390/tstfind.c,
7016         * device/examples/serialcomm/windows/serial.cpp,
7017         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7018         * device/include/reg51.h: fixed line endings for cvs
7019
7020 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7021
7022         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7023         packRegsForAccUse, packRegisters): new accumulator register
7024         packing algorithm
7025         * support/regression/ports/hc08/support.c (_putchar): suppress
7026         warning of unused variable
7027         * src/SDCCicode.c: added SWAP entry to codeTable
7028
7029 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7030
7031         * device/lib/sprintf.c: forgot to add this file before previous commit
7032
7033 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7034
7035         * src/pic16/gen.c (genPackBits): added operand right in function
7036         parameters, load result directly if p_type is POINTER (that is
7037         called by genNearPointerSet)
7038         * (genUnPackBits): added operand left in function parameters,
7039         * (genNearPointerGet, genNearPointerSet): prevent the loading of
7040         FSR0 if accessing bitfields,
7041
7042 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7043
7044         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7045           _print_format; updated printf, sprintf, vsprintf
7046         * device/include/asm/default/features.h: corrected comment/define
7047         * device/lib/Makefile.in: added sprintf.c
7048         * device/lib/libsdcc.lib: added sprintf module
7049         * device/lib/printf_large.c,
7050         * device/lib/vprintf.c,
7051         * device/lib/sprintf.c: totally refactored printf_large and vprintf
7052           into these 3 files
7053         * support/regression/Makefile: changed ALL_PORTS into a usefull default
7054         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7055         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7056           hc08 test
7057         * support/regression/tests/zeropad.c: define idata as data for hc08
7058
7059 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7060
7061         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7062         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7063         labels are referenced at least once (even if a reference is not found)
7064         * src/hc08/gen.c (emitcode): set isComment flag for comments
7065         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7066         loads), rules 6a..6b (optimize jumps to return)
7067
7068 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7069
7070         * device/lib/acosf.c (acosf),
7071         * device/lib/asinf.c (asinf),
7072         * device/lib/atanf.c (atanf),
7073         * device/lib/ceilf.c (ceilf),
7074         * device/lib/cosf.c (cosf),
7075         * device/lib/coshf.c (coshf),
7076         * device/lib/cotf.c (cotf),
7077         * device/lib/fabsf.c (fabsf),
7078         * device/lib/floorf.c (floorf),
7079         * device/lib/log10f.c (log10f),
7080         * device/lib/logf.c (logf),
7081         * device/lib/sinf.c (sinf),
7082         * device/lib/sinhf.c (sinhf),
7083         * device/lib/sqrtf.c (sqrtf),
7084         * device/lib/tanf.c (tanf),
7085         * device/lib/tanhf.c (tanhf),
7086         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
7087         replaced all instances of "reentrant" in the library functions
7088         defined in math.h with this macro.
7089         * support/regression/tests/float_trans.c: reenabled test for hc08
7090
7091 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7092
7093         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
7094         erroneously deleted
7095
7096 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7097
7098         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
7099         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
7100         multi-byte volatile operands are used
7101         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
7102         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
7103         initialization to area GSINIT0 so that it would always precede
7104         any static initializers in GSINIT
7105         * support/regression/tests/zeropad.c: fixed idata define for hc08
7106         * support/regression/tests/bug-927659.c,
7107         * support/regression/tests/float_trans.c: disabled tests for hc08
7108         pending missing library routines
7109         * .version: increased version number to 2.4.4 - hc08 port now passes
7110         regression tests
7111
7112
7113 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
7114
7115         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
7116         * Makefile.common.in,
7117         * as/Makefile,
7118         * as/hc08/Makefile.in,
7119         * as/mcs51/Makefile.in,
7120         * as/z80/Makefile.in,
7121         * debugger/mcs51/Makefile.in,
7122         * device/include/Makefile.in,
7123         * device/lib/Makefile.in,
7124         * doc/Makefile,
7125         * link/Makefile,
7126         * link/z80/Makefile.in,
7127         * packihx/Makefile.in,
7128         * sim/ucsim/main_in.mk,
7129         * sim/ucsim/avr.src/Makefile.in,
7130         * sim/ucsim/doc/Makefile.in,
7131         * sim/ucsim/gui.src/serio.src/Makefile.in,
7132         * sim/ucsim/hc08.src/Makefile.in,
7133         * sim/ucsim/s51.src/Makefile.in,
7134         * sim/ucsim/xa.src/Makefile.in,
7135         * sim/ucsim/z80.src/Makefile.in,
7136         * src/Makefile.in,
7137         * support/cpp2/Makefile.in,
7138         * support/librarian/Makefile,
7139         * support/makebin/Makefile: added DESTDIR to the install path proposed
7140         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
7141         * doc/sdccman.lyx: added DESTDIR documentation
7142
7143 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
7144
7145         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
7146         instruction for interrupt handlers, use fast returns when returning
7147         from high priority interrupts
7148
7149 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7150
7151         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
7152         code generation
7153         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
7154         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
7155         bugs, ported much of Bernhard's code from mcs51
7156         * src/mcs51/gen.c (genSend),
7157         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
7158         than one when calling a reentrant function
7159         * device/lib/_mullong.c: defined an alternate struct layout for big
7160         endian ports (hc08)
7161
7162 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7163
7164         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
7165         test
7166
7167 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7168
7169         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
7170         are sane and complete before asking the port its prefered parameter
7171         passing method (fixes bug #1017633)
7172         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
7173         and _ret3
7174
7175 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7176
7177         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
7178         problem in bitfields >= 8 bits.
7179
7180 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7181
7182         * src/SDCCsymt.c: undid changes that were not meant to be committed
7183
7184 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7185
7186         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
7187
7188 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7189
7190         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
7191           copied and wrong bit got inverted
7192
7193 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7194
7195         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
7196         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
7197         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
7198         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
7199         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
7200         assignments to bitfields at known addresses
7201         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
7202         reads from bitfields at known addresses
7203         * src/hc08/ralloc.c (packRegisters),
7204         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
7205         genhc08Code): optimize pointer get values used as conditionals
7206         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
7207         and branch
7208
7209 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7210
7211         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
7212         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
7213         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
7214         as conditionals
7215
7216 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7217
7218         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
7219
7220 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7221
7222         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
7223         related problems
7224
7225 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
7226
7227         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
7228
7229 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7230
7231         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
7232         mcs51 port
7233
7234 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7235
7236         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
7237
7238 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7239
7240         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
7241         cases use more compact code.
7242
7243 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
7244
7245         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
7246
7247 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7248
7249         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
7250
7251 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7252
7253         * src/SDCCsymt.h,
7254         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
7255         parameter of changePointer() from symbol* to sym_link*
7256         * src/SDCCast.c (decorateType): call changePointer() for CAST op
7257         * src/SDCCsymt.c (compareType): void* type is castable to other
7258         pointers, but not necesarily an exact match.
7259         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
7260         is no longer blindly treated as an exact match.
7261         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
7262
7263 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
7264
7265         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
7266
7267 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
7268
7269         * src/pic/gen.c,
7270         * src/pic/pcode.c,
7271         * src/pic/ralloc.h,
7272         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
7273
7274 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
7275
7276         * src/pic/device.c,
7277         * src/pic/device.h,
7278         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
7279
7280 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7281
7282         * src/mcs51/gen.c (emitcode): fixed bug #992819
7283
7284 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
7285
7286         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
7287           there's no need to make it worse
7288
7289 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7290
7291         * src/mcs51/ralloc.c (deassignLR),
7292         * src/ds390/ralloc.c (deassignLR),
7293         * src/hc08/ralloc.c (deassignLR),
7294         * src/z80/ralloc.c (deassignLR),
7295         * src/pic/ralloc.c (deassignLR),
7296         * src/pic16/ralloc.c (deassignLR),
7297         * src/avr/ralloc.c (deassignLR),
7298         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
7299         rlivePoint): fixed another part of bug #971834
7300
7301 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7302
7303         * src/z80/main.c: enabled "critical" keyword
7304         * src/z80/mappings.i,
7305         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
7306         functions (fixes bug #979646)
7307         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
7308
7309 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7310
7311         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
7312           such as c:\mydir.
7313
7314 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
7315
7316         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
7317           doesn't disable too much optimizations
7318
7319 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7320
7321         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
7322
7323 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
7324
7325         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
7326
7327 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7328
7329         * src/pic/gen.c tidied up tabs
7330         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
7331         * src/pic/main.c tidied up tabs
7332         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
7333         * src/pic/pcoderegs.c tidied up tabs
7334         * src/pic/ralloc.c tidied up tabs
7335
7336 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
7337
7338         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
7339         to S_FIXED for pic16 port and when symbol is not in level 0,
7340         allocate for S_REGISTER storage class and pic16 port, too,
7341         * src/pic16/device.h: prototype for checkSym,
7342         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
7343         * (pic16_assignConfigWordValue): test the value and the mask to
7344         validate that the value is suitable for the configuration word,
7345         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
7346         collect extern declared symbols, don't emit symbol twice, check
7347         first if symbol is in publics set first,
7348         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
7349         * added command line '--fstack' which enables an experimental
7350         feature for stack access, too buggy to be used yet...
7351         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
7352         * (pic16_allocDirReg): when register has storage class S_REGISTER
7353         allocate in pic16_dynAccessRegs,
7354         * device/include/pic16/pic18f????.h: modified configuration word
7355         naming convention, words started as CONFIG0H but should be CONFIG1H
7356
7357 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7358
7359         * device/include/mcs51reg.h: fixed bug 970993
7360
7361 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
7362
7363         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
7364         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
7365         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
7366         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
7367         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
7368         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
7369           error/warning numbers,
7370           added function setWarningDisabled()
7371         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
7372         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
7373           _memcmp.c _memmove.c calloc.c realloc.c free.c
7374         * support/regression/tests/malloc.c: added tests for new functionality
7375         * support/regression/tests/zeropad.c: added tests for truncated initializers
7376           and initialized char arrays starting with '\x0'
7377         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
7378
7379 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
7380
7381         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
7382
7383 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7384
7385         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
7386         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
7387         peephole 177.e. Thanks to anonymous
7388
7389 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
7390
7391         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
7392         function isn't used in the source but referenced as a
7393         variable initializer then declare it as extern in .asm file
7394
7395 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
7396
7397         * .version: increased version number to 2.4.3
7398
7399         Adding version extension according to ChangeLog CVS revision
7400         * src/Makefile.in (target all): added dependency 'version.h'
7401         * (rule version.h): added rule to create version.h from ChangeLog,
7402         * (rule dep): added dependency version.h,
7403         * src/version.awk: AWK script to create version.h
7404         * src/SDCCdwarf2.c (dwWriteModule),
7405         * src/SDCCglue.c (initialComments),
7406         * src/SDCCmain.c (printVersionInfo): modified to write after
7407         version string the version extension number,
7408         * src/SDCCutil.c: included "version.h"
7409         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
7410         number,
7411         * src/SDCCutil.h: added prototype for getBuildNumber
7412
7413         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
7414         includeDirsSet, too,
7415         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
7416         const char [] is found in function prototype...
7417
7418         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
7419         moving to WREG with source is already in WREG,
7420         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
7421         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
7422         * (aopForSym): stack'ed symbols are partially supported, added
7423         if-clause to support symbols in FARSPACE,
7424         * (sameRegs): added test for AOP_ACC to see if registers are same,
7425         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
7426         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
7427         * (pic16_popRegFromString): will not allocate a new register if it
7428         doesn't find one by name, bug may have introduced...
7429         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
7430         * (genIpush): revived to use pic16 port's stack,
7431         * (genAddrOf): added incomplete case for stack'ed operand,
7432         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
7433         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
7434         can handle multibyte operands,
7435         * src/pic16/glue.c (pic16_printIval*): some debug info added,
7436         * (pic16initialComments): added message for MPLAB compatibility
7437         mode enabled,
7438         * src/pic16/main.h: prototype for pic16_mplab_comp,
7439         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
7440         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
7441         * (_pic16_linkEdit): NEW, handles link stage, transferred here
7442         because of increased complexity of procedure,
7443         * (_process_pragma): stack pragma changed to format 'stack pos len',
7444         emit symbol '_stack_end' to conform with gplink,
7445         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
7446         to search for register,
7447         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
7448         PO_GPR_REGISTER,
7449         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
7450         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
7451         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7452         case for PO_GPR_REGISTER,
7453         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
7454         dies, the new era is ahead !...
7455         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
7456         pic16_dynInternalRegs,
7457         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
7458         * (pic16_allocDirReg): minor optimizations and bug fixes,
7459         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
7460
7461         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
7462         load stack and frame pointer with address of 'stack_end' symbol
7463
7464 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
7465
7466         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
7467         without source code but only variable initializers
7468
7469 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
7470
7471         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
7472         external are not declared as extern to reduce overhead while linking
7473
7474 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
7475
7476         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
7477
7478 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
7479
7480         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
7481           Yee Keat for the patch
7482         * src/SDCCast.c (decorateType): fixed bug #979599
7483         * src/ds390/gen.h: removed local fReturnSizeDS390
7484         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
7485         * src/ds390/gen.c (genAnd, genOr, genXor),
7486         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
7487
7488 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
7489
7490         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
7491         add relFilesSet to $3, manipulate $2 to handle linking of object
7492         files without source files in command line,
7493         * device/include/pic16 (all headers): added ID location macros,
7494         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
7495         entries for ID location bytes,
7496         * (pic16_assignIdByteValue): NEW,
7497         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
7498         added field dumpcalltree to pic16_options_t,
7499         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
7500         is used instead of pic16_Gstack_base_addr, check if (ifx) before
7501         emitting rFalseIfx label after check_carry label,
7502         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
7503         pic16_emitDIRegs), NEW
7504         * (pic16glue): dump .calltree file when option --calltree found,
7505         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
7506         * (_pic16_genAssemblerPreamble): emit ID locations after
7507         configuration registers,
7508         * (pic16_linkCmd): modifications of the link command,
7509         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
7510         * (pic16_pCodeInitRegisters): don't init stack registers,
7511         * (pic16_findPrevInstruction): fixed bug,
7512         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
7513         bug with immediate registers,
7514         * (buildCallTree): traces stack push and pop,
7515         * (pct2): dump also stack usage for each function,
7516         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
7517         * (pic16_allocDirReg): various modifications,
7518         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
7519         fixed to 1,
7520
7521 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
7522
7523         * src/pic16/pcode.c: removed buggy double colon
7524
7525 2004-07-01 Borut Razem <borut.razem AT siol.net>
7526
7527         * support/scripts/sdcc.nsi: added include/pic16 to setup
7528
7529 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
7530
7531         * device/lib/Makefile.in: fixed bug in target objects-pic16,
7532         * device/lib/pic16/Makefile: prefixed with dash (-) command under
7533         target 'clean',
7534         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
7535         specific command line arguments. Also added sample lkr script
7536         for placing a variable at a specific memory bank.
7537         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
7538         at a specific memory bank,
7539         * (pic16_dump_isection): fixed bug which caused string literals to
7540         be omitted when dumping idata section,
7541         * (pic16_groupRegistersInSection): added code to handle registers
7542         in specific memory banks,
7543         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
7544         public, all references are renamed too,
7545         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
7546         AOP_DPTR2,
7547         * (pic16_storeForReturn): added case to handle when dest is WREG,
7548         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
7549         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
7550         pic16_rel_udata, check to see if that register is marked as being
7551         a member of a specific memory bank,
7552         * (pic16_printIvalCharPtr): added code to add string literals either
7553         to code or the idata sections,
7554         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
7555         also accept the 'udata' pragma,
7556         * src/pic16/main.h: new structure types sectName and sectSym
7557         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
7558         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
7559         * (pic16_findPrevInstruction): fixed, it returned nothing,
7560         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
7561         instruction combinations,
7562         * (pic16_FixRegisterBanking): heavily reorganised,
7563         * (pic16_AnalyzeBanking): if generating banksel directives is
7564         disabled, then don't call FixRegisterBanking at all,
7565         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
7566         completely removed,
7567         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
7568
7569 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
7570
7571         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
7572         Phuah Yee Keat <yk.phuah AT nestac.com>
7573
7574 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7575
7576         * src/pic16/glue.c (pic16createInterruptVect): function now emits
7577         correctly the IVT even if it is relocated to some other location
7578
7579 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7580
7581         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
7582         * device/include/pic16/pic18f2220.h: NEW,
7583         * device/lib/pic16/libdev/pic18f2220.c: NEW,
7584         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
7585         * src/pic16/device.c (struct Pics16): added info for 18f2220,
7586         * src/pic16/device.h (struct pic16_options): added ivt_loc and
7587         nodefaultlibs, ivt_loc is the location of the interrupt vector
7588         table, and nodefaultlibs signs that default libraries should not be
7589         linked in link stage,
7590         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
7591         according to --ivt-loc argument,
7592         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
7593         when pragma stack is found,
7594
7595 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7596
7597         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
7598         256 (range check), 257 (do while), 258.a-f (bit banging
7599         f.e. on 3-wire SPI bus)
7600
7601 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7602
7603         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
7604         variables used exclusively within a loop
7605
7606 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
7607
7608         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
7609
7610 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7611
7612         * src/SDCClrange.c (computeClash): fixed bug #971834
7613
7614 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7615
7616         * src/mcs51/gen.c (genCmp): fixed bug #975903
7617         * src/hc08/gen.c (operandsEqu),
7618         * src/ds390/gen.c (operandsEqu),
7619         * src/z80/gen.c (operandsEqu),
7620         * src/pic/gen.c (operandsEqu),
7621         * src/pic16/gen.c (operandsEqu),
7622         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
7623         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
7624
7625 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7626
7627         * src/SDCCcse.c (cseBBlock): fixed bug #966963
7628
7629 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
7630
7631         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
7632         default case in switch statement,
7633         * glue.c (pic16_initPointer): expr is initialised via decoarteType
7634         to eliminate problem with initialisation of pointers, but problem
7635         still exists,
7636         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
7637         * (emitStaticSegment): removed various lines emitting debug info,
7638         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
7639         added processor registers for utilizing EEPROM,
7640         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
7641         configurable and set 8
7642
7643 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
7644
7645         * .version: increased version number to 2.4.2,
7646
7647         Cumulative patch for pic16 port
7648         * src/pic16/device.c: changed scheme to dump initial values for
7649         variables in idata segment, all print_idata* functions were removed,
7650         now the pic16_printIval* will be called,
7651         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
7652         * _pic16_printPointerType, pic16_printPointerType,
7653         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
7654         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
7655         NEW, similar to the respective functions in SDCCglue.c,
7656         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
7657         way, emitting hex bytes,
7658         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
7659
7660 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7661
7662         * src/avr/ralloc.c (serialRegAssign),
7663         * src/xa51/ralloc.c (serialRegAssign),
7664         * src/pic/ralloc.c (serialRegAssign),
7665         * src/pic16/ralloc.c (serialRegAssign),
7666         * src/hc08/ralloc.c (serialRegAssign),
7667         * src/z80/ralloc.c (serialRegAssign),
7668         * src/ds390/ralloc.c (serialRegAssign),
7669         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
7670
7671 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7672
7673         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
7674         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
7675
7676 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
7677
7678         Cumulative patch for pic16 port:
7679         * src/pic16/device.h (typedef PIC16_device) modified fields for
7680         defining microcontrollers,
7681         * src/pic16/device.c: added new info for all devices in Pics16 array,
7682         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
7683         to be optimised out by the pCode optimiser,
7684         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
7685         specially, bug reported by G.M. Gallant,
7686         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
7687         as force'd so that cannot be optimised out by pCode optimiser,
7688         * src/pic16/pcode.c,
7689         * src/pic16/pcodepeeph.c,
7690         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
7691         they are disabled by default, but can be enabled explicit with
7692         command argument --denable-peeps, for testing,
7693         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
7694         --pomit-ivt in COMPILE_FLAGS
7695
7696 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7697
7698         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
7699           compilation on MSVC
7700
7701 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7702
7703         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
7704
7705 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7706
7707         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
7708         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
7709
7710 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
7711
7712         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
7713         would only assign 0x300001 register.
7714
7715 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
7716
7717         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
7718         in COMPILE_FLAGS. Thanks to G. Gallant for report.
7719
7720 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7721
7722         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
7723         for ds80c400
7724         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
7725         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
7726         added peephole 254 (left shift), 255 (jump table)
7727
7728 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
7729
7730         * device/lib/Makefile.in: removed comment line with model-pic16,
7731         * (target port-specific-objects-pic16): the libraries and objects
7732         are copied to the build directory form the device/lib/pic16/bin
7733         directory
7734
7735         Cumulative patch concerning pic16 port:
7736         * library directory has been re-organized,
7737         * added support for PIC18F1220,
7738         * added headers and library sources for chips 18f1220,18f6520,
7739         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
7740
7741         * configuration registers setting has changed, now each supported
7742         device has a complete description of the registers it uses,
7743         * all initialisations are moved to idata sections, these section
7744         can be absolute or relocatable,
7745         * fixed initialisation of codespace variables,
7746         * fixed warning about PCLATU and gpsim,
7747         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
7748         * (genAssign): use table reads when assigning from variables in codespace,
7749         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
7750         char/int variables placed in codespace,
7751         * (pic16_emitConfigRegs): NEW, emits a list with configuration
7752         registers set in .asm file, no need for --pomit-config-words anymore,
7753         * (pic16glue): some 8051 legacy segments are commented out
7754         (to be removed completely),
7755         * added support for alternative assembler and linker with --asm=
7756         and --link= command line arguments,
7757         * peepholes are disabled automatically in the port, no need to
7758         specify on command line,
7759         * port supports natively char/int/long multiplication, but converts
7760         all divisions to support functions,
7761         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
7762         to the file set in variable $2,
7763         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
7764         strings in ASCII format and not in hex,
7765         * ralloc.c (serialRegAssign): added a triplet of conditional calls
7766         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
7767         allocate proper register if iCodes aren't temporary,
7768
7769 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
7770
7771         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
7772
7773 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
7774
7775         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
7776         is commented out
7777
7778 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7779
7780         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
7781         computed address is reused
7782         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
7783         multi-byte bitfields
7784
7785 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7786
7787         * src/z80/gen.c: (genArrayInit): must check for pointers too
7788
7789 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7790
7791         * support/regression/tests/zeropad.c: never meant to commit the
7792           nestedstruct test: removed, added check for GCC version
7793
7794 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
7795
7796         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
7797         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
7798         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
7799           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
7800           bugs 928906 and 954082 half-empty initializers
7801         * src/SDCCsymt.h,
7802         * src/SDCCsymt.c (getAllocSize): added for above fix
7803         * src/z80/gen.c (genArrayInit): fixed bug 741044
7804         * support/regression/tests/zeropad.c: added tests
7805
7806 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
7807
7808         * src/pic16/device.c (pic16_dump_section): corrected bug which
7809         caused some symbols of the libraries to be misplaced
7810
7811 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7812
7813         * src/pic16/glue.c,
7814         * src/pic16/ralloc.h,
7815         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
7816         to fix conflict with pic port
7817
7818 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7819
7820         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
7821         externs configuration variables,
7822         * src/pic16/ralloc.h,
7823         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
7824         prototype in header, commented out some debug messages
7825
7826 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
7827
7828         * src/pic16/glue.c,
7829         * src/pic16/main.c,
7830         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
7831         for gpasm COFF object generation. Thanks to D. Hawkins for
7832         his patch info
7833
7834 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7835
7836         * src/ds390/main.c,
7837         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
7838         Brock for spotting this)
7839         * src/ds390/gen.c (genEndFunction),
7840         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
7841         interrupt handler and critical. Disable push/pop optimizations when
7842         peephole optimizations disabled.
7843
7844 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7845
7846         Updated pic16 library sources and headers.
7847         * device/lib/pic16/pic18f*/ ,
7848         * device/include/pic16/*.h: modified to handle structured SFR
7849         definitions
7850
7851 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7852
7853         * src/port.h (PORT structure): added hook initPaths, now each
7854         port can declare its own default search paths,
7855         which can been seen with the --print-search-dirs option,
7856         see pic16 port for example,
7857         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
7858         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
7859         * (doPrintSearchDirs): NEW, replaces in a central manner the
7860         printing of search dirs which was split in set*Paths functions,
7861         * (main): added call to port->initPaths and doPrintSearchDirs,
7862         * src/avr/main.c,
7863         * src/ds390/main.c,
7864         * src/hc08/main.c,
7865         * src/izt/i186.c,
7866         * src/izt/tlcs900h.c,
7867         * src/mcs51/main.c,
7868         * src/pic/main.c,
7869         * src/pic16/main.c: modified port structures to reflect addition of
7870         initPaths hook,
7871
7872         * src/pic16/device.c (regCompare): registers are finally sorted by name,
7873         * (pic16_dump_section): for registers in same address reserve memory once,
7874         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
7875         to no_banksel,
7876         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
7877         result is greater in size than right or left,
7878         * (pic16_genUMult8X8_8): there are some cases where the result can
7879         be 16 bits size, so handle these,
7880         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
7881         * (pic16_outBitC): modified to emit pcodes,
7882         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
7883         or not,
7884         * (genDivOneByte): implemented algorithm to divide 8-bits,
7885         * (genCmp): uncommented goto, but issues still exist,
7886         * (genAnd): fixed a bug with variables >8bits,
7887         * (genPackBits): optimization added that uses BCF/BSF to change a
7888         single bit,
7889         * (genAssign): fixed bug when assigning floating point literals,
7890         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
7891         __sdcc_gsinit_startup label,
7892         * src/pic16/main.c (_pic16_init): removed search directory
7893         initialisations,
7894         * (_pic16_initPaths): NEW, used to initialise search directories,
7895         * (_hasNativeMulFor): support functions for all except char/int
7896         multiplication, and char division,
7897         * (PIC16_port struct): modified entry for native mul support,
7898         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
7899         no_banksel option,
7900         * (buildCallTree): call to register_usage is ifdef'ed out,
7901
7902 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7903
7904         * device/include/string.h: applied Stas Sergeev's patch to make this
7905         header file compatible with the preprocessor -Wundef option
7906         * src/SDCCmain.c (main): abort compilation if preprocessor reports
7907         failure (fixes bug #941458)
7908
7909 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7910
7911         * src/SDCCopt.c (killDeadCode): fixed bug #907733
7912         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
7913         that the variable, not the function, should be static
7914         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
7915         to be consistent with non-literal case
7916
7917 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7918
7919         * src/SDCCast.c (isConformingBody): fixed bug #949967
7920         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
7921         convilong): fixed bug #952086
7922
7923 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7924
7925         * src/SDCCmem.c (allocVariables): fixed bug #955321
7926
7927 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7928
7929         * src/hc08/main.c (_hc08_genAssemblerEnd),
7930         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
7931         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
7932         completely eliminated the use of a temporary file
7933         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
7934         when more than one file linked
7935         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
7936
7937 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
7940         which fixes bug #543481
7941         * support/regression/tests/bug-751703.c: fixed comments left from a
7942         cut and paste error
7943         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
7944         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
7945         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
7946         scopes
7947         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
7948         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
7949         are now changed to underscores in moduleName
7950
7951 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7952
7953         * as/mcs51/lkmem.c: better fix for bug #954173
7954
7955 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7956         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7957
7958         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
7959         * device/include/c8051f000.h,
7960         * device/include/c8051f120.h,
7961         * device/include/c8051f300.h,
7962         * device/include/c8051f310.h,
7963         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
7964         PWM16) and detab'ed
7965
7966 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7967
7968         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
7969         and mailing lists, doc'ed --no-peep-comments, removed reference
7970         to knoppix (newest version has no LyX/LaTeX), other minor changes
7971         * src/SDCCglue.c (glue): save 2 bytes stack space with
7972         option --main-return. The ljmp could probably be avoided too
7973
7974 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7975
7976         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
7977
7978 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7979
7980         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
7981         * src/SDCCopt.c (isLocalWithoutDef),
7982         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
7983         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
7984         (credit to Maarten Brock for patch #949363, on which this is based)
7985         * support/regression/tests/bug-751703.c: some test cases of extern used
7986         within inner scopes.
7987
7988 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7989
7990         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
7991         SPEC_STRUCT
7992         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
7993         struct definitions
7994         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
7995         dwWriteLabel): fix to create valid debugger symbols even when
7996         the module name has non-alphanumeric symbols in it
7997         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
7998         when a variable's allocation has been optimized away
7999
8000
8001 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8002
8003         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8004         * src/hc08/main.c,
8005         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8006         * src/mcs51/main.c,
8007         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8008         * src/ds390/main.c,
8009         * src/z80/gen.c (z80_emitDebuggerSymbol),
8010         * src/z80/main.c,
8011         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8012         * src/pic/main.c,
8013         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8014         * src/pic16/main.c,
8015         * src/avr/gen.c (avr_emitDebuggerSymbol),
8016         * src/avr/main.c,
8017         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8018         * src/xa51/main.c,
8019         * src/SDCCdebug.c (emitDebuggerSymbol),
8020         * src/SDCCdebug.h,
8021         * src/port.h: added a debugger struct to the port struct. Added a
8022         callback for defining debugger symbols
8023
8024         * src/SDCCast.c (createLabel),
8025         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8026         with isitmp = 1
8027         * src/SDCCicode.h,
8028         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8029         iCode back to the ast for the function
8030
8031         * src/hc08/ralloc.c (hc08_assignRegisters),
8032         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8033         unneeded fields from the regs struct.
8034         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8035         pushReg() & pullReg() functions instead of emitcode()
8036
8037         * src/hc08/gen.c (genLabel, genhc08Code),
8038         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8039
8040         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8041         debugger hooks
8042
8043         * src/hc08/gen.c (genEndFunction, genhc08Code),
8044         * src/hc08/gen.h,
8045         * src/mcs51/gen.c (genEndFunction, gen51Code),
8046         * src/mcs51/gen.h,
8047         * src/ds390/gen.c (genEndFunction, gen390Code),
8048         * src/ds390/gen.h,
8049         * src/z80/gen.c (genEndFunction, genZ80Code),
8050         * src/z80/gen.h,
8051         * src/z80/z80.h,
8052         * src/pic/gen.c (genEndFunction, genpic14Code),
8053         * src/pic/gen.h,
8054         * src/pic16/gen.c (genEndFunction, genpic16Code),
8055         * src/pic16/gen.h,
8056         * src/avr/gen.c (genEndFunction, genAVRCode),
8057         * src/avr/gen.h,
8058         * src/xa51/gen.c (genEndFunction, genXA51Code),
8059         * src/xa51/gen.h,
8060         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8061         specific code to cdbFile.c and out of the backend code generators
8062
8063         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8064         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8065         starting address is now 0
8066
8067         * as/hc08/asm.h,
8068         * as/hc08/m08pst.c,
8069         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8070         assembler directive for DWARF support
8071         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8072
8073         * src/src.dsp,
8074         * src/Makefile.in,
8075         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
8076
8077 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
8080         and inappropriate peephole optimization in jump tables
8081
8082 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8083
8084         * as/hc08/m08pst.c,
8085         * src/SDCCglue.c: sdccopt works for the hc08 port now
8086
8087 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
8088
8089         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
8090
8091 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8092
8093         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
8094
8095 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8096
8097         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
8098         rules
8099         * src/SDCCmain.c,
8100         * src/SDCCglobl.h,
8101         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
8102         comments from the peephole optimizer replacement rules
8103         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
8104         symbols
8105         * src/SDCCcse.c (updateSpillLocation),
8106         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
8107         equivalents
8108         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
8109         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
8110         objects far pointers
8111
8112 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8113
8114         * src/SDCCsymt.h: a missing part of my last change
8115         * src/pic/ralloc.c (regTypeNum),
8116         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
8117
8118 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8119
8120         * src/SDCCicode.h,
8121         * src/SDCCicode.c (aggrToPtrDclType),
8122         * src/SDCCptropt.h,
8123         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
8124         ptrPseudoSymConvert),
8125         * src/pic/ralloc.c (regTypeNum),
8126         * src/pic16/ralloc.c (regTypeNum),
8127         * src/hc08/ralloc.c (regTypeNum),
8128         * src/ds390/ralloc.c (regTypeNum),
8129         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
8130         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
8131
8132 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8133
8134         * link/z80/lkmain.c (afile),
8135         * as/hc08/lkmain.c (afile),
8136         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
8137         prevent a pointer problem when a filename has no directory and
8138         no extension specified.
8139
8140 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8141
8142         * link/z80/lkmain.c (afile): allow periods in directory names
8143         * link/z80/lkmain.c (afile),
8144         * as/mcs51/lkmain.c (afile),
8145         * as/hc08/lkmain.c (afile): allow linker script file to have an
8146         extension other than ".lnk"
8147         * link/z80/lklex.c (getfid),
8148         * link/z80/lkmain.c (parse),
8149         * as/mcs51/lklex.c (getfid),
8150         * as/mcs51/lkmain.c (parse),
8151         * as/hc08/lklex.c (getfid),
8152         * as/hc08/lkmain.c (parse): Support comments in the linker script
8153         file on lines by themselves and after filenames
8154
8155 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8156
8157         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
8158
8159 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8160
8161         * src/z80/peeph-z80.def: removed some peephole rules that don't
8162         work with multibyte arithmetic (fixed bug #937126)
8163         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
8164         to registers and not global variables
8165         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
8166         geniCodePreInc, geniCodePostDec, geniCodePreDec,
8167         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
8168         checking for assignments not internally generated (fixed bug #931895)
8169         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
8170         structure member (fixed bug #930072)
8171
8172 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8173
8174         * src/SDCCmain.c (linkEdit),
8175         * src/hc08/main.c (_hc08_parseOptions),
8176         * as/hc08/Makefile.in,
8177         * as/hc08/aslink.h,
8178         * as/hc08/asm.h,
8179         * as/hc08/m08pst.c,
8180         * as/hc08/lkrloc.c (relr, rele),
8181         * as/hc08/lkarea.c (lnkarea)
8182         * as/hc08/lkmain.c (afile, parse),
8183         * as/hc08/lkelf.c: support for ELF output
8184         * as/hc08/lks19.c (s19),
8185         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
8186
8187 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8188
8189         * as/mcs51/lkihx.c: Fixed bug #899105.
8190
8191 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8192
8193         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
8194         .dsp files from Unix to DOS.
8195
8196 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8197
8198         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
8199         function pointers; we have been compliant for several months now.
8200         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
8201         change that was accidently commented out
8202         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
8203         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
8204         bug #922319
8205
8206 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8207
8208         * src/hc08/gen.c: output of all of the internal debugging information
8209         is now controlled by the D() macro; it is disabled by default
8210
8211 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8212
8213         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
8214         harder to keep the same registers during a CAST iCode
8215         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
8216         long via int can be done in a single cast, if the signedness is
8217         correct.
8218         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
8219         putchar() in tinibios.c in ds390's library
8220
8221 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8222
8223         * src/SDCCast.c (decorateType): fixed bug #898889,
8224         cast result of a literal complement too
8225         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
8226         fixed check for bitfields
8227
8228 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
8229
8230         * src/SDCCicode.c (geniCodeLogic): made it static,
8231         (geniCodeLogicAndOr): added in order to fix bug #905492,
8232         (ast2iCode): fixed bug #905492
8233         * support/regression/tests/bug-905492.c: added
8234         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
8235         (processParms): fixed bug #927659: don't copy parms, this will clear
8236         decorated flag
8237         * support/regression/tests/bug-927659.c: added
8238
8239 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8240
8241         * src/SDCCast.c (addCast): don't cast float to char
8242         * device/lib/libsdcc.lib: added _memmove
8243
8244 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
8245
8246         * device/lib/large/Makefile: fixed parallel execution by
8247         replacing `make` by `$(MAKE)`
8248
8249 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8250
8251         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
8252         offsets (fixes bug #923936)
8253
8254 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
8255
8256         * device/lib/small/Makefile: fixed parallel execution by
8257         replacing `make` by `$(MAKE)`
8258
8259 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8260
8261         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
8262
8263 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
8264
8265         * src/pic/gen.c (genCpl): multi-byte complements were not working.
8266         * src/regression/Makefile: Regression test was not running.
8267
8268 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8269
8270         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
8271         complement if possible
8272         * src/SDCCval.c (valComplement),
8273         * src/SDCCicode.c (operandOperation): fixed complement of literal
8274         * support/regression/tests/onebyte.c (testComplement): added
8275
8276 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
8277
8278         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
8279         return an optimized tree; actually replace actParm with the new tree
8280         * src/SDCCast.h: added some parantheses to remove side effects
8281         * support/regression/tests/bug-920866.c
8282
8283 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
8284         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
8285         Bit operands were not being handled properly in the pic14 port.
8286         (now src/regression/add.c passes again).
8287
8288 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8289
8290         * src/SDCC.y (labeled_statement): case and default no longer require
8291         a following statement (RFE #893037)
8292
8293 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8294
8295         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
8296         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
8297         disabled (fixes bug #916294)
8298         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
8299         "mov a,acc"; patch provided by Lenny Story
8300         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
8301
8302 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8303
8304         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
8305         functions
8306         * src/ds390/gen.c (genFunction, genEndFunction),
8307         * src/ds390/ralloc.c (ds390_assignRegisters),
8308         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
8309         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
8310         pushed if there are parameters passed on the stack. Also, a cleaner
8311         way to decide if r0/r1 should be pushed/popped. (Together they fix
8312         bug #918693)
8313
8314 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8315
8316         * doc/sdccman.lyx,
8317         * device/lib/mcs51/crtpagesfr.asm,
8318         * device/lib/mcs51/crtxinit.asm,
8319         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
8320         to avoid confusion with Si Lab's SFRPAGE register.
8321
8322 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8323
8324         * src/SDCCglue.c (emitMaps): allow public sfr variables
8325         * src/SDCCglue.c (initialComments): include compiler build date
8326         with compiler version and put the timestamp of the generated
8327         assembly file on a serperate line to be less confusing.
8328         * src/port.h: added genInitStartup hook
8329         * src/avr/main.c,
8330         * src/ds390/main.c,
8331         * src/hc08/main.c,
8332         * src/pic/main.c,
8333         * src/pic16/main.c,
8334         * src/xa51/main.c,
8335         * src/z80/main.c: genInitStartup initialize as NULL (default to
8336         historical behaviour)
8337         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
8338         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
8339         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
8340         library instead of hard coding it into the compiler.
8341         * support/regression/ports/mcs51-stack-auto/spec.mk,
8342         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
8343         * device/lib/mcs51/Makefile,
8344         * device/lib/small/Makefile,
8345         * device/lib/large/Makefile,
8346         * device/lib/mcs51/crtpagesfr.asm,
8347         * device/lib/mcs51/crtstart.asm,
8348         * device/lib/mcs51/crtxclear.asm,
8349         * device/lib/mcs51/crtxinit.asm,
8350         * device/lib/mcs51/crtclear.asm,
8351         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
8352         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
8353         and into user configurable files.
8354         * device/lib/clean.mk: clean mcs51 directory too
8355         * support/regression/tests/longlit.c: added static to T1 declaration
8356         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
8357         accesses in the initialization code
8358
8359 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8360
8361         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
8362         OSCTRIMVAL as noted in bug #916008
8363
8364 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8365
8366         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
8367         in loops with multiple exits (reported as incorrect registers
8368         used by Martin Helmling in Sdcc-user list)
8369
8370 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8371
8372         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
8373         made ds390 register extensions look less like error messages
8374
8375 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8376
8377         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
8378         reported by Adam Wozniak in Sdcc-user list
8379
8380 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8381
8382         * src/SDCCast.c (decorateType): fixed with bug and promotion in
8383         arithmetic optimizations, added debug output
8384
8385 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8386
8387         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
8388         * sdcc.spec: updated and split sdcc into 3 rpms
8389         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
8390         needed for literals of LEFT_OP and '+'
8391         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
8392         introduced RESULT_TYPE_NOPROM
8393         (geniCodeMultiply): fixed logic for decision if mul is optimized to
8394         left shift
8395         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
8396         limited promotion to int only for '*'
8397         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
8398
8399 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
8400
8401         * src/pic16/gen.c (genSkip),
8402         (genc16bit2lit), (gencjneshort): commented out
8403         (is_LitOp): new helper function, checks operand type
8404         (genCmpEq): rewritten
8405
8406 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8407
8408         * support/regression/tests/bug-908454.c: added
8409
8410 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
8411
8412         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
8413         * src/SDCCicode.c (usualBinaryConversions): op needs int type
8414         (geniCodeCast): cosmetic, don't preserve bit storage class
8415         (geniCodeLeftShift): added promotion
8416         (geniCodeLogic): fixed regression
8417         * src/SDCCsymt.c (computeTypeOr): accept bits too
8418         (compareType): 2nd part of fix for bug #908454, needed for bitfields
8419
8420 2004-03-07  Borut Razem <borut.razem AT siol.net>
8421
8422         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
8423
8424 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
8425
8426         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
8427         version of pic16_genPackRegisters which does not check if ic is a
8428         CAST operator,
8429         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
8430         function cause string1.c regression test fails
8431
8432 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8433
8434         * sim/ucsim/configure.in,
8435         * sim/ucsim/configure,
8436         * sim/ucsim/doc/Makefile.in: use docdir
8437         * src/SDCC.y: fixed sbit atrributes
8438         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
8439         * src/SDCCast.c (decorateType): |^& need special promotion handling
8440         * src/SDCCast.h,
8441         * src/SDCCsymt.h: moved definition of RESULT_TYPE
8442         * src/SDCCsymt.h (computeType),
8443         * src/SDCCicode.c: computeType() needs op
8444         * src/SDCCsymt.c (checkTypeSanity),
8445         * doc/sddman.lyx: "plain" bitfields are unsigned
8446         * src/SDCCsymt.c (computeTypeOr): added
8447         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
8448         |^& ops
8449         * src/SDCCval.c (val*): computeType() needs op
8450         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
8451         * support/regression/tests/onebyte.c: added tests for |^&
8452
8453 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
8454
8455         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
8456         for writing icode into asm output.
8457
8458 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
8459
8460         * src/pic16/device.c: added some debug lines enabled
8461         with macro DEBUG_CHECK,
8462         * src/pic16/genarith.c: more debug in genPlus,
8463         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
8464         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
8465         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
8466         * (aopForSym): onStack symbols are re-placed in data memspace,
8467         and onStack flag is cleared,
8468         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
8469         copy temporary pcodeop,
8470         * (genPcall): added warning for not updating PCLATU,
8471         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
8472         always true for pic16 port,
8473         * (genMultOneWord): NEW, supports integer multiplication,
8474         * (genMult): modified to call genMultOneWord,
8475         * (ifxForOp): added warning when return NULL,
8476         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
8477         flag is set before call to operandFromSymbol for implicit
8478         added structures,
8479         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
8480         options.intlong_rent are set by default,
8481         * (_hasNativeMulFor): modified to allow port generation of integer
8482         multiplication,
8483         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
8484         set regtype to REG_SFR for all registers, restricting seting the
8485         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
8486
8487 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8488
8489         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
8490         more than 500 times in the regression tests
8491
8492 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8493
8494         * support/Util/SDCCerr.h,
8495         * support/Util/SDCCerr.c,
8496         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8497         enumerator_list),
8498         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
8499         for symbol conflicts.
8500         * support/valdiags/tests/enum.c,
8501         * support/valdiags/tests/tentdecl.c,
8502         * support/valdiags/tests/struct.c: expect possible error messages
8503         referring to original symbol definitions.
8504         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
8505         * src/SDCCsymt.h,
8506         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
8507
8508 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
8509
8510         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
8511
8512 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
8513
8514         * src/pic16/ralloc.c (newReg): fixed bug #908929
8515
8516 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8517
8518         * src/ds390/gen.c: added missing #include "main.h"
8519
8520 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
8521
8522         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
8523         checking if symbol is already in set,
8524         * src/pic16/device.h: prototype for checkAddSym,
8525         * src/pic16/gen.c: (_G): added entry interruptvector,
8526         * (assignResultValue): removed some commented out lines,
8527         * (genFunction): check for ISR via sym->type, absolute section for
8528         interrupt code is created via a new pBlock, the goto instruction is
8529         placed now correctly at the interrupt vector position, changed all
8530         references from ivec to _G.interruptvector,
8531         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
8532         is the interrupt is a high priority one, same for return from ISR,
8533         * src/pic16/glue.c: changed all calls of addSetHead for publics and
8534         externs to calls of checkAddSym,
8535         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
8536         pic16_pcode_verbose flag is set,
8537         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
8538         * src/pic16/pcoderegs.c: message about how many registers are saved
8539         will only be emitted if pic16_pcode_verbose flag is set,
8540
8541 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8542
8543         * src/ds390/ralloc.h,
8544         * src/ds390/ralloc.c (ds390_regWithIdx),
8545         * src/ds390/gen.c (emitcode),
8546         * src/ds390/main.h,
8547         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
8548         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8549         ds390operandCompare, getRegsRead, getRegsWritten,
8550         initializeAsmLineNode): customized instruction size calculation for
8551         ds390, started basis for some register optimizations
8552         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
8553         corresponding assembly output
8554         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
8555         missing push/pop of r0/r1. Optimized push/pops
8556
8557 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8558
8559         * src/mcs51/main.c (instructionSize): fixed ACALL size
8560         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
8561
8562 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
8563
8564         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
8565         the sorting of rlist with NULL elements
8566         * (print_idataType, print_idata): NEW to create idata sections
8567         * src/pic16/device.h: idataSymSet new variable
8568         * src/pic16/gen.c (genFunction): fixed some bugs in string
8569         comparing, improved the absolute section creation for ISRs,
8570         added FSR0L/FSR0H in registers that are saved in an ISR,
8571         * (genInline): fixed the processing of inline snippets,
8572         now they undergo no process by the peephole optimizer
8573         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
8574         are placed in idataSymSet,
8575         * (pic16emitStaticSeg): extern symbols are added in externs,
8576         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
8577         switching when aboslute variables are placed in access bank memory
8578         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
8579         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
8580         commented out with #if,
8581         * (pic16_packRegisters): reintroduce the check for CAST because some
8582         symbols are not correctly handled,
8583         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
8584         pCodeInstruction instead of pCode,
8585         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
8586         pCodeAsmDir definition,
8587         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
8588         directive, then the argument directive is emitted without the leading
8589         tab, hack for inline labels which must be in the first column,
8590         * (compareLabel,pic16_findNextInstruction),
8591         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
8592         * (insertBankSwitch): modified for the new pCodeAsmDir,
8593
8594 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8595         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
8596
8597         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
8598         instance,
8599         * (pushSide): commented out with #if,
8600         * (assignResultValue): fixed some typos in saving
8601         registers,
8602         * (genPcall): FIXED and sync'ed with genCall,
8603         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
8604         * (genNearPointerGet): fixed to handle some more cases,
8605         implementation scheme via table reads,
8606         * (genConstPointerGet): modified to access code memory correct,
8607         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
8608         and improved to handle some cases
8609         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
8610         instead of "RETLW" for init data
8611         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
8612         not IN_DIRSPACE, work around to reduce bank switching when aboslute
8613         variables are placed in access bank memory (<0x80 and >=0xf80),
8614         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
8615         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
8616         TBLWT_POSTDEC,TBLWT_PREINC
8617         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
8618         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
8619         directives
8620         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
8621         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
8622         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
8623         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
8624
8625 2004-02-29  Borut Razem <borut.razem AT siol.net>
8626
8627         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
8628         support/Util/findme.h, support/Util/system.h: enhance binary relative
8629         search for lib and include by using findProgramPath()
8630
8631 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8632
8633         * src/SDCCpeeph.h,
8634         * src/SDCCpeeph.c (pcDistance),
8635         * src/port.h,
8636         * src/mcs51/ralloc.h,
8637         * src/mcs51/ralloc.c (mcs51_regWithIdx),
8638         * src/mcs51/main.h,
8639         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
8640         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8641         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
8642         size calculation port specific, started basis for some register
8643         optimizations
8644         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
8645         missing push/pop of r0/r1. Optimized push/pops
8646         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
8647         * device/lib/_modsint.c (_modsint),
8648         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
8649         and stack version so regression tests pass
8650
8651 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8652
8653         * src/Makefile.in (dep): include SLIBOBJS in dependency check
8654         * src/SDCCast.c (decorateType): catch another small optimization
8655         with '?' operator
8656         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
8657         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
8658         modified to finally use computeType() all over SDCC,
8659         see Feature Request #877103
8660         * src/SDCCval.h: cosmetic
8661         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
8662         valCompare(); regression tested in muldiv.c
8663         * support/regression/tests/muldiv.c (testMod): mod sign follows
8664         dividend only
8665
8666 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
8667
8668         * src/SDCCast.c (decorateType): fixed bug #902362
8669         * doc/INSTALL.txt: fixed install instructions for win32
8670
8671 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
8672
8673         * device/include/Makefile.in (install): fixed by replacing spaces
8674         by tabs
8675         * doc/README.txt,
8676         * doc/INSTALL.txt: updated for release
8677         * doc/sdccman.lyx: added warning for --xstack being buggy
8678
8679 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
8680
8681         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
8682         to eliminate build warnings.
8683         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
8684
8685 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
8686            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8687
8688         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
8689         removed -penable-stack, added comment for stack pragma, added
8690         warning for not initializing the stack/frame registers, removed
8691         comment at interrupts section
8692
8693         Stack is made permanent, there is no ability to disable stack usage.
8694         * src/pic16/device.h,
8695         * src/pic16/device.c: removed all references to USE_STACK macro,
8696         * src/pic16/device.c (pic16_dump_section): when no elements in
8697         rlist, free rlist before return,
8698         * (pic16_dump_int_registers): NEW, internal registers are a new set
8699         of general purpose registers reused by each function,
8700         * (checkAddReg): returns 1 if registers is added to set,
8701         * (pic16_groupRegistersInSection): when a registers is of type
8702         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
8703         * src/pic16/device.h: memRange and Assigned Memory are deleted,
8704         SRCASECMP macro is moved here from device.c
8705         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
8706         PO_PCLATU, PO_PRODL, PO_PRODH,
8707         * (pic16_pCodeOpType, genMinus,
8708         changed compares to "a" register, with AOP_ACC,
8709         * (pic16_genPlus): fixed some bugs and indented properly,
8710         * (pic16_addSign): changed size to size+offset in the MOVWF
8711         instruction,
8712         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
8713         multiply 8-bit operand by literal, result is 8-bit,
8714         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
8715         multiply 2 8-bit operand, result is 8-bit,
8716         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
8717         genUMult8X*_16,
8718         * src/pic16/gen.c: changed accUse to contain WREG only,
8719         * (pic16_emitcomment): renamed to pic16_emitpcomment,
8720         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
8721         true, do not use immediate addressing any more unless sym is a
8722         pointer in codespace,
8723         * (aopForRemat): do not use immediate addressing when symbol not in
8724         codespace and when symbol's address is requested,
8725         * (aopOp): for-loop in if(sym->accUse) is modified for the new
8726         accUse size (= 1),
8727         * (aopGet): added case for AOP_ACC and don't return "accumulator
8728         bug" but WREG instead,
8729         * (popGetTempReg): pushes contents of temporary register in stack,
8730         * (popReleaseTempReg): pops contents of temporary register from
8731         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
8732         * (pic16_popGet): separated case AOP_ACC to return register WREG
8733         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
8734         or PO_IMMEDIATE and initializes their instance/offset appropriately,
8735         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
8736         the use of immediate pointers to certain cases only.
8737
8738         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
8739         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
8740         * (assignResultValue, genCall, genRet): modified to use the new
8741         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
8742         genPcall is still broken,
8743         * (genFunction): added code to create 'A' type pBlocks when
8744         interrupt functions are generated, code not extensively tested yet,
8745         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
8746         * (genEndFunction): modified so ISRs pop stored registers from stack,
8747         * (genMultOneByte): cleanup,
8748         * (AccRsh): added flag andmask, to and result with appropriate mask,
8749         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
8750         * (genDataPointerGet): fixed and reenabled its use,
8751         * (genNearDataPointerGet): bugs fixed,
8752         * (genDataPointerSet): bugs fixed,
8753         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
8754         pic16_DumpSymbol, pic16_DumpOp,
8755         * src/pic16/genutils.h: function prototypes for the above functions,
8756         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
8757         pointers,
8758         * (pic16emitRegularMap): many many many improvements, but needs a
8759         major cleanup,
8760         * src/pic16/main.c: enable_stack in pic16_options is removed,
8761         * (_pic16_parseOptions): removed command line options -penable-stack,
8762         * (_process_pragma): emit stack symbol only when stack pragma is
8763         processed,
8764         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
8765         redirected to FSR0L/FSR0H pair,
8766         * (pic16_get_op, pic16_get_op2): modifications and improvements,
8767         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8768         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
8769         for immediates,
8770         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
8771         * (dumpPicOptype): NEW,
8772         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
8773         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
8774         with movff instruction,
8775         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
8776         added pic16_int_regs, some packRegsFor* functions are commented out,
8777         because produce errors,
8778         * src/pic16/NOTES: minor modifications
8779
8780 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8781
8782         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
8783         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
8784         --pack-iram.
8785         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
8786         * as/mcs51/lkaomf51.c: fixed bug #895763
8787
8788 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
8789
8790         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
8791
8792 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8793
8794         * doc/sdccman.lyx: added details about the HC08 storage classes and
8795         interrupts, fixed the register usage info for z80 & gbz80
8796
8797 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
8798
8799         * doc/sdccman.lyx: added more pic16 port documentation
8800         * device/include/pic16/: added header pic18fregs.h
8801
8802 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
8803
8804         * doc/sdccman.lyx: added Vangelis' contribution
8805
8806 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8807
8808         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
8809         extend to the next CALL or PCALL, not just to the next CALL.
8810
8811 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
8812
8813         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
8814
8815 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8816
8817         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
8818         bug #895752 and a better fix for bug #716790
8819
8820 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8821
8822         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
8823
8824 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8825
8826         * doc/sdccman.lyx: minor changes, minor changed
8827
8828 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
8829
8830         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
8831         which can't handle SDCC_NEWONEBYTEOPS,
8832         (geniCodeMultiply): removed conversion from mult to shift for pic14
8833         and pic16
8834
8835 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8836
8837         * src/hc08/gen.h,
8838         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
8839         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
8840         thus fixing bug #895406
8841
8842 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
8843
8844         * device/lib/_modsint.c,
8845         * device/lib/_modslong.c: sign follows divisor only
8846         * src/hc08/gen.c (genMultOneByte): if result size is 1,
8847         signs or signedness can be ignored
8848         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
8849         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
8850         added optimization for IFX,
8851         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
8852         arguments;
8853         reenabled optimization for IFX, which was removed on 2004-01-11
8854         * src/SDCCast.h: added return type IFX
8855         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
8856         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
8857         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
8858         SDCC_OLDONEBYTEOPS selects the old behaviour
8859         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
8860         changed again and commented promotion rule
8861         * src/SDCCval.c (valDiv): promotion no longer necessary
8862         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
8863         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
8864         rewritten
8865         * support/regression/tests/onebyte.c: added
8866
8867 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
8868
8869         * gen.c (genInline): reverted to old code for assemnling inline
8870         code because of bug reported James Chadd
8871
8872 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
8873
8874         * ralloc.h: missing declarations from previous patch,
8875         seems that patch for ralloc.h was never applied, fixed
8876
8877 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8878            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8879
8880         * pcode.c,
8881         * pcode.h,
8882         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
8883         indirect addressing. Marked FSR0 as deprecated
8884         * gen.c (pointerCode): commented out, not needed now
8885         (pic16_popGet2p): new MOVFF helper function
8886         (genGenPointerGet),
8887         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
8888         (shiftRLong): removed duplicate debugging info
8889
8890 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8891
8892         * src/ds390/gen.c (genNearPointerGet),
8893         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
8894         optimization with bits, but not bitfields.
8895         * src/ds390/ralloc.c (packRegisters),
8896         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
8897
8898 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8899
8900         * src/SDCCcse.c (algebraicOpts): copy operands before modification
8901
8902 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8903
8904         * src/SDCCsymt.h,
8905         * src/SDCCicode.c (operandFromSymbol),
8906         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
8907         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
8908         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
8909         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
8910         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
8911         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
8912         bug #892038
8913         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
8914         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
8915         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
8916         * src/SDCCsymt.c (newSymbol),
8917         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8918         enumerator_list),
8919         * src/SDCCval.h,
8920         * src/SDCCval.c (newiList): fixed bug #885705
8921
8922 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8923
8924         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
8925         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
8926
8927 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8928
8929         * device/include/c8051f120.h,
8930         * device/include/c8051f300.h,
8931         * device/include/c8051f310.h: added/updated header files for Silicon
8932         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8933         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
8934         in new section Submitting patches
8935
8936 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8937
8938         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
8939         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8940         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8941         genGenPointerSet),
8942         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
8943         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8944         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8945         genGenPointerSet),
8946         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
8947         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8948         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8949         genGenPointerSet),
8950         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
8951         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8952         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8953         genGenPointerSet): fixed bug #892400
8954         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
8955         to eliminate build warnings.
8956         * src/SDCCast.c (processParms),
8957         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
8958         fixed bug 751859
8959         * support/valdiag/valdiag.py: added GCC to the list of defines active
8960         when compiling with gcc
8961
8962 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8963
8964         * support/Util/SDCCerr.h,
8965         * support/Util/SDCCerr.c,
8966         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
8967         with an incomplete type (fixed bug #883734)
8968         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
8969
8970 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8971
8972         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
8973
8974 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8975
8976         * src/SDCCast.c (decorateType),
8977         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
8978         function pointer implementation
8979         * support/regression/tests/funptrs.c: added tests to verify both forms
8980         of function pointers work correctly. Added tests to verify parameters
8981         are passed in the correct order.
8982
8983 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
8984
8985         * device.c (regCompare): registers are sorted by ascending
8986         address and increasing size,
8987         * main.c (_pic16_finaliseOptions): removed the declaration
8988         of compiler macro MCU. Now a macro of the format pic18fxxxx
8989         will be defined from the command line
8990
8991 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8992             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8993
8994         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
8995         PCOP_RLCF was overwritten!
8996         * gen.c (genSkip): commented out calls to pic16_emitcode,
8997         * (genCmpEQ): fixed "long" compares, only high word did get compared,
8998         * (genlshTwo),
8999         * (genRRC): added debugging info,
9000         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9001         overwritten while shifting,
9002         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9003         overwritten while shifting,
9004         * (AccLsh),
9005         * (AccRsh),
9006         * (shiftLLeftOrResult),
9007         * (shiftRLeftOrResult),
9008         * (shiftRLong),
9009         * (shiftLLong): Implemented with pic16_emitpcode
9010         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9011         * (genLeftShift): Fixed bug, operand for shift by variable always
9012         was "and"ed with 0x0f,
9013         * (genLeftShiftLiteral),
9014         * (genrshTwo),
9015         * (genRightShiftLiteral): added debugging info,
9016         * (genrshFour): added comment,
9017         * (genRightShift): determined signedness from operand "left"
9018         instead of "result"
9019
9020 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9021
9022         * src/SDCCicode.c (geniCodeParms),
9023         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9024         function pointers, fixed function pointer bugs #861242 and #861896
9025
9026 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9027
9028         * device/include/c8051f000.h,
9029         * device/include/c8051f120.h,
9030         * device/include/c8051f300.h: added header files for Silicon
9031         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9032
9033 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9034
9035         * src/SDCCast.c (processParams): added new type flow and restructured
9036         (gatherAutoInit): added new type flow
9037         (addCast): cosmetic changes
9038         (getLeftResultType): added new type flow for array indices, patch
9039         provided by Stas, see FR #877103
9040         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9041         array index patch by Stas
9042         * src/SDCCast.h: added prototype getResultTypeFromType()
9043         * src/SDCCval.h,
9044         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9045         * src/pic/glue.c (pic14emitStaticSeg),
9046         * src/pic16/glue.c (pic16emitStaticSeg),
9047         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9048         for initialization of symbols
9049         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9050         * support/Util/SDCCerr.h:
9051         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9052         * .version: bumped version number to 2.3.8
9053         * device/include/Makefile.in (install),
9054         * doc/Makefile (install): changed to 'rm `find ...`' construct to
9055         avoid warnings
9056
9057 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9058
9059         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9060         Slade Rich fixed an optimization bug
9061         * src/pic/pcodepeep.c,
9062         * src/pic/pcoderegs.c
9063         * doc/Makefile (install): added test for directory
9064
9065 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9066
9067         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9068         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9069         * src/pic/ralloc.c (getRegPtr, getRegGpr),
9070         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9071         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9072         * as/mcs51/asexpr.c (term),
9073         * as/hc08/asexpr.c (term): fixed bug #887146
9074
9075 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9076
9077         * src/z80/gen.c (genMult): handle single byte result product
9078         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
9079         DUMMY_READ_VOLATILE (fixed bug #886367)
9080
9081 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9082
9083         * support/regression/tests/libmullong.c: fixed logic, on little endian
9084         hosts we ended without a mullong_wrapper()
9085
9086 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9087
9088         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
9089         virus/worm forged address usage.
9090
9091 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9092
9093         Fixed promotion, it should be done on AST level:
9094         * src/SDCCast.c (addCast): added promotion to int
9095         (decorateType): updated call to upCast()
9096         * src/SDCCicode.c (geniCodeLeftShift): removed call to
9097         usualUnaryConversions()
9098
9099 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
9100
9101         * support/regression/tests/literalop.c (mulWrapper): Added a
9102         wrapper to remove integer overflow warnings.
9103
9104         * support/regression/tests/float_trans.c: Made work on host.
9105
9106         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
9107         location of sz80.
9108
9109         * support/regression/generate-cases.py (main): Changed from inline
9110         to a main method.
9111
9112         * doc/Makefile (install): Changed to depth first to get rid of
9113         missing directory install warning.
9114
9115         * as/Makefile (install-doc): Made work on Mac.
9116
9117 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
9118
9119         * src/SDCCast.c: added an additional type flow in decorateType() of
9120         opposite direction, see feature request #860006; it's enabled at runtime
9121         by setting the environment variable SDCC_NEWTYPEFLOW
9122         * src/SDCCast.h: changed prototype of decorateType()
9123         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
9124         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
9125         'char' to 'int' can be omitted, if both operands are 'unsigned char';
9126         see feature request #877103
9127         * src/SDCCval.c: updated call of decorateType()
9128         (valBitwise): fixed bug #882876
9129         (valMinus): added promotion
9130         (valLogicAndOr): result is unsigned
9131         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
9132         * src/SDCCsymt.c (computeType),
9133         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
9134         must not cause an unsigned operation
9135         * src/pic/glue (pic14emitRegularMap),
9136         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
9137
9138 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
9139
9140         * src/pic/pcode.c (PCodeID): commented out left over debug code
9141
9142 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
9143
9144         * support/valdiag/tests/overflow.c: added shift tests
9145         * src/pic/device.c,
9146         * src/pic/gen.c,
9147         * src/pic/gen.h,
9148         * src/pic/glue.c,
9149         * src/pic/main.c,
9150         * src/pic/pcode.c,
9151         * src/pic/pcode.h,
9152         * src/pic/pcodepeep.c,
9153         * src/pic/pcoderegs.c,
9154         * src/pic/ralloc.c,
9155         * src/pic/ralloc.h: applied patch from Slade Rich;
9156         added support for multiple code pages and multiple RAM banks on the
9157         PIC 14 port. The ASM files now no longer simply assume all the
9158         code / RAM are in the same page / bank. This means the linker can
9159         safely allocate code/RAM of separate ASM files to different pages/banks.
9160         * doc/sdccman.lyx: added Slade's tips
9161         * src/mcs51/peeph.def: fixed bug #880768
9162
9163 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9164
9165         * src/hc08/ralloc.c (rematStr): fixed bug #879282
9166         * src/SDCCast.c (decorateType): fixed bug #880197
9167
9168 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
9169
9170         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
9171         getopt.h.
9172
9173         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
9174         strtof is not part of C89 and isn't included with Mac OS X.
9175
9176 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9177
9178         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
9179         shiftL2Left2Result): fixed bug #879326
9180         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
9181         (genMultOneByte): fixed bug in signed vs unsigned multiplication
9182         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
9183         address fetch for clr instruction
9184         * device/lib/hc08/_mulint.c: created optimized assembly version
9185         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
9186
9187 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9188
9189         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
9190         proposed in FR #877103
9191
9192 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
9193
9194         * src/SDCCval.c (cheapestVal): added missing checks
9195         * src/SDCCicode.c (usualBinaryConversions): fixed condition
9196         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
9197
9198 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
9199
9200         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
9201         equal operands
9202
9203 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
9204
9205         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
9206         loaded with the linker search paths (-L arguments) and the libraries
9207         to be linked with the current source (-l arguments). Changes
9208         currently will affect only the pic16 port.
9209         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
9210         include path the port specific paths and port specific libraries,
9211         * gplink command now contains the $3 argument,
9212         * src/pic16/device.h,
9213         * src/pic16/device.c,: structure PIC_device is made public and
9214         renamed to PIC16_device, the same for variable Pics which is renamed
9215         to Pics16. Updated all references to them.
9216         * src/pic16/glue.c (pic16glue): corrected bug with code
9217         initialization which bypassed the variable initializations block.
9218
9219         * device/lib/pic16/Makefile.rules: removed --penable-stack from
9220         COMPILE_FLAGS and added the --nostdinc option
9221
9222 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9223
9224         * device/include/mc68hc908jb8.h: Register defs for another member
9225         of the hc08 family. Contributed by Bjorn Bringert - thanks!
9226
9227 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
9228
9229         Documenting changes from previous commits.
9230         * configure.in (version 1.56),
9231         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
9232         when generating output files to configure the pic16 library,
9233         but now I've commented it out, since gputils aren't installed in the
9234         SF compile farm, so library won't compile
9235
9236         * device/lib/Makefile.in (version 1.56): initially I've added in
9237         target 'all' the prerequestive 'model-pic16' so it compiled the
9238         pic16 library, but now I've commented it out for the same reasons
9239         above,
9240         * added targets 'model-pic16' and 'objects-pic16' to compile the
9241         library
9242         * added target 'port-specific-objects-pic16' to handle the
9243         generated libraries and copy them into the build/ directory
9244         * added target 'clean-intermediate-pic16' to clean intermediate
9245         files into pic16 directory
9246         * in target 'installdirs' added line to create directory pic16 in
9247         the installation path
9248
9249         * device/include/Makefile.in (version 1.11): in target 'install'
9250         added lines to copy all header files to installation path,
9251         * in target 'installdirs' added line create directory for pic16
9252         headers in the installation path
9253
9254 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
9255
9256         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
9257          a function call
9258
9259 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9260
9261         * configure,
9262         * device/lib/configure.in,
9263         * device/lib/configure: fixed for autoconf 2.57
9264
9265 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9266
9267         * src/z80/main.c (_parseOptions): fixed the portmode= command line
9268         option so that it actually works. Made it specific to the z80, since
9269         the gbz80 doesn't have these kinds of I/O ports.
9270
9271 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9272
9273         * device/include/z180.h,
9274         * device/lib/_memcpy.c,
9275         * device/lib/_memmove.c,
9276         * device/lib/_mulint.c,
9277         * device/lib/ser_ir.c,
9278         * device/lib/ser_ir_cts_rts.c,
9279         * device/lib/_strcmp.c,
9280         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
9281         * src/z80/main.c (_process_pragma): add support for pragmas bank and
9282         portmode; added deprecation warning for bank= and protmode= forms.
9283         Also, guard against buffer overflow.
9284         * src/z80/gen.c (aopGet): generate better code for sfr banked read
9285
9286 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9287
9288         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
9289         changed interrupt vector table generation to only emit declared vectors.
9290         * device/include/Makefile.in: added missing backslash
9291         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
9292
9293 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9294
9295         Mainly changes to support compilation of the device libraries
9296         * src/pic16/device.c: stack is allocated via symbol and not
9297         via literal number. The symbol is placed in the corresponding
9298         position of the data ram
9299         * (pic16_dump_section): relocatable and absolute uninitialized
9300         data are now emitted in sorted order to reduce section naming,
9301         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
9302         weren't marked as being in the access bank,
9303
9304 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9305
9306         Added portion of GNU PIC Library under the directory
9307         device/include/pic16 and device/lib/pic16. These files
9308         contain the declarations of SFRs for the PIC18Fxx2 devices.
9309         The directory is initialized via configure from toplevel.
9310
9311 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
9312
9313         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
9314         the spilllocations to be compared correctly
9315
9316 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9317
9318         * src/SDCCast.c (decorateType): fixed bug introduced today
9319
9320 2004-01-12  Borut Razem <borut.razem AT siol.net>
9321
9322         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
9323         doc/sdccman.lyx: upper case pragmas are deprecated
9324
9325 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9326
9327         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
9328         in simpler and even better code
9329
9330 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9331
9332         * src/SDCCicode.c (operandOperation): fixed bug #874819
9333         * src/SDCCast.c (decorateType): fixed
9334         char foo (unsigned long ul) { return ul > 0; }
9335
9336 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9337
9338         * doc/sdccman.lyx: Moved and added some sections, small changes
9339         all over. Telling LaTeX to be less strict with word spacing
9340         to better keep the right margin. Changed some notes about
9341         maintainance of the ports in section 3.2.1 - is it OK like this?
9342
9343 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9344
9345         SDCC source changes:
9346         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
9347         convilong): modified to inform the pic16 port that builtin functions
9348         are external
9349
9350         PIC16 PORT specific changes:
9351         * src/pic16/device.c pic16_dump_equates() added,
9352         processor registers declared internally by the port are emitted in
9353         the translation as equates,
9354         * src/pic16/gen.c: inline code is passed unprocessed to the
9355         translation,
9356         * (pic16_popGetLit2): fnuction modified to take second operand as
9357         pCodeOp pointer and not as literal,
9358         * (popRegFromIdx): prefixed with pic16_,
9359         * (pic16_popCombine2): modified to receive already allocated pCode
9360         operands,
9361         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
9362         * (genFunction): initializes local stack frame and pushes on stack
9363         all the registers used by this function,
9364         * (genEndFunction): restores all registers from stack and restores
9365         stack frame,
9366         * src/pic16/glue.c (pic16emitRegularMap): various changes and
9367         improvements,
9368         * (pic16glue): changed the program startup sequence,
9369         * added new dbName code 'A' for functions placed in absolute section
9370         * src/pic16/main.c: added function attribute _naked,
9371         * added pragma 'code' to place a fnuction at an absolute address,
9372         * added command line arguments --debug-ralloc and --pcode-verbose,
9373         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
9374         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
9375         * (pic16_newpCodeOpLit2): modified to take the second operand as
9376         pCodeOp pointer,
9377         * (pic16_printpBlock): modified to emit each function in a separate
9378         section,
9379         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
9380         UPPER for immediate operands,
9381         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
9382         instruction,
9383         * src/pic16/peeph.def: all peepholes with movff are commented out,
9384         because there is a problem in the pcode peep optimizer,
9385         * src/pic16/ralloc.c: the register allocator can now reuse local
9386         function symbols for another function. This saves register usage.
9387         * src/pic16/ralloc.h: added flag isLocal in structure regs,
9388
9389         Added file src/pic16/NOTES with information about program writing on
9390         the current port version.
9391
9392 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9393
9394         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
9395         and peephole 252 (array access)
9396
9397 2004-01-09  Borut Razem <borut.razem AT siol.net>
9398
9399         * src/SDCCmain.c : fixed #872250: -l command line defined library
9400           files are scanned before standard library files
9401
9402 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9403
9404         * src/SDCCast.c (decorateType): fixed bug #874046
9405
9406 2004-01-09  Borut Razem <borut.razem AT siol.net>
9407
9408         * support/scripts/sdcc.nsi: remove previous installation
9409
9410 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9411
9412         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
9413         bytes for last interrupt vector (mcs51)
9414         * sdcc.spec: fixed typo
9415
9416 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9417
9418         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
9419         gen51Code): more efficient parameter receive for --model-large
9420         ("bug" #845294)
9421
9422 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9423
9424         * src/ds390/main.c,
9425         * src/z80/main.c: added missed needLinkerScript flags (more than
9426         one port structure defined in these file)
9427         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
9428         bug #795325
9429
9430 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
9431
9432         * src/SDCCmain.c: removed various references to DEFAULT_PORT
9433         * src/port.h: added flag needLinkerScript in port->linker
9434         structure to inform whether to create a .lnk file or not,
9435         * src/avr/main.c,
9436         * src/ds390/main.c,
9437         * src/hc08/main.c,
9438         * src/mcs51/main.c,
9439         * src/pic/main.c,
9440         * src/pic16/main.c,
9441         * src/xa51/main.c,
9442         * src/z80/main.c: changed appropriately to configure
9443         needLinkerScript flag
9444         * src/pic/gen.c,
9445         * src/pic16/gen.c (genAddrOf): fixed bug #863624
9446         * src/pic/glue.c: added variable udata_section_name to
9447         override default uninitialized data segment definition for
9448         devices only with SHAREBANK memory (reported from Erik Epetrich)
9449         * (pic14emitOverlay): modified to emit a commented overlay segment
9450         directive when no overlay data exist
9451         * (picglue): modified to emit uninitialized data segment
9452         according to udata_section_name
9453         * src/pic/main.c (_pic14_parseOptions): added command line
9454         options --udata-section-name=[name] to override default
9455         udata definition name
9456         * modified _linkCmd and _asmCmd to include compiler passed
9457         arguments via -W option
9458         * src/pic16/main.c: added $l in _asmCmd, changed extension for
9459         object file from '.rel' to '.o' in port->linker structure,
9460         changed size of fptr from 2 to 3 in port structure
9461
9462 2004-01-07  Borut Razem <borut.razem AT siol.net>
9463
9464         * support/scripts/sdcc.nsi: update PATH
9465         * support/scripts/sdcc.ico: craeted
9466
9467 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
9468
9469         * device/include/Makefile.in: fix install
9470         * doc/Makefile: fix install
9471
9472 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9473
9474         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
9475         in bug #860505
9476         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
9477         how the function variable allocation summary is displayed; also
9478         include information about variables allocated to the overlay
9479         segment
9480
9481 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9482
9483         * as/mcs51/lkmain.c: Help about -Y option
9484         * as/mcs51/lkarea.c: Fixed gcc warnings
9485
9486 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9487
9488         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
9489         fixed warning
9490         * support/valdiag/tests/overflow.c: added
9491         * src/SDCCast.c (decorateType),
9492         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
9493         LEFT_OP (left shift)
9494
9495 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9496
9497         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
9498         (default behaviour).
9499
9500 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9501
9502         A python script to validate compiler diagnostic messages. It can be
9503         used to verify that sdcc complains about bad c source code and
9504         gives a good location of the error.
9505         * support/valdiag/Makefile,
9506         * support/valdiag/valdiag.py,
9507         * support/valdiag/tests/*
9508
9509 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9510
9511         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
9512         * src/SDCCsymt.c (newEnumType),
9513         * src/SDCCsymt.h
9514         * support/Util/SDCCerr.c,
9515         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
9516         enum related bugs.
9517         * support/regression/tests/enum.c: added test for enum values that
9518         require at least 2 bytes of storage.
9519
9520 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9521
9522         * src/common.h: added ifndef/define/endif macros
9523         around the header file.
9524         Bug reported from Jesus Calvino-Fraga
9525
9526 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9527
9528         * sdcc.spec: updated
9529         * device/include/Makefile.in: don't install CVS directories
9530         * device/lib/Makefile.in: added removal of CVS directories after install
9531         * doc/Makefile: fixed install, added local_icons
9532         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
9533         * src/mcs51/gen.c (genRightShift): fixed bug #870788
9534         * src/ds390/gen.c (genRightShift): fixed bug #870788
9535         * src/SDCCast.c (decorateType): fixed bug #870781
9536
9537 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9538
9539         PIC16 port related changes:
9540         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
9541         added variable stackPos,
9542
9543         * gen.c: genCall, assignResultValue: added support for
9544         pushing/retrieving function parameters to/from stack,
9545         genFunction,genEndFunction: setup stack frame for the
9546         generated function,
9547         genAddrOf: will be changed according to bug 863624
9548
9549         * added files genutils.c and genutils.h which contain gen*
9550         debugged and optimised functions extracted from gen.c
9551
9552         * glue.c: added variable 'externs' which holds extern symbols,
9553         pic16emitRegularMap: is modified to properly handle relocatable
9554          symbols under the new scheme,
9555         pic16createInterruptVect: is modified
9556         pic16printPublics: is modified to emit 'global' assembler directives,
9557         added pic16_printExterns to print extern symbols,
9558         pic16glue: initializes stack/frame pointer in the beginning of
9559         the assembly output. Temporary hack, will be corrected later,
9560         because gplink yet does not support stack and SDCC does not
9561         yet support a type of crt0.o object to create the final binary.
9562
9563         * Removed many lines that contain 8051 legacy code.
9564         * The code is finally placed under a 'code' directive.
9565         * Added port specific options.
9566
9567         * _process_pragma: simplified since now we do not need *special*
9568         include file to define SFR registers. But a separate header
9569         will be needed. This will be developed later.
9570         * _pic16_parseOptions: added, parses port specific options:
9571         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
9572         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
9573         --preplace-udata-with=
9574
9575         * _pic16_setDefaultOptions: modified to initialize section names,
9576         but hack is temporarly out of order since it needs improvement.
9577         * _pic16_genAssemblerPreamble: configuration words are emitted by
9578         their address instead of their name. This part is incomplete and
9579         supports only the 18Fxx2 devices. Other devices will emit an error
9580         during assembly since they do not contain the same set of config
9581         registers
9582         * _pic16_genIVT: is modified,
9583
9584         * pcode.c: added definitions for some hardware registers that are needed
9585         for stack support
9586         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
9587         All PCI entries are updated. Now LFSR is supported.
9588         * Removed pic16_pciTRIS is mentioned by mdubuc in source
9589         * added pic16_newpCodeOpLit2 to support instructions with
9590         two literal arguments
9591         * pic16_pCode2str: corrected code that emits assembler instructions
9592         with two literal operands and those that have an access bit modifier
9593         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
9594         this fixes a bug which caused some labels to be lost, when an
9595         assembler directive was added, i.e. banksel,
9596         * pic16_FixRegisterBanking: improved logic that causes the insertion
9597         of bank switching,
9598         * InlineFunction: functions that are called once, are not any more
9599         inlined. This can be a port option in the future,
9600
9601         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
9602
9603         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
9604         hold the corresponding uninitialized symbols,
9605         * pic16_allocProcessorRegister: registers have explicit marked the
9606         accessBank field,
9607         * pic16_allocInternalRegister: registers are explicit marked as
9608         not used,
9609         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
9610         processing list, so bit registers were lost,
9611         *
9612
9613         * ralloc.h: added field 'accessBank' and original symbol operand
9614         in register definition,
9615         * removed the field isMapped from register definition,
9616
9617         ** Several functions have been removed from various sources:
9618         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
9619         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
9620         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
9621         pic16_assignRelocatableRegisters
9622
9623         ** others have been introduced:
9624         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
9625         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
9626
9627 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
9628
9629         * support/scripts/inc2h.pl: changed definition of BIT_AT
9630         to emit 'sbit at' instead of 'bit at'. This was a request.
9631
9632         PIC16 port related preliminary changes:
9633         * gen.c: prefixed function popRegFromString with
9634         pic16_ and all references to it corrected
9635         * pcode.c: all pic16_pc_* hardware registers prefixed
9636         with underscore (_),
9637         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
9638         * ralloc.c: newReg(): when register is REG_SFR then
9639         set address to rIdx,
9640         pic16_allocProcessorRegister(): marks register wasUsed=0
9641         pic16_writeUsedRegs(): added a call to assign processor
9642         registers via pic16_assignFixedRegisters
9643
9644 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9645
9646         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
9647         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
9648         variables in unused register banks.  Also the SSEG is placed
9649         wherever there is enough space for it, and IDATA can be anywhere
9650         in internal RAM.  For now compile using -Wl-Y[stack_size].
9651         The mem file is different for this option as well, since it
9652         makes no sense of talking about DSEG lenght.
9653
9654 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
9655
9656         * src/SDCClrange.c: fixed bug 869095 that caused segfault
9657         in certain cases, e.g. when ROM assignment, patch provided
9658         from Albert den Haan.
9659
9660 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
9661
9662         Many signedness and type propagation fixes:
9663         * src/SDCCicode.c: made geniCodeCast() static
9664         replaced SPEC_ by IS_ (cosmetic)
9665         (operandOperation): fixed div and mod operation
9666         (usualBinaryConversions): added support for promotion of char
9667         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
9668         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
9669         (geniCodeAdd): an array index will stay unsigned, even if promoted
9670         from char to int
9671         (geniCodeArray): ditto
9672         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
9673         * src/SDCCsymt.c (computeType): added more support for char;
9674         promotion of char is selectable by promoteCharToInt, fixed signedness
9675         for all cases
9676         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9677         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9678         * src/SDCCval (val*): replaced signedness calculation by
9679         computeType()
9680         rearranged if-branches (cosmetic)
9681         (valShift): added warning W_SHIFT_CHANGED
9682         (valCompare): fixed problem with different types
9683         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
9684         * support/regression/tests/literalop.c: added many cases
9685         * support/regression/tests/ast_constant_folding.c: changed finally to
9686         'unsigned int'
9687         * .version: new year, new version: 2.3.7
9688         * src/SDCCmain.c (main): applied patch #866468
9689         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
9690         provided by Scott Bronson
9691         * doc/sdccman.lyx: updated documentation for sdcdb
9692         updated and added chapter tips
9693
9694 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9695
9696         * src/SDCCsymt.h: missing from yesterday's commits
9697
9698 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9699
9700         * src/SDCC.y (struct_or_union_specifier),
9701         * support/Util/SDCCerr.c,
9702         * support/Util/SDCCerr.h: verify that struct & union tags are used
9703         as declared.
9704
9705 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9706
9707         * src/SDCCglobl.h: missing from yesterday's commits
9708
9709 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9710
9711         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
9712         sft_attributes, struct_declaration, parameter_declaration,
9713         type_name, start_block, declaration_list),
9714         * src/SDCC.lex (check_type): support redefinition of typedef names
9715
9716 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9717
9718         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
9719         aligned xdata arrays. Erik helped me with the if clause.
9720
9721 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9722
9723         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
9724         warning
9725
9726 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9727
9728         * src/SDCCast.h,
9729         * src/SDCCast.c (newAst_),
9730         * src/SDCCicode.h,
9731         * src/SDCCicode.c (ast2iCode, newiCode),
9732         * src/SDCCglobl.h,
9733         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
9734         expr, statement, expression_statement, selection_statement,
9735         iteration_statement, expr_opt, jump_statement): foundation for tracking
9736         sequence points
9737         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
9738         point code too)
9739
9740 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9741
9742         * support/Util/SDCCerr.c,
9743         * src/SDCCast.h,
9744         * src/SDCCast.c (createCase, createDefault, decorateType),
9745         * src/SDCClabel.c (labelUnreach),
9746         * src/SDCC.y (labeled_statement, jump_statement): More improvements
9747         to error messages.
9748         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
9749         (with thanks to Stas Sergeev)
9750         * device/include/time.h,
9751         * device/lib/time.c (CheckTime): suppress unreachable code warning
9752
9753 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9754
9755         * src/SDCCast.c (createIvalCharPtr),
9756         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
9757         bug #753752)
9758         * support/regression/tests/nullstring.c: tests for these two bugs
9759
9760 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9761
9762         * support/Util/SDCCerr.h,
9763         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
9764         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
9765         about storage class and 'at' used inside struct or union
9766         * src/SDCCBBlock.c (iCodeFromeBBlock),
9767         * src/SDCCcse.c (ifxOptimize),
9768         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
9769         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
9770         printIval, emitStaticSeg, emitOverlay),
9771         * src/SDCClabel.c (deleteIfx),
9772         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
9773         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
9774         gatherAutoInit, processParms),
9775         * support/Util/SDCCerr.h,
9776         * support/Util/SDCCerr.c (werrorfl): Support for better error location
9777         reporting for post-parse errors.
9778
9779 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9780
9781         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
9782         implicit casts via union; they don't work on big endian systems
9783         (possible fix for bug #861138)
9784
9785 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9786
9787         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
9788         * src/mcs51/main.c: fixed the fix for bug #737001
9789
9790 2003-12-15  Borut Razem <borut.razem AT siol.net>
9791
9792         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
9793
9794 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9795
9796         * support/makebin/makebin.c: put output in binary mode
9797
9798 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9799
9800         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
9801         xdata and data memory on startup. Set the environment variable
9802         SDCC_NOGENRAMCLEAR to disable this.
9803         * src/mcs51/peephole.def,
9804         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
9805         (allows non-interrupt and interrupt code to safely compete for a resource
9806         without the non-interrupt code having to disable interrupts)
9807
9808 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9809
9810         * src/SDCCicode.c (geniCodeAdd),
9811         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
9812         with valFromType if type might be a pointer and host is big endian).
9813         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
9814         types, not just integer types.
9815         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
9816         multiply defined with mismatching "at" address.
9817
9818 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9819
9820         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
9821         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
9822         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
9823         with embedded nulls (fixed bug #753752)
9824
9825 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9826
9827         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
9828         Apparently this did not see much testing (endless loop)
9829
9830 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9831
9832         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
9833
9834 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9835
9836         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
9837         gracefully handle NULL memmap pointers
9838
9839 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9840
9841         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
9842         instead of deleting the iCode when an operand is volatile
9843         * src/z80/gen.c (genDummyRead),
9844         * src/mcs51/gen.c (genDummyRead),
9845         * src/ds390/gen.c (genDummyRead),
9846         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
9847         not just IC_RIGHT
9848         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
9849         * src/SDCC.y: fixed bug #850420
9850
9851 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9852
9853         Applied z80 i/o port patch from Peter Townson and fixed some operators
9854         to better handle operands in A register.
9855         * device/include/z180.h
9856         * src/SDCC.y
9857         * src/SDCCglue.c
9858         * src/z80/gen.c
9859         * src/z80/gen.h
9860         * src/z80/main.c
9861         * src/z80/peeph-z80.def
9862         * src/z80/peeph.def
9863         * src/z80/z80.h
9864
9865 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9866
9867         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
9868
9869 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9870
9871         * device/lib/hc08/_mullong.c: Removed extra #endif
9872
9873 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9874
9875         * sim/ucsim/hc08.src/inst.cc,
9876         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
9877         carries from x to h
9878         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
9879         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
9880         * device/include/stdarg.h: fixed varargs for hc08
9881         * device/lib/Makefile.in,
9882         * device/lib/hc08/Makefile,
9883         * device/lib/hc08/_mulint.c,
9884         * device/lib/hc08/_mullong.c: fixed some endian problems
9885
9886 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9887
9888         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
9889         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
9890         * device/lib/_gptrget.c,
9891         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
9892
9893 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9894
9895         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
9896         * src/SDCCast.c (astErrors): fixed bug #846007
9897         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
9898
9899 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9900
9901         * src/SDCCast.c (decorateType): disabled a transformation I added in
9902         revision 1.188 (access to fields of a structure at an absolute address);
9903         it breaks with bitfields, extern declarations, and gcse analysis.
9904         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
9905         could be assigned through a pointer, so don't complain.
9906         * src/SDCCast.c (astErrors),
9907         * src/SDCCast.h,
9908         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
9909
9910 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
9911
9912         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
9913         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
9914         output of __config directives, since gpasm now supports them
9915         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
9916         pre-processor macro, i.e. -DMCU=p18f452
9917         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
9918         and modified to handle 'cast' icode similarly to '=' icode
9919         * src/pic16/device.h (typedef struct PIC_device): added field
9920         'extMIface' to indicate that chip has external memory interface
9921         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
9922         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
9923         18F8720
9924
9925 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9926
9927         * src/SDCC.y (pointer): fixed bug #846006
9928         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
9929         * src/SDCCast.c (decorateType): fixed bug #846009
9930         * src/ds390/peeph.def,
9931         * src/ds390/gen.c (genAnd, genOr),
9932         * src/mcs51/peeph.def,
9933         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
9934
9935 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9936
9937         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
9938         * src/SDCCdflow.c
9939         * src/SDCCcse.c
9940         * src/SDCCcse.h
9941         * src/SDCCBBlock.h
9942         * src/SDCCBBlock.c
9943
9944 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
9945
9946         fixed bug #845089
9947         * src/SDCCbitv.h,
9948         * src/SDCCbitv.c: added function to free a bitvector
9949         * src/SDCClrange.h,
9950         * src/SDCClrange.c: added function to recompute the liveranges
9951         * src/avr/ralloc.c,
9952         * src/ds390/ralloc.c,
9953         * src/hc08/ralloc.c,
9954         * src/mcs51/ralloc.c,
9955         * src/pic/ralloc.c,
9956         * src/pic16/ralloc.c,
9957         * src/xa51/ralloc.c,
9958         * src/z80/ralloc.c: recompute the liveranges after register packing
9959
9960 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
9961
9962         * src/SDCCloop.c (newInduction): fixed bug #845630
9963
9964 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9965
9966         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
9967         inadvertantly left behind from my 2003-11-12 change
9968
9969 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9970
9971         Updated headers I neglected to commit yesterday.
9972         * src/SDCClrange.h,
9973         * src/SDCCicode.h
9974
9975 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9976
9977         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
9978         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
9979         * src/SDCCopt.c (eBBlockFromiCode),
9980         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
9981         the creation of the key hash table from the sequencing so it can be used
9982         earlier (for some GCSE bug fixes still pending)
9983
9984 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9985
9986         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
9987         * support/regression/tests/addsub.c: testing genPlus shortcut
9988
9989 2003-11-15  Borut Razem <borut.razem AT siol.net>
9990
9991         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
9992
9993 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9994
9995         * src/SDCCcse.c (cseBBlock): fixed bug #527779
9996         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
9997         ordering is immaterial.
9998         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
9999
10000 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10001
10002         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10003         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10004         (SIGSEV) of bug #840381
10005         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10006         unlink new file before rename if new and old filenames are the same)
10007
10008 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10009
10010         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10011         uninitialized variables) for the mcs51. Set environment variable
10012         SDCC_GENRAMCLEAR to test.
10013         xdata initialization slightly shorter
10014
10015 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10016
10017         * src/SDCCsymt.h,
10018         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10019         #838241 & 780691 (basicly the same bug)
10020         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10021         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10022
10023 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10024
10025         * src/SDCCmain.c (linkEdit): "fix" #834252
10026
10027 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10028
10029         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10030         * src/SDCCast.h,
10031         * src/SDCC.y: fixed bug #819403
10032
10033 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10034
10035         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10036         the reentrant attribute.
10037         * src/hc08/gen.c (genPackBits): added missing stack readjustment
10038         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10039         simulation
10040         * src/SDCCast.c (decorateType): fixed bug with storage class not being
10041         updated during pointer dereference; f.e. ~(((char *)1)*) was being
10042         erroneously reduced to a literal.
10043         * src/hc08/ralloc.c (packRegisters, rematStr),
10044         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10045         some cases
10046
10047 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10048
10049         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10050         * doc/sdccman.lyx: changed from 'article' to 'book'
10051         * doc/Makefile: readded test_suite_spec and cdbfileformat
10052
10053 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10054
10055         * device/include/stdlib.h: include malloc.h to comply with ANSI
10056         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10057
10058 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10059
10060         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10061         * doc/clean.mk: also remove *.out files
10062         * doc/sdccman.lyx: some additions, larger top/bottom margins
10063
10064 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10065
10066         * src/SDCC.y: fixed bug #837365
10067         * support/regression/tests/bitopcse.c
10068         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10069         a symbol (might be valop instead)
10070         * device/lib/Makefile.in: added errno.c to HC08SOURCES
10071         * device/lib/clean.mk: added hc08 to the cleaning list
10072
10073 2003-11-04  Borut Razem <borut.razem AT siol.net>
10074
10075         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
10076           made 2003-11-04
10077         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10078           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
10079           malloc is declared in standard stdlib.h
10080
10081 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10082
10083         * device/lib/hc08/Makefile: need to clean .rel not .o files
10084         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
10085
10086 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10087
10088         * src/port.h,
10089         * src/hc08/main.c,
10090         * src/mcs51/main.c,
10091         * src/ds390/main.c,
10092         * src/z80/main.c,
10093         * src/avr/main.c,
10094         * src/pic/main.c,
10095         * src/pic16/main.c,
10096         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
10097         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
10098         tests (which uses the port's oclsExpense function)
10099         * src/SDCC.y,
10100         * src/SDCCast.c,
10101         * src/SDCCicode.c,
10102         * src/hc08/gen.c,
10103         * src/ds390/gen.c,
10104         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
10105
10106 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10107
10108         * src/SDCCcse.c (ifxOptimize),
10109         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
10110         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
10111         deleting the IFX iCode.
10112         * src/hc08/ralloc.c: reduced unneeded slocs
10113         * src/hc08/gen.c: fixed bug in asmopToBoolean
10114
10115 2003-11-04  Borut Razem <borut.razem AT siol.net>
10116
10117         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
10118           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10119           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
10120           transferred to configure
10121
10122 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
10123
10124         Use headers defined in the C[++] standards:
10125         * sim/ucsim/gui.src/serio.src/fileio.cc
10126         * sim/ucsim/gui.src/serio.src/frontend.cc
10127         * sim/ucsim/gui.src/serio.src/main.cc
10128         * sim/ucsim/gui.src/serio.src/posix_signal.cc
10129         * support/Util/NewAlloc.c
10130         * as/hc08/lklibr.c
10131         * as/mcs51/lklibr.c
10132         * as/z80/aslist.c
10133         * as/z80/assym.c
10134
10135 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10136
10137         * Added MSVC projects for hc08 assembler and linker:
10138         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
10139         /as/hc08/link_hc08.dsp
10140
10141 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
10142
10143         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
10144
10145 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
10146
10147         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
10148
10149 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10150
10151         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
10152
10153 2003-10-31  Borut Razem <borut.razem AT siol.net>
10154
10155         * support/cpp2/cpplib.h,
10156           support/cpp2/cpplib.c,
10157           support/cpp2/cpplex.c,
10158           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
10159           to switch _asm block preprocessing on / off. Default is
10160           #pragma preproc_asm +
10161
10162 2003-10-31  Borut Razem <borut.razem AT siol.net>
10163
10164         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
10165           when outputting comment blocks (when executed with -C option) and
10166           _asm (SDCPP specific) blocks
10167
10168 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10169
10170         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
10171
10172 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
10173
10174         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
10175
10176 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
10177
10178         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
10179         * src/SDCCast.c (decorateType): fixed bug #832664
10180
10181 2003-10-31  Borut Razem <borut.razem AT siol.net>
10182
10183         * support/cpp2/cpplex.c: fixed for SDCPP:
10184           comments(when executed with -C option) and _asm blocks
10185           were included even if they where in skipped #if block.
10186           Applied solution from GCC cpp 3.3.2
10187
10188 2003-10-31  Borut Razem <borut.razem AT siol.net>
10189
10190         * src/SDCC.lex: sdcc now understands both formats:
10191           '# <line_number> <file_name>' and
10192           '#line <line_number> <file_name>'
10193         * support/cpp2/cppmain.c: sdcpp now generates the standard
10194           '# <line_number> <file_name>' instead of former
10195           '#line <line_number> <file_name>'
10196
10197 2003-10-30  Borut Razem <borut.razem AT siol.net>
10198
10199         * support/cpp2/cpphash.h,
10200         * support/cpp2/cpplib.h
10201         * support/cpp2/cpplex.c,
10202         * support/cpp2/cppmain.c,
10203         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
10204
10205 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10206
10207         Fixed a number of problems revealed by bug #827883.
10208         * src/SDCCloop.c (loopInvariants): Spill location of the
10209         result operand should be recomputed if extracted from
10210         a loop. Also, don't extract assignments of an iTemp
10211         from a literal.
10212         * src/SDCCast.c (isConformingBody): loop reversal should
10213         not occur if the control variable is involved with a
10214         relational operator.
10215
10216 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
10217
10218         * .version: bumped to 2.3.6 to reflect the big improvements
10219         made by Erik and Klaus. Thanks!
10220
10221 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
10222
10223         Replaced the livrange code.
10224         * src/SDCClrange.c: added new LR code
10225         * src/SDCCloop.c,
10226         * src/SDCCBBlock.h: removed remainig parts from old LR code
10227         * src/ds390/ralloc.c,
10228         * src/ds390/gen.c: minor fixes to make it work with new code
10229
10230 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10231
10232         * as/hc08/asm.h,
10233         * as/hc08/lkrloc.c,
10234         * src/hc08/gen.c,
10235         * src/hc08/ralloc.c: Fix various warnings related to the hc08
10236         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
10237         (tweaked fix for bug #818696)
10238
10239 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10240
10241         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
10242
10243 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10244
10245         * src/SDCCmain.c,
10246         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
10247         * src/mcs51/gen.c (gencjneshort),
10248         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
10249         more efficient (per Scott Bronson's suggestion)
10250
10251 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10252
10253         Extended the semantics of the critical keyword to include
10254         individual statements. See RFE #827755 and #799831
10255         * src/SDCC.y
10256         * src/SDCCicode.c
10257         * src/SDCCopt.c
10258         * src/SDCCast.c
10259         * support/Util/SDCCerr.c
10260         * support/Util/SDCCerr.h
10261         * src/mcs51/gen.c
10262         * src/ds390/gen.c
10263         * src/hc08/gen.c
10264
10265 2003-10-19  Borut Razem <borut.razem AT siol.net>
10266
10267         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
10268
10269 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10270
10271         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
10272         Fixed bug #818696
10273         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
10274         and predecrement operand is displayed
10275
10276 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10277
10278         * src/SDCCval.c (valMinus): fixed bug #826041
10279
10280 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10281
10282         Some hc08 related updates that I missed earlier
10283         * sim/ucsim/stypes.h
10284         * support/regression/ports/hc08/spec.mk
10285
10286 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10287
10288         New target "hc08" for the Motorola 68hc08 family of micros
10289
10290         * configure
10291         * configure.in
10292         * Makefile
10293         * src/hc08/*
10294         * src/SDCCmain.c
10295         * src/port.h
10296         * sim/ucsim/hc08.src/*
10297         * sim/ucsim/configure.in
10298         * src/ucsim/configure
10299         * sim/ucsim/packages_in.mk
10300         * as/hc08/*
10301         * as/Makefile
10302         * device/include/mc68hc908qy.h
10303         * device/lib/hc08/*
10304         * device/lib/Makefile.in
10305         * support/regression/ports/hc08/*
10306         * support/regression/Makefile
10307
10308 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10309
10310         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
10311         regression test
10312         * src/ds390/gen.c (genCast): fixed bug #821957
10313
10314 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10315
10316         * device/lib/logf.c: "fixed" overlay bug
10317         * support/regression/ports/host/spec.mk: added m library
10318         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
10319         * support/regression/tests/float_trans: added (for Eric)
10320
10321 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
10322
10323         * src/mcs51/gen.c (genCpl): fixed bug
10324         http://sf.net/mailarchive/message.php?msg_id=6263915
10325
10326 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
10327
10328         * src/SDCCast.c (decorateType): added extended constant folding
10329         * src/SDCCsymt.c (computeType): cleanup
10330         * src/SDCCval.c (valShift): minor optimization
10331         * support/regression/tests/ast_constant_folding.c: added
10332
10333 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10334
10335         * src/SDCCmain.c: removed some unintended changes
10336
10337 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10338
10339         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
10340         * src/z80/gen.c: fixed part of bug #817589
10341         * src/SDCCsymt.c (checkFunction): fixed bug #817895
10342
10343 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
10344
10345         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
10346         * src/SDCCcflow.c
10347         * src/SDCCcse.c
10348         * src/SDCCdflow.c
10349         * src/SDCClabel.c
10350         * src/SDCClrange.c
10351         * src/SDCCmem.c
10352         * src/SDCCopt.c
10353         * src/SDCCpeeph.c
10354         * src/SDCCset.c
10355         * src/avr/ralloc.c
10356         * src/ds390/ralloc.c
10357         * src/izt/ralloc.c
10358         * src/mcs51/ralloc.c
10359         * src/pic/ralloc.c
10360         * src/pic16/ralloc.c
10361         * src/xa51/ralloc.c
10362         * src/z80/ralloc.c
10363         * src/z80/gen.c: removed unused label "release:"
10364
10365 2003-10-06  Borut Razem <borut.razem AT siol.net>
10366
10367         * src/SDCC.lex: removed definition of unused variables
10368           save_optimize and save_options
10369
10370 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
10371
10372         * clean.mk: removed '=' in "-maxdepth=1"
10373         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
10374         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
10375
10376 2003-10-06  Borut Razem <borut.razem AT siol.net>
10377
10378         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
10379           my_unput() replaced by unput()
10380
10381 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
10382
10383         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
10384         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
10385         type-punned pointer will break strict-aliasing rules"
10386         Old LR behaviour is again default; Klaus' LR can be choosen by
10387         defining the environment variable LRKLAUS
10388         * src/SDCCBBlock.h
10389         * src/SDCCloop.c
10390         * src/SDCClrange.c
10391         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
10392         * clean.mk: fixed removal of files in bin/CVS/
10393         * device/lib/clean.mk: fixed removal of directories small and large
10394         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
10395         * src/SDCCicode.c,
10396         * src/SDCCval.c: removed superflous test for pedantic
10397
10398 2003-10-05  Borut Razem <borut.razem AT siol.net>
10399
10400         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
10401           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
10402           message "unmatched #pragma SAVE and #pragma RESTORE"
10403
10404 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10405
10406         * doc/sdccman.lyx: various additions and updates (interrupts, inline
10407           assembly, critical functions, atomic, nojtbound)
10408
10409 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
10410
10411         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
10412         * src/SDCCBBlock.h
10413         * src/SDCCloop.c
10414         * src/SDCCloop.h
10415         * src/SDCClrange.c
10416
10417 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10418
10419         * src/z80/gen.h,
10420         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10421         * src/mcs51/gen.h
10422         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10423         * src/ds390/gen.h
10424         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10425         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
10426         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
10427
10428 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10429
10430         * src/z80/gen.c (genRet): fixed bug #524753
10431         * src/z80/gen.c (genCast): fixed internal error on cast from
10432         pointer to long
10433         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
10434         fix for bug #477835 to the z80
10435         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
10436         for tracking iCodes in the peephole optimizer for z80
10437
10438 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10439
10440         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
10441         the other part of bug #814548
10442         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
10443
10444 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
10445
10446         * src/SDCCcse.c: fixed part of bug #814548
10447
10448 2003-09-28  Borut Razem <borut.razem AT siol.net>
10449
10450         * src/asm.c: rewrite of printILine() to use temporary file instead
10451           a pipe
10452         * src/xa51/main.c: commented out declaration of int rewinds
10453
10454 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10455
10456         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
10457
10458 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10459
10460         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
10461         * src/asm.c (printILine): Fixed bug #811015
10462
10463 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10464
10465         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
10466         freeing.
10467
10468 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10469
10470         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
10471         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
10472         to correctly handle general case of AOP_PAIRPTR
10473         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
10474
10475 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10476
10477         * src/mcs51/ralloc.c (fillGaps),
10478         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
10479         register positioning bug)
10480
10481 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
10482
10483         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
10484
10485 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10486
10487         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
10488         genCodePointerGet, genGenPointerGet, genFarPointerSet,
10489         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
10490         (ralloc doesn't intentionally do this now, but perhaps later)
10491         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
10492         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
10493         register positioning bugs (Fixed bug #762602 and #795325)
10494         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
10495         (Fixed bug #808779)
10496         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
10497         lines that --i-code-in-asm generates
10498
10499 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10500
10501         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
10502         trying to fclose a FILE* that was already closed.
10503
10504 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10505
10506         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
10507         of const struct should be treated as if const themselves)
10508
10509 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
10510
10511         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
10512
10513 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10514
10515         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
10516         Unix (/n) and DOS (/r/n) line terminations.
10517
10518 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10519
10520         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
10521         bug #613775
10522
10523 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10524
10525         * src/mcs51/gen.c (genFunction, genEndFunction),
10526         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
10527         and restore of EA so that stack offsets to parameters are
10528         correct when using both critical and reentrant/stack-auto.
10529         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
10530         size (can be triggered in error if sloc is shared between
10531         different sized objects)
10532         * device/include/float.h: fixed macros to explicitly use
10533         unsigned long where needed
10534
10535 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
10536
10537         Feature req. 799831: added code to allow nesting of critical functions
10538         * src/mcs51/gen.c (genFunction, genEndFunction)
10539         * src/ds390/gen.c (genFunction, genEndFunction)
10540
10541 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10542
10543         * src/SDCCsymt.c (sclsFromPtr),
10544         * src/SDCCsymt.h,
10545         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
10546         support for standard C idiom of memory mapped variables; for
10547         example, *((xdata int*)0x1234) = 1 is now internally equivalent
10548         to xdata int at 0x1234 tempvar = 1.
10549         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
10550         provided by Akiya ISHIDA
10551
10552 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
10553
10554         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
10555         * src/SDCCval.c (constVal): added reduction from int to char
10556         * src/SDCCval.c (valMult, valDiv): fixed sign handling
10557         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
10558         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
10559         to ignore the sign
10560         * support/regression/tests/shifts.c: fixed
10561
10562 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10563
10564         * src/z80/gen.c (genXor): Fixed bug #805445
10565
10566 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10567
10568         Fixed bug #621531 (const & volatile confusion in the type chain).
10569         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
10570         refer to the const or volatile state of the pointer itself.
10571
10572         * src/SDCCast.c
10573         * src/SDCCglue.c
10574         * src/SDCCicode.c
10575         * src/SDCCsymt.c
10576         * src/SDCCval.c
10577         * src/SDCC.y
10578         * src/SDCCsymt.h
10579         * src/pic/gen.c
10580         * src/pic/ralloc.c
10581         * src/pic16/gen.c
10582         * src/pic16/ralloc.c
10583         * support/regression/tests/const.c
10584
10585 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10586
10587         When checking for duplicated modules, use absolute paths
10588         instead of relative paths.  Files changed:
10589
10590         * as/mcs51/lklib.c
10591         * link/z80/lklib.c
10592
10593 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10594
10595         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
10596
10597 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10598
10599         * device/include/string.h: added size_t typedef, changed
10600         prototypes to use size_t, eliminated separate reentrant and
10601         non-reentrant declarations, added _memmove declaration
10602         * device/lib/_memcpy.c: changed to use size_t instead of int,
10603         changed /4 to >>2 to avoid division library call
10604         * device/lib/_memcmp.c,
10605         * device/lib/_memset.c,
10606         * device/lib/_strncat.c,
10607         * device/lib/_strncpy.c,
10608         * device/lib/_strncmp.c: changed to use size_t instead of int
10609         * device/lib/_memmove.c: new file (fixed bug #772294)
10610         * device/lib/Makefile.in: added _memmove.c
10611         * device/lib/z80/asm_strings.s: fixed bug #772290
10612         * support/regression/tests/bitfields.c: attempt to fix host assertion
10613         failure on amd64-unknown-linux2.2
10614
10615 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10616
10617         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
10618         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
10619         * as/z80/asmain.c (main): fixed bug #801766
10620
10621 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
10622
10623         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
10624         compilers
10625
10626 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10627
10628         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
10629         reported in bug #800609
10630
10631 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
10632
10633         * Top header beautifications in src/pic16 directory:
10634           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
10635           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
10636           pcoderegs.h, ralloc.c, ralloc.h
10637         * main.c: added top header and GPL license notice
10638         * pcode.c: fixed the if-conditional warning
10639
10640 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
10641
10642         * device/lib/_mullong.c: replaced int by short for gcc
10643
10644 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10645
10646         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
10647         and JUMPTABLE iCodes properly now (worked by accident before)
10648         * src/mcs51/gen.c (leftRightUseAcc),
10649         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
10650         iCode properly now. Use getSize instead of nRegs since a & b
10651         aren't part of the nRegs tally.
10652
10653 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
10654
10655         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
10656         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
10657           before instructions that use the _STATUS register
10658
10659 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
10660
10661         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
10662         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
10663         fetching of the pointer
10664         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
10665         copied from genNearPointerSet()
10666         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
10667         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
10668         If they pop r0/r1 they must be called in the opposite order than aopOp().
10669         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
10670         (resp. --stack-auto), prepared for --xstack
10671
10672 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10673
10674         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
10675
10676 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10677
10678         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
10679         these ports have their own __sdcc_external_start()
10680
10681 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
10682
10683         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10684         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
10685         type for bits was changed. It resulted in bit variables becoming
10686         global, which is not permitted in PIC 14 assembly output.
10687
10688 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10689
10690         * doc/sdccman.lyx: various additions and updates. Rearranged sections
10691
10692 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10693
10694         Z80 and MCS51 linkers complaint if a public symbol is defined
10695         in more than one library module:
10696
10697         * as/mcs51/lklib.c
10698         * link/z80/lklib.c
10699         * as/mcs51/Makefile.in
10700
10701 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10702
10703         A few small changes that speed up the peephole optimizer.
10704
10705         * src/SDCCpeeph.c
10706
10707 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10708
10709         Try to make the peephole optimizer smarter by maintaining
10710         an association between the assembly source code and the
10711         iCodes that originated them. Put this information to use
10712         with a new peephole rule condition "notVolatile" so that
10713         the rules can be aggressive yet still safe.
10714
10715         * src/SDCCpeeph.c
10716         * src/SDCCpeeph.h
10717         * src/mcs51/gen.c
10718         * src/mcs51/peeph.def
10719
10720 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10721
10722         Fixed bug #741761
10723
10724         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
10725         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
10726         if the left or right operand symbols have the accuse flag set.
10727
10728 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10729
10730         Changed the type of the result of the ! (NOT) operator to char;
10731         previously it returned the same type as the source. This allows
10732         us to eliminate all the genFloatNot functions (all of its target
10733         implementations were very buggy) since !float can use the same
10734         code as !long now.
10735
10736         * src/SDCCicode.c (ast2iCode): ! returns char
10737         * src/mcs51/gen.c (genNot, genNotFloat),
10738         * src/ds390/gen.c (genNot, genNotFloat),
10739         * src/z80/gen.c (genNot, genNotFloat),
10740         * src/pic/gen.c (genNot, genNotFloat),
10741         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
10742
10743 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
10744
10745         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10746         1. Interrupt would not compile properly. Ensure PCLATH register is saved
10747            during interrupts. Ensure WSAVE is located at a shared bank address.
10748         2. Fixed page selection in some places
10749         3. Fixed BTFSS/C to where necessary use registers directly and not simply
10750            the registers name strings.
10751         4. Fixed "signed / unsigned compare" compiler warnings.
10752         5. The PIC port manages its own allocation of the general purpose
10753            registers, but makes no attempt to reuse them. As a result when
10754            compiling it soon runs out of general purpose registers. Some
10755            additional code was added to the files pcode.c and device.c to walk
10756            through the function call tree and rename the registers so that they
10757            get reused.
10758
10759         * src/pic/device.c
10760         * src/pic/gen.c
10761         * src/pic/glue.c
10762         * src/pic/pcode.c
10763         * src/pic/pcode.h
10764         * src/pic/ralloc.c
10765         * src/pic/ralloc.h
10766         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
10767         genPlus() & genMinus() when the result is the same as left or right
10768
10769 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10770
10771         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
10772
10773 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10774
10775         Made bitfield a distinct type from bit so that bitfields
10776         convert as per ANSI C and bits retain their traditional
10777         boolean style behaviour. Implemented bitfield support in
10778         the z80 port.
10779
10780         * src/SDCCsymt.h,
10781         * src/SDCCsymt.c,
10782         * src/SDCCast.c,
10783         * src/cdbFile.c,
10784         * src/mcs51/gen.c,
10785         * src/ds390/gen.c: bit v bitfield split
10786         * src/z80/gen.c: New support for bitfields
10787         * support/regression/tests/bitfields.c: reenabled z80,
10788         added more tests
10789
10790 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10791
10792         Rules 246.x, 247.x relate to bitfields, the others speed up
10793         access to xdata mapped I/O devices.
10794
10795         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
10796
10797 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10798
10799         Cleaned up genPackBits and genUnpackBits and added two helper
10800         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
10801         for literal assignments in genPackBits (thanks to Frieder for
10802         reminding me).
10803
10804         * src/mcs51/gen.c
10805         * src/ds390/gen.c
10806
10807 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10808
10809         Fixed bug #748310 (pointer to function type mishandled when the
10810         function name is omitted). Also fixed a SIGSEGV when a function
10811         attribute (reentrant, etc) is used on a non-function or on a
10812         function but misplaced before the parameter list.
10813
10814         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
10815         bug #748310
10816         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
10817         * support/Util/SDCCerr.h,
10818         * support/Util/SDCCerr.c: Added func attr misuse error msg
10819
10820 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
10821
10822         Fixed bug #787649 by anonymous
10823         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
10824         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
10825
10826 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10827
10828         Fixed numerous bitfield problems.
10829
10830         * src/SDCC.y: More bitfield related error checking
10831         * src/SDCCsymt.h,
10832         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
10833         * support/Util/SDCCerr.h,
10834         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
10835         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10836         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10837         * support/regression/tests/bitfields.c: tests added
10838
10839 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10840
10841         Made the constant following the "interrupt" keyword optional. If
10842         omitted, the function will not automatically be given an entry
10843         in the interrupt vector table (similar to #pragma NOIV, but
10844         less syntacticly kludgy). The interrupt number is also now
10845         range checked. Also fixed a bug in the high order bit example
10846         in the manual.
10847
10848         * src/SDCC.y
10849         * src/SDCCmem.c
10850         * src/SDCCglue.c
10851         * src/SDCCsymt.h
10852         * support/Util/SDCCerr.c
10853         * support/Util/SDCCerr.h
10854         * doc/sdccman.lyx
10855
10856 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
10857
10858         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
10859         * src/SDCCicode.c (operandOperation): rewritten some ops
10860         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
10861         * src/SDCCsymt.c (computeType): literals are handled the same way as any
10862         other type
10863         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
10864         be re-activated by defining REDUCE_LITERALS)
10865         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
10866         unsigned, but are signed by default
10867         * src/SDCCval.c (constVal): rearranged
10868         * src/SDCCval.c (valMod): preliminary fix
10869         * src/SDCCval.c (valCastLiteral): use TYPE_* types
10870         * support/regression/literalop.c: added, work in progress
10871
10872 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10873
10874         Generate warnings for useless declarations like "char data;"
10875         that don't do what new users expect.
10876
10877         * src/SDCC.y
10878         * support/Util/SDCCerr.h
10879         * support/Util/SDCCerr.c
10880
10881 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
10882
10883         * src/SDCCval.c (valMult): fix overflow detection of negative int
10884
10885 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10886
10887         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
10888
10889         Changes to support big endian targets:
10890
10891         * src/ports.h
10892         * src/SDCCglue.c
10893         * src/avr/main.c
10894         * src/ds390/main.c
10895         * src/izt/i186.c
10896         * src/mcs51/main.c
10897         * src/pic/main.c
10898         * src/pic16/main.c
10899         * src/xa51/main.c
10900         * src/z80/main.c
10901
10902 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
10903
10904         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
10905         * device/lib/time.c: fixed warning "integer overflow in expression"
10906
10907 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
10908
10909         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
10910         * src/SDCCval.c (constVal): changed default to signed; hex and octal
10911         constants are unsigned; added recognition of "u" flag for unsigned
10912         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
10913         * src/SDCCval.c (valDiv, valMod): fixed signdness
10914         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
10915         signedness of modulo, left and right shift
10916         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
10917         * support/Util/SDCCerr.h: added warning W_INT_OVL
10918         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
10919         * src/SDCCast.c (ast_print): improved output of constants
10920
10921 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10922
10923         Fixed some warnings when building with MSVC:
10924
10925         * as/mcs51/asdata.c
10926         * as/z80/asdata.c
10927         * as/mcs51/asm.h
10928         * as/z80/asm.h
10929         * link/z80/aslink.h
10930         * link/z80/lkdata.c
10931         * link/z80/lkeval.c
10932         * link/z80/lkgb.c
10933         * link/z80/lkihx.c
10934         * link/z80/lks19.c
10935         * link/z80/lksym.c
10936         * support/cpp2/cpplib.c
10937         * src/ds390/gen.c
10938         * src/mcs51/gen.c
10939
10940 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
10941
10942         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
10943
10944 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10945
10946         * support/librarian/clean.mk: Do not remove Makefile.
10947         * support/librarian/Makefile: added.
10948
10949 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10950
10951         Added librarian to MSVC build:
10952         * all.dsp
10953         * sdcc.dsw
10954         * support/librarian/librarian.dsp
10955
10956         'configure' not needed for librarian, removed:
10957         * support/librarian/configure
10958         * support/librarian/configure.in
10959         * support/librarian/config_in.h
10960         * support/librarian/Makefile.in
10961
10962         Hopefully these ones built the librarian and the rest of sdcc properly:
10963         * Makefile
10964         * Makefile.common.in
10965
10966         Messed up 'configure', so revert to previous version:
10967         * configure
10968         * configure.in
10969
10970 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
10971
10972         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
10973         there, while the mantissa of a double is "only" 53 bits wide.
10974
10975 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10976
10977         Adding sdcclib to the build.  MSVC project coming soon.
10978         Files added/changed:
10979
10980         * support/librarian/clean.mk
10981         * support/librarian/configure
10982         * support/librarian/configure.in
10983         * support/librarian/config_in.h
10984         * support/librarian/Makefile.bcc
10985         * support/librarian/Makefile.in
10986         * support/librarian/sdcclib.c
10987         * Makefile.bcc
10988         * Makefile
10989         * Makefile.common.in
10990         * configure
10991         * configure.in
10992
10993 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10994
10995         Linker now complaints if linked modules have conflicting options, for
10996         example, one compiled using --model-large and another one compiled with
10997         --model-small.  The following files were modified:
10998
10999         * as/mcs51/asdata.c
11000         * as/mcs51/aslink.h
11001         * as/mcs51/asm.h
11002         * as/mcs51/asmain.c
11003         * as/mcs51/asout.c
11004         * as/mcs51/i51pst.c
11005         * as/mcs51/lkdata.c
11006         * as/mcs51/lklibr.c
11007         * as/mcs51/lkmain.c
11008         * as/z80/asdata.c
11009         * as/z80/asm.h
11010         * as/z80/asmain.c
11011         * as/z80/asout.c
11012         * as/z80/z80pst.c
11013         * link/z80/aslink.h
11014         * link/z80/lkdata.c
11015         * link/z80/lklibr.c
11016         * link/z80/lkmain.c
11017         * src/SDCCglue.c
11018
11019 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11020
11021         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11022         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11023
11024 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11025
11026         * src/z80/mappings.i: fix _mul[us][int,long] entries
11027
11028 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11029
11030         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11031
11032 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11033
11034         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11035         * support/regression/tests/bitopcse.c: added
11036         fixed warning:
11037         * src/avr/gen.c:
11038         * src/pic/gen.c:
11039         * src/pic16/gen.c:
11040         * src/z80/gen.c:
11041         * src/xa51/gen.c:
11042
11043 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11044
11045         added support for new library format to z80, gbz80 linkers:
11046         *link/z80/aslink.h
11047         *link/z80/lklex.c
11048         *link/z80/lklib.c
11049         *link/z80/lklist.c
11050
11051 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11052
11053         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11054         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11055
11056 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
11057
11058         added DUMMY_READ_VOLATILE:
11059         * src/SDCC.y:
11060         * src/avr/gen.c:
11061         * src/xa51/gen.c:
11062         * src/z80/gen.c:
11063         * src/pic/gen.c:
11064         * src/pic16/gen.c:
11065         * src/mcs51/gen.c:
11066         * src/ds390/gen.c:
11067         * src/SDCCcse.c (algebraicOpts): many improvements
11068         * src/SDCCcse.h: removed algebraicOpts()
11069         * src/SDCCicode.c (picDummyRead): added
11070
11071 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11072
11073         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11074         "Insufficient space in data memory".
11075
11076 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11077
11078         * src/mcs51/gen.c: fixed bug #771358
11079         * src/z80/gen.c: fixed bug #759087
11080
11081 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
11082
11083         * src/pic16/glue.c: minor cleanup by Vangelis
11084
11085 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11086
11087         * device/include/regc515c.h: fixed #758477
11088         * device/lib/_gptrget.c: saving some cycles in generic pointer get
11089         * device/lib/_gptrput.c: saved a few bytes
11090         * my tab spacing is 8, yours too?)
11091         * device/lib/_ser.c: process RX bytes earlier than TX bytes
11092         * device/lib/serial.c: process RX bytes earlier than TX bytes
11093         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
11094
11095 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11096
11097         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
11098
11099 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11100
11101     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
11102
11103 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
11104
11105         * device/lib/Makefile.in: bad fix, reverted to 1.43
11106
11107 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
11108
11109         * device/lib/Makefile.in: added missing z80 object files
11110
11111 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
11112
11113         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
11114         pic16 progress by Vangelis:
11115         * src/SDCCglobl.h:
11116         * src/SDCCmain.c:
11117         * src/pic/Makefile:
11118         * src/pic:
11119         * pic/Makefile:
11120         * pic16/device.c:
11121         * pic16/device.h:
11122         * pic16/gen.c:
11123         * pic16/gen.h:
11124         * pic16/genarith.c:
11125         * pic16/glue.c:
11126         * pic16/main.c:
11127         * pic16/pcode.c:
11128         * pic16/pcode.h:
11129         * pic16/pcodepeep.c:
11130         * pic16/peeph.def:
11131
11132 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11133
11134     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
11135
11136 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11137
11138     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
11139     added gbz80 build to MSVC project.
11140     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
11141     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
11142     from 8051 stuff and setup so it links using a .lnk file.
11143
11144 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11145
11146     * support/librarian/sdcclib.c: sdcc librarian.
11147     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
11148     with sdcclib.
11149
11150 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11151
11152     * as/mcs51/lkmain.c: properly handle extensions in function afile.
11153
11154 2003-07-02  Borut Razem <borut.razem AT siol.net>
11155
11156         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
11157         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
11158         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
11159         src/xa51/main.c, src/z80/main.c:
11160         virtualization of glue() function: each port has it's own glue function,
11161         which is accessed by do_glue function pointer in PORT.general structure
11162
11163 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
11164
11165         * DS800C400 fun, improved ROM interface and tinibios.
11166
11167 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
11168
11169         * More support for DS80C400. Now includes beginning of interface to ROM.
11170
11171 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
11172
11173         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
11174
11175 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11176
11177         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
11178
11179 2003-06-19  Borut Razem <borut.razem AT siol.net>
11180
11181         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
11182
11183 2003-06-19  Borut Razem <borut.razem AT siol.net>
11184
11185         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
11186         fixed Z80 port - crt0.o: cannot open.
11187
11188 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
11189
11190         * support/Util/MySystem.c (merge_command): revert bad fix
11191
11192 2003-06-18  Borut Razem <borut.razem AT siol.net>
11193
11194         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
11195
11196 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11197
11198         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11199         option --use-stdout sends errors to stdout instead of stderr.
11200
11201 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
11202
11203         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
11204
11205 2003-06-15  Borut Razem <borut.razem AT siol.net>
11206
11207         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
11208         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
11209         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
11210         fixed width array of pointers replaced with sets;
11211         multiple include and lib paths ared transferred to preprocessor and linker
11212         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
11213         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
11214         fixed width array of pointers
11215         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
11216         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
11217         fixupPath(), getPathDifference()
11218         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
11219         fixed width array of pointers
11220
11221 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
11222
11223         * src/pic16/ralloc.c: fix warnings
11224         * src/pic16/pcode.c: fix warning
11225
11226 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
11227
11228          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
11229         know all the details, but essentially this set of changes enable
11230         the pic16 port to generate movff instructions and generate assembler
11231         directives,
11232         * src/SDCCmain.c:
11233         * src/pic16/gen.c:
11234         * src/pic16/glue.c:
11235         * src/pic16/pcode.c:
11236         * src/pic16/device.c:
11237         * src/pic16/main.c:
11238         * src/pic16/pcode.h:
11239         * src/pic16/pcoderegs.c:
11240         * src/pic16/ralloc.c:
11241         * src/pic16/ralloc.h:
11242
11243 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11244
11245         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11246         added option --vc, so sdcc errors and warnings are compatible with
11247         Microsoft Visual Studio.
11248
11249 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11250
11251         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
11252           device/lib/libfloat.lib: added atof function.
11253
11254 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
11255
11256         * doc/sdccman.lyx: updated to Lyx 1.3
11257         * doc/cdbfileformat.lyx: updated to Lyx 1.3
11258         * doc/test_suite_spec.lyx: updated to Lyx 1.3
11259         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
11260
11261 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
11262
11263         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
11264
11265 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11266
11267         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
11268           additions to the "related tools/documentation" section
11269
11270 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
11271
11272         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
11273
11274 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
11275
11276         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
11277         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
11278
11279 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
11280
11281         * doc/sdccman.lyx: fix double dash and other minor things
11282         * doc/Makefile: fix double dash
11283
11284 2003-05-28  Karl Bongers(patches from Martin Helmling)
11285         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
11286           condition and ignore commands.
11287
11288 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11289
11290         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
11291           is in parts still quite out of date, I did changes as far as I felt makes sense
11292           for a non-native english speaker.
11293           Please feel free to add to the manual or to correct my changes.
11294         * doc/Makefile: undid touching the date of intermediate tex files.
11295
11296 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11297
11298         * doc/sdccman.lyx: Manual has an index now
11299
11300 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
11301
11302         Finalize muluint/mulsint and mululong/mulslong merging:
11303         * device/lib/_mulint.c
11304         * device/lib/_mullong.c
11305         * device/lib/gbz80/mul.s
11306         * device/lib/gbz80/stubs.s
11307         * device/lib/z80/mul.s
11308         * device/lib/z80/stubs.s
11309         * src/SDCCsymt.c (initCSupport)
11310
11311 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11312
11313         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
11314         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
11315           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
11316           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
11317           instead of /Zm500.
11318
11319 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11320
11321         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
11322           the regression tests I'm not brave enough to enable 245.b, 245.c
11323         * doc/sdccman.lyx: added latex preamble for hyperref package.
11324           Using pdflatex this will give you a hyperlinked pdf file with
11325           bookmarks. (prepend '%' before /usepackage if this breaks something)
11326
11327 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11328
11329          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
11330
11331 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
11332
11333         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
11334
11335 2003-05-21    <johan AT balder>
11336
11337         * src/SDCCglue.c (printIval): fixed bug #739934
11338
11339 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
11340
11341         Applied patch from bug 737905 (renamed yylineo to mylineno):
11342         * src/altlex.c
11343         * src/SDCCast.c
11344         * src/SDCglobl.h
11345         * src/SDCC.lex
11346         * src/SDCCsymt.c
11347         * src/SDCCval.c
11348         * src/pic16/pcode.c: Cleaned warnings
11349         * src/pic16/pcodeflow.c: Cleaned warnings
11350         * src/pic16/pcoderegs.c: Cleaned warnings
11351
11352 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
11353
11354         * src/pic16/pcode.c: Cleaned warnings
11355         * src/pic16/pcodepeep.c: Cleaned warnings
11356         * src/pic16/ralloc.c: Cleaned warnings
11357
11358 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
11359
11360         * doc/sdccman.lyx: fixed bug 739745
11361         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
11362
11363 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
11364
11365         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
11366         it can be defined with CFLAGS when running configure
11367         * src/SDCCmain.c: fixed compiling + linking with object files
11368
11369 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
11370
11371         * configure.in: configure for pic16 port,
11372             added --disable-pic16-port
11373         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
11374         * src/SDCCmain.c: linkOptions is changed to set *,
11375             added if/endif conditional macros to remove options help
11376             messages from optionsTable when a port is not configured, added
11377             support for the PIc16 port in the ports table, when executing
11378             the compiler with no port specified on command line, a default
11379             port is selected with the new macro DEFAULT_PORT which is
11380             defined in port.h, in setDefaultOptions() linkOptions is removed
11381             from initialization assignment, since now it is a set,
11382             parseCmdLine uses setParseWithComma for linkOptions, in
11383             linkEdit() linkOptions are accessed with new function indexSet()
11384             which returns the i'th item of a set variable. See SDCCset.c, in
11385             linkEdit() when calling buildCmdLine(), added linkOptions as
11386             last argument. Now users can pass arguments to gplink via the
11387             -Wl option, main() uses pic16glue() to glue up pic16 programs
11388         * src/SDCCpeeph.c: various changes to support pic16
11389         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
11390             return the i'th item of the set
11391         * src/SDCCset.h: added function prototype for indexSet()
11392         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
11393         * src/clean.mk: added pic16 in CLEANALLPORTS variable
11394         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
11395             added macro DEFAULT_PORT
11396         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
11397         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
11398             generated
11399         * src/pic16/glue.c: commented out some error producing lines
11400         * src/pic16/main.c: __config directives are commented out to stop
11401             gpasm complaining and test the linkage with gplink, _linkCmd and
11402             _asmCmd changed to be more gplink and gpasm friendly
11403         * src/pic16/peeph.def: peep rule 3 is commented out, since it
11404             produced an error when parsed, peep rule 12 is added to utilize
11405             movff, but it is commented out since the pCode does not support
11406             yet a command with 2 address arguments
11407
11408 2003-05-18    <johan AT balder>
11409
11410         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11411         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11412 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
11413
11414         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
11415   Added feature to script commands from file.
11416
11417 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
11418
11419         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
11420         * src/SDCCutil.c: include ctype.h for win32
11421
11422 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
11423
11424         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
11425
11426 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
11427
11428         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
11429   Fixed so you can set breakpoints prior to run, run does not stop
11430   on entry now.  Add tbreak.  Other enhancements and fixes for use
11431   with ddd.
11432
11433 2003-05-12  Borut Razem <borut.razem AT siol.net>
11434
11435         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
11436
11437 2003-05-11  Borut Razem <borut.razem AT siol.net>
11438
11439         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
11440         the path of bin directory, so that PATH is the only env. variable, which has to be set
11441         in case of standard installation.
11442         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
11443         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
11444         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
11445
11446 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
11447
11448         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
11449         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
11450         temp files are in the port dir; clean the gen/test directory when
11451         generating new test.c
11452         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
11453         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
11454         * support/regression/tests/zeropad.c: added
11455
11456 2003-05-09    <johan AT balder>
11457
11458         * src/SDCCglue.c: fixed bug #597940
11459
11460 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
11461
11462         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
11463   cache sfr, optimize next,step, fix off by one sourceline,
11464   support ddd list function.
11465         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
11466
11467 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
11468
11469         * support/regression/HTMLgen.py: added compare_s2f()
11470         * support/regression/Makefile: redo 1.27
11471         * support/regression/generate-cases.py: redo 1.5
11472
11473 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
11474
11475         * support/regression/tests/float.c: workaround 33 bit hex constant
11476         * support/regression/tests/simplefloat.c: fix division for host
11477
11478 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
11479
11480         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
11481         that tame's the PIC's over-aggressive optimizer.
11482
11483 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11484
11485          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
11486          support for MSVC.
11487
11488 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
11489
11490         Initial support for DS80C400. "Hello world" runs on TINIm400
11491         (with polled I/O).
11492
11493 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
11494
11495          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
11496          * Some notes on ddd usage added in debugger/README
11497          Martin Helmling adding more features and fixes for ddd GUI debugger.
11498          Code added for nexti, stepi, up, down, and other adjustments.
11499
11500 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
11501
11502         * src/pic/pCodepeep.c non-wildcard asmops are now handled
11503         * src/pic/peeph.def Added two rules to optimize carry manipulation
11504         * src/pic/* removed debug printfs
11505
11506 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
11507
11508         * debugger/mcs51/cmd.c: added header newalloc.h
11509
11510 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
11511
11512         * as/Makefile: new EXEEXT
11513         * as/z80/Makefile: remove trailing slash of BUILDIR
11514         * as/z80/clean.mk: new EXEEXT
11515         * Makefile.common.in: add to CFLAGS (and others), don't replace it
11516         * support/cpp2/Makefile.in: new EXEEXT
11517         * src/pic/glue.c (pic14emitRegularMap): fixed warning
11518
11519 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
11520
11521         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
11522         EXEEXT was introduced to fix all related problems with targets
11523         "clean", "install" and "uninstall"; a couple of further flaws
11524         especially with "clean" have been fixed too
11525         * as/mcs51/Makefile.in
11526         * as/mcs51/clean.mk
11527         * as/z80/Makefile
11528         * Makefile
11529         * clean.mk
11530         * debugger/mcs51/Makefile.in
11531         * debugger/mcs51/clean.mk
11532         * link/z80/Makefile
11533         * link/z80/Makefile.in
11534         * link/z80/clean.mk
11535         * link/Makefile
11536         * packihx/Makefile.in
11537         * packihx/clean.mk
11538         * sim/ucsim/Makefile
11539         * sim/ucsim/clean.mk
11540         * sim/ucsim/avr.src/Makefile.in
11541         * sim/ucsim/avr.src/clean.mk
11542         * sim/ucsim/s51.src/Makefile.in
11543         * sim/ucsim/s51.src/clean.mk
11544         * sim/ucsim/xa.src/Makefile.in
11545         * sim/ucsim/xa.src/clean.mk
11546         * sim/ucsim/z80.src/Makefile.in
11547         * sim/ucsim/z80.src/clean.mk
11548         * sim/ucsim/main_in.mk
11549         * sim/ucsim/packages_in.mk
11550         * sim/ucsim/gui.src/Makefile.in
11551         * sim/ucsim/gui.src/serio.src/Makefile.in
11552         * sim/ucsim/gui.src/serio.src/clean.mk
11553         * src/Makefile.in
11554         * src/clean.mk
11555         * support/cpp2/Makefile.in
11556         * support/cpp2/clean.mk
11557         * support/makebin/Makefile
11558         * support/makebin/clean.mk
11559         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
11560         * doc/sdccman.lyx: --program-suffix no longer needed
11561
11562 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
11563
11564          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
11565          Martin Helmling added support for ddd GUI debugger.
11566          Code added to display assembly, set variables, and other commands
11567          to interface to ddd.
11568
11569 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
11570
11571         * as/Makefile: fix target clean
11572         * as/clean.mk: fix target clean
11573         * as/z80/clean.mk: fix target clean
11574
11575 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
11576
11577         * Makefile.common.in: added  AT EXEEXT AT
11578         * configure.in: removed all mingw32 stuff
11579         * configure: rebuilt from configure.in
11580         * doc/sdccman.lyx: updated section "installation"
11581         * support/scripts/sdcc_mingw32: adapted to configure
11582         * support/scripts/sdcc_cygwin_mingw32: added
11583
11584 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
11585
11586         * src/pic Added object file support for the PIC port
11587         * src/pic Applied patch from Craig Franklin (this started the object file support)
11588         * src/regression Updated the PIC regression tests for object files
11589
11590 2003-04-20  Borut Razem <borut.razem AT siol.net>
11591
11592         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
11593           lklex.c: In function `getfid':
11594           lklex.c:203: warning: array subscript has type `char'
11595         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
11596           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
11597         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
11598           stack handling macros
11599
11600 2003-04-19  Borut Razem <borut.razem AT siol.net>
11601
11602         * "handling space characters in file path" task:
11603         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
11604         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
11605         * support/Util/MySystem.h: make it self-sufficient
11606         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
11607           src/z80/main.c, sdcc/as/mcs51/lklex.c:
11608           handling space characters in file path
11609         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
11610           (it will be used by assemblers, which have their own includes, e.g. gpasm)
11611         * support/Util/MySystem.c: handling space characters in executable's path
11612
11613 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
11614
11615         * as/z80/Makefile: fix permanent rebuild of z80
11616         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
11617         * support/regression/tests/bitfields.c: added Johan's bitfields.c
11618
11619 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
11620
11621         * src/SDCCopt.c: add special case optimization to replace modulo by
11622           a power of two with a bitwise AND.
11623
11624 2003-04-18    <johan AT balder>
11625
11626         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
11627
11628 2003-04-17    <johan AT balder>
11629
11630         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
11631         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
11632
11633 2003-04-13  Borut Razem <borut.razem AT siol.net>
11634
11635         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
11636         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
11637           fixed mingw problem in adl_NORMALIZE_PATH
11638
11639 2003-04-12  Borut Razem <borut.razem AT siol.net>
11640
11641         * fixed "#pragma SAVE/RESTORE can not be nested":
11642         * src/SDCC.lex: reworked pragma handling functions
11643         * sdcc/src/SDCCglobl.h: reworked stack handling macros
11644         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
11645
11646 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
11647
11648         * src/SDCCutil.c (pathEquivalent): defined but not used
11649         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
11650         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
11651         * configure: rebuilt from configure.in
11652         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11653         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11654         * device/include/Makefile.in: replace sdcc_datadir
11655         * device/lib/Makefile.in: replace sdcc_datadir
11656         * Makefile.common.in: add LDFLAGS from configure
11657         * packihx/Makefile.in: use LDFLAGS
11658         * src/Makefile.in: use LDFLAGS
11659         * support/cpp2/Makefile.in: add LDFLAGS from configure
11660         * support/makebin/Makefile: use LDFLAGS
11661         * .version: bumped version number to 2.3.5
11662
11663 2003-04-12  Borut Razem <borut.razem AT siol.net>
11664
11665         * completed "different paths" task:
11666         * src/SDCCmacro.c: fixed bug in handling quotes
11667         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
11668         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
11669
11670 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
11671
11672         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
11673
11674 2003-04-11 kevin Vigor <kevin AT vigor.nu>
11675
11676         * ds390/gen.c ds390/peeph.def: fix bug 706781
11677
11678 2003-04-11  Borut Razem <borut.razem AT siol.net>
11679
11680         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
11681
11682 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
11683
11684         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
11685         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
11686          set - this bit used to not be set...).
11687         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
11688           bad code in PIC Port
11689         * src/regression/and2.c added to test bug 609268
11690         * src/regression/Makefile added and2.c to regression test
11691
11692
11693 2003-04-08    <johan AT CP255758-A>
11694
11695         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
11696         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
11697         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
11698
11699 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
11700
11701         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
11702         fix bug #487815
11703         * support/cpp2/Makefile.in: fix bug #487815
11704         * configure: rebuilt from configure.in
11705         * Makefile.common.in: docdir changed, new path suffixes
11706         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11707         * sdcc_vc_in.h: reflect changes from sdccconf.h
11708         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
11709         * src/SDCCutil.h: remove BINDIR hack
11710         * doc/sdccman.lyx: update new path hierarchy
11711
11712 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
11713
11714         * src/SDCCpeeph.c: added okToRemoveSLOC test
11715
11716 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
11717
11718         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
11719
11720 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
11721
11722         * src/SDCCpeeph.c: added labelIsReturnOnly test
11723         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
11724
11725 2003-04-05    <johan AT balder>
11726
11727         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
11728         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
11729         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
11730         * src/SDCCast.c: fixed a warning
11731         * src/SDCCast.h: fixed a warning
11732         * src/SDCCicode.c (operandFromAst): fixed a warning
11733
11734 2003-04-04    <johan AT balder>
11735
11736         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
11737         * src/SDCCast.c (decorateType): fixed bug #715076
11738         * src/SDCC.y: fixed bug #702907
11739
11740 2003-04-03    <johan AT balder>
11741
11742         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
11743         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
11744         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
11745         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
11746         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
11747
11748 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
11749
11750         * _decdptr.c: fix return values
11751         * _gptrget.c: fix return values
11752         * _gptrgetc.c: fix return values
11753         * _gptrput.c: fix return values
11754         * _mulint.c: fix return values
11755         * as/z80/Makefile: fix 'make -j' problem
11756
11757 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
11758
11759         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
11760         * configure.in: big cleanup, updated to autoconf 2.5x
11761         * configure: rebuilt from configure.in
11762         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11763         * sdcc_vc_in.h: reflect changes from sdccconf.h
11764         * doc/Makefile: fixed a flaw in "make install"
11765
11766 2003-04-02    <johan AT balder>
11767
11768         * src/ds390/gen.c (genCmp): no comments
11769         * src/mcs51/gen.c (genCmp): no comments
11770         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
11771         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
11772
11773 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
11774
11775         * support/regression/generate-cases.py: place generated file in given sub directory
11776         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
11777         * support/regression/Makefile: improvements for 'make -j';
11778         side effect: it's simpler and faster now
11779
11780 2003-03-31  Borut Razem <borut.razem AT siol.net>
11781
11782         * src/z80/main.c: link-{port} and as-{port} defined without path
11783         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
11784
11785 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
11786
11787         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
11788
11789 2003-03-30  Borut Razem <borut.razem AT siol.net>
11790
11791         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
11792           changed type of list parameter to set
11793         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
11794         * src/port.h: changed type of do_assemble() parameter to set
11795         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
11796           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
11797           definition of "cppoutfilename" macro with NULL value in preProcess()
11798         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
11799         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
11800         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
11801           replaced with set *binPathSet
11802         * shash_add() deallocates the item, if allready exsists, before adding the new one
11803         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
11804
11805 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
11806
11807         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
11808           a nested for loop bug in the PIC port
11809         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
11810           for loops
11811
11812 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
11813
11814         * support/Util/dbuf.h: remove C++ stuff to make it portable
11815
11816 2003-03-28  Borut Razem <borut.razem AT siol.net>
11817
11818         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
11819           literal strings in stringLiteral()
11820         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
11821         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
11822           to the project
11823
11824 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
11825
11826         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
11827
11828 2003-03-26    <johan AT balder>
11829
11830         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
11831         * src/ds390/gen.c (saveRegisters): catched symbol abuse
11832         * src/SDCCast.c (decorateType): fixed " -v < 3"
11833
11834 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
11835
11836         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
11837         Added Lenny Story's debug infrastructure changes:
11838         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
11839         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
11840         * src/cdbFile.c: added
11841         * src/SDCCdebug.c: added
11842         * src/SDCCdebug.h: added
11843         * src/SDCCast.c (createFunction)
11844         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
11845         * src/SDCCmain.c (parseCmdLine, main)
11846         * src/SDCCmem.c (redoStackOffsets)
11847         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
11848         * src/SDCCsymt.h
11849         * src/common.h
11850         * src/avr/gen.c (genAVRCode)
11851         * src/ds390/gen.c (gen390Code)
11852         * src/mcs51/gen.c (gen51Code)
11853         * src/pic/gen.c (genpic14Code)
11854         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
11855         * src/xa51/gen.c (genXA51Code)
11856         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
11857
11858 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11859
11860         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
11861         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
11862
11863 2003-03-22    <johan AT balder>
11864
11865         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
11866
11867 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
11868
11869         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
11870         * doc/cdbfileformat.lyx: added, written by Lenny Story
11871         * doc/Makefile: added cdbfileformat.lyx
11872         * doc/clean.mk: added cdbfileformat.lyx
11873
11874 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
11875
11876         * src/mcs51/peeph.def: fix bug #705773
11877
11878 2003-03-20    <johan AT balder>
11879
11880         An sfr/sbit can have an "at #" AND an initializer
11881         * src/SDCCsymt.c (checkSClass):
11882         * src/SDCCmem.c (allocGlobal):
11883         * src/SDCCmem.c (allocLocal):
11884         * src/SDCCast.c (createBlock):
11885
11886 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
11887
11888         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
11889
11890 2003-03-16    <johan AT balder>
11891
11892         Undid the hackup of const and volatile, the problem is much bigger
11893         * src/SDCC.y:1.65
11894         * src/SDCCast.c:1.171
11895         * src/SDCCglue.c:1.138
11896         * src/SDCCicode.c:1.146
11897         * src/SDCCsymt.c:1.150
11898         * src/SDCCval.c:1.65
11899
11900 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
11901
11902         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
11903         * src/ds390/gen.c (genAddrOf): fixed bug #704087
11904
11905 2003-03-13    <johan AT balder>
11906
11907         Hackup const and volatile modifiers in type chains a bit:
11908         * src/SDCC.y:1.63
11909         * src/SDCCast.c:1.169
11910         * src/SDCCglue.c:1.136
11911         * src/SDCCicode.c:1.143
11912         * src/SDCCsymt.c1.146
11913         * src/SDCCsymt.h1.59
11914         * src/SDCCval.c:1.63
11915
11916 2003-03-12    <johan AT balder>
11917
11918         * src/SDCCBBlock.h: more LRH debugging junk
11919         * src/SDCCcflow.h: more LRH debugging junk
11920         * src/SDCCloop.c: more LRH debugging junk
11921         * src/SDCC.y (struct_declaration): fixed bug #697590
11922         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
11923         * src/ds390/gen.c (aopForRemat): fixed bug #700031
11924         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
11925
11926 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11927         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
11928         test function names must now match exactly).
11929         * src/SDCCcse.c: added special case in findCheaperOp to allow
11930         extending a short integer. Makes less awful code for bug 700121 test case.
11931
11932 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11933
11934         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
11935         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
11936
11937 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11938
11939         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
11940         actually called (operandsNotEqual() was called for all
11941         operandsNotEqualX tests).
11942
11943 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11944
11945         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
11946         with shorter literals. Fixes bug 700121.
11947
11948 2003-03-11    <johan AT balder>
11949
11950         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
11951
11952 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
11953
11954         * src/SDCCloop.c (mergeRegions): an evil beast is dead
11955         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
11956
11957 2003-03-10  Borut Razem <borut.razem AT siol.net>
11958
11959         * src/SDCCmain.c: pipe preprocessor's output
11960         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11961         * sdcc_vc_in.h: define pclose as _pclose for WIN32
11962         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11963         which closes all pipes in pipeSet set
11964         * src/SDCCset.c: free deleted item in function deleteSetItem()
11965         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11966         moved from z80 to src subproject
11967         * .version: increased version number to 2.3.4
11968
11969 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
11970
11971         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
11972         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
11973         * support/regression/ports/xa51/spec.mk: fix typo
11974
11975 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
11976
11977         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
11978
11979 2003-03-09  Borut Razem <borut.razem AT siol.net>
11980
11981         * src/SDCCmain.c: pipe preprocessor's output
11982         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11983         * sdcc_vc_in.h: define pclose as _pclose for WIN32
11984         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11985         which closes all pipes in pipeSet set
11986         * src/SDCCset.c: free deleted item in function deleteSetItem()
11987         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11988         moved from z80 to src subproject
11989
11990 2003-03-09  Borut Razem <borut.razem AT siol.net>
11991
11992         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
11993         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
11994         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
11995         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
11996         * src/SDCCglobl.h: unification of WIN32 native definitions
11997
11998 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11999
12000         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12001
12002 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12003
12004         * src/configure.in:   check for endianess (even while cross-compiling)
12005         * src/configure:      check for endianess (even while cross-compiling)
12006         * src/configure_in.h: check for endianess (even while cross-compiling)
12007         * src/avr/gen.c:        remove old endianess stuff
12008         * src/mcs51/gen.c:      remove old endianess stuff
12009         * src/ds390/gen.c:      remove old endianess stuff
12010         * src/pic/gen.c:        remove old endianess stuff
12011         * src/pic/genarith.c:   remove old endianess stuff
12012         * src/pic/glue.c:       fix endianess check
12013         * src/pic16/gen.c:      remove old endianess stuff
12014         * src/pic16/genarith.c: remove old endianess stuff
12015         * src/pic16/glue.c:     fix endianess check
12016         * src/xa51/gen.c:       remove old endianess stuff
12017         * src/z80/gen.c:        fix endianess check
12018         * src/SDCCglue.c:       fix endianess check
12019         * src/ds390/peeph.def: fix bug 700036
12020
12021 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12022
12023         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12024         * src/configure: find appropriate data-types on host for SDCC's int and long
12025         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12026         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12027         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12028
12029 2003-03-07    <johan AT balder>
12030
12031         Just a big NOOP:
12032                 some minor cleanups before the big shot
12033                 OP_DEFS and OP_USES now use Kevin's protection
12034                 new option --nolabelopt
12035
12036         * src/SDCCBBlock.c:
12037         * src/SDCCast.c,:
12038         * src/SDCCcflow.c:
12039         * src/SDCCcse.c:
12040         * src/SDCCicode.c:
12041         * src/SDCCicode.h:
12042         * src/SDCClabel.c:
12043         * src/SDCCloop.c:
12044         * src/SDCCmain.c:
12045         * src/ds390/ralloc.c:
12046         * src/mcs51/ralloc.c:
12047         * src/pic/ralloc.c:
12048         * src/xa51/ralloc.c:
12049         * src/z80/ralloc.c:
12050
12051 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
12052
12053         * src/pic/pcode.c (get_op): fix 64 bit warnings
12054         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12055         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12056         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12057         * support/regression/tests/malloc.c: fix 64 bit warnings
12058
12059 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
12060
12061         * src/mcs51/gen.c (genMinus): fixed bug 696436
12062
12063 2003-03-02  Borut Razem <borut.razem AT siol.net>
12064
12065         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12066
12067 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
12068
12069         * configure.in: test for mkstemp
12070         * sdccconf_in.h: add HAVE_MKSTEMP
12071
12072 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
12073
12074         * device/include/ctype.h: removed warning while using --stack-auto
12075         * device/include/malloc.h: removed warning while using --stack-auto
12076         * device/include/string.h: removed warning while using --stack-auto
12077
12078 2003-02-23  Borut Razem <borut.razem AT siol.net>
12079
12080         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
12081         because NDEBUG is defined (see man assert)
12082         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
12083
12084 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12085
12086         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
12087         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
12088
12089 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12090
12091         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
12092         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
12093
12094 2003-02-18    <johan AT balder>
12095
12096         * as/mcs51/asmain.c (asmbl): module can start with a digit
12097         * as/z80/asmain.c (asmbl): module can start with a digit
12098
12099 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
12100
12101         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
12102         * src/asm.c: fix pipe() for Mingw32
12103
12104 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
12105
12106         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
12107         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
12108         make -V work again; --c1mode reads now from stdin
12109         * doc/sdccman.lyx: added --c1mode
12110         * support/Util/SDCCerr.c: new messages for c1 mode
12111         * support/Util/SDCCerr.h: new messages for c1 mode
12112         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
12113
12114 2003-02-15    <johan AT balder>
12115
12116         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
12117
12118 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
12119
12120         * doc/sdccman.lyx: Environment variables, -o and other minor things
12121
12122 2003-02-14    <johan AT balder>
12123
12124         * src/xa51/main.c: before anyone really tries to use it :)
12125
12126         * Install doc's in share/sdcc/doc
12127         * removed some obsolete files
12128         * Do a proper make distclean and uninstall
12129         M Makefile.common.in
12130         R sdccbuild.sh
12131         M as/Makefile
12132         M device/include/Makefile.in
12133         M device/lib/Makefile.in
12134         M doc/sdccman.lyx
12135         M link/Makefile
12136         M sim/ucsim/doc/Makefile.in
12137         M src/clean.mk
12138         R src/avr/peeph.rul
12139         R src/xa51/peeph.rul
12140         M support/cpp2/Makefile.in
12141         M support/makebin/Makefile
12142
12143
12144 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
12145
12146         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
12147
12148 2003-02-10  Borut Razem <borut.razem AT siol.net>
12149
12150         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
12151         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
12152         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
12153         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
12154         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
12155         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
12156         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
12157         src/z80/Makefile.bcc: Borland Makefile cleanup
12158         * as/z80/Makefile.bcc: Added Borland Makefile
12159         * support/cpp2/borland.h: Removed
12160
12161 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
12162
12163         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
12164         * src/SDCC.lex: new pragma NOIV
12165         * src/SDCCglobl.h: new pragma NOIV
12166         * src/SDCCmem.c: new pragma NOIV
12167
12168 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
12169
12170         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
12171
12172 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
12173
12174         * src/SDCCmain.c: signal handling is switched off by --debug
12175         * doc/Makefile: small fix for install; use clean.mk again
12176         * doc/clean.mk: clean *.pdf and *.html too
12177
12178 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
12179
12180         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
12181         * device/lib/printfl.c: fix a ds390 bug by making it portable
12182         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
12183         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
12184         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
12185         * debugger/mcs51/cmd.c: converted multi-line string literals
12186         * sim/ucsim/globals.cc: converted multi-line string literals
12187         * src/SDCCmain.c: introduced signal handler to remove temp files
12188         * doc/Makefile: small tweaks, implement clean
12189         * doc: removed generated files
12190
12191 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12192
12193         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
12194         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
12195         Address Record is not correctly generated for DS390."
12196
12197 2003-02-02  Borut Razem <borut.razem AT siol.net>
12198
12199         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
12200         * as/mcs51/asm.h: fixed compilation with Borland C
12201         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
12202         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
12203         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
12204         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
12205         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
12206         src/z80/Makefile.bcc: delete $(LIB) only if exist
12207         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
12208
12209 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
12210
12211         * device/include/malloc.h: introduced NULL
12212         * device/include/string.h: introduced NULL
12213         * device/include/stdlib.h: introduced NULL
12214         * device/lib/_memcpy.c: removed NULL
12215         * device/lib/_strcat.c: removed NULL
12216         * device/lib/_strchr.c: removed NULL
12217         * device/lib/_strcmp.c: removed NULL
12218         * device/lib/_strcpy.c: removed NULL
12219         * device/lib/_strcspn.c: removed NULL
12220         * device/lib/_strlen.c: removed NULL
12221         * device/lib/_strncat.c: removed NULL
12222         * device/lib/_strncmp.c: removed NULL
12223         * device/lib/_strncpy.c: removed NULL
12224         * device/lib/_strpbrk.c: removed NULL
12225         * device/lib/_strrchr.c: removed NULL
12226         * device/lib/_strspn.c: removed NULL
12227         * device/lib/_strstr.c: removed NULL
12228         * device/lib/_strtok.c: removed NULL
12229         * device/lib/malloc.c: removed NULL, include own header
12230
12231 2003-02-02    <johan AT balder>
12232
12233         * 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
12234         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
12235         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
12236         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
12237         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
12238         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
12239
12240 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12241
12242         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
12243         area 'DATA'"
12244
12245 2003-02-01    <johan AT balder>
12246
12247         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
12248
12249 2003-01-31    <johan AT CP255758-A>
12250
12251         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
12252
12253 2003-01-30    <johan AT balder>
12254
12255         * src/SDCCBBlock.c: automatic bug detection
12256         * src/SDCCicode.c: automatic bug detection
12257
12258 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12259
12260         * src/SDCCglobl.h:   now --xram-size 0 works
12261         * src/SDCCmain.c:    now --xram-size 0 works
12262
12263 2003-01-29    <johan AT balder>
12264
12265         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
12266
12267 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12268
12269         * as/mcs51/aslink.h: Added options --xram-size and --code-size
12270         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
12271         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
12272         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
12273         * src/SDCCglobl.h:   Added options --xram-size and --code-size
12274         * src/SDCCmain.c:    Added options --xram-size and --code-size
12275
12276 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
12277
12278         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
12279         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
12280
12281 2003-01-27    <johan AT balder>
12282
12283         * src/SDCC.y: fixed bug #613764
12284
12285 2003-01-26    <johan AT balder>
12286
12287         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
12288         * src/SDCCsymt.h: fixed bug #673374
12289         * src/SDCCglue.c: fixed bug #661910
12290         * src/SDCCast.c: fixed bug #458099 and 673374
12291
12292 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
12293
12294         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
12295         * as/mcs51/strcmpi.h: added
12296         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
12297         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
12298         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
12299         * as/mcs51/assym.c: strcmpi -> as_strcmpi
12300         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
12301         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
12302         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
12303         * as/mcs51/Makefile.aslink: new module strcmpi
12304         * as/mcs51/Makefile.asx8051: new module strcmpi
12305         * as/mcs51/Makefil.bcc: new module strcmpi
12306         * as/mcs51/Makefile.in: new module strcmpi
12307         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
12308
12309 2003-01-26    <johan AT balder>
12310
12311         * src/SDCCglue.c: reverted back to 1.124
12312         * src/SDCCast.c: reverted back to 1.156
12313         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
12314
12315 2003-01-25    <johan AT balder>
12316
12317         * src/SDCCglue.c: A better fix for bug #661910
12318         * src/SDCCast.c: A better fix for bug #661910
12319         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
12320
12321 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
12322
12323         * src/Makefile.in: remove spawn.o
12324         * src/SDCCmain.c: remove spawn.h
12325         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
12326         * src/spawn.c: removed
12327         * src/spawn.h: removed
12328         * support/regression/ports/ds390/spec.mk: link with -r
12329
12330 2003-01-24    <johan AT CP255758-A>
12331
12332         * src/ds390/gen.c (aopOp): fixed bug #667458
12333         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
12334         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
12335         (createIvalCharPtr): an ival doesn't always have a storage class anymore
12336
12337 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
12338
12339         * src/mcs51/peeph.def: better assembler identation by Frieder
12340         * src/mcs51/gen.c: better assembler identation by Frieder
12341
12342 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
12343
12344         * as/z80/string.h: removed for gcc 3.2
12345         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
12346         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
12347
12348 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
12349
12350         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
12351         * src/SDCCpeeph.c (replaceRule): fix bug #663503
12352         * support/regression/Makefile: separate temp files for ports
12353         * support/regression/generate-cases.py: separate temp files for ports
12354         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12355         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12356
12357 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
12358
12359         * moved tinitalk to device/examples/ds390
12360
12361 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
12362
12363         * as/mcs51/lkmem.c: rflag is for DS390
12364         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
12365         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
12366                          (linkEdit): move mem- and map-files the same way as ihx-files
12367         * src/z80/main.c (_setDefaultOptions): removed --generic
12368         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
12369         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
12370         * src/pic/glue.c (picglue): --c1mode works again
12371         * src/pic16/glue.c (pic16glue): --c1mode works again
12372         * src/asm.c (printCLine): fix #660034
12373
12374 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
12375
12376         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
12377         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
12378         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
12379         * as/mcs51/lkmem (summary): better fix for sp problem
12380         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
12381         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
12382         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
12383                                               remove --stack-after-data
12384
12385 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
12386
12387         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
12388         * src/SDCCutil.c (join): ugly bug: missing '\0'
12389         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
12390
12391 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
12392
12393         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
12394         * src/port.h: typo
12395         * src/pic/main.c (_asmCmd): gpasm supports -o
12396         * src/z80/main.c: more general macros
12397         * device/lib/Makefile.in: remove intermediate files
12398
12399 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
12400
12401         * .version: Bumped version number to 2.3.3
12402         * src/SDCCBBlock.c: new option -o
12403         * src/SDCCglobl.h: new option -o
12404         * src/SDCCglue.c: new option -o
12405         * src/SDCCmain.c: new option -o
12406         * src/asm.c: new option -o
12407         * src/ds390/main.c: new option -o
12408         * src/pic/glue.c: new option -o
12409         * src/pic/pcode.c: new option -o
12410         * src/pic/ralloc.c: new option -o
12411         * src/pic16/glue.c: new option -o
12412         * src/pic16/pcode.c: new option -o
12413         * src/pic16/ralloc.c: new option -o
12414         * src/z80/main.c: new option -o
12415         * device/lib/Makefile.in: use -o
12416         * support/regression/ports/ds390/spec.mk: use -o
12417         * support/regression/ports/gbz80/spec.mk: use -o
12418         * support/regression/ports/mcs51/spec.mk: use -o
12419         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
12420         * support/regression/ports/z80/spec.mk: use -o
12421         * support/regression/ports/ucz80/spec.mk: use -o
12422         * support/regression/ports/xa51/spec.mk: use -o
12423         * support/regression/fwk/lib/timeout.c: fix usage string
12424
12425 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
12426         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
12427
12428 2003-01-07    <johan AT balder>
12429
12430         * src/SDCCast.c (decorateType): fixed bug #600035
12431
12432 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
12433         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
12434         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
12435         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
12436         * src/pic/pcode.c: outcommented unused variable to remove warnings
12437         * src/pic/ralloc.c: outcommented unused variable to remove warnings
12438
12439 2003-01-06    <karl AT turbobit.com>
12440         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
12441    regression tests.
12442
12443 2003-01-06    <johan AT balder>
12444
12445         * src/SDCCicode.c: fixed array add
12446
12447 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
12448         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
12449         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
12450
12451 2003-01-04    <johan AT balder>
12452
12453         * src/SDCCval.c (getNelements): fixed the initialized array of structures
12454
12455 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12456         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
12457
12458 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
12459         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
12460         * support/regression/tests/bug-524697.c: fit mem usage into 8032
12461
12462 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
12463         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
12464
12465 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
12466         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
12467
12468 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
12469         * src/mcs51/main.c: removed {bindir}{sep} from aslink
12470
12471 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12472
12473     * in /sdcc/as/mcs51/ changed these files in order to create an
12474     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
12475     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
12476     following files to include the previous two files: aslink.dsp,
12477     Makefile.aslink, Makefile.bcc, and Makefile.in.
12478
12479     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
12480     .adb instead of .cdb
12481
12482 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12483
12484         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
12485         value from option --iram-size.
12486
12487 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12488
12489         * /sdcc/as/mcs51/lklist.c: added boundary check before using
12490         dram[] array.
12491
12492 2002-09-18    <wiml AT hhhh.org>
12493
12494         * SDCClrange.h: exposed setFromRange() and setToRange()
12495         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
12496           packRegsForAccUse() (bug 542397)
12497         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
12498           multiple times and emitting the fetch operations more than once
12499           added aopGetUsesAcc() function to allow binary operators to
12500           fetch their operands in the correct order; made genMinus() emit
12501           compact code for X = LITERAL - Y
12502
12503 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12504         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
12505         sprintf() in line 1267.
12506
12507 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12508         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
12509         like ports.
12510
12511 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12512         Changes to aslink (All the changes are marked with 'JCF'):
12513
12514         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
12515         summary().
12516
12517         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
12518         area BSEG.  Also moves, if possible, the DATA area down into the internal
12519         ram so more space is available.
12520
12521         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
12522         sflag.
12523
12524         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
12525         not bytes.  Function summary() which creates a memory usage summary
12526         file with extension .mem.  Reports of overlaping stack and small stack
12527         size.  If the space for the stack is less than 16 bytes aslink trows a
12528         warning.
12529
12530         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
12531         the 8051.  Option 'y' for memory summary output file.
12532
12533         Changes to sdcc (All the changes are marked with 'JCF'):
12534
12535         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
12536
12537         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
12538         overlaying area for it (uses RegBankUsed[4]).
12539
12540         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
12541         bank zero as used by default.  By default aslink locates the stack
12542         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
12543         the creation of the .mem file.  Delegates the allocation of data area
12544         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
12545         the begining of the stack area to aslink.
12546
12547         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
12548         glue() in SDCCglue.c creates an area for it.
12549
12550 2002-09-03  Borut Razem <borut.razem AT siol.net>
12551         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
12552         sdcc/src/pic/glue.c:
12553         introduced atexit() handler for teporay files removal in case of
12554         errors, assertions, ...
12555
12556 2002-08-29  Borut Razem <borut.razem AT siol.net>
12557         * sdcc/support/cpp2/auto-host_vc_in.h:
12558         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
12559         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
12560         Maybe there is a similar problem with BORLANDC? It should be checked!
12561
12562         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
12563         corrected improper use of assert: the assignment to clr variable was done inside the assert.
12564         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
12565         was not executed, and the compiler (cl) launched a warning:
12566         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
12567
12568 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12569         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
12570
12571 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
12572         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
12573
12574         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12575           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
12576           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
12577           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12578           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
12579           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
12580           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
12581         - added Release configuration in VS projects
12582         - review of compiler an linker options
12583         - VC .exe files are generated in bin_vc directory, not to interfere
12584           with binaries generated from other projects (cygwin, mingw, bcc ...)
12585
12586         * sdcc/src/yacc.dsp: added
12587
12588         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
12589         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
12590         and insert the version number definitions from .version
12591
12592         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
12593
12594         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
12595         added - genarate auto-host.h using auto-host_vc_in.h as template
12596
12597         * sdcc/sdcc_vc.h,
12598         removed from CVS, generated automatically
12599
12600 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
12601         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
12602
12603 2002-08-11  Borut Razem <borut.razem AT siol.net>
12604         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
12605
12606 2002-08-10  Borut Razem <borut.razem AT siol.net>
12607         * src/SDCCmain.c (main):
12608         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
12609         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
12610         The consequence was that some temporary files were not removed.
12611
12612         * src/SDCCglue.c:
12613         unification of code in functions tempfilename() and tempfile():
12614         function tempnam() is defined in Visual Studio 6.0 and .NET
12615
12616         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
12617
12618         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12619           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
12620         - removed compiler command line option /WX: Treats all warnings as errors
12621         - update a list of source files, included into the project
12622
12623         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12624           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
12625         changed project type to Generic Project so that can be correcly converted to VS.NET project
12626
12627         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
12628
12629         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
12630
12631         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
12632
12633         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
12634         added return 0 statements after assert() to make compiler happy
12635
12636         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
12637         added newline in the def file to keep MSC compiler satisfied
12638
12639         * sdcc/src/z80/gen.c:
12640         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
12641           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
12642         - solved MSC error in function aopDump()
12643
12644         * sdcc_vc.h: define PREFIX as "\\sdcc"
12645
12646 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
12647         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
12648
12649 2002-06-22  Scott Dattalo <scott AT dattalo.com>
12650         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
12651         - Rewrote the register banking algorithm.
12652         - Added pCode live-range analysis to registers (for now, only non-used and
12653         singly-used registers optimized away)
12654
12655         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
12656
12657         * 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.
12658
12659 2002-05-10  Scott Dattalo <scott AT dattalo.com>
12660         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
12661
12662 2002-04-22  Michael Hope  <michaelh AT vroom>
12663
12664         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
12665
12666         * configure.in (DD_COPT): Added include support required for gbdk.
12667
12668         * .version: Bumped version number just to increase it.
12669
12670         * src/SDCCmain.c: Added -nostdinc to the default options.
12671
12672 2002-04-15  Michael Hope  <michaelh AT vroom>
12673
12674         * device/lib/z80/printf.c (sprintf): Added.
12675
12676         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
12677
12678         * src/z80/peeph.def: Added transpose redundent load rule.
12679
12680         * src/z80/main.c: Added force callee saves for jaune.
12681
12682         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
12683
12684         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
12685
12686 2002-03-28  Johan Knol  <johan AT balder>
12687
12688         * src/SDCCval.c: fixed bug #532436
12689
12690 2002-03-14  Scott Dattalo <scott AT dattalo.com>
12691         * /src/port.h:
12692         Added "char *Processor" field to the port structure.
12693
12694         * /src/SDCCmain.c:
12695         Added -p option. Allows port dependent processor to be specified.
12696
12697         * all ports:
12698         Initialized the new field char *Processor field to NULL in all ports
12699
12700         * /src/pic/*:
12701         Compiler generated registers for interrupt context saving
12702         were not getting allocated.
12703
12704 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
12705
12706         * /src/SDCCast.c:
12707         Fixed left shift. Will promote the left side of a left shift
12708         if a) left shifting more than size of operand or b) when assigned
12709         to something size > size of left side
12710
12711 2002-03-14  Scott Dattalo <scott AT dattalo.com>
12712         * src/pic/*
12713         tons of changes. Register allocation has been
12714         rewritten. Added customization for the various PICs. Flow
12715         analysis is restructured. ...
12716
12717         * src/pic/device.h:
12718         Added
12719
12720         * src/pic/device.c:
12721         Added. device.c is a PIC port hack to accomodate variations
12722         in PIC devices.
12723
12724 2002-03-13  Michael Hope  <michaelh AT vroom>
12725
12726         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
12727
12728 2002-03-04  johanknol  <johanknol AT manik>
12729
12730         * /src/SDCCval.c: fixed
12731
12732         const unsigned char arr[][2] = { { 0, 1 } };
12733         t18.c:1: error: Initializer element is not constant
12734
12735 2002-03-04  bela  <bela AT manik>
12736
12737         * /device/include/mcs51reg.h:
12738         ds89c420 register definition update
12739
12740 2002-03-03    <johan AT FRIJA>
12741
12742         * support/Util/SDCCerr.c: did something, but don't no why anymore
12743
12744         * support/regression/tests/bug-524691.c: made it a little less shy
12745
12746         * src/SDCCast.c (decorateType): fixed bug #524697
12747
12748         * src/SDCCast.c: made some lineno improvements
12749
12750         * src/SDCCval.c (getNelements): changed warning to error
12751
12752         * src/SDCCglue.c (printIvalArray): changed warning to error
12753
12754         * src/SDCCicode.c: fixed a warning for mingw
12755
12756         * src/SDCCast.c (decorateType): fixed the << promotion for ops
12757
12758         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
12759
12760 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
12761
12762         * src/ds390/peeph.def:
12763         Added some more peephole rules
12764
12765         * src/ds390/gen.c: Various fixes & enhancements
12766
12767         * src/SDCClrange.c, src/SDCClrange.h:
12768         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
12769
12770         * src/ds390/ralloc.c:
12771         various fixes & enhancements (ds390) specific
12772
12773         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
12774         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
12775         from rallocs.
12776
12777         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
12778
12779 2002-03-02    <johan AT FRIJA>
12780
12781         * src/SDCCast.c (decorateType): fixed bug #524708
12782
12783         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
12784
12785         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
12786
12787 2002-03-01  Michael Hope  <michaelh AT vroom>
12788
12789         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
12790
12791         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
12792
12793 2002-03-01    <johan AT FRIJA>
12794
12795         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
12796
12797         * src/SDCCast.c (decorateType): fixed bug #524209
12798
12799         * src/SDCCval.c (valNot): fixed bug #524195
12800
12801 2002-02-26    <johan AT balder>
12802
12803         * src/xa51/gen.c: fixed a warning
12804
12805         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
12806
12807         * src/SDCCast.c (decorateType): fixed bug #522534
12808
12809 2002-02-23    <johan AT balder>
12810
12811         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
12812
12813 2002-02-22    <johan AT balder>
12814
12815         * src/SDCCast.c: fixed bug #514865
12816
12817         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
12818
12819 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
12820
12821         * sdcc/src/SDCCloop.c:
12822         Previous fix was not good. basic blocks that have "break" or "return" are
12823         not really partof a loop , but live ranges used in these blocks should
12824         be live thru the entire loop, so set partOfLoop but don't add them to
12825         loop region
12826
12827 2002-02-21    <johan AT FRIJA>
12828
12829         * src/SDCCcse.c: fixed bug #514308
12830
12831 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
12832
12833         * src/SDCCloop.c:
12834         Fixed BUG #519583. If a conditional block ended in a return/break
12835         statement inside a loop, it was not being considered part of the loop.
12836
12837         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
12838
12839 2002-02-10  Karl Bongers <karl AT turbobit.com>
12840
12841         * debugger/*:
12842         Fixed up SDCDB debugger somewhat.  Updated debugger/README
12843         with lots of comments and notes.
12844
12845         * device/examples/test2.c:
12846         Fix bug, "red" variable not being initialized(compiler complained).
12847
12848         * device/examples/Makefile, examples/test3.c:
12849         Add Makefile in device/examples folder, compiles test3.c
12850         for use as a multiple module SDCDB test case.
12851
12852         * sim/ucsim/cmd.src/cmdset.cc:
12853         Took out debug printfs in ucsim "next" command.
12854
12855         * sim/ucsim/xa.src:
12856         Karl and Johan start ucsim XA support.  Most dissassembly working,
12857         about 75% emulation done(plenty of work remaining).
12858
12859         * sim/ucsim/z80.src:
12860         Add Z80 support to ucsim, add test-ucz80 regression test,
12861         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
12862         Notice z80 compiler fails on examples/test3.c/crc code.
12863
12864 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
12865
12866         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
12867         Added support for --parms-in-bank1
12868
12869         * src/ds390/peeph.def:
12870         added a few more peephole optimzations
12871
12872         * src/ds390/main.c:
12873         1) added __builtin_inp & __builtin_outp used to read in data of given length
12874            from a memory mapped port
12875         2) added __builtin_memcmp
12876         3) added __builtin_swapw swap bytes of a short
12877
12878         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
12879         1) handle multiple send & receives from register bank1
12880         2) ralloc can now allocate DPTR1 to some liveRanges
12881
12882         * src/SDCCsymt.c, src/SDCCsymt.h:
12883         changes to handle multiple sends & receives
12884
12885         * src/SDCCptropt.h:
12886         added some pointer arithmetic optimization
12887
12888         * src/SDCCptropt.c:
12889         added some pointer arithmetic optimizations but not stable yet so not
12890         called from anywhere (will get this working shortly)
12891
12892         * src/SDCCopt.c: fixed for multiple sends & receives
12893
12894         * src/SDCCmain.c:
12895         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
12896         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
12897            set preprocessor defines (depending on options)
12898
12899         * src/SDCCicode.c, src/SDCCicode.h:
12900         changes made to handle multiple sends & receives
12901
12902         * src/SDCCglobl.h:
12903         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
12904
12905         * src/SDCCcse.c, src/SDCCcse.h:
12906         added function findbackward def (to be used in upcoming optimization)
12907
12908         * src/SDCCcflow.c, src/SDCCcflow.h:
12909         added function returnAtEnd - to determine if a basic block terminates with
12910         a RETURN iCode
12911
12912         * src/SDCCast.c, src/SDCCast.h:
12913         added option parms-in-bank1
12914
12915         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
12916         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
12917         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
12918         adjusted for --parms-in-bank1 option
12919
12920         * device/include/string.h:
12921         donot redefine "reentrant" keyword
12922
12923         * device/include/ds80c390.h: Added some more SFRs
12924
12925 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
12926
12927         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
12928
12929 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
12930
12931         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
12932
12933 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
12934
12935         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
12936
12937 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
12938
12939         * Added --xram-movc option
12940
12941 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
12942
12943         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
12944
12945 2002-01-11  Johan Knol
12946
12947         * Added math lib of Jesus Calvino-Fraga
12948
12949 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
12950
12951         * src/SDCCmain.c (processFile): fix processing of ../../src.c
12952         * support/regression/Makefile: new target test-mcs51-stack-auto
12953         * support/regression/ports/mcs51-stack-auto/spec.mk: added
12954
12955 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
12956
12957         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
12958
12959 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
12960
12961         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
12962
12963 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
12964
12965         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
12966
12967         * src/SDCCglue.h: add definition for printIvalChar()
12968
12969 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
12970
12971         * src/SDCCast.c: fix #498138 by Johan
12972
12973         * src/SDCCglue.c: fix #498138 by Johan
12974
12975 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
12976
12977         * support/regression/Makefile: fix clean
12978
12979         * support/regression/ports/ds390/support.c: fix transmission of last character
12980
12981 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
12982
12983         * /sdcc/src/ds390/gen.c:
12984         a) improved computing address of stack variable
12985         b) took out some #if 0 code
12986         c) improved parmBytes adjustment
12987         d) improved genPlusIncr & genMinusIncr
12988         e) genCmp could generate bad code (when left assigned to DPTR)
12989         f) Fixed bug in hasInc
12990
12991         * /sdcc/src/ds390/ralloc.c:
12992         a) packRegsForSupport could mess up live information (Fixed)
12993         b) packRegsDPTRuse could be incorrect for left & right shift
12994
12995         * /sdcc/src/mcs51/ralloc.c:
12996         packRegsForSupport could mess up the live information (Fixed)
12997
12998         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
12999
13000         * /sdcc/src/SDCCast.c:
13001         can reverse a loop even if function call is present as long
13002         as the loop control variable is local & is not passed as parameter
13003
13004 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13005
13006         * /sdcc/ChangeLog: *** empty log message ***
13007
13008         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13009         More builtin function additions for TININative
13010
13011         * /sdcc/src/ds390/ralloc.c:
13012         Had broken the regression testsuite
13013
13014         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13015
13016         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13017         Added funcattr hasStackParms will be set for reentrant functions when there
13018         are paramteres on the stack, this helps in minimizing frame pointer generation
13019         typeFromStr can handle function pointers now
13020
13021         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13022         *** empty log message ***
13023
13024 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13025
13026         * /src/ds390/gen.c, /src/ds390/main.c:
13027         More builtin function additions for TININative
13028
13029         * /src/ds390/ralloc.c:
13030         Had broken the regression testsuite
13031
13032         * /src/SDCCast.c: Fixed a bug in dumptree
13033
13034         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13035         Added funcattr hasStackParms will be set for reentrant functions when there
13036         are paramteres on the stack, this helps in minimizing frame pointer generation
13037         typeFromStr can handle function pointers now
13038
13039         * /doc/builtins.txt, /doc/TININative.txt:
13040         *** empty log message ***
13041
13042
13043 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13044
13045         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13046         ALPHA version for -mTININative
13047
13048         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13049         updated to reflect changes in the port structure
13050
13051         * /src/port.h:
13052         added function do_assemble (similar to do_link) if non-null this function
13053         will be called to do assembly (-mTININative) requires a multi command
13054         assembly
13055         added function genAssemblerEnd will be called to generate assembler Epilogue
13056
13057         * /src/SDCCsymt.c:
13058         added _JavaNative to debug info printing
13059
13060         * /src/SDCCmain.c: added option --tini-libid
13061         added port->do_assemble function (-mTININative) has a multi command assemble
13062
13063         * /src/SDCCglue.c: Disabled "constExpr" check
13064         added port->genAssemblerEnd function
13065
13066         * /src/SDCCglobl.h: Added option --tini-libid value
13067
13068         * /src/SDCCast.h:
13069         tookout optimizeCompare from the header (has no external references)
13070
13071         * /src/SDCCast.c: made one more function "static"
13072
13073 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
13074
13075         * src/z80/mappings.i: Added z80asm support.
13076
13077         * src/z80/main.c: Added z80asm support on --asm=z80asm
13078
13079         * src/z80/gen.c: Fixed asm portability issues.
13080
13081         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
13082
13083         * src/SDCCglue.c (printExterns): Added global/extern split.
13084
13085 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
13086
13087         * support/regression/Makefile: added test for mcs51 model large
13088
13089         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
13090
13091         * support/regression/ports/gbz80/spec.mk: added -mgbz80
13092
13093 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
13094
13095         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
13096
13097 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
13098
13099         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
13100
13101         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
13102
13103 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
13104
13105         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
13106
13107         * support/regression/tests/simplefloat.c: Port to mcs51.
13108
13109 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
13110         * support/regression/tests/bug-485362.c: Added.
13111
13112         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
13113
13114         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
13115
13116         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
13117
13118         * src/z80/gen.c (aopDump): Added a dump function.
13119
13120 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
13121         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
13122
13123         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
13124
13125         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
13126
13127         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
13128
13129         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
13130
13131         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
13132
13133         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
13134
13135         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
13136
13137         * support/regression/ports/ds390/support.c: Use tinibios.
13138
13139         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
13140
13141 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
13142
13143         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
13144         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
13145
13146         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
13147
13148         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
13149
13150 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
13151
13152         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
13153
13154         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
13155         (packRegsForIYUse): Created and optimised.
13156
13157 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
13158
13159         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
13160 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
13161
13162         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
13163
13164         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
13165
13166         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
13167
13168 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13169
13170         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
13171
13172         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
13173
13174 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13175
13176         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
13177
13178         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
13179
13180         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
13181
13182 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
13183
13184         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
13185         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
13186         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
13187
13188         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
13189
13190         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
13191         (genNotFloat): Added.
13192         (genUminusFloat): Added.
13193
13194         * device/lib/z80/Makefile: Added floating pt stubs.
13195
13196         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
13197
13198         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
13199
13200         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
13201
13202 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13203
13204         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
13205
13206         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
13207
13208         * sdcc/support/regression/Makefile: Add port ds390.
13209
13210         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
13211
13212         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
13213
13214         * sdcc/support/regression/ports/ds390/spec.mk: Added.
13215
13216         * sdcc/support/regression/ports/ds390/support.c: Added.
13217
13218         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
13219
13220         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
13221
13222         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
13223
13224 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
13225
13226         * device/include/malloc.h: Added z80 and gbz80 support.
13227
13228         * device/lib/gbz80/heap.s: Added.
13229
13230         * device/lib/z80/heap.s: Added.
13231
13232         * device/lib/malloc.c: Added z80 and gbz80 support.
13233
13234         * support/regression/tests/malloc.c (testMalloc): Added.
13235
13236         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
13237
13238         * support/regression/tests/bug-478094.c: Added.
13239
13240         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
13241
13242 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
13243
13244         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
13245
13246         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
13247
13248         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
13249
13250         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
13251
13252         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
13253
13254 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
13255
13256         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
13257
13258 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
13259
13260         * support/regression/tests/bug-477927.c: Added.
13261
13262         * src/z80/peeph.def: Added minor rules.
13263
13264         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
13265
13266         * src/z80/peeph.def: Added jump optimisation modification.
13267
13268 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
13269
13270         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
13271
13272 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
13273
13274         * support/regression/tests/funptrs.c: Added.
13275
13276 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
13277
13278         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
13279
13280 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
13281
13282         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
13283
13284         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
13285
13286         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
13287         (movLeft2ResultLong): Created.
13288
13289         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
13290         (joinPushes): Added.  Joins two char pushes into a word push.
13291
13292 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
13293
13294         * support/cpp2/Makefile.in (install): Added creation of dest dir.
13295
13296         * support/makebin/Makefile (install): Added creation of dest dir.
13297
13298 2001-10-24 Karl Bongers <karl AT turbobit.com>
13299
13300         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
13301
13302 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
13303
13304         * src/z80/ralloc.c: Turned off faulty pack for one use.
13305
13306         * src/z80/peeph-gbz80.def: Removed redundent restart options.
13307
13308         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
13309
13310 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
13311
13312         * support/regression/Makefile: Improved clean
13313
13314         * support/regression/ports/gbz80/spec.mk: Added clean
13315
13316         * support/regression/ports/host/spec.mk: Added clean
13317
13318         * support/regression/ports/z80/spec.mk: Added clean
13319
13320         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
13321
13322         * support/regression/ports/mcs51/timeout.c: little improvements
13323
13324 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
13325
13326         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
13327
13328         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
13329
13330         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
13331
13332 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
13333
13334         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
13335
13336         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
13337
13338 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
13339         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
13340
13341         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
13342
13343         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
13344
13345         * src/mcs51/main.c (_linkCmd): Added bin path to command.
13346
13347         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
13348
13349         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
13350
13351         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
13352
13353         * support/regression/tests/longor.c: Added.
13354
13355 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
13356
13357         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
13358
13359         * as/mcs51/aslink.h: define PATH_MAX
13360
13361         * as/mcs51/asm.h: define PATH_MAX
13362
13363         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
13364
13365         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
13366
13367         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
13368
13369         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
13370
13371         * src/SDCCglobl.h: define PATH_MAX
13372
13373         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
13374
13375         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
13376
13377 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
13378
13379         * src/z80/gen.c (gencjneshort): Fixed
13380
13381         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
13382
13383 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
13384
13385         * support/regression/tests/bug-469671.c: Added.
13386
13387         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
13388
13389 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
13390
13391         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
13392
13393         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
13394
13395 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
13396
13397         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
13398
13399         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
13400
13401         * src/device/lib/_mullong.c : removed hint: nooverlay bug
13402
13403         * src/device/lib/_divuint.c : removed hint: nooverlay bug
13404
13405         * src/device/lib/_divulong.c: removed hint: nooverlay bug
13406
13407         * src/device/lib/_moduint.c : removed hint: nooverlay bug
13408
13409         * src/device/lib/_modulong.c: removed hint: nooverlay bug
13410
13411 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
13412
13413         * 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.
13414
13415         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
13416
13417         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
13418
13419 2001-10-07    <johan AT FRIJA>
13420
13421         * device/lib/gets.c (gets): fixed the return value.
13422
13423 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
13424         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
13425
13426         * 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.
13427
13428         * 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.
13429
13430         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
13431
13432         * src/pic/gen.c: Removed Safe_strdup.
13433
13434         * configure.in: Added option to enable libgc support.
13435
13436         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
13437         (bitVectUnion): Optimised.
13438         (bitVectIntersect): Optimised.
13439         (bitVectBitsInCommon): Optimised.
13440         (bitVectCplAnd): Optimised.
13441
13442         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
13443
13444 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13445
13446         * src/SDCCmain.c: distinguish between assembler debug and plain options
13447
13448         * src/avr/main.c:   remove standard assembler options
13449
13450         * src/ds390/main.c: remove standard assembler options
13451
13452         * src/mcs51/main.c: remove standard assembler options
13453
13454         * src/port.h: removed "PENDING" comment
13455
13456 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13457
13458         * src/device/lib/_mulint.c  : new, with assember functions
13459
13460         * src/device/lib/_mullong.c : new, with assember functions
13461
13462         * src/device/lib/_divuint.c : with assember functions
13463
13464         * src/device/lib/_divsint.c : with assember functions
13465
13466         * src/device/lib/_divulong.c: with assember functions
13467
13468         * src/device/lib/_divslong.c: with assember functions
13469
13470         * src/device/lib/_moduint.c : with assember functions
13471
13472         * src/device/lib/_modsint.c : with assember functions
13473
13474         * src/device/lib/_modulong.c: with assember functions
13475
13476         * src/device/lib/_modslong.c: with assember functions
13477
13478         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
13479
13480         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
13481
13482         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
13483                                       replaced _mululong.c and _mulslong.c by _mullong.c
13484
13485 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13486
13487         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
13488
13489 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
13490
13491         * src/SDCCglue.c: test, if win32api is available for MINGW
13492
13493 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
13494
13495         * src/SDCCsymt.c: no more _modifier in printTypeChain()
13496         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
13497         * support/regression/ports/gbz80/spec.mk: removed GENERIC
13498         * support/regression/ports/host/spec.mk: removed GENERIC
13499         * support/regression/ports/mcs51/spec.mk: removed GENERIC
13500         * support/regression/ports/z80/spec.mk: removed GENERIC
13501
13502 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
13503
13504         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
13505
13506         * support/regression/tests/bug-467035.c: Created.
13507
13508 2001-10-01    <johan AT FRIJA>
13509
13510         * src/SDCC.y: fixed bug #466586 part 1
13511
13512 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
13513
13514         * SDCCicode.c: z80 has no generic pointers
13515         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
13516
13517 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
13518
13519         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
13520
13521 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
13522
13523         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
13524
13525         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
13526
13527 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
13528
13529         * configure.in: Fixed up so that ucsim is only configured once.
13530
13531         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
13532
13533         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
13534         (getPathDifference): As above.
13535
13536         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
13537
13538         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
13539
13540 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
13541         * .version: Updated to 2.3.1
13542
13543         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
13544         Added copyright header.
13545
13546         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
13547         (assemble): Added support for macro based assembler commands.
13548         (linkEdit): Added support for macro based linker commands.
13549         (preProcess): Changed the pre-processor to use macros.
13550         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
13551         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
13552
13553         * device/lib/z80/crt0.s: Added module name for debugging.
13554
13555 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
13556
13557         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13558
13559         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
13560
13561         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
13562
13563         * src/Makefile.in: Added SDCCmacro and SDCCutil
13564
13565 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
13566
13567         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13568
13569 2001-09-16    <johan AT FRIJA>
13570
13571         * 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.
13572
13573 2001-09-15    <johan AT FRIJA>
13574
13575         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
13576         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
13577
13578 2001-09-11    <johan AT FRIJA>
13579
13580         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
13581
13582 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
13583
13584         * support/regression/tests/bug-460444.c: Added test case.
13585
13586         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
13587         (genCast): Added justification for all of the asserts.
13588
13589 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
13590
13591         * support/regression/support.c: _xdata replaced by xdata
13592
13593         * support/regression/spec.mk: removed _generic
13594
13595 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
13596
13597         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
13598
13599         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
13600         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
13601
13602         * src/z80/peeph.def: Added a rule to optimise shift then compare.
13603
13604         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
13605
13606         * support/regression/tests/bug-460010.c: Added test case.
13607
13608         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
13609
13610 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
13611
13612         * support/regression/Makefile: inter-port-clean adjusted for mcs51
13613
13614         * support/regression/testfwk.c: removed workaround for bug #436344
13615
13616         * support/regression/tests/bp.c: use less memory with mcs51
13617
13618         * support/regression/tests/bug-441448.c: use less memory
13619
13620         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
13621
13622         * support/regression/collate-results.py: typo
13623
13624 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
13625
13626         * support/regression/tests/fetchoverlap.c: Added new test case.
13627
13628         * support/regression/tests/bp.c: Added new test case.
13629
13630         * support/regression/tests/bug-448984.c: Added new test case.
13631
13632         * support/regression/tests/pow2shifts.c: Added new test case.
13633
13634         * src/z80/gen.c: Turned off the noise it normally generates for the release.
13635         (genlshTwo): Fixed right shift for count > 8.
13636
13637         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
13638
13639 2001-09-08    <johan AT FRIJA>
13640
13641         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
13642
13643 2001-09-07    <johan AT FRIJA>
13644
13645         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
13646
13647         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
13648
13649 2001-09-06    <johan AT FRIJA>
13650
13651         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
13652         * bernhard noted me at this: "() equals to (void)" (1.38)
13653
13654 2001-09-05    <johan AT FRIJA>
13655
13656         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
13657
13658 2001-09-04    <johan AT FRIJA>
13659
13660         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
13661
13662
13663 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
13664
13665         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
13666
13667 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
13668
13669         * link/z80/aslink.h: Fixed path for PATH_MAX
13670
13671 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
13672
13673         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
13674
13675         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
13676
13677         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
13678
13679         * 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.
13680
13681 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
13682
13683         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
13684         (genCmp): Fixed up genCmp for the GB with longs.
13685
13686         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
13687
13688         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
13689
13690         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
13691
13692         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
13693
13694 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
13695
13696         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
13697
13698 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
13699
13700         * 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.
13701
13702         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
13703
13704 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
13705
13706         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
13707
13708         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
13709
13710 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
13711
13712   * sim/ucsim/configure:    little improvement of Cygwin-detection
13713   * sim/ucsim/configure.in: little improvement of Cygwin-detection
13714   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
13715   * support/regression/tests/bug-221100.c: small changes for mcs51
13716   * support/regression/tests/bug-221168.c: small changes for mcs51
13717   * support/regression/tests/bug-227710.c: small changes for mcs51
13718   * support/regression/tests/staticinit.c: small changes for mcs51
13719   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
13720   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
13721   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
13722
13723 $Revision$