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