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