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