1 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
3 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
5 2003-05-21 <johan@balder>
7 * src/SDCCglue.c (printIval): fixed bug #739934
9 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
11 Applied patch from bug 737905 (renamed yylineo to mylineno):
18 * src/pic16/pcode.c: Cleaned warnings
19 * src/pic16/pcodeflow.c: Cleaned warnings
20 * src/pic16/pcoderegs.c: Cleaned warnings
22 2003-05-19 Scott Dattalo <scott@dattalo.com>
24 * src/pic16/pcode.c: Cleaned warnings
25 * src/pic16/pcodepeep.c: Cleaned warnings
26 * src/pic16/ralloc.c: Cleaned warnings
28 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
30 * doc/sdccman.lyx: fixed bug 739745
31 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
33 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
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
39 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
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
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
78 2003-05-18 <johan@balder>
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)
84 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
85 Added feature to script commands from file.
87 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
89 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
90 * src/SDCCutil.c: include ctype.h for win32
92 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
94 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
96 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
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
103 2003-05-12 Borut Razem <borut.razem@siol.net>
105 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
107 2003-05-11 Borut Razem <borut.razem@siol.net>
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
116 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
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
126 2003-05-09 <johan@balder>
128 * src/SDCCglue.c: fixed bug #597940
130 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
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.
137 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
139 * support/regression/HTMLgen.py: added compare_s2f()
140 * support/regression/Makefile: redo 1.27
141 * support/regression/generate-cases.py: redo 1.5
143 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
145 * support/regression/tests/float.c: workaround 33 bit hex constant
146 * support/regression/tests/simplefloat.c: fix division for host
148 2003-04-29 Scott Dattalo <scott@dattalo.com>
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.
153 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
155 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
158 2003-04-29 Kevin Vigor <kevin@vigor.nu>
160 Initial support for DS80C400. "Hello world" runs on TINIm400
163 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
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.
170 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
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
176 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
178 * debugger/mcs51/cmd.c: added header newalloc.h
180 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
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
189 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
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
200 * debugger/mcs51/Makefile.in
201 * debugger/mcs51/clean.mk
203 * link/z80/Makefile.in
206 * packihx/Makefile.in
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
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
232 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
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
239 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
241 * as/Makefile: fix target clean
242 * as/clean.mk: fix target clean
243 * as/z80/clean.mk: fix target clean
245 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
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
254 2003-04-22 Scott Dattalo <scott@dattalo.com>
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
260 2003-04-20 Borut Razem <borut.razem@siol.net>
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
270 2003-04-19 Borut Razem <borut.razem@siol.net>
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
283 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
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
289 2003-04-18 Kevin Vigor <kevin@vigor.nu>
291 * src/SDCCopt.c: add special case optimization to replace modulo by
292 a power of two with a bitwise AND.
294 2003-04-18 <johan@balder>
296 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
298 2003-04-17 <johan@balder>
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
303 2003-04-13 Borut Razem <borut.razem@siol.net>
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
309 2003-04-12 Borut Razem <borut.razem@siol.net>
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
316 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
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
333 2003-04-12 Borut Razem <borut.razem@siol.net>
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()
340 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
342 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
344 2003-04-11 kevin Vigor <kevin@vigor.nu>
346 * ds390/gen.c ds390/peeph.def: fix bug 706781
348 2003-04-11 Borut Razem <borut.razem@siol.net>
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
352 2003-04-10 Scott Dattalo <scott@dattalo.com>
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
359 * src/regression/and2.c added to test bug 609268
360 * src/regression/Makefile added and2.c to regression test
363 2003-04-08 <johan@CP255758-A>
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
369 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
371 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
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
382 2003-04-06 Paul Stoffregen <paul@pjrc.com>
384 * src/SDCCpeeph.c: added okToRemoveSLOC test
386 2003-04-06 Paul Stoffregen <paul@pjrc.com>
388 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
390 2003-04-06 Paul Stoffregen <paul@pjrc.com>
392 * src/SDCCpeeph.c: added labelIsReturnOnly test
393 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
395 2003-04-05 <johan@balder>
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
404 2003-04-04 <johan@balder>
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
410 2003-04-03 <johan@balder>
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
418 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
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
427 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
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"
436 2003-04-02 <johan@balder>
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
443 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
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
450 2003-03-31 Borut Razem <borut.razem@siol.net>
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
455 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
457 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
459 2003-03-30 Borut Razem <borut.razem@siol.net>
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()
475 2003-03-30 Scott Dattalo <scott@dattalo.com>
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
482 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
484 * support/Util/dbuf.h: remove C++ stuff to make it portable
486 2003-03-28 Borut Razem <borut.razem@siol.net>
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
494 2003-03-27 Paul Stoffregen <paul@pjrc.com>
496 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
498 2003-03-26 <johan@balder>
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"
504 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
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)
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;}"
528 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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
533 2003-03-22 <johan@balder>
535 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
537 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
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
544 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
546 * src/mcs51/peeph.def: fix bug #705773
548 2003-03-20 <johan@balder>
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):
556 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
558 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
560 2003-03-16 <johan@balder>
562 Undid the hackup of const and volatile, the problem is much bigger
564 * src/SDCCast.c:1.171
565 * src/SDCCglue.c:1.138
566 * src/SDCCicode.c:1.146
567 * src/SDCCsymt.c:1.150
570 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
572 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
573 * src/ds390/gen.c (genAddrOf): fixed bug #704087
575 2003-03-13 <johan@balder>
577 Hackup const and volatile modifiers in type chains a bit:
579 * src/SDCCast.c:1.169
580 * src/SDCCglue.c:1.136
581 * src/SDCCicode.c:1.143
582 * src/SDCCsymt.c1.146
586 2003-03-12 <johan@balder>
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
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.
602 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
604 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
605 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
607 2003-03-11 Kevin Vigor <kevin@vigor.nu>
609 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
610 actually called (operandsNotEqual() was called for all
611 operandsNotEqualX tests).
613 2003-03-11 Kevin Vigor <kevin@vigor.nu>
615 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
616 with shorter literals. Fixes bug 700121.
618 2003-03-11 <johan@balder>
620 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
622 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
624 * src/SDCCloop.c (mergeRegions): an evil beast is dead
625 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
627 2003-03-10 Borut Razem <borut.razem@siol.net>
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
639 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
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
645 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
647 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
649 2003-03-09 Borut Razem <borut.razem@siol.net>
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
660 2003-03-09 Borut Razem <borut.razem@siol.net>
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
668 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
670 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
672 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
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
691 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
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
699 2003-03-07 <johan@balder>
702 some minor cleanups before the big shot
703 OP_DEFS and OP_USES now use Kevin's protection
704 new option --nolabelopt
715 * src/ds390/ralloc.c:
716 * src/mcs51/ralloc.c:
721 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
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
729 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
731 * src/mcs51/gen.c (genMinus): fixed bug 696436
733 2003-03-02 Borut Razem <borut.razem@siol.net>
735 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
737 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
739 * configure.in: test for mkstemp
740 * sdccconf_in.h: add HAVE_MKSTEMP
742 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
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
748 2003-02-23 Borut Razem <borut.razem@siol.net>
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
754 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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
759 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
761 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
762 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
764 2003-02-18 <johan@balder>
766 * as/mcs51/asmain.c (asmbl): module can start with a digit
767 * as/z80/asmain.c (asmbl): module can start with a digit
769 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
771 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
772 * src/asm.c: fix pipe() for Mingw32
774 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
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
784 2003-02-15 <johan@balder>
786 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
788 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
790 * doc/sdccman.lyx: Environment variables, -o and other minor things
792 2003-02-14 <johan@balder>
794 * src/xa51/main.c: before anyone really tries to use it :)
796 * Install doc's in share/sdcc/doc
797 * removed some obsolete files
798 * Do a proper make distclean and uninstall
802 M device/include/Makefile.in
803 M device/lib/Makefile.in
806 M sim/ucsim/doc/Makefile.in
810 M support/cpp2/Makefile.in
811 M support/makebin/Makefile
814 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
816 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
818 2003-02-10 Borut Razem <borut.razem@siol.net>
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
831 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
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
838 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
840 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
842 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
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
848 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
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
861 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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."
867 2003-02-02 Borut Razem <borut.razem@siol.net>
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
879 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
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
901 2003-02-02 <johan@balder>
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)
910 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
912 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
915 2003-02-01 <johan@balder>
917 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
919 2003-01-31 <johan@CP255758-A>
921 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
923 2003-01-30 <johan@balder>
925 * src/SDCCBBlock.c: automatic bug detection
926 * src/SDCCicode.c: automatic bug detection
928 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
930 * src/SDCCglobl.h: now --xram-size 0 works
931 * src/SDCCmain.c: now --xram-size 0 works
933 2003-01-29 <johan@balder>
935 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
937 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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
946 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
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
951 2003-01-27 <johan@balder>
953 * src/SDCC.y: fixed bug #613764
955 2003-01-26 <johan@balder>
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
962 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
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
979 2003-01-26 <johan@balder>
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
985 2003-01-25 <johan@balder>
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
991 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
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
1000 2003-01-24 <johan@CP255758-A>
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
1007 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1009 * src/mcs51/peeph.def: better assembler identation by Frieder
1010 * src/mcs51/gen.c: better assembler identation by Frieder
1012 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
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
1018 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
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
1027 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
1029 * moved tinitalk to device/examples/ds390
1031 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
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
1044 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
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
1055 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
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
1061 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
1063 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
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
1069 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
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
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>
1098 2003-01-07 <johan@balder>
1100 * src/SDCCast.c (decorateType): fixed bug #600035
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
1109 2003-01-06 <karl@turbobit.com>
1110 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
1113 2003-01-06 <johan@balder>
1115 * src/SDCCicode.c: fixed array add
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
1121 2003-01-04 <johan@balder>
1123 * src/SDCCval.c (getNelements): fixed the initialized array of structures
1125 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1126 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
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
1132 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1133 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
1135 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
1136 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
1138 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
1139 * src/mcs51/main.c: removed {bindir}{sep} from aslink
1141 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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.
1149 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
1150 .adb instead of .cdb
1152 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1154 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
1155 value from option --iram-size.
1157 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1159 * \sdcc\as\mcs51\lklist.c: added boundary check before using
1162 2002-09-18 <wiml@hhhh.org>
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
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.
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
1181 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1182 Changes to aslink (All the changes are marked with 'JCF'):
1184 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
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.
1191 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
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
1200 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1201 the 8051. Option 'y' for memory summary output file.
1203 Changes to sdcc (All the changes are marked with 'JCF'):
1205 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1207 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
1208 overlaying area for it (uses RegBankUsed[4]).
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.
1217 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
1218 glue() in SDCCglue.c creates an area for it.
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, ...
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!
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
1238 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
1239 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1241 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1242 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
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 ...)
1256 * sdcc/src/yacc.dsp: added
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
1262 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
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
1268 removed from CVS, generated automatically
1270 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
1271 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
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)
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.
1283 unification of code in functions tempfilename() and tempfile():
1284 function tempnam() is defined in Visual Studio 6.0 and .NET
1286 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
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
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
1297 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
1299 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
1301 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1303 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1304 added return 0 statements after assert() to make compiler happy
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
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()
1314 * sdcc_vc.h: define PREFIX as "\\sdcc"
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
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)
1325 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
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.
1329 2002-05-10 Scott Dattalo <scott@dattalo.com>
1330 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1332 2002-04-22 Michael Hope <michaelh@vroom>
1334 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1336 * configure.in (DD_COPT): Added include support required for gbdk.
1338 * .version: Bumped version number just to increase it.
1340 * src/SDCCmain.c: Added -nostdinc to the default options.
1342 2002-04-15 Michael Hope <michaelh@vroom>
1344 * device/lib/z80/printf.c (sprintf): Added.
1346 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1348 * src/z80/peeph.def: Added transpose redundent load rule.
1350 * src/z80/main.c: Added force callee saves for jaune.
1352 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1354 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1356 2002-03-28 Johan Knol <johan@balder>
1358 * src/SDCCval.c: fixed bug #532436
1360 2002-03-14 Scott Dattalo <scott@dattalo.com>
1362 Added "char *Processor" field to the port structure.
1365 Added -p option. Allows port dependent processor to be specified.
1368 Initialized the new field char *Processor field to NULL in all ports
1371 Compiler generated registers for interrupt context saving
1372 were not getting allocated.
1374 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
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
1381 2002-03-14 Scott Dattalo <scott@dattalo.com>
1383 tons of changes. Register allocation has been
1384 rewritten. Added customization for the various PICs. Flow
1385 analysis is restructured. ...
1391 Added. device.c is a PIC port hack to accomodate variations
1394 2002-03-13 Michael Hope <michaelh@vroom>
1396 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
1398 2002-03-04 johanknol <johanknol@manik>
1400 * /src/SDCCval.c: fixed
1402 const unsigned char arr[][2] = { { 0, 1 } };
1403 t18.c:1: error: Initializer element is not constant
1405 2002-03-04 bela <bela@manik>
1407 * /device/include/mcs51reg.h:
1408 ds89c420 register definition update
1410 2002-03-03 <johan@FRIJA>
1412 * support/Util/SDCCerr.c: did something, but don't no why anymore
1414 * support/regression/tests/bug-524691.c: made it a little less shy
1416 * src/SDCCast.c (decorateType): fixed bug #524697
1418 * src/SDCCast.c: made some lineno improvements
1420 * src/SDCCval.c (getNelements): changed warning to error
1422 * src/SDCCglue.c (printIvalArray): changed warning to error
1424 * src/SDCCicode.c: fixed a warning for mingw
1426 * src/SDCCast.c (decorateType): fixed the << promotion for ops
1428 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1430 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
1432 * src/ds390/peeph.def:
1433 Added some more peephole rules
1435 * src/ds390/gen.c: Various fixes & enhancements
1437 * src/SDCClrange.c, src/SDCClrange.h:
1438 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1440 * src/ds390/ralloc.c:
1441 various fixes & enhancements (ds390) specific
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
1447 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1449 2002-03-02 <johan@FRIJA>
1451 * src/SDCCast.c (decorateType): fixed bug #524708
1453 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1455 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1457 2002-03-01 Michael Hope <michaelh@vroom>
1459 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1461 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1463 2002-03-01 <johan@FRIJA>
1465 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1467 * src/SDCCast.c (decorateType): fixed bug #524209
1469 * src/SDCCval.c (valNot): fixed bug #524195
1471 2002-02-26 <johan@balder>
1473 * src/xa51/gen.c: fixed a warning
1475 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1477 * src/SDCCast.c (decorateType): fixed bug #522534
1479 2002-02-23 <johan@balder>
1481 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1483 2002-02-22 <johan@balder>
1485 * src/SDCCast.c: fixed bug #514865
1487 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1489 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
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
1497 2002-02-21 <johan@FRIJA>
1499 * src/SDCCcse.c: fixed bug #514308
1501 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
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.
1507 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1509 2002-02-10 Karl Bongers <karl@turbobit.com>
1512 Fixed up SDCDB debugger somewhat. Updated debugger/README
1513 with lots of comments and notes.
1515 * device/examples/test2.c:
1516 Fix bug, "red" variable not being initialized(compiler complained).
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.
1522 * sim/ucsim/cmd.src/cmdset.cc:
1523 Took out debug printfs in ucsim "next" command.
1526 Karl and Johan start ucsim XA support. Most dissassembly working,
1527 about 75% emulation done(plenty of work remaining).
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.
1534 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
1536 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1537 Added support for --parms-in-bank1
1539 * src/ds390/peeph.def:
1540 added a few more peephole optimzations
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
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
1552 * src/SDCCsymt.c, src/SDCCsymt.h:
1553 changes to handle multiple sends & receives
1556 added some pointer arithmetic optimization
1559 added some pointer arithmetic optimizations but not stable yet so not
1560 called from anywhere (will get this working shortly)
1562 * src/SDCCopt.c: fixed for multiple sends & receives
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)
1569 * src/SDCCicode.c, src/SDCCicode.h:
1570 changes made to handle multiple sends & receives
1573 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1575 * src/SDCCcse.c, src/SDCCcse.h:
1576 added function findbackward def (to be used in upcoming optimization)
1578 * src/SDCCcflow.c, src/SDCCcflow.h:
1579 added function returnAtEnd - to determine if a basic block terminates with
1582 * src/SDCCast.c, src/SDCCast.h:
1583 added option parms-in-bank1
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
1590 * device/include/string.h:
1591 donot redefine "reentrant" keyword
1593 * device/include/ds80c390.h: Added some more SFRs
1595 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
1597 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
1599 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
1601 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1603 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
1605 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1607 2002-01-18 Paul Stoffregen <paul@pjrc.com>
1609 * Added --xram-movc option
1611 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
1613 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1615 2002-01-11 Johan Knol
1617 * Added math lib of Jesus Calvino-Fraga
1619 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
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
1625 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1627 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1629 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1631 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1633 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
1635 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1637 * src/SDCCglue.h: add definition for printIvalChar()
1639 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1641 * src/SDCCast.c: fix #498138 by Johan
1643 * src/SDCCglue.c: fix #498138 by Johan
1645 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1647 * support/regression/Makefile: fix clean
1649 * support/regression/ports/ds390/support.c: fix transmission of last character
1651 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
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
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
1665 * /sdcc/src/mcs51/ralloc.c:
1666 packRegsForSupport could mess up the live information (Fixed)
1668 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
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
1674 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1676 * /sdcc/ChangeLog: *** empty log message ***
1678 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
1679 More builtin function additions for TININative
1681 * /sdcc/src/ds390/ralloc.c:
1682 Had broken the regression testsuite
1684 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
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
1691 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
1692 *** empty log message ***
1694 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1696 * /src/ds390/gen.c, /src/ds390/main.c:
1697 More builtin function additions for TININative
1699 * /src/ds390/ralloc.c:
1700 Had broken the regression testsuite
1702 * /src/SDCCast.c: Fixed a bug in dumptree
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
1709 * /doc/builtins.txt, /doc/TININative.txt:
1710 *** empty log message ***
1713 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1715 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
1716 ALPHA version for -mTININative
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
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
1725 added function genAssemblerEnd will be called to generate assembler Epilogue
1728 added _JavaNative to debug info printing
1730 * /src/SDCCmain.c: added option --tini-libid
1731 added port->do_assemble function (-mTININative) has a multi command assemble
1733 * /src/SDCCglue.c: Disabled "constExpr" check
1734 added port->genAssemblerEnd function
1736 * /src/SDCCglobl.h: Added option --tini-libid value
1739 tookout optimizeCompare from the header (has no external references)
1741 * /src/SDCCast.c: made one more function "static"
1743 2001-12-23 Michael Hope <michaelh@juju.net.nz>
1745 * src/z80/mappings.i: Added z80asm support.
1747 * src/z80/main.c: Added z80asm support on --asm=z80asm
1749 * src/z80/gen.c: Fixed asm portability issues.
1751 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
1753 * src/SDCCglue.c (printExterns): Added global/extern split.
1755 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
1757 * support/regression/Makefile: added test for mcs51 model large
1759 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
1761 * support/regression/ports/gbz80/spec.mk: added -mgbz80
1763 2001-12-05 Michael Hope <michaelh@juju.net.nz>
1765 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
1767 1904-01-06 Michael Hope <michaelh@juju.net.nz>
1769 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
1771 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
1773 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
1775 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
1777 * support/regression/tests/simplefloat.c: Port to mcs51.
1779 2001-11-25 Michael Hope <michaelh@juju.net.nz>
1780 * support/regression/tests/bug-485362.c: Added.
1782 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
1784 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
1786 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
1788 * src/z80/gen.c (aopDump): Added a dump function.
1790 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
1791 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
1793 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
1795 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
1797 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
1799 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
1801 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
1803 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
1805 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
1807 * support/regression/ports/ds390/support.c: Use tinibios.
1809 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
1811 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
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.
1816 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
1818 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
1820 2001-11-18 Michael Hope <michaelh@juju.net.nz>
1822 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
1824 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
1825 (packRegsForIYUse): Created and optimised.
1827 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1829 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
1830 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
1832 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
1834 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
1836 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
1838 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1840 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
1842 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
1844 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1846 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
1848 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
1850 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
1852 2001-11-07 Michael Hope <michaelh@juju.net.nz>
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.
1858 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
1860 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
1861 (genNotFloat): Added.
1862 (genUminusFloat): Added.
1864 * device/lib/z80/Makefile: Added floating pt stubs.
1866 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
1868 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
1870 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
1872 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1874 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
1876 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
1878 * sdcc/support/regression/Makefile: Add port ds390.
1880 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
1882 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
1884 * sdcc/support/regression/ports/ds390/spec.mk: Added.
1886 * sdcc/support/regression/ports/ds390/support.c: Added.
1888 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
1890 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
1892 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
1894 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1896 * device/include/malloc.h: Added z80 and gbz80 support.
1898 * device/lib/gbz80/heap.s: Added.
1900 * device/lib/z80/heap.s: Added.
1902 * device/lib/malloc.c: Added z80 and gbz80 support.
1904 * support/regression/tests/malloc.c (testMalloc): Added.
1906 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
1908 * support/regression/tests/bug-478094.c: Added.
1910 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
1912 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
1914 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
1916 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
1918 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
1920 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
1922 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
1924 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1926 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
1928 2001-11-03 Michael Hope <michaelh@juju.net.nz>
1930 * support/regression/tests/bug-477927.c: Added.
1932 * src/z80/peeph.def: Added minor rules.
1934 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
1936 * src/z80/peeph.def: Added jump optimisation modification.
1938 2001-11-01 Michael Hope <michaelh@juju.net.nz>
1940 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
1942 2001-10-30 Michael Hope <michaelh@juju.net.nz>
1944 * support/regression/tests/funptrs.c: Added.
1946 2001-10-29 Michael Hope <michaelh@juju.net.nz>
1948 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
1950 2001-10-28 Michael Hope <michaelh@juju.net.nz>
1952 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
1954 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
1956 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
1957 (movLeft2ResultLong): Created.
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.
1962 2001-10-27 Michael Hope <michaelh@juju.net.nz>
1964 * support/cpp2/Makefile.in (install): Added creation of dest dir.
1966 * support/makebin/Makefile (install): Added creation of dest dir.
1968 2001-10-24 Karl Bongers <karl@turbobit.com>
1970 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
1972 2001-10-21 Michael Hope <michaelh@juju.net.nz>
1974 * src/z80/ralloc.c: Turned off faulty pack for one use.
1976 * src/z80/peeph-gbz80.def: Removed redundent restart options.
1978 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
1980 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
1982 * support/regression/Makefile: Improved clean
1984 * support/regression/ports/gbz80/spec.mk: Added clean
1986 * support/regression/ports/host/spec.mk: Added clean
1988 * support/regression/ports/z80/spec.mk: Added clean
1990 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
1992 * support/regression/ports/mcs51/timeout.c: little improvements
1994 2001-10-17 Michael Hope <michaelh@juju.net.nz>
1996 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
1998 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
2000 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
2002 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
2004 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
2006 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
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.
2011 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
2013 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
2015 * src/mcs51/main.c (_linkCmd): Added bin path to command.
2017 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
2019 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
2021 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
2023 * support/regression/tests/longor.c: Added.
2025 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
2027 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
2029 * as/mcs51/aslink.h: define PATH_MAX
2031 * as/mcs51/asm.h: define PATH_MAX
2033 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
2035 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
2037 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
2039 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
2041 * src/SDCCglobl.h: define PATH_MAX
2043 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
2045 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
2047 2001-10-11 Michael Hope <michaelh@juju.net.nz>
2049 * src/z80/gen.c (gencjneshort): Fixed
2051 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
2053 2001-10-09 Michael Hope <michaelh@juju.net.nz>
2055 * support/regression/tests/bug-469671.c: Added.
2057 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
2059 2001-10-08 Michael Hope <michaelh@juju.net.nz>
2061 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
2063 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
2065 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
2067 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
2069 * src/device/lib/_mulint.c : removed hint: nooverlay bug
2071 * src/device/lib/_mullong.c : removed hint: nooverlay bug
2073 * src/device/lib/_divuint.c : removed hint: nooverlay bug
2075 * src/device/lib/_divulong.c: removed hint: nooverlay bug
2077 * src/device/lib/_moduint.c : removed hint: nooverlay bug
2079 * src/device/lib/_modulong.c: removed hint: nooverlay bug
2081 2001-10-07 Michael Hope <michaelh@juju.net.nz>
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.
2085 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
2087 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
2089 2001-10-07 <johan@FRIJA>
2091 * device/lib/gets.c (gets): fixed the return value.
2093 2001-10-06 Michael Hope <michaelh@juju.net.nz>
2094 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
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.
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.
2100 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
2102 * src/pic/gen.c: Removed Safe_strdup.
2104 * configure.in: Added option to enable libgc support.
2106 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
2107 (bitVectUnion): Optimised.
2108 (bitVectIntersect): Optimised.
2109 (bitVectBitsInCommon): Optimised.
2110 (bitVectCplAnd): Optimised.
2112 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
2114 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2116 * src/SDCCmain.c: distinguish between assembler debug and plain options
2118 * src/avr/main.c: remove standard assembler options
2120 * src/ds390/main.c: remove standard assembler options
2122 * src/mcs51/main.c: remove standard assembler options
2124 * src/port.h: removed "PENDING" comment
2126 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2128 * src/device/lib/_mulint.c : new, with assember functions
2130 * src/device/lib/_mullong.c : new, with assember functions
2132 * src/device/lib/_divuint.c : with assember functions
2134 * src/device/lib/_divsint.c : with assember functions
2136 * src/device/lib/_divulong.c: with assember functions
2138 * src/device/lib/_divslong.c: with assember functions
2140 * src/device/lib/_moduint.c : with assember functions
2142 * src/device/lib/_modsint.c : with assember functions
2144 * src/device/lib/_modulong.c: with assember functions
2146 * src/device/lib/_modslong.c: with assember functions
2148 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
2150 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
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
2155 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2157 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
2159 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2161 * src/SDCCglue.c: test, if win32api is available for MINGW
2163 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
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
2172 2001-10-01 Michael Hope <michaelh@juju.net.nz>
2174 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
2176 * support/regression/tests/bug-467035.c: Created.
2178 2001-10-01 <johan@FRIJA>
2180 * src/SDCC.y: fixed bug #466586 part 1
2182 2001-10-01 Johan Knol <johan.knol@iduna.nl>
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.
2187 2001-09-30 Michael Hope <michaelh@juju.net.nz>
2189 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2191 2001-09-29 Michael Hope <michaelh@juju.net.nz>
2193 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2195 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2197 2001-09-25 Michael Hope <michaelh@juju.net.nz>
2199 * configure.in: Fixed up so that ucsim is only configured once.
2201 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2203 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2204 (getPathDifference): As above.
2206 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
2208 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2210 2001-09-23 Michael Hope <michaelh@juju.net.nz>
2211 * .version: Updated to 2.3.1
2213 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2214 Added copyright header.
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.
2223 * device/lib/z80/crt0.s: Added module name for debugging.
2225 2001-09-20 Michael Hope <michaelh@juju.net.nz>
2227 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
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.
2231 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2233 * src/Makefile.in: Added SDCCmacro and SDCCutil
2235 2001-09-19 Michael Hope <michaelh@juju.net.nz>
2237 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2239 2001-09-16 <johan@FRIJA>
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.
2243 2001-09-15 <johan@FRIJA>
2245 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2246 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2248 2001-09-11 <johan@FRIJA>
2250 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2252 2001-09-10 Michael Hope <michaelh@juju.net.nz>
2254 * support/regression/tests/bug-460444.c: Added test case.
2256 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2257 (genCast): Added justification for all of the asserts.
2259 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
2261 * support/regression/support.c: _xdata replaced by xdata
2263 * support/regression/spec.mk: removed _generic
2265 2001-09-09 Michael Hope <michaelh@juju.net.nz>
2267 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
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.
2272 * src/z80/peeph.def: Added a rule to optimise shift then compare.
2274 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
2276 * support/regression/tests/bug-460010.c: Added test case.
2278 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
2280 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
2282 * support/regression/Makefile: inter-port-clean adjusted for mcs51
2284 * support/regression/testfwk.c: removed workaround for bug #436344
2286 * support/regression/tests/bp.c: use less memory with mcs51
2288 * support/regression/tests/bug-441448.c: use less memory
2290 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
2292 * support/regression/collate-results.py: typo
2294 2001-09-08 Michael Hope <michaelh@juju.net.nz>
2296 * support/regression/tests/fetchoverlap.c: Added new test case.
2298 * support/regression/tests/bp.c: Added new test case.
2300 * support/regression/tests/bug-448984.c: Added new test case.
2302 * support/regression/tests/pow2shifts.c: Added new test case.
2304 * src/z80/gen.c: Turned off the noise it normally generates for the release.
2305 (genlshTwo): Fixed right shift for count > 8.
2307 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2309 2001-09-08 <johan@FRIJA>
2311 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2313 2001-09-07 <johan@FRIJA>
2315 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2317 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2319 2001-09-06 <johan@FRIJA>
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)
2324 2001-09-05 <johan@FRIJA>
2326 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2328 2001-09-04 <johan@FRIJA>
2330 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2333 2001-09-04 Paul Stoffregen <paul@pjrc.com>
2335 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
2337 2001-09-03 Michael Hope <michaelh@juju.net.nz>
2339 * link/z80/aslink.h: Fixed path for PATH_MAX
2341 2001-09-02 Michael Hope <michaelh@juju.net.nz>
2343 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2345 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2347 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
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.
2351 2001-09-01 Michael Hope <michaelh@juju.net.nz>
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.
2356 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2358 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2360 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2362 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2364 2001-08-30 Paul Stoffregen <paul@pjrc.com>
2366 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
2368 2001-08-30 Michael Hope <michaelh@juju.net.nz>
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.
2372 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2374 2001-08-29 Michael Hope <michaelh@juju.net.nz>
2376 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
2378 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2380 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
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