e36c2f66164c1f2b8cb2e197f82acac53ae652f6
[fw/sdcc] / ChangeLog
1 2003-07-14  Bernhard Held <bernhard@bernhardheld.de>
2
3         pic16 progress by Vangelis:
4         * src/SDCCglobl.h:
5         * src/SDCCmain.c:
6         * src/pic/Makefile:
7         * src/pic:
8         * pic/Makefile:
9         * pic16/device.c:
10         * pic16/device.h:
11         * pic16/gen.c:
12         * pic16/gen.h:
13         * pic16/genarith.c:
14         * pic16/glue.c:
15         * pic16/main.c:
16         * pic16/pcode.c:
17         * pic16/pcode.h:
18         * pic16/pcodepeep.c:
19         * pic16/peeph.def:
20
21 2003-07-13  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
22
23     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
24
25 2003-07-12  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
26
27     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
28     added gbz80 build to MSVC project.
29     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
30     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
31     from 8051 stuff and setup so it links using a .lnk file.
32
33 2003-07-06  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
34
35     * support/librarian/sdcclib.c: sdcc librarian.
36     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
37     with sdcclib.
38
39 2003-07-03  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
40
41     * as/mcs51/lkmain.c: properly handle extensions in function afile.
42
43 2003-07-02  Borut Razem <borut.razem@siol.net>
44
45         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
46         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
47         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
48         src/xa51/main.c, src/z80/main.c:
49         virtualization of glue() function: each port has it's own glue function,
50         which is accessed by do_glue function pointer in PORT.general structure
51
52 2003-07-01 Kevin Vigor <kevin@vigor.nu>
53
54         * DS800C400 fun, improved ROM interface and tinibios.
55
56 2003-06-27 Kevin Vigor <kevin@vigor.nu>
57
58         * More support for DS80C400. Now includes beginning of interface to ROM.
59
60 2003-06-25  Bernhard Held <bernhard@bernhardheld.de>
61
62         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
63
64 2003-06-20  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
65
66         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
67
68 2003-06-19  Borut Razem <borut.razem@siol.net>
69
70         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
71
72 2003-06-19  Borut Razem <borut.razem@siol.net>
73
74         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
75         fixed Z80 port - crt0.o: cannot open.
76
77 2003-06-19  Bernhard Held <bernhard@bernhardheld.de>
78
79         * support/Util/MySystem.c (merge_command): revert bad fix
80
81 2003-06-18  Borut Razem <borut.razem@siol.net>
82
83         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
84
85 2003-06-18  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
86
87         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
88         option --use-stdout sends errors to stdout instead of stderr.
89
90 2003-06-18  Bernhard Held <bernhard@bernhardheld.de>
91
92         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
93
94 2003-06-15  Borut Razem <borut.razem@siol.net>
95
96         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
97         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
98         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
99         fixed width array of pointers replaced with sets;
100         multiple include and lib paths ared transferred to preprocessor and linker
101         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
102         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
103         fixed width array of pointers
104         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
105         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
106         fixupPath(), getPathDifference()
107         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
108         fixed width array of pointers
109
110 2003-06-11  Bernhard Held <bernhard@bernhardheld.de>
111
112         * src/pic16/ralloc.c: fix warnings
113         * src/pic16/pcode.c: fix warning
114
115 2003-06-10  Scott Dattalo  <scott@dattalo.com>
116
117          Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't
118         know all the details, but essentially this set of changes enable
119         the pic16 port to generate movff instructions and generate assembler
120         directives,
121         * src/SDCCmain.c:
122         * src/pic16/gen.c:
123         * src/pic16/glue.c:
124         * src/pic16/pcode.c:
125         * src/pic16/device.c:
126         * src/pic16/main.c:
127         * src/pic16/pcode.h:
128         * src/pic16/pcoderegs.c:
129         * src/pic16/ralloc.c:
130         * src/pic16/ralloc.h:
131
132 2003-06-08  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
133
134         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
135         added option --vc, so sdcc errors and warnings are compatible with 
136         Microsoft Visual Studio.
137
138 2003-06-07  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
139
140         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
141           device/lib/libfloat.lib: added atof function.
142
143 2003-06-04  Bernhard Held <bernhard@bernhardheld.de>
144
145         * doc/sdccman.lyx: updated to Lyx 1.3
146         * doc/cdbfileformat.lyx: updated to Lyx 1.3
147         * doc/test_suite_spec.lyx: updated to Lyx 1.3
148         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
149
150 2003-06-03  Bernhard Held <bernhard@bernhardheld.de>
151
152         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
153
154 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann@web.de>
155
156         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
157           additions to the "related tools/documentation" section
158
159 2003-06-02  Bernhard Held <bernhard@bernhardheld.de>
160
161         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
162
163 2003-05-29  Bernhard Held <bernhard@bernhardheld.de>
164
165         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
166         * src/SDCCcse.c (algebraicOpts): fixed "c * 1" 
167
168 2003-05-28  Bernhard Held <bernhard@bernhardheld.de>
169
170         * doc/sdccman.lyx: fix double dash and other minor things
171         * doc/Makefile: fix double dash
172
173 2003-05-28  Karl Bongers(patches from Martin Helmling)
174         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
175           condition and ignore commands.
176
177 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann@web.de>
178
179         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
180           is in parts still quite out of date, I did changes as far as I felt makes sense
181           for a non-native english speaker.
182           Please feel free to add to the manual or to correct my changes.
183         * doc/Makefile: undid touching the date of intermediate tex files.
184
185 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann@web.de>
186
187         * doc/sdccman.lyx: Manual has an index now
188
189 2003-05-25  Bernhard Held <bernhard@bernhardheld.de>
190
191         Finalize muluint/mulsint and mululong/mulslong merging:
192         * device/lib/_mulint.c
193         * device/lib/_mullong.c
194         * device/lib/gbz80/mul.s
195         * device/lib/gbz80/stubs.s
196         * device/lib/z80/mul.s
197         * device/lib/z80/stubs.s
198         * src/SDCCsymt.c (initCSupport)
199
200 2003-05-25  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
201
202         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
203         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
204           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
205           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
206           instead of /Zm500.
207
208 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann@web.de>
209
210         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
211           the regression tests I'm not brave enough to enable 245.b, 245.c
212         * doc/sdccman.lyx: added latex preamble for hyperref package.
213           Using pdflatex this will give you a hyperlinked pdf file with
214           bookmarks. (prepend '%' before /usepackage if this breaks something)
215
216 2003-05-24  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
217
218          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
219          
220 2003-05-22  Bernhard Held <bernhard@bernhardheld.de>
221
222         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
223
224 2003-05-21    <johan@balder>
225
226         * src/SDCCglue.c (printIval): fixed bug #739934
227
228 2003-05-19  Bernhard Held <bernhard@bernhardheld.de>
229
230         Applied patch from bug 737905 (renamed yylineo to mylineno):
231         * src/altlex.c
232         * src/SDCCast.c
233         * src/SDCglobl.h
234         * src/SDCC.lex
235         * src/SDCCsymt.c
236         * src/SDCCval.c 
237         * src/pic16/pcode.c: Cleaned warnings
238         * src/pic16/pcodeflow.c: Cleaned warnings
239         * src/pic16/pcoderegs.c: Cleaned warnings
240
241 2003-05-19  Scott Dattalo  <scott@dattalo.com>
242
243         * src/pic16/pcode.c: Cleaned warnings
244         * src/pic16/pcodepeep.c: Cleaned warnings
245         * src/pic16/ralloc.c: Cleaned warnings
246
247 2003-05-19  Bernhard Held <bernhard@bernhardheld.de>
248
249         * doc/sdccman.lyx: fixed bug 739745
250         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
251
252 2003-05-18  Bernhard Held <bernhard@bernhardheld.de>
253
254         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
255         it can be defined with CFLAGS when running configure
256         * src/SDCCmain.c: fixed compiling + linking with object files
257
258 2003-05-18  Vangelis Rokas (vrokas@otenet.gr)
259
260         * configure.in: configure for pic16 port,
261             added --disable-pic16-port
262         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
263         * src/SDCCmain.c: linkOptions is changed to set *,
264             added if/endif conditional macros to remove options help
265             messages from optionsTable when a port is not configured, added
266             support for the PIc16 port in the ports table, when executing
267             the compiler with no port specified on command line, a default
268             port is selected with the new macro DEFAULT_PORT which is
269             defined in port.h, in setDefaultOptions() linkOptions is removed
270             from initialization assignment, since now it is a set,
271             parseCmdLine uses setParseWithComma for linkOptions, in
272             linkEdit() linkOptions are accessed with new function indexSet()
273             which returns the i'th item of a set variable. See SDCCset.c, in
274             linkEdit() when calling buildCmdLine(), added linkOptions as
275             last argument. Now users can pass arguments to gplink via the
276             -Wl option, main() uses pic16glue() to glue up pic16 programs
277         * src/SDCCpeeph.c: various changes to support pic16
278         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
279             return the i'th item of the set
280         * src/SDCCset.h: added function prototype for indexSet()
281         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
282         * src/clean.mk: added pic16 in CLEANALLPORTS variable
283         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
284             added macro DEFAULT_PORT
285         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
286         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
287             generated
288         * src/pic16/glue.c: commented out some error producing lines
289         * src/pic16/main.c: __config directives are commented out to stop
290             gpasm complaining and test the linkage with gplink, _linkCmd and
291             _asmCmd changed to be more gplink and gpasm friendly
292         * src/pic16/peeph.def: peep rule 3 is commented out, since it
293             produced an error when parsed, peep rule 12 is added to utilize
294             movff, but it is commented out since the pCode does not support
295             yet a command with 2 address arguments
296
297 2003-05-18    <johan@balder>
298
299         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
300         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
301 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
302
303         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
304   Added feature to script commands from file.
305
306 2003-05-14  Bernhard Held <bernhard@bernhardheld.de>
307
308         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
309         * src/SDCCutil.c: include ctype.h for win32
310
311 2003-05-13  Bernhard Held <bernhard@bernhardheld.de>
312
313         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
314
315 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
316
317         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
318   Fixed so you can set breakpoints prior to run, run does not stop
319   on entry now.  Add tbreak.  Other enhancements and fixes for use
320   with ddd.
321
322 2003-05-12  Borut Razem <borut.razem@siol.net>
323
324         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
325
326 2003-05-11  Borut Razem <borut.razem@siol.net>
327
328         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
329         the path of bin directory, so that PATH is the only env. variable, which has to be set
330         in case of standard installation.
331         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
332         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
333         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
334
335 2003-05-04  Bernhard Held <bernhard@bernhardheld.de>
336
337         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
338         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
339         temp files are in the port dir; clean the gen/test directory when
340         generating new test.c
341         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
342         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
343         * support/regression/tests/zeropad.c: added
344
345 2003-05-09    <johan@balder>
346
347         * src/SDCCglue.c: fixed bug #597940
348
349 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
350
351         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
352   cache sfr, optimize next,step, fix off by one sourceline,
353   support ddd list function.
354         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
355
356 2003-05-04  Bernhard Held <bernhard@bernhardheld.de>
357
358         * support/regression/HTMLgen.py: added compare_s2f()
359         * support/regression/Makefile: redo 1.27
360         * support/regression/generate-cases.py: redo 1.5
361
362 2003-04-30  Bernhard Held <bernhard@bernhardheld.de>
363
364         * support/regression/tests/float.c: workaround 33 bit hex constant
365         * support/regression/tests/simplefloat.c: fix division for host
366
367 2003-04-29  Scott Dattalo  <scott@dattalo.com>
368
369         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
370         that tame's the PIC's over-aggressive optimizer.
371
372 2003-04-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
373
374          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
375          support for MSVC.
376          
377 2003-04-29  Kevin Vigor <kevin@vigor.nu>
378
379         Initial support for DS80C400. "Hello world" runs on TINIm400
380         (with polled I/O).
381
382 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
383
384          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
385          * Some notes on ddd usage added in debugger/README
386          Martin Helmling adding more features and fixes for ddd GUI debugger.
387          Code added for nexti, stepi, up, down, and other adjustments.
388
389 2003-04-28  Scott Dattalo  <scott@DATTALO.COM>
390
391         * src/pic/pCodepeep.c non-wildcard asmops are now handled
392         * src/pic/peeph.def Added two rules to optimize carry manipulation
393         * src/pic/* removed debug printfs
394
395 2003-04-28  Bernhard Held <bernhard@bernhardheld.de>
396
397         * debugger/mcs51/cmd.c: added header newalloc.h
398
399 2003-04-26  Bernhard Held <bernhard@bernhardheld.de>
400
401         * as/Makefile: new EXEEXT
402         * as/z80/Makefile: remove trailing slash of BUILDIR
403         * as/z80/clean.mk: new EXEEXT
404         * Makefile.common.in: add to CFLAGS (and others), don't replace it
405         * support/cpp2/Makefile.in: new EXEEXT
406         * src/pic/glue.c (pic14emitRegularMap): fixed warning
407
408 2003-04-24  Bernhard Held <bernhard@bernhardheld.de>
409
410         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
411         EXEEXT was introduced to fix all related problems with targets
412         "clean", "install" and "uninstall"; a couple of further flaws
413         especially with "clean" have been fixed too
414         * as/mcs51/Makefile.in
415         * as/mcs51/clean.mk
416         * as/z80/Makefile
417         * Makefile
418         * clean.mk
419         * debugger/mcs51/Makefile.in
420         * debugger/mcs51/clean.mk
421         * link/z80/Makefile
422         * link/z80/Makefile.in
423         * link/z80/clean.mk
424         * link/Makefile
425         * packihx/Makefile.in
426         * packihx/clean.mk
427         * sim/ucsim/Makefile
428         * sim/ucsim/clean.mk
429         * sim/ucsim/avr.src/Makefile.in
430         * sim/ucsim/avr.src/clean.mk
431         * sim/ucsim/s51.src/Makefile.in
432         * sim/ucsim/s51.src/clean.mk
433         * sim/ucsim/xa.src/Makefile.in
434         * sim/ucsim/xa.src/clean.mk
435         * sim/ucsim/z80.src/Makefile.in
436         * sim/ucsim/z80.src/clean.mk
437         * sim/ucsim/main_in.mk
438         * sim/ucsim/packages_in.mk
439         * sim/ucsim/gui.src/Makefile.in
440         * sim/ucsim/gui.src/serio.src/Makefile.in
441         * sim/ucsim/gui.src/serio.src/clean.mk
442         * src/Makefile.in
443         * src/clean.mk
444         * support/cpp2/Makefile.in
445         * support/cpp2/clean.mk
446         * support/makebin/Makefile
447         * support/makebin/clean.mk
448         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
449         * doc/sdccman.lyx: --program-suffix no longer needed
450
451 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
452
453          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
454          Martin Helmling added support for ddd GUI debugger.
455          Code added to display assembly, set variables, and other commands
456          to interface to ddd.
457
458 2003-04-23  Bernhard Held <bernhard@bernhardheld.de>
459
460         * as/Makefile: fix target clean
461         * as/clean.mk: fix target clean
462         * as/z80/clean.mk: fix target clean
463
464 2003-04-22  Bernhard Held <bernhard@bernhardheld.de>
465
466         * Makefile.common.in: added @EXEEXT@
467         * configure.in: removed all mingw32 stuff
468         * configure: rebuilt from configure.in
469         * doc/sdccman.lyx: updated section "installation"
470         * support/scripts/sdcc_mingw32: adapted to configure
471         * support/scripts/sdcc_cygwin_mingw32: added
472
473 2003-04-22  Scott Dattalo  <scott@dattalo.com>
474
475         * src/pic Added object file support for the PIC port
476         * src/pic Applied patch from Craig Franklin (this started the object file support)
477         * src/regression Updated the PIC regression tests for object files
478
479 2003-04-20  Borut Razem <borut.razem@siol.net>
480
481         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
482           lklex.c: In function `getfid':
483           lklex.c:203: warning: array subscript has type `char'
484         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
485           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
486         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
487           stack handling macros
488
489 2003-04-19  Borut Razem <borut.razem@siol.net>
490
491         * "handling space characters in file path" task:
492         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
493         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
494         * support/Util/MySystem.h: make it self-sufficient
495         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
496           src/z80/main.c, sdcc/as/mcs51/lklex.c:
497           handling space characters in file path
498         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
499           (it will be used by assemblers, which have their own includes, e.g. gpasm)
500         * support/Util/MySystem.c: handling space characters in executable's path
501
502 2003-04-19  Bernhard Held <bernhard@bernhardheld.de>
503
504         * as/z80/Makefile: fix permanent rebuild of z80
505         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
506         * support/regression/tests/bitfields.c: added Johan's bitfields.c
507
508 2003-04-18      Kevin Vigor <kevin@vigor.nu>
509
510         * src/SDCCopt.c: add special case optimization to replace modulo by
511           a power of two with a bitwise AND.
512
513 2003-04-18    <johan@balder>
514
515         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
516
517 2003-04-17    <johan@balder>
518
519         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
520         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
521
522 2003-04-13  Borut Razem <borut.razem@siol.net>
523
524         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
525         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
526           fixed mingw problem in adl_NORMALIZE_PATH
527
528 2003-04-12  Borut Razem <borut.razem@siol.net>
529
530         * fixed "#pragma SAVE/RESTORE can not be nested":
531         * src/SDCC.lex: reworked pragma handling functions
532         * sdcc/src/SDCCglobl.h: reworked stack handling macros
533         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
534
535 2003-04-12  Bernhard Held <bernhard@bernhardheld.de>
536
537         * src/SDCCutil.c (pathEquivalent): defined but not used
538         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
539         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
540         * configure: rebuilt from configure.in
541         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
542         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
543         * device/include/Makefile.in: replace sdcc_datadir
544         * device/lib/Makefile.in: replace sdcc_datadir
545         * Makefile.common.in: add LDFLAGS from configure
546         * packihx/Makefile.in: use LDFLAGS
547         * src/Makefile.in: use LDFLAGS
548         * support/cpp2/Makefile.in: add LDFLAGS from configure
549         * support/makebin/Makefile: use LDFLAGS
550         * .version: bumped version number to 2.3.5
551
552 2003-04-12  Borut Razem <borut.razem@siol.net>
553
554         * completed "different paths" task:
555         * src/SDCCmacro.c: fixed bug in handling quotes
556         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
557         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
558
559 2003-04-12  Bernhard Held <bernhard@bernhardheld.de>
560
561         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
562
563 2003-04-11 kevin Vigor <kevin@vigor.nu>
564
565         * ds390/gen.c ds390/peeph.def: fix bug 706781
566
567 2003-04-11  Borut Razem <borut.razem@siol.net>
568
569         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
570
571 2003-04-10  Scott Dattalo  <scott@dattalo.com>
572
573         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
574         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
575          set - this bit used to not be set...).
576         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated 
577           bad code in PIC Port
578         * src/regression/and2.c added to test bug 609268
579         * src/regression/Makefile added and2.c to regression test
580
581
582 2003-04-08    <johan@CP255758-A>
583
584         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
585         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
586         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
587
588 2003-04-07  Bernhard Held <bernhard@bernhardheld.de>
589
590         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
591         fix bug #487815
592         * support/cpp2/Makefile.in: fix bug #487815
593         * configure: rebuilt from configure.in
594         * Makefile.common.in: docdir changed, new path suffixes
595         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
596         * sdcc_vc_in.h: reflect changes from sdccconf.h
597         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
598         * src/SDCCutil.h: remove BINDIR hack
599         * doc/sdccman.lyx: update new path hierarchy
600
601 2003-04-06    Paul Stoffregen <paul@pjrc.com>
602
603         * src/SDCCpeeph.c: added okToRemoveSLOC test
604
605 2003-04-06    Paul Stoffregen <paul@pjrc.com>
606
607         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
608
609 2003-04-06    Paul Stoffregen <paul@pjrc.com>
610
611         * src/SDCCpeeph.c: added labelIsReturnOnly test
612         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
613
614 2003-04-05    <johan@balder>
615
616         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
617         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
618         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
619         * src/SDCCast.c: fixed a warning
620         * src/SDCCast.h: fixed a warning
621         * src/SDCCicode.c (operandFromAst): fixed a warning
622
623 2003-04-04    <johan@balder>
624
625         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
626         * src/SDCCast.c (decorateType): fixed bug #715076
627         * src/SDCC.y: fixed bug #702907
628
629 2003-04-03    <johan@balder>
630
631         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
632         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
633         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
634         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
635         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
636
637 2003-04-03  Bernhard Held <bernhard@bernhardheld.de>
638
639         * _decdptr.c: fix return values
640         * _gptrget.c: fix return values
641         * _gptrgetc.c: fix return values
642         * _gptrput.c: fix return values
643         * _mulint.c: fix return values
644         * as/z80/Makefile: fix 'make -j' problem
645
646 2003-04-02  Bernhard Held <bernhard@bernhardheld.de>
647
648         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
649         * configure.in: big cleanup, updated to autoconf 2.5x
650         * configure: rebuilt from configure.in
651         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
652         * sdcc_vc_in.h: reflect changes from sdccconf.h
653         * doc/Makefile: fixed a flaw in "make install"
654
655 2003-04-02    <johan@balder>
656
657         * src/ds390/gen.c (genCmp): no comments
658         * src/mcs51/gen.c (genCmp): no comments
659         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
660         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
661
662 2003-04-01  Bernhard Held <bernhard@bernhardheld.de>
663
664         * support/regression/generate-cases.py: place generated file in given sub directory
665         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
666         * support/regression/Makefile: improvements for 'make -j';
667         side effect: it's simpler and faster now
668
669 2003-03-31  Borut Razem <borut.razem@siol.net>
670
671         * src/z80/main.c: link-{port} and as-{port} defined without path
672         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
673
674 2003-03-31  Bernhard Held <bernhard@bernhardheld.de>
675
676         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
677
678 2003-03-30  Borut Razem <borut.razem@siol.net>
679
680         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
681           changed type of list parameter to set
682         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
683         * src/port.h: changed type of do_assemble() parameter to set
684         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
685           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
686           definition of "cppoutfilename" macro with NULL value in preProcess()
687         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
688         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
689         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
690           replaced with set *binPathSet
691         * shash_add() deallocates the item, if allready exsists, before adding the new one
692         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
693
694 2003-03-30  Scott Dattalo  <scott@dattalo.com>
695
696         * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
697           a nested for loop bug in the PIC port
698         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
699           for loops
700
701 2003-03-29  Bernhard Held <bernhard@bernhardheld.de>
702
703         * support/Util/dbuf.h: remove C++ stuff to make it portable
704
705 2003-03-28  Borut Razem <borut.razem@siol.net>
706
707         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
708           literal strings in stringLiteral()
709         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
710         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
711           to the project
712
713 2003-03-27  Paul Stoffregen <paul@pjrc.com>
714
715         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
716
717 2003-03-26    <johan@balder>
718
719         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
720         * src/ds390/gen.c (saveRegisters): catched symbol abuse
721         * src/SDCCast.c (decorateType): fixed " -v < 3"
722
723 2003-03-23  Bernhard Held <bernhard@bernhardheld.de>
724
725         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
726         Added Lenny Story's debug infrastructure changes:
727         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
728         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
729         * src/cdbFile.c: added
730         * src/SDCCdebug.c: added
731         * src/SDCCdebug.h: added
732         * src/SDCCast.c (createFunction)
733         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
734         * src/SDCCmain.c (parseCmdLine, main)
735         * src/SDCCmem.c (redoStackOffsets)
736         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
737         * src/SDCCsymt.h
738         * src/common.h
739         * src/avr/gen.c (genAVRCode)
740         * src/ds390/gen.c (gen390Code)
741         * src/mcs51/gen.c (gen51Code) 
742         * src/pic/gen.c (genpic14Code)
743         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
744         * src/xa51/gen.c (genXA51Code)
745         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
746
747 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann@web.de>
748
749         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
750         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
751
752 2003-03-22    <johan@balder>
753
754         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
755
756 2003-03-21  Bernhard Held <bernhard@bernhardheld.de>
757
758         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
759         * doc/cdbfileformat.lyx: added, written by Lenny Story
760         * doc/Makefile: added cdbfileformat.lyx
761         * doc/clean.mk: added cdbfileformat.lyx
762
763 2003-03-20  Bernhard Held <bernhard@bernhardheld.de>
764
765         * src/mcs51/peeph.def: fix bug #705773
766
767 2003-03-20    <johan@balder>
768
769         An sfr/sbit can have an "at #" AND an initializer
770         * src/SDCCsymt.c (checkSClass): 
771         * src/SDCCmem.c (allocGlobal): 
772         * src/SDCCmem.c (allocLocal): 
773         * src/SDCCast.c (createBlock): 
774
775 2003-03-17  Bernhard Held <bernhard@bernhardheld.de>
776
777         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
778
779 2003-03-16    <johan@balder>
780
781         Undid the hackup of const and volatile, the problem is much bigger
782         * src/SDCC.y:1.65
783         * src/SDCCast.c:1.171
784         * src/SDCCglue.c:1.138
785         * src/SDCCicode.c:1.146
786         * src/SDCCsymt.c:1.150
787         * src/SDCCval.c:1.65
788
789 2003-03-15  Bernhard Held <bernhard@bernhardheld.de>
790
791         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
792         * src/ds390/gen.c (genAddrOf): fixed bug #704087
793
794 2003-03-13    <johan@balder>
795
796         Hackup const and volatile modifiers in type chains a bit:
797         * src/SDCC.y:1.63
798         * src/SDCCast.c:1.169
799         * src/SDCCglue.c:1.136
800         * src/SDCCicode.c:1.143
801         * src/SDCCsymt.c1.146
802         * src/SDCCsymt.h1.59
803         * src/SDCCval.c:1.63
804
805 2003-03-12    <johan@balder>
806
807         * src/SDCCBBlock.h: more LRH debugging junk
808         * src/SDCCcflow.h: more LRH debugging junk
809         * src/SDCCloop.c: more LRH debugging junk
810         * src/SDCC.y (struct_declaration): fixed bug #697590
811         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
812         * src/ds390/gen.c (aopForRemat): fixed bug #700031
813         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
814
815 2003-03-11 Kevin Vigor <kevin@vigor.nu>
816         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
817         test function names must now match exactly).
818         * src/SDCCcse.c: added special case in findCheaperOp to allow
819         extending a short integer. Makes less awful code for bug 700121 test case.
820
821 2003-03-11  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
822
823         * as/mcs51/lkmain.c: Added ASlink-Warning to messages 
824         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
825
826 2003-03-11 Kevin Vigor <kevin@vigor.nu>
827
828         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
829         actually called (operandsNotEqual() was called for all 
830         operandsNotEqualX tests).
831
832 2003-03-11 Kevin Vigor <kevin@vigor.nu>
833
834         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
835         with shorter literals. Fixes bug 700121.
836
837 2003-03-11    <johan@balder>
838
839         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
840
841 2003-03-11  Bernhard Held <bernhard@bernhardheld.de>
842
843         * src/SDCCloop.c (mergeRegions): an evil beast is dead
844         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
845
846 2003-03-10  Borut Razem <borut.razem@siol.net>
847
848         * src/SDCCmain.c: pipe preprocessor's output
849         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
850         * sdcc_vc_in.h: define pclose as _pclose for WIN32
851         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
852         which closes all pipes in pipeSet set
853         * src/SDCCset.c: free deleted item in function deleteSetItem()
854         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
855         moved from z80 to src subproject
856         * .version: increased version number to 2.3.4
857
858 2003-03-10  Bernhard Held <bernhard@bernhardheld.de>
859
860         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
861         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
862         * support/regression/ports/xa51/spec.mk: fix typo
863
864 2003-03-09  Bernhard Held <bernhard@bernhardheld.de>
865
866         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
867
868 2003-03-09  Borut Razem <borut.razem@siol.net>
869
870         * src/SDCCmain.c: pipe preprocessor's output
871         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
872         * sdcc_vc_in.h: define pclose as _pclose for WIN32
873         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
874         which closes all pipes in pipeSet set
875         * src/SDCCset.c: free deleted item in function deleteSetItem()
876         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
877         moved from z80 to src subproject
878
879 2003-03-09  Borut Razem <borut.razem@siol.net>
880
881         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
882         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
883         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
884         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
885         * src/SDCCglobl.h: unification of WIN32 native definitions
886
887 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann@web.de>
888
889         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
890
891 2003-03-08  Bernhard Held <bernhard@bernhardheld.de>
892
893         * src/configure.in:   check for endianess (even while cross-compiling)
894         * src/configure:      check for endianess (even while cross-compiling)
895         * src/configure_in.h: check for endianess (even while cross-compiling)
896         * src/avr/gen.c:        remove old endianess stuff
897         * src/mcs51/gen.c:      remove old endianess stuff
898         * src/ds390/gen.c:      remove old endianess stuff
899         * src/pic/gen.c:        remove old endianess stuff
900         * src/pic/genarith.c:   remove old endianess stuff
901         * src/pic/glue.c:       fix endianess check
902         * src/pic16/gen.c:      remove old endianess stuff
903         * src/pic16/genarith.c: remove old endianess stuff
904         * src/pic16/glue.c:     fix endianess check
905         * src/xa51/gen.c:       remove old endianess stuff
906         * src/z80/gen.c:        fix endianess check
907         * src/SDCCglue.c:       fix endianess check
908         * src/ds390/peeph.def: fix bug 700036
909
910 2003-03-08  Bernhard Held <bernhard@bernhardheld.de>
911
912         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
913         * src/configure: find appropriate data-types on host for SDCC's int and long
914         * src/configure.in: find appropriate data-types on host for SDCC's int and long
915         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
916         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
917
918 2003-03-07    <johan@balder>
919
920         Just a big NOOP:
921                 some minor cleanups before the big shot
922                 OP_DEFS and OP_USES now use Kevin's protection
923                 new option --nolabelopt
924
925         * src/SDCCBBlock.c:
926         * src/SDCCast.c,:
927         * src/SDCCcflow.c:
928         * src/SDCCcse.c:
929         * src/SDCCicode.c:
930         * src/SDCCicode.h:
931         * src/SDCClabel.c:
932         * src/SDCCloop.c:
933         * src/SDCCmain.c:
934         * src/ds390/ralloc.c:
935         * src/mcs51/ralloc.c:
936         * src/pic/ralloc.c:
937         * src/xa51/ralloc.c:
938         * src/z80/ralloc.c:
939
940 2003-03-06  Bernhard Held <bernhard@bernhardheld.de>
941
942         * src/pic/pcode.c (get_op): fix 64 bit warnings
943         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
944         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
945         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
946         * support/regression/tests/malloc.c: fix 64 bit warnings
947
948 2003-03-04  Bernhard Held <bernhard@bernhardheld.de>
949
950         * src/mcs51/gen.c (genMinus): fixed bug 696436
951
952 2003-03-02  Borut Razem <borut.razem@siol.net>
953
954         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
955
956 2003-02-26  Bernhard Held <bernhard@bernhardheld.de>
957
958         * configure.in: test for mkstemp
959         * sdccconf_in.h: add HAVE_MKSTEMP
960
961 2003-02-24  Bernhard Held <bernhard@bernhardheld.de>
962
963         * device/include/ctype.h: removed warning while using --stack-auto
964         * device/include/malloc.h: removed warning while using --stack-auto
965         * device/include/string.h: removed warning while using --stack-auto
966
967 2003-02-23  Borut Razem <borut.razem@siol.net>
968
969         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
970         because NDEBUG is defined (see man assert)
971         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
972
973 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann@web.de>
974
975         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
976         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
977
978 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann@web.de>
979
980         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
981         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
982
983 2003-02-18    <johan@balder>
984
985         * as/mcs51/asmain.c (asmbl): module can start with a digit
986         * as/z80/asmain.c (asmbl): module can start with a digit
987
988 2003-02-16  Bernhard Held <bernhard@bernhardheld.de>
989
990         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
991         * src/asm.c: fix pipe() for Mingw32
992
993 2003-02-15  Bernhard Held <bernhard@bernhardheld.de>
994
995         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
996         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
997         make -V work again; --c1mode reads now from stdin
998         * doc/sdccman.lyx: added --c1mode
999         * support/Util/SDCCerr.c: new messages for c1 mode
1000         * support/Util/SDCCerr.h: new messages for c1 mode
1001         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
1002
1003 2003-02-15    <johan@balder>
1004
1005         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
1006
1007 2003-02-14  Bernhard Held <bernhard@bernhardheld.de>
1008
1009         * doc/sdccman.lyx: Environment variables, -o and other minor things
1010
1011 2003-02-14    <johan@balder>
1012
1013         * src/xa51/main.c: before anyone really tries to use it :)
1014
1015         * Install doc's in share/sdcc/doc
1016         * removed some obsolete files
1017         * Do a proper make distclean and uninstall
1018         M Makefile.common.in
1019         R sdccbuild.sh
1020         M as/Makefile
1021         M device/include/Makefile.in
1022         M device/lib/Makefile.in
1023         M doc/sdccman.lyx
1024         M link/Makefile
1025         M sim/ucsim/doc/Makefile.in
1026         M src/clean.mk
1027         R src/avr/peeph.rul
1028         R src/xa51/peeph.rul
1029         M support/cpp2/Makefile.in
1030         M support/makebin/Makefile
1031
1032
1033 2003-02-13  Bernhard Held <bernhard@bernhardheld.de>
1034
1035         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
1036
1037 2003-02-10  Borut Razem <borut.razem@siol.net>
1038
1039         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
1040         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
1041         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
1042         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
1043         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
1044         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
1045         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
1046         src/z80/Makefile.bcc: Borland Makefile cleanup
1047         * as/z80/Makefile.bcc: Added Borland Makefile
1048         * support/cpp2/borland.h: Removed
1049
1050 2003-02-10  Bernhard Held <bernhard@bernhardheld.de>
1051
1052         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
1053         * src/SDCC.lex: new pragma NOIV
1054         * src/SDCCglobl.h: new pragma NOIV
1055         * src/SDCCmem.c: new pragma NOIV
1056
1057 2003-02-09  Bernhard Held <bernhard@bernhardheld.de>
1058
1059         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
1060
1061 2003-02-09  Bernhard Held <bernhard@bernhardheld.de>
1062
1063         * src/SDCCmain.c: signal handling is switched off by --debug
1064         * doc/Makefile: small fix for install; use clean.mk again
1065         * doc/clean.mk: clean *.pdf and *.html too
1066
1067 2003-02-08  Bernhard Held <bernhard@bernhardheld.de>
1068
1069         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
1070         * device/lib/printfl.c: fix a ds390 bug by making it portable
1071         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
1072         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
1073         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
1074         * debugger/mcs51/cmd.c: converted multi-line string literals
1075         * sim/ucsim/globals.cc: converted multi-line string literals
1076         * src/SDCCmain.c: introduced signal handler to remove temp files
1077         * doc/Makefile: small tweaks, implement clean
1078         * doc: removed generated files
1079
1080 2003-02-05  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1081
1082         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
1083         patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
1084         Address Record is not correctly generated for DS390."
1085
1086 2003-02-02  Borut Razem <borut.razem@siol.net>
1087
1088         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
1089         * as/mcs51/asm.h: fixed compilation with Borland C
1090         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
1091         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
1092         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
1093         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
1094         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
1095         src/z80/Makefile.bcc: delete $(LIB) only if exist
1096         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
1097
1098 2003-02-02  Bernhard Held <bernhard@bernhardheld.de>
1099
1100         * device/include/malloc.h: introduced NULL
1101         * device/include/string.h: introduced NULL
1102         * device/include/stdlib.h: introduced NULL
1103         * device/lib/_memcpy.c: removed NULL
1104         * device/lib/_strcat.c: removed NULL
1105         * device/lib/_strchr.c: removed NULL
1106         * device/lib/_strcmp.c: removed NULL
1107         * device/lib/_strcpy.c: removed NULL
1108         * device/lib/_strcspn.c: removed NULL
1109         * device/lib/_strlen.c: removed NULL
1110         * device/lib/_strncat.c: removed NULL
1111         * device/lib/_strncmp.c: removed NULL
1112         * device/lib/_strncpy.c: removed NULL
1113         * device/lib/_strpbrk.c: removed NULL
1114         * device/lib/_strrchr.c: removed NULL
1115         * device/lib/_strspn.c: removed NULL
1116         * device/lib/_strstr.c: removed NULL
1117         * device/lib/_strtok.c: removed NULL
1118         * device/lib/malloc.c: removed NULL, include own header
1119
1120 2003-02-02    <johan@balder>
1121
1122         * 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
1123         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
1124         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
1125         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
1126         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
1127         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
1128
1129 2003-02-01  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1130
1131         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
1132         area 'DATA'"
1133
1134 2003-02-01    <johan@balder>
1135
1136         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
1137
1138 2003-01-31    <johan@CP255758-A>
1139
1140         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
1141
1142 2003-01-30    <johan@balder>
1143
1144         * src/SDCCBBlock.c: automatic bug detection
1145         * src/SDCCicode.c: automatic bug detection
1146
1147 2003-01-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1148
1149         * src/SDCCglobl.h:   now --xram-size 0 works
1150         * src/SDCCmain.c:    now --xram-size 0 works
1151
1152 2003-01-29    <johan@balder>
1153
1154         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
1155
1156 2003-01-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1157
1158         * as/mcs51/aslink.h: Added options --xram-size and --code-size 
1159         * as/mcs51/lkdata.c: Added options --xram-size and --code-size 
1160         * as/mcs51/lkmain.c: Added options --xram-size and --code-size 
1161         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size 
1162         * src/SDCCglobl.h:   Added options --xram-size and --code-size 
1163         * src/SDCCmain.c:    Added options --xram-size and --code-size 
1164
1165 2003-01-28  Bernhard Held <bernhard@bernhardheld.de>
1166
1167         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
1168         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
1169
1170 2003-01-27    <johan@balder>
1171
1172         * src/SDCC.y: fixed bug #613764
1173
1174 2003-01-26    <johan@balder>
1175
1176         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
1177         * src/SDCCsymt.h: fixed bug #673374
1178         * src/SDCCglue.c: fixed bug #661910
1179         * src/SDCCast.c: fixed bug #458099 and 673374
1180
1181 2003-01-26  Bernhard Held <bernhard@bernhardheld.de>
1182
1183         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
1184         * as/mcs51/strcmpi.h: added
1185         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
1186         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
1187         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
1188         * as/mcs51/assym.c: strcmpi -> as_strcmpi
1189         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
1190         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
1191         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
1192         * as/mcs51/Makefile.aslink: new module strcmpi
1193         * as/mcs51/Makefile.asx8051: new module strcmpi
1194         * as/mcs51/Makefil.bcc: new module strcmpi
1195         * as/mcs51/Makefile.in: new module strcmpi
1196         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
1197
1198 2003-01-26    <johan@balder>
1199
1200         * src/SDCCglue.c: reverted back to 1.124
1201         * src/SDCCast.c: reverted back to 1.156
1202         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
1203
1204 2003-01-25    <johan@balder>
1205
1206         * src/SDCCglue.c: A better fix for bug #661910
1207         * src/SDCCast.c: A better fix for bug #661910
1208         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
1209
1210 2003-01-24  Bernhard Held <bernhard@bernhardheld.de>
1211
1212         * src/Makefile.in: remove spawn.o
1213         * src/SDCCmain.c: remove spawn.h
1214         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
1215         * src/spawn.c: removed
1216         * src/spawn.h: removed
1217         * support/regression/ports/ds390/spec.mk: link with -r
1218
1219 2003-01-24    <johan@CP255758-A>
1220
1221         * src/ds390/gen.c (aopOp): fixed bug #667458
1222         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
1223         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
1224         (createIvalCharPtr): an ival doesn't always have a storage class anymore
1225
1226 2003-01-24  Bernhard Held <bernhard@bernhardheld.de>
1227
1228         * src/mcs51/peeph.def: better assembler identation by Frieder
1229         * src/mcs51/gen.c: better assembler identation by Frieder
1230
1231 2003-01-22  Bernhard Held <bernhard@bernhardheld.de>
1232
1233         * as/z80/string.h: removed for gcc 3.2
1234         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
1235         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
1236
1237 2003-01-19  Bernhard Held <bernhard@bernhardheld.de>
1238
1239         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
1240         * src/SDCCpeeph.c (replaceRule): fix bug #663503
1241         * support/regression/Makefile: separate temp files for ports
1242         * support/regression/generate-cases.py: separate temp files for ports
1243         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
1244         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
1245
1246 2003-01-19  Bernhard Held <bernhard@bernhardheld.de>
1247
1248         * moved tinitalk to device/examples/ds390
1249
1250 2003-01-14  Bernhard Held <bernhard@bernhardheld.de>
1251
1252         * as/mcs51/lkmem.c: rflag is for DS390
1253         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
1254         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
1255                          (linkEdit): move mem- and map-files the same way as ihx-files
1256         * src/z80/main.c (_setDefaultOptions): removed --generic
1257         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
1258         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
1259         * src/pic/glue.c (picglue): --c1mode works again
1260         * src/pic16/glue.c (pic16glue): --c1mode works again
1261         * src/asm.c (printCLine): fix #660034
1262
1263 2003-01-13  Bernhard Held <bernhard@bernhardheld.de>
1264
1265         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
1266         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
1267         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
1268         * as/mcs51/lkmem (summary): better fix for sp problem
1269         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
1270         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
1271         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
1272                                               remove --stack-after-data
1273
1274 2003-01-12  Bernhard Held <bernhard@bernhardheld.de>
1275
1276         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
1277         * src/SDCCutil.c (join): ugly bug: missing '\0'
1278         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
1279
1280 2003-01-11  Bernhard Held <bernhard@bernhardheld.de>
1281
1282         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
1283         * src/port.h: typo
1284         * src/pic/main.c (_asmCmd): gpasm supports -o
1285         * src/z80/main.c: more general macros
1286         * device/lib/Makefile.in: remove intermediate files
1287
1288 2003-01-11  Bernhard Held <bernhard@bernhardheld.de>
1289
1290         * .version: Bumped version number to 2.3.3
1291         * src/SDCCBBlock.c: new option -o
1292         * src/SDCCglobl.h: new option -o
1293         * src/SDCCglue.c: new option -o
1294         * src/SDCCmain.c: new option -o
1295         * src/asm.c: new option -o
1296         * src/ds390/main.c: new option -o
1297         * src/pic/glue.c: new option -o
1298         * src/pic/pcode.c: new option -o
1299         * src/pic/ralloc.c: new option -o
1300         * src/pic16/glue.c: new option -o
1301         * src/pic16/pcode.c: new option -o
1302         * src/pic16/ralloc.c: new option -o
1303         * src/z80/main.c: new option -o
1304         * device/lib/Makefile.in: use -o
1305         * support/regression/ports/ds390/spec.mk: use -o
1306         * support/regression/ports/gbz80/spec.mk: use -o
1307         * support/regression/ports/mcs51/spec.mk: use -o
1308         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
1309         * support/regression/ports/z80/spec.mk: use -o
1310         * support/regression/ports/ucz80/spec.mk: use -o
1311         * support/regression/ports/xa51/spec.mk: use -o
1312         * support/regression/fwk/lib/timeout.c: fix usage string
1313
1314 2003-01-09  Bernhard Held <bernhard@bernhardheld.de>
1315         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
1316         
1317 2003-01-07    <johan@balder>
1318
1319         * src/SDCCast.c (decorateType): fixed bug #600035
1320
1321 2003-01-07  Bernhard Held <bernhard@bernhardheld.de>
1322         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
1323         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
1324         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
1325         * src/pic/pcode.c: outcommented unused variable to remove warnings
1326         * src/pic/ralloc.c: outcommented unused variable to remove warnings
1327
1328 2003-01-06    <karl@turbobit.com>
1329         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
1330    regression tests.
1331
1332 2003-01-06    <johan@balder>
1333
1334         * src/SDCCicode.c: fixed array add
1335
1336 2002-01-05  Bernhard Held <bernhard@bernhardheld.de>
1337         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
1338         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
1339
1340 2003-01-04    <johan@balder>
1341
1342         * src/SDCCval.c (getNelements): fixed the initialized array of structures
1343
1344 2002-12-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1345         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
1346
1347 2002-12-28  Bernhard Held <bernhard@bernhardheld.de>
1348         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
1349         * support/regression/tests/bug-524697.c: fit mem usage into 8032
1350
1351 2002-12-28  Bernhard Held <bernhard@bernhardheld.de>
1352         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
1353
1354 2002-12-27  Bernhard Held <bernhard@bernhardheld.de>
1355         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
1356
1357 2002-12-26  Bernhard Held <bernhard@bernhardheld.de>
1358         * src/mcs51/main.c: removed {bindir}{sep} from aslink
1359
1360 2002-12-10  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1361
1362     * in \sdcc\as\mcs51\ changed these files in order to create an
1363     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
1364     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the 
1365     following files to include the previous two files: aslink.dsp,
1366     Makefile.aslink, Makefile.bcc, and Makefile.in.
1367
1368     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
1369     .adb instead of .cdb
1370     
1371 2002-11-09  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1372
1373         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
1374         value from option --iram-size.
1375
1376 2002-09-20  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1377
1378         * \sdcc\as\mcs51\lklist.c: added boundary check before using
1379         dram[] array.
1380
1381 2002-09-18    <wiml@hhhh.org>
1382
1383         * SDCClrange.h: exposed setFromRange() and setToRange()
1384         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
1385           packRegsForAccUse() (bug 542397)
1386         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
1387           multiple times and emitting the fetch operations more than once
1388           added aopGetUsesAcc() function to allow binary operators to
1389           fetch their operands in the correct order; made genMinus() emit
1390           compact code for X = LITERAL - Y 
1391
1392 2002-09-00  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1393         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
1394         sprintf() in line 1267.
1395
1396 2002-09-08  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1397         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
1398         like ports.
1399
1400 2002-09-04  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1401         Changes to aslink (All the changes are marked with 'JCF'):
1402
1403         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
1404         summary().
1405
1406         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
1407         area BSEG.  Also moves, if possible, the DATA area down into the internal
1408         ram so more space is available.
1409
1410         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
1411         sflag.
1412
1413         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
1414         not bytes.  Function summary() which creates a memory usage summary
1415         file with extension .mem.  Reports of overlaping stack and small stack
1416         size.  If the space for the stack is less than 16 bytes aslink trows a
1417         warning.
1418         
1419         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1420         the 8051.  Option 'y' for memory summary output file.
1421
1422         Changes to sdcc (All the changes are marked with 'JCF'):
1423
1424         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1425
1426         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
1427         overlaying area for it (uses RegBankUsed[4]).
1428
1429         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
1430         bank zero as used by default.  By default aslink locates the stack
1431         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
1432         the creation of the .mem file.  Delegates the allocation of data area
1433         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
1434         the begining of the stack area to aslink.
1435
1436         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
1437         glue() in SDCCglue.c creates an area for it.
1438         
1439 2002-09-03  Borut Razem <borut.razem@siol.net>
1440         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
1441         sdcc/src/pic/glue.c:
1442         introduced atexit() handler for teporay files removal in case of
1443         errors, assertions, ...
1444
1445 2002-08-29  Borut Razem <borut.razem@siol.net>
1446         * sdcc/support/cpp2/auto-host_vc_in.h:
1447         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
1448         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
1449         Maybe there is a similar problem with BORLANDC? It should be checked!
1450
1451         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
1452         corrected improper use of assert: the assignment to clr variable was done inside the assert.
1453         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
1454         was not executed, and the compiler (cl) launched a warning:
1455         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
1456
1457 2002-08-28  Bernhard Held <bernhard@bernhardheld.de>
1458         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1459
1460 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1461         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
1462
1463         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1464           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
1465           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
1466           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1467           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
1468           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
1469           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
1470         - added Release configuration in VS projects
1471         - review of compiler an linker options
1472         - VC .exe files are generated in bin_vc directory, not to interfere
1473           with binaries generated from other projects (cygwin, mingw, bcc ...)
1474
1475         * sdcc/src/yacc.dsp: added
1476
1477         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
1478         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
1479         and insert the version number definitions from .version 
1480
1481         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
1482
1483         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
1484         added - genarate auto-host.h using auto-host_vc_in.h as template
1485
1486         * sdcc/sdcc_vc.h,
1487         removed from CVS, generated automatically
1488
1489 2002-08-25  Bernhard Held <bernhard@bernhardheld.de>
1490         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
1491
1492 2002-08-11  Borut Razem <borut.razem@siol.net>
1493         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
1494
1495 2002-08-10  Borut Razem <borut.razem@siol.net>
1496         * src/SDCCmain.c (main):
1497         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
1498         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
1499         The consequence was that some temporary files were not removed.
1500
1501         * src/SDCCglue.c:
1502         unification of code in functions tempfilename() and tempfile():
1503         function tempnam() is defined in Visual Studio 6.0 and .NET
1504
1505         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
1506
1507         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1508           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
1509         - removed compiler command line option /WX: Treats all warnings as errors
1510         - update a list of source files, included into the project
1511
1512         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1513           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
1514         changed project type to Generic Project so that can be correcly converted to VS.NET project
1515
1516         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
1517
1518         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
1519
1520         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1521
1522         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1523         added return 0 statements after assert() to make compiler happy
1524
1525         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
1526         added newline in the def file to keep MSC compiler satisfied
1527
1528         * sdcc/src/z80/gen.c:
1529         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
1530           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
1531         - solved MSC error in function aopDump()
1532
1533         * sdcc_vc.h: define PREFIX as "\\sdcc"
1534
1535 2002-07-18  Bernhard Held <bernhard@bernhardheld.de>
1536         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
1537
1538 2002-06-22  Scott Dattalo <scott@dattalo.com>
1539         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced. 
1540         - Rewrote the register banking algorithm. 
1541         - Added pCode live-range analysis to registers (for now, only non-used and 
1542         singly-used registers optimized away)
1543
1544         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
1545
1546         * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
1547         
1548 2002-05-10  Scott Dattalo <scott@dattalo.com>
1549         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1550         
1551 2002-04-22  Michael Hope  <michaelh@vroom>
1552
1553         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1554
1555         * configure.in (DD_COPT): Added include support required for gbdk.
1556
1557         * .version: Bumped version number just to increase it.
1558
1559         * src/SDCCmain.c: Added -nostdinc to the default options.
1560
1561 2002-04-15  Michael Hope  <michaelh@vroom>
1562
1563         * device/lib/z80/printf.c (sprintf): Added.
1564
1565         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1566
1567         * src/z80/peeph.def: Added transpose redundent load rule.
1568
1569         * src/z80/main.c: Added force callee saves for jaune.
1570
1571         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1572
1573         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1574
1575 2002-03-28  Johan Knol  <johan@balder>
1576
1577         * src/SDCCval.c: fixed bug #532436
1578
1579 2002-03-14  Scott Dattalo <scott@dattalo.com>
1580         * /src/port.h:
1581         Added "char *Processor" field to the port structure.
1582
1583         * /src/SDCCmain.c:
1584         Added -p option. Allows port dependent processor to be specified.
1585
1586         * all ports:
1587         Initialized the new field char *Processor field to NULL in all ports
1588
1589         * /src/pic/*:
1590         Compiler generated registers for interrupt context saving
1591         were not getting allocated.
1592                 
1593 2002-03-16  Sandeep Dutta  <sandeep@ddi.com>
1594
1595         * /src/SDCCast.c:
1596         Fixed left shift. Will promote the left side of a left shift
1597         if a) left shifting more than size of operand or b) when assigned
1598         to something size > size of left side
1599
1600 2002-03-14  Scott Dattalo <scott@dattalo.com>
1601         * src/pic/*
1602         tons of changes. Register allocation has been 
1603         rewritten. Added customization for the various PICs. Flow
1604         analysis is restructured. ...
1605
1606         * src/pic/device.h:
1607         Added
1608
1609         * src/pic/device.c:
1610         Added. device.c is a PIC port hack to accomodate variations
1611         in PIC devices.
1612
1613 2002-03-13  Michael Hope  <michaelh@vroom>
1614
1615         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
1616
1617 2002-03-04  johanknol  <johanknol@manik>
1618
1619         * /src/SDCCval.c: fixed
1620
1621         const unsigned char arr[][2] = { { 0, 1 } };
1622         t18.c:1: error: Initializer element is not constant
1623
1624 2002-03-04  bela  <bela@manik>
1625
1626         * /device/include/mcs51reg.h:
1627         ds89c420 register definition update
1628
1629 2002-03-03    <johan@FRIJA>
1630
1631         * support/Util/SDCCerr.c: did something, but don't no why anymore
1632
1633         * support/regression/tests/bug-524691.c: made it a little less shy 
1634
1635         * src/SDCCast.c (decorateType): fixed bug #524697
1636
1637         * src/SDCCast.c: made some lineno improvements
1638
1639         * src/SDCCval.c (getNelements): changed warning to error
1640
1641         * src/SDCCglue.c (printIvalArray): changed warning to error
1642
1643         * src/SDCCicode.c: fixed a warning for mingw
1644
1645         * src/SDCCast.c (decorateType): fixed the << promotion for ops
1646
1647         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1648
1649 2002-03-02  Sandeep Dutta  <sandeep@ddi.com>
1650
1651         * src/ds390/peeph.def:
1652         Added some more peephole rules
1653
1654         * src/ds390/gen.c: Various fixes & enhancements
1655
1656         * src/SDCClrange.c, src/SDCClrange.h:
1657         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1658
1659         * src/ds390/ralloc.c:
1660         various fixes & enhancements (ds390) specific
1661
1662         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
1663         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
1664         from rallocs.
1665
1666         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1667
1668 2002-03-02    <johan@FRIJA>
1669
1670         * src/SDCCast.c (decorateType): fixed bug #524708
1671
1672         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1673
1674         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1675
1676 2002-03-01  Michael Hope  <michaelh@vroom>
1677
1678         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1679
1680         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1681
1682 2002-03-01    <johan@FRIJA>
1683
1684         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1685
1686         * src/SDCCast.c (decorateType): fixed bug #524209
1687
1688         * src/SDCCval.c (valNot): fixed bug #524195
1689
1690 2002-02-26    <johan@balder>
1691
1692         * src/xa51/gen.c: fixed a warning
1693
1694         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1695
1696         * src/SDCCast.c (decorateType): fixed bug #522534
1697
1698 2002-02-23    <johan@balder>
1699
1700         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1701
1702 2002-02-22    <johan@balder>
1703
1704         * src/SDCCast.c: fixed bug #514865
1705
1706         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1707
1708 2002-02-21  Sandeep Dutta  <sandeep@ddi.com>
1709
1710         * sdcc/src/SDCCloop.c:
1711         Previous fix was not good. basic blocks that have "break" or "return" are
1712         not really partof a loop , but live ranges used in these blocks should
1713         be live thru the entire loop, so set partOfLoop but don't add them to
1714         loop region
1715
1716 2002-02-21    <johan@FRIJA>
1717
1718         * src/SDCCcse.c: fixed bug #514308
1719
1720 2002-02-20  Sandeep Dutta  <sandeep@ddi.com>
1721
1722         * src/SDCCloop.c:
1723         Fixed BUG #519583. If a conditional block ended in a return/break
1724         statement inside a loop, it was not being considered part of the loop.
1725
1726         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1727
1728 2002-02-10  Karl Bongers <karl@turbobit.com>
1729
1730         * debugger/*:
1731         Fixed up SDCDB debugger somewhat.  Updated debugger/README
1732         with lots of comments and notes.
1733
1734         * device/examples/test2.c:
1735         Fix bug, "red" variable not being initialized(compiler complained).
1736
1737         * device/examples/Makefile, examples/test3.c:
1738         Add Makefile in device/examples folder, compiles test3.c
1739         for use as a multiple module SDCDB test case.
1740
1741         * sim/ucsim/cmd.src/cmdset.cc:
1742         Took out debug printfs in ucsim "next" command.
1743
1744         * sim/ucsim/xa.src:
1745         Karl and Johan start ucsim XA support.  Most dissassembly working,
1746         about 75% emulation done(plenty of work remaining).
1747
1748         * sim/ucsim/z80.src:
1749         Add Z80 support to ucsim, add test-ucz80 regression test,
1750         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
1751         Notice z80 compiler fails on examples/test3.c/crc code.
1752
1753 2002-01-30  Sandeep Dutta  <sandeep@ddi.com>
1754
1755         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1756         Added support for --parms-in-bank1
1757
1758         * src/ds390/peeph.def:
1759         added a few more peephole optimzations
1760
1761         * src/ds390/main.c:
1762         1) added __builtin_inp & __builtin_outp used to read in data of given length
1763            from a memory mapped port
1764         2) added __builtin_memcmp
1765         3) added __builtin_swapw swap bytes of a short
1766
1767         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
1768         1) handle multiple send & receives from register bank1
1769         2) ralloc can now allocate DPTR1 to some liveRanges
1770
1771         * src/SDCCsymt.c, src/SDCCsymt.h:
1772         changes to handle multiple sends & receives
1773
1774         * src/SDCCptropt.h:
1775         added some pointer arithmetic optimization
1776
1777         * src/SDCCptropt.c:
1778         added some pointer arithmetic optimizations but not stable yet so not
1779         called from anywhere (will get this working shortly)
1780
1781         * src/SDCCopt.c: fixed for multiple sends & receives
1782
1783         * src/SDCCmain.c:
1784         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
1785         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
1786            set preprocessor defines (depending on options)
1787
1788         * src/SDCCicode.c, src/SDCCicode.h:
1789         changes made to handle multiple sends & receives
1790
1791         * src/SDCCglobl.h:
1792         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1793
1794         * src/SDCCcse.c, src/SDCCcse.h:
1795         added function findbackward def (to be used in upcoming optimization)
1796
1797         * src/SDCCcflow.c, src/SDCCcflow.h:
1798         added function returnAtEnd - to determine if a basic block terminates with
1799         a RETURN iCode
1800
1801         * src/SDCCast.c, src/SDCCast.h:
1802         added option parms-in-bank1
1803
1804         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c 
1805         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c 
1806         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
1807         adjusted for --parms-in-bank1 option
1808
1809         * device/include/string.h:
1810         donot redefine "reentrant" keyword
1811
1812         * device/include/ds80c390.h: Added some more SFRs
1813
1814 2002-01-28  Bernhard Held  <bernhard@bernhardheld.de>
1815
1816         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4 
1817
1818 2002-01-26  Bernhard Held  <bernhard@bernhardheld.de>
1819
1820         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1821
1822 2002-01-22  Bernhard Held  <bernhard@bernhardheld.de>
1823
1824         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1825
1826 2002-01-18  Paul Stoffregen  <paul@pjrc.com>
1827
1828         * Added --xram-movc option
1829
1830 2002-01-13  Bernhard Held  <bernhard@bernhardheld.de>
1831
1832         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1833
1834 2002-01-11  Johan Knol
1835
1836         * Added math lib of Jesus Calvino-Fraga
1837
1838 2002-01-08  Bernhard Held  <bernhard@bernhardheld.de>
1839
1840         * src/SDCCmain.c (processFile): fix processing of ../../src.c
1841         * support/regression/Makefile: new target test-mcs51-stack-auto
1842         * support/regression/ports/mcs51-stack-auto/spec.mk: added
1843
1844 2002-01-04  Bernhard Held  <bernhard@bernhardheld.de>
1845
1846         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1847
1848 2002-01-04  Bernhard Held  <bernhard@bernhardheld.de>
1849
1850         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1851
1852 2002-01-03  Bernhard Held  <bernhard@bernhardheld.de>
1853
1854         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1855
1856         * src/SDCCglue.h: add definition for printIvalChar()
1857
1858 2002-01-02  Bernhard Held  <bernhard@bernhardheld.de>
1859
1860         * src/SDCCast.c: fix #498138 by Johan
1861
1862         * src/SDCCglue.c: fix #498138 by Johan
1863
1864 2002-01-02  Bernhard Held  <bernhard@bernhardheld.de>
1865
1866         * support/regression/Makefile: fix clean
1867
1868         * support/regression/ports/ds390/support.c: fix transmission of last character
1869
1870 2001-12-29  Sandeep Dutta  <sandeep@ddi.com>
1871
1872         * /sdcc/src/ds390/gen.c:
1873         a) improved computing address of stack variable
1874         b) took out some #if 0 code
1875         c) improved parmBytes adjustment
1876         d) improved genPlusIncr & genMinusIncr
1877         e) genCmp could generate bad code (when left assigned to DPTR)
1878         f) Fixed bug in hasInc
1879
1880         * /sdcc/src/ds390/ralloc.c:
1881         a) packRegsForSupport could mess up live information (Fixed)
1882         b) packRegsDPTRuse could be incorrect for left & right shift
1883
1884         * /sdcc/src/mcs51/ralloc.c:
1885         packRegsForSupport could mess up the live information (Fixed)
1886
1887         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
1888
1889         * /sdcc/src/SDCCast.c:
1890         can reverse a loop even if function call is present as long
1891         as the loop control variable is local & is not passed as parameter
1892
1893 2001-12-24  Sandeep Dutta  <sandeep@ddi.com>
1894
1895         * /sdcc/ChangeLog: *** empty log message ***
1896
1897         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
1898         More builtin function additions for TININative
1899
1900         * /sdcc/src/ds390/ralloc.c:
1901         Had broken the regression testsuite
1902
1903         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
1904
1905         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
1906         Added funcattr hasStackParms will be set for reentrant functions when there
1907         are paramteres on the stack, this helps in minimizing frame pointer generation
1908         typeFromStr can handle function pointers now
1909
1910         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
1911         *** empty log message ***
1912
1913 2001-12-24  Sandeep Dutta  <sandeep@ddi.com>
1914
1915         * /src/ds390/gen.c, /src/ds390/main.c:
1916         More builtin function additions for TININative
1917
1918         * /src/ds390/ralloc.c:
1919         Had broken the regression testsuite
1920
1921         * /src/SDCCast.c: Fixed a bug in dumptree
1922
1923         * /src/SDCCsymt.c, /src/SDCCsymt.h:
1924         Added funcattr hasStackParms will be set for reentrant functions when there
1925         are paramteres on the stack, this helps in minimizing frame pointer generation
1926         typeFromStr can handle function pointers now
1927
1928         * /doc/builtins.txt, /doc/TININative.txt:
1929         *** empty log message ***
1930
1931
1932 2001-12-24  Sandeep Dutta  <sandeep@ddi.com>
1933
1934         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
1935         ALPHA version for -mTININative
1936
1937         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
1938         updated to reflect changes in the port structure
1939
1940         * /src/port.h:
1941         added function do_assemble (similar to do_link) if non-null this function
1942         will be called to do assembly (-mTININative) requires a multi command
1943         assembly
1944         added function genAssemblerEnd will be called to generate assembler Epilogue
1945
1946         * /src/SDCCsymt.c:
1947         added _JavaNative to debug info printing
1948
1949         * /src/SDCCmain.c: added option --tini-libid
1950         added port->do_assemble function (-mTININative) has a multi command assemble
1951
1952         * /src/SDCCglue.c: Disabled "constExpr" check
1953         added port->genAssemblerEnd function
1954
1955         * /src/SDCCglobl.h: Added option --tini-libid value
1956
1957         * /src/SDCCast.h:
1958         tookout optimizeCompare from the header (has no external references)
1959
1960         * /src/SDCCast.c: made one more function "static"
1961
1962 2001-12-23  Michael Hope  <michaelh@juju.net.nz>
1963
1964         * src/z80/mappings.i: Added z80asm support.
1965
1966         * src/z80/main.c: Added z80asm support on --asm=z80asm
1967
1968         * src/z80/gen.c: Fixed asm portability issues.
1969
1970         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
1971
1972         * src/SDCCglue.c (printExterns): Added global/extern split.
1973
1974 2001-12-17  Bernhard Held  <bernhard@bernhardheld.de>
1975
1976         * support/regression/Makefile: added test for mcs51 model large
1977
1978         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
1979
1980         * support/regression/ports/gbz80/spec.mk: added -mgbz80
1981
1982 2001-12-05  Michael Hope  <michaelh@juju.net.nz>
1983
1984         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
1985
1986 1904-01-06  Michael Hope  <michaelh@juju.net.nz>
1987
1988         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
1989
1990         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
1991
1992 2001-12-02  Bernhard Held  <bernhard@bernhardheld.de>
1993
1994         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
1995
1996         * support/regression/tests/simplefloat.c: Port to mcs51.
1997
1998 2001-11-25  Michael Hope  <michaelh@juju.net.nz>
1999         * support/regression/tests/bug-485362.c: Added.
2000
2001         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
2002
2003         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
2004
2005         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
2006
2007         * src/z80/gen.c (aopDump): Added a dump function.
2008
2009 2001-11-25  Bernhard Held  <bernhard@bernhardheld.de>
2010         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
2011
2012         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
2013
2014         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
2015
2016         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
2017
2018         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
2019
2020         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
2021
2022         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
2023
2024         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
2025
2026         * support/regression/ports/ds390/support.c: Use tinibios.
2027
2028         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
2029
2030 2001-11-23  Michael Hope  <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
2031
2032         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
2033         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
2034
2035         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
2036
2037         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
2038
2039 2001-11-18  Michael Hope  <michaelh@juju.net.nz>
2040
2041         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
2042
2043         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
2044         (packRegsForIYUse): Created and optimised.
2045
2046 2001-11-07  Michael Hope  <michaelh@juju.net.nz>
2047
2048         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
2049 2001-11-18  Bernhard Held  <bernhard@bernhardheld.de>
2050
2051         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
2052
2053         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
2054
2055         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
2056
2057 2001-11-07  Bernhard Held  <bernhard@bernhardheld.de>
2058
2059         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
2060
2061         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
2062
2063 2001-11-07  Bernhard Held  <bernhard@bernhardheld.de>
2064
2065         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
2066
2067         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
2068
2069         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
2070
2071 2001-11-07  Michael Hope  <michaelh@juju.net.nz>
2072
2073         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
2074         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
2075         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
2076
2077         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
2078
2079         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
2080         (genNotFloat): Added.
2081         (genUminusFloat): Added.
2082
2083         * device/lib/z80/Makefile: Added floating pt stubs.
2084
2085         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
2086
2087         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
2088
2089         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
2090
2091 2001-11-07  Bernhard Held  <bernhard@bernhardheld.de>
2092
2093         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
2094
2095         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
2096
2097         * sdcc/support/regression/Makefile: Add port ds390.
2098
2099         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
2100
2101         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
2102
2103         * sdcc/support/regression/ports/ds390/spec.mk: Added.
2104
2105         * sdcc/support/regression/ports/ds390/support.c: Added.
2106
2107         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
2108
2109         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
2110
2111         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
2112
2113 2001-11-04  Michael Hope  <michaelh@juju.net.nz>
2114
2115         * device/include/malloc.h: Added z80 and gbz80 support.
2116
2117         * device/lib/gbz80/heap.s: Added.
2118
2119         * device/lib/z80/heap.s: Added.
2120
2121         * device/lib/malloc.c: Added z80 and gbz80 support.
2122
2123         * support/regression/tests/malloc.c (testMalloc): Added.
2124
2125         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
2126
2127         * support/regression/tests/bug-478094.c: Added.
2128
2129         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
2130
2131 2001-11-04  Bernhard Held  <bernhard@bernhardheld.de>
2132
2133         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
2134
2135         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
2136
2137         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
2138
2139         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
2140
2141         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
2142
2143 2001-11-04  Michael Hope  <michaelh@juju.net.nz>
2144
2145         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
2146
2147 2001-11-03  Michael Hope  <michaelh@juju.net.nz>
2148
2149         * support/regression/tests/bug-477927.c: Added.
2150
2151         * src/z80/peeph.def: Added minor rules.
2152
2153         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
2154
2155         * src/z80/peeph.def: Added jump optimisation modification.
2156
2157 2001-11-01  Michael Hope  <michaelh@juju.net.nz>
2158
2159         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
2160
2161 2001-10-30  Michael Hope  <michaelh@juju.net.nz>
2162
2163         * support/regression/tests/funptrs.c: Added.
2164
2165 2001-10-29  Michael Hope  <michaelh@juju.net.nz>
2166
2167         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
2168
2169 2001-10-28  Michael Hope  <michaelh@juju.net.nz>
2170
2171         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
2172
2173         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
2174
2175         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
2176         (movLeft2ResultLong): Created.
2177
2178         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
2179         (joinPushes): Added.  Joins two char pushes into a word push.
2180
2181 2001-10-27  Michael Hope  <michaelh@juju.net.nz>
2182
2183         * support/cpp2/Makefile.in (install): Added creation of dest dir.
2184
2185         * support/makebin/Makefile (install): Added creation of dest dir.
2186
2187 2001-10-24 Karl Bongers <karl@turbobit.com>
2188
2189         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
2190
2191 2001-10-21  Michael Hope  <michaelh@juju.net.nz>
2192
2193         * src/z80/ralloc.c: Turned off faulty pack for one use.
2194
2195         * src/z80/peeph-gbz80.def: Removed redundent restart options.
2196
2197         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
2198
2199 2001-10-21  Bernhard Held  <bernhard@bernhardheld.de>
2200
2201         * support/regression/Makefile: Improved clean
2202
2203         * support/regression/ports/gbz80/spec.mk: Added clean
2204
2205         * support/regression/ports/host/spec.mk: Added clean
2206
2207         * support/regression/ports/z80/spec.mk: Added clean
2208
2209         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
2210
2211         * support/regression/ports/mcs51/timeout.c: little improvements
2212
2213 2001-10-17  Michael Hope  <michaelh@juju.net.nz>
2214
2215         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
2216
2217         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
2218
2219         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
2220
2221 2001-10-16  Bernhard Held  <bernhard@bernhardheld.de>
2222
2223         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
2224
2225         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
2226
2227 2001-10-13  Michael Hope  <michaelh@juju.net.nz>
2228         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
2229
2230         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
2231
2232         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
2233
2234         * src/mcs51/main.c (_linkCmd): Added bin path to command.
2235
2236         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
2237
2238         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
2239
2240         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
2241
2242         * support/regression/tests/longor.c: Added.
2243
2244 2001-10-11  Bernhard Held  <bernhard@bernhardheld.de>
2245
2246         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
2247
2248         * as/mcs51/aslink.h: define PATH_MAX
2249
2250         * as/mcs51/asm.h: define PATH_MAX
2251
2252         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
2253
2254         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
2255
2256         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
2257
2258         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
2259
2260         * src/SDCCglobl.h: define PATH_MAX
2261
2262         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
2263
2264         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
2265
2266 2001-10-11  Michael Hope  <michaelh@juju.net.nz>
2267
2268         * src/z80/gen.c (gencjneshort): Fixed
2269
2270         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
2271
2272 2001-10-09  Michael Hope  <michaelh@juju.net.nz>
2273
2274         * support/regression/tests/bug-469671.c: Added.
2275
2276         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
2277
2278 2001-10-08  Michael Hope  <michaelh@juju.net.nz>
2279
2280         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
2281
2282         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
2283
2284 2001-10-08  Bernhar Held  <bernhard@bernhardheld.de>
2285
2286         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
2287
2288         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
2289
2290         * src/device/lib/_mullong.c : removed hint: nooverlay bug
2291
2292         * src/device/lib/_divuint.c : removed hint: nooverlay bug
2293
2294         * src/device/lib/_divulong.c: removed hint: nooverlay bug
2295
2296         * src/device/lib/_moduint.c : removed hint: nooverlay bug
2297
2298         * src/device/lib/_modulong.c: removed hint: nooverlay bug
2299
2300 2001-10-07  Michael Hope  <michaelh@juju.net.nz>
2301
2302         * 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.
2303
2304         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
2305
2306         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
2307
2308 2001-10-07    <johan@FRIJA>
2309
2310         * device/lib/gets.c (gets): fixed the return value.
2311
2312 2001-10-06  Michael Hope  <michaelh@juju.net.nz>
2313         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
2314
2315         * 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.
2316
2317         * 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.
2318
2319         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
2320
2321         * src/pic/gen.c: Removed Safe_strdup.
2322
2323         * configure.in: Added option to enable libgc support.
2324
2325         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
2326         (bitVectUnion): Optimised.
2327         (bitVectIntersect): Optimised.
2328         (bitVectBitsInCommon): Optimised.
2329         (bitVectCplAnd): Optimised.
2330
2331         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
2332
2333 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2334
2335         * src/SDCCmain.c: distinguish between assembler debug and plain options
2336
2337         * src/avr/main.c:   remove standard assembler options
2338
2339         * src/ds390/main.c: remove standard assembler options
2340
2341         * src/mcs51/main.c: remove standard assembler options
2342
2343         * src/port.h: removed "PENDING" comment
2344
2345 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2346
2347         * src/device/lib/_mulint.c  : new, with assember functions
2348
2349         * src/device/lib/_mullong.c : new, with assember functions
2350
2351         * src/device/lib/_divuint.c : with assember functions
2352
2353         * src/device/lib/_divsint.c : with assember functions
2354
2355         * src/device/lib/_divulong.c: with assember functions
2356
2357         * src/device/lib/_divslong.c: with assember functions
2358
2359         * src/device/lib/_moduint.c : with assember functions
2360
2361         * src/device/lib/_modsint.c : with assember functions
2362
2363         * src/device/lib/_modulong.c: with assember functions
2364
2365         * src/device/lib/_modslong.c: with assember functions
2366
2367         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
2368
2369         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
2370
2371         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
2372                                       replaced _mululong.c and _mulslong.c by _mullong.c
2373
2374 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2375
2376         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
2377
2378 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2379
2380         * src/SDCCglue.c: test, if win32api is available for MINGW
2381
2382 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2383
2384         * src/SDCCsymt.c: no more _modifier in printTypeChain()
2385         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
2386         * support/regression/ports/gbz80/spec.mk: removed GENERIC
2387         * support/regression/ports/host/spec.mk: removed GENERIC
2388         * support/regression/ports/mcs51/spec.mk: removed GENERIC
2389         * support/regression/ports/z80/spec.mk: removed GENERIC
2390
2391 2001-10-01  Michael Hope  <michaelh@juju.net.nz>
2392
2393         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
2394
2395         * support/regression/tests/bug-467035.c: Created.
2396
2397 2001-10-01    <johan@FRIJA>
2398
2399         * src/SDCC.y: fixed bug #466586 part 1
2400
2401 2001-10-01  Johan Knol <johan.knol@iduna.nl>
2402
2403         * SDCCicode.c: z80 has no generic pointers
2404         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
2405         
2406 2001-09-30  Michael Hope  <michaelh@juju.net.nz>
2407
2408         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2409
2410 2001-09-29  Michael Hope  <michaelh@juju.net.nz>
2411
2412         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2413
2414         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2415
2416 2001-09-25  Michael Hope  <michaelh@juju.net.nz>
2417
2418         * configure.in: Fixed up so that ucsim is only configured once.
2419
2420         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2421
2422         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2423         (getPathDifference): As above.
2424
2425         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
2426
2427         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2428
2429 2001-09-23  Michael Hope  <michaelh@juju.net.nz>
2430         * .version: Updated to 2.3.1
2431
2432         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2433         Added copyright header.
2434
2435         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
2436         (assemble): Added support for macro based assembler commands.
2437         (linkEdit): Added support for macro based linker commands.
2438         (preProcess): Changed the pre-processor to use macros.
2439         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
2440         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
2441
2442         * device/lib/z80/crt0.s: Added module name for debugging.
2443
2444 2001-09-20  Michael Hope  <michaelh@juju.net.nz>
2445
2446         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2447
2448         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
2449
2450         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2451
2452         * src/Makefile.in: Added SDCCmacro and SDCCutil
2453
2454 2001-09-19  Michael Hope  <michaelh@juju.net.nz>
2455
2456         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2457
2458 2001-09-16    <johan@FRIJA>
2459
2460         * 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.
2461
2462 2001-09-15    <johan@FRIJA>
2463
2464         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2465         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2466
2467 2001-09-11    <johan@FRIJA>
2468
2469         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2470
2471 2001-09-10  Michael Hope  <michaelh@juju.net.nz>
2472
2473         * support/regression/tests/bug-460444.c: Added test case.
2474
2475         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2476         (genCast): Added justification for all of the asserts.
2477
2478 2001-09-10  Bernhard Held <bernhard@bernhardheld.de>
2479
2480         * support/regression/support.c: _xdata replaced by xdata
2481
2482         * support/regression/spec.mk: removed _generic
2483
2484 2001-09-09  Michael Hope  <michaelh@juju.net.nz>
2485
2486         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
2487
2488         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
2489         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
2490
2491         * src/z80/peeph.def: Added a rule to optimise shift then compare.
2492
2493         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
2494
2495         * support/regression/tests/bug-460010.c: Added test case.
2496
2497         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
2498
2499 2001-09-09  Bernhard Held <bernhard@bernhardheld.de>
2500
2501         * support/regression/Makefile: inter-port-clean adjusted for mcs51
2502
2503         * support/regression/testfwk.c: removed workaround for bug #436344
2504
2505         * support/regression/tests/bp.c: use less memory with mcs51
2506
2507         * support/regression/tests/bug-441448.c: use less memory
2508
2509         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
2510
2511         * support/regression/collate-results.py: typo
2512
2513 2001-09-08  Michael Hope  <michaelh@juju.net.nz>
2514
2515         * support/regression/tests/fetchoverlap.c: Added new test case.
2516
2517         * support/regression/tests/bp.c: Added new test case.
2518
2519         * support/regression/tests/bug-448984.c: Added new test case.
2520
2521         * support/regression/tests/pow2shifts.c: Added new test case.
2522
2523         * src/z80/gen.c: Turned off the noise it normally generates for the release.
2524         (genlshTwo): Fixed right shift for count > 8.
2525
2526         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2527
2528 2001-09-08    <johan@FRIJA>
2529
2530         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2531
2532 2001-09-07    <johan@FRIJA>
2533
2534         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2535
2536         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2537
2538 2001-09-06    <johan@FRIJA>
2539
2540         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
2541         * bernhard noted me at this: "() equals to (void)" (1.38)
2542
2543 2001-09-05    <johan@FRIJA>
2544
2545         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2546
2547 2001-09-04    <johan@FRIJA>
2548
2549         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2550
2551
2552 2001-09-04  Paul Stoffregen  <paul@pjrc.com>
2553
2554         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
2555
2556 2001-09-03  Michael Hope  <michaelh@juju.net.nz>
2557
2558         * link/z80/aslink.h: Fixed path for PATH_MAX
2559
2560 2001-09-02  Michael Hope  <michaelh@juju.net.nz>
2561
2562         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2563
2564         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2565
2566         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
2567
2568         * 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.
2569
2570 2001-09-01  Michael Hope  <michaelh@juju.net.nz>
2571
2572         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
2573         (genCmp): Fixed up genCmp for the GB with longs.
2574
2575         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2576
2577         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2578
2579         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2580
2581         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2582
2583 2001-08-30  Paul Stoffregen  <paul@pjrc.com>
2584
2585         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
2586
2587 2001-08-30  Michael Hope  <michaelh@juju.net.nz>
2588
2589         * 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.
2590
2591         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2592
2593 2001-08-29  Michael Hope  <michaelh@juju.net.nz>
2594
2595         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
2596
2597         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2598
2599 2001-08-30 Bernhard Held   <bernhard@bernhardheld.de>
2600
2601   * sim/ucsim/configure:    little improvement of Cygwin-detection      
2602   * sim/ucsim/configure.in: little improvement of Cygwin-detection      
2603   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
2604   * support/regression/tests/bug-221100.c: small changes for mcs51
2605   * support/regression/tests/bug-221168.c: small changes for mcs51
2606   * support/regression/tests/bug-227710.c: small changes for mcs51
2607   * support/regression/tests/staticinit.c: small changes for mcs51
2608   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
2609   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
2610   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601