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