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