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