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