1 2003-04-13 Borut Razem <borut.razem@siol.net>
3 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
4 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings
6 2003-04-12 Borut Razem <borut.razem@siol.net>
8 * fixed "#pragma SAVE/RESTORE can not be nested":
9 * src/SDCC.lex: reworked pragma handling functions
10 * sdcc/src/SDCCglobl.h: reworked stack handling macros
11 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
15 * src/SDCCutil.c (pathEquivalent): defined but not used
16 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
17 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
18 * configure: rebuilt from configure.in
19 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
20 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
21 * device/include/Makefile.in: replace sdcc_datadir
22 * device/lib/Makefile.in: replace sdcc_datadir
23 * Makefile.common.in: add LDFLAGS from configure
24 * packihx/Makefile.in: use LDFLAGS
25 * src/Makefile.in: use LDFLAGS
26 * support/cpp2/Makefile.in: add LDFLAGS from configure
27 * support/makebin/Makefile: use LDFLAGS
28 * .version: bumped version number to 2.3.5
30 2003-04-12 Borut Razem <borut.razem@siol.net>
32 * completed "different paths" task:
33 * src/SDCCmacro.c: fixed bug in handling quotes
34 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
35 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
37 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
39 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
41 2003-04-11 kevin Vigor <kevin@vigor.nu>
43 * ds390/gen.c ds390/peeph.def: fix bug 706781
45 2003-04-11 Borut Razem <borut.razem@siol.net>
47 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
49 2003-04-10 Scott Dattalo <scott@dattalo.com>
51 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
52 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
53 set - this bit used to not be set...).
54 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
56 * src/regression/and2.c added to test bug 609268
57 * src/regression/Makefile added and2.c to regression test
60 2003-04-08 <johan@CP255758-A>
62 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
63 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
64 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
66 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
68 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
70 * support/cpp2/Makefile.in: fix bug #487815
71 * configure: rebuilt from configure.in
72 * Makefile.common.in: docdir changed, new path suffixes
73 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
74 * sdcc_vc_in.h: reflect changes from sdccconf.h
75 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
76 * src/SDCCutil.h: remove BINDIR hack
77 * doc/sdccman.lyx: update new path hierarchy
79 2003-04-06 Paul Stoffregen <paul@pjrc.com>
81 * src/SDCCpeeph.c: added okToRemoveSLOC test
83 2003-04-06 Paul Stoffregen <paul@pjrc.com>
85 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
87 2003-04-06 Paul Stoffregen <paul@pjrc.com>
89 * src/SDCCpeeph.c: added labelIsReturnOnly test
90 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
92 2003-04-05 <johan@balder>
94 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
95 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
96 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
97 * src/SDCCast.c: fixed a warning
98 * src/SDCCast.h: fixed a warning
99 * src/SDCCicode.c (operandFromAst): fixed a warning
101 2003-04-04 <johan@balder>
103 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
104 * src/SDCCast.c (decorateType): fixed bug #715076
105 * src/SDCC.y: fixed bug #702907
107 2003-04-03 <johan@balder>
109 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
110 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
111 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
112 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
113 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
115 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
117 * _decdptr.c: fix return values
118 * _gptrget.c: fix return values
119 * _gptrgetc.c: fix return values
120 * _gptrput.c: fix return values
121 * _mulint.c: fix return values
122 * as/z80/Makefile: fix 'make -j' problem
124 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
126 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
127 * configure.in: big cleanup, updated to autoconf 2.5x
128 * configure: rebuilt from configure.in
129 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
130 * sdcc_vc_in.h: reflect changes from sdccconf.h
131 * doc/Makefile: fixed a flaw in "make install"
133 2003-04-02 <johan@balder>
135 * src/ds390/gen.c (genCmp): no comments
136 * src/mcs51/gen.c (genCmp): no comments
137 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
138 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
140 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
142 * support/regression/generate-cases.py: place generated file in given sub directory
143 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
144 * support/regression/Makefile: improvements for 'make -j';
145 side effect: it's simpler and faster now
147 2003-03-31 Borut Razem <borut.razem@siol.net>
149 * src/z80/main.c: link-{port} and as-{port} defined without path
150 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
152 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
154 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
156 2003-03-30 Borut Razem <borut.razem@siol.net>
158 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
159 changed type of list parameter to set
160 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
161 * src/port.h: changed type of do_assemble() parameter to set
162 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
163 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
164 definition of "cppoutfilename" macro with NULL value in preProcess()
165 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
166 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
167 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
168 replaced with set *binPathSet
169 * shash_add() deallocates the item, if allready exsists, before adding the new one
170 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
172 2003-03-30 Scott Dattalo <scott@dattalo.com>
174 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
175 a nested for loop bug in the PIC port
176 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
179 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
181 * support/Util/dbuf.h: remove C++ stuff to make it portable
183 2003-03-28 Borut Razem <borut.razem@siol.net>
185 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
186 literal strings in stringLiteral()
187 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
188 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
191 2003-03-27 Paul Stoffregen <paul@pjrc.com>
193 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
195 2003-03-26 <johan@balder>
197 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
198 * src/ds390/gen.c (saveRegisters): catched symbol abuse
199 * src/SDCCast.c (decorateType): fixed " -v < 3"
201 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
203 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
204 Added Lenny Story's debug infrastructure changes:
205 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
206 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
207 * src/cdbFile.c: added
208 * src/SDCCdebug.c: added
209 * src/SDCCdebug.h: added
210 * src/SDCCast.c (createFunction)
211 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
212 * src/SDCCmain.c (parseCmdLine, main)
213 * src/SDCCmem.c (redoStackOffsets)
214 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
217 * src/avr/gen.c (genAVRCode)
218 * src/ds390/gen.c (gen390Code)
219 * src/mcs51/gen.c (gen51Code)
220 * src/pic/gen.c (genpic14Code)
221 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
222 * src/xa51/gen.c (genXA51Code)
223 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
225 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
227 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
228 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
230 2003-03-22 <johan@balder>
232 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
234 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
236 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
237 * doc/cdbfileformat.lyx: added, written by Lenny Story
238 * doc/Makefile: added cdbfileformat.lyx
239 * doc/clean.mk: added cdbfileformat.lyx
241 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
243 * src/mcs51/peeph.def: fix bug #705773
245 2003-03-20 <johan@balder>
247 An sfr/sbit can have an "at #" AND an initializer
248 * src/SDCCsymt.c (checkSClass):
249 * src/SDCCmem.c (allocGlobal):
250 * src/SDCCmem.c (allocLocal):
251 * src/SDCCast.c (createBlock):
253 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
255 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
257 2003-03-16 <johan@balder>
259 Undid the hackup of const and volatile, the problem is much bigger
261 * src/SDCCast.c:1.171
262 * src/SDCCglue.c:1.138
263 * src/SDCCicode.c:1.146
264 * src/SDCCsymt.c:1.150
267 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
269 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
270 * src/ds390/gen.c (genAddrOf): fixed bug #704087
272 2003-03-13 <johan@balder>
274 Hackup const and volatile modifiers in type chains a bit:
276 * src/SDCCast.c:1.169
277 * src/SDCCglue.c:1.136
278 * src/SDCCicode.c:1.143
279 * src/SDCCsymt.c1.146
283 2003-03-12 <johan@balder>
285 * src/SDCCBBlock.h: more LRH debugging junk
286 * src/SDCCcflow.h: more LRH debugging junk
287 * src/SDCCloop.c: more LRH debugging junk
288 * src/SDCC.y (struct_declaration): fixed bug #697590
289 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
290 * src/ds390/gen.c (aopForRemat): fixed bug #700031
291 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
293 2003-03-11 Kevin Vigor <kevin@vigor.nu>
294 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
295 test function names must now match exactly).
296 * src/SDCCcse.c: added special case in findCheaperOp to allow
297 extending a short integer. Makes less awful code for bug 700121 test case.
299 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
301 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
302 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
304 2003-03-11 Kevin Vigor <kevin@vigor.nu>
306 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
307 actually called (operandsNotEqual() was called for all
308 operandsNotEqualX tests).
310 2003-03-11 Kevin Vigor <kevin@vigor.nu>
312 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
313 with shorter literals. Fixes bug 700121.
315 2003-03-11 <johan@balder>
317 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
319 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
321 * src/SDCCloop.c (mergeRegions): an evil beast is dead
322 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
324 2003-03-10 Borut Razem <borut.razem@siol.net>
326 * src/SDCCmain.c: pipe preprocessor's output
327 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
328 * sdcc_vc_in.h: define pclose as _pclose for WIN32
329 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
330 which closes all pipes in pipeSet set
331 * src/SDCCset.c: free deleted item in function deleteSetItem()
332 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
333 moved from z80 to src subproject
334 * .version: increased version number to 2.3.4
336 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
338 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
339 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
340 * support/regression/ports/xa51/spec.mk: fix typo
342 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
344 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
346 2003-03-09 Borut Razem <borut.razem@siol.net>
348 * src/SDCCmain.c: pipe preprocessor's output
349 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
350 * sdcc_vc_in.h: define pclose as _pclose for WIN32
351 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
352 which closes all pipes in pipeSet set
353 * src/SDCCset.c: free deleted item in function deleteSetItem()
354 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
355 moved from z80 to src subproject
357 2003-03-09 Borut Razem <borut.razem@siol.net>
359 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
360 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
361 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
362 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
363 * src/SDCCglobl.h: unification of WIN32 native definitions
365 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
367 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
369 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
371 * src/configure.in: check for endianess (even while cross-compiling)
372 * src/configure: check for endianess (even while cross-compiling)
373 * src/configure_in.h: check for endianess (even while cross-compiling)
374 * src/avr/gen.c: remove old endianess stuff
375 * src/mcs51/gen.c: remove old endianess stuff
376 * src/ds390/gen.c: remove old endianess stuff
377 * src/pic/gen.c: remove old endianess stuff
378 * src/pic/genarith.c: remove old endianess stuff
379 * src/pic/glue.c: fix endianess check
380 * src/pic16/gen.c: remove old endianess stuff
381 * src/pic16/genarith.c: remove old endianess stuff
382 * src/pic16/glue.c: fix endianess check
383 * src/xa51/gen.c: remove old endianess stuff
384 * src/z80/gen.c: fix endianess check
385 * src/SDCCglue.c: fix endianess check
386 * src/ds390/peeph.def: fix bug 700036
388 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
390 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
391 * src/configure: find appropriate data-types on host for SDCC's int and long
392 * src/configure.in: find appropriate data-types on host for SDCC's int and long
393 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
394 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
396 2003-03-07 <johan@balder>
399 some minor cleanups before the big shot
400 OP_DEFS and OP_USES now use Kevin's protection
401 new option --nolabelopt
412 * src/ds390/ralloc.c:
413 * src/mcs51/ralloc.c:
418 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
420 * src/pic/pcode.c (get_op): fix 64 bit warnings
421 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
422 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
423 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
424 * support/regression/tests/malloc.c: fix 64 bit warnings
426 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
428 * src/mcs51/gen.c (genMinus): fixed bug 696436
430 2003-03-02 Borut Razem <borut.razem@siol.net>
432 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
434 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
436 * configure.in: test for mkstemp
437 * sdccconf_in.h: add HAVE_MKSTEMP
439 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
441 * device/include/ctype.h: removed warning while using --stack-auto
442 * device/include/malloc.h: removed warning while using --stack-auto
443 * device/include/string.h: removed warning while using --stack-auto
445 2003-02-23 Borut Razem <borut.razem@siol.net>
447 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
448 because NDEBUG is defined (see man assert)
449 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
451 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
453 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
454 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
456 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
458 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
459 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
461 2003-02-18 <johan@balder>
463 * as/mcs51/asmain.c (asmbl): module can start with a digit
464 * as/z80/asmain.c (asmbl): module can start with a digit
466 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
468 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
469 * src/asm.c: fix pipe() for Mingw32
471 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
473 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
474 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
475 make -V work again; --c1mode reads now from stdin
476 * doc/sdccman.lyx: added --c1mode
477 * support/Util/SDCCerr.c: new messages for c1 mode
478 * support/Util/SDCCerr.h: new messages for c1 mode
479 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
481 2003-02-15 <johan@balder>
483 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
485 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
487 * doc/sdccman.lyx: Environment variables, -o and other minor things
489 2003-02-14 <johan@balder>
491 * src/xa51/main.c: before anyone really tries to use it :)
493 * Install doc's in share/sdcc/doc
494 * removed some obsolete files
495 * Do a proper make distclean and uninstall
499 M device/include/Makefile.in
500 M device/lib/Makefile.in
503 M sim/ucsim/doc/Makefile.in
507 M support/cpp2/Makefile.in
508 M support/makebin/Makefile
511 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
513 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
515 2003-02-10 Borut Razem <borut.razem@siol.net>
517 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
518 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
519 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
520 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
521 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
522 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
523 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
524 src/z80/Makefile.bcc: Borland Makefile cleanup
525 * as/z80/Makefile.bcc: Added Borland Makefile
526 * support/cpp2/borland.h: Removed
528 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
530 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
531 * src/SDCC.lex: new pragma NOIV
532 * src/SDCCglobl.h: new pragma NOIV
533 * src/SDCCmem.c: new pragma NOIV
535 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
537 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
539 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
541 * src/SDCCmain.c: signal handling is switched off by --debug
542 * doc/Makefile: small fix for install; use clean.mk again
543 * doc/clean.mk: clean *.pdf and *.html too
545 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
547 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
548 * device/lib/printfl.c: fix a ds390 bug by making it portable
549 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
550 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
551 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
552 * debugger/mcs51/cmd.c: converted multi-line string literals
553 * sim/ucsim/globals.cc: converted multi-line string literals
554 * src/SDCCmain.c: introduced signal handler to remove temp files
555 * doc/Makefile: small tweaks, implement clean
556 * doc: removed generated files
558 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
560 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
561 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
562 Address Record is not correctly generated for DS390."
564 2003-02-02 Borut Razem <borut.razem@siol.net>
566 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
567 * as/mcs51/asm.h: fixed compilation with Borland C
568 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
569 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
570 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
571 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
572 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
573 src/z80/Makefile.bcc: delete $(LIB) only if exist
574 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
576 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
578 * device/include/malloc.h: introduced NULL
579 * device/include/string.h: introduced NULL
580 * device/include/stdlib.h: introduced NULL
581 * device/lib/_memcpy.c: removed NULL
582 * device/lib/_strcat.c: removed NULL
583 * device/lib/_strchr.c: removed NULL
584 * device/lib/_strcmp.c: removed NULL
585 * device/lib/_strcpy.c: removed NULL
586 * device/lib/_strcspn.c: removed NULL
587 * device/lib/_strlen.c: removed NULL
588 * device/lib/_strncat.c: removed NULL
589 * device/lib/_strncmp.c: removed NULL
590 * device/lib/_strncpy.c: removed NULL
591 * device/lib/_strpbrk.c: removed NULL
592 * device/lib/_strrchr.c: removed NULL
593 * device/lib/_strspn.c: removed NULL
594 * device/lib/_strstr.c: removed NULL
595 * device/lib/_strtok.c: removed NULL
596 * device/lib/malloc.c: removed NULL, include own header
598 2003-02-02 <johan@balder>
600 * 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
601 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
602 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
603 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
604 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
605 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
607 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
609 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
612 2003-02-01 <johan@balder>
614 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
616 2003-01-31 <johan@CP255758-A>
618 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
620 2003-01-30 <johan@balder>
622 * src/SDCCBBlock.c: automatic bug detection
623 * src/SDCCicode.c: automatic bug detection
625 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
627 * src/SDCCglobl.h: now --xram-size 0 works
628 * src/SDCCmain.c: now --xram-size 0 works
630 2003-01-29 <johan@balder>
632 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
634 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
636 * as/mcs51/aslink.h: Added options --xram-size and --code-size
637 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
638 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
639 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
640 * src/SDCCglobl.h: Added options --xram-size and --code-size
641 * src/SDCCmain.c: Added options --xram-size and --code-size
643 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
645 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
646 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
648 2003-01-27 <johan@balder>
650 * src/SDCC.y: fixed bug #613764
652 2003-01-26 <johan@balder>
654 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
655 * src/SDCCsymt.h: fixed bug #673374
656 * src/SDCCglue.c: fixed bug #661910
657 * src/SDCCast.c: fixed bug #458099 and 673374
659 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
661 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
662 * as/mcs51/strcmpi.h: added
663 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
664 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
665 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
666 * as/mcs51/assym.c: strcmpi -> as_strcmpi
667 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
668 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
669 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
670 * as/mcs51/Makefile.aslink: new module strcmpi
671 * as/mcs51/Makefile.asx8051: new module strcmpi
672 * as/mcs51/Makefil.bcc: new module strcmpi
673 * as/mcs51/Makefile.in: new module strcmpi
674 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
676 2003-01-26 <johan@balder>
678 * src/SDCCglue.c: reverted back to 1.124
679 * src/SDCCast.c: reverted back to 1.156
680 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
682 2003-01-25 <johan@balder>
684 * src/SDCCglue.c: A better fix for bug #661910
685 * src/SDCCast.c: A better fix for bug #661910
686 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
688 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
690 * src/Makefile.in: remove spawn.o
691 * src/SDCCmain.c: remove spawn.h
692 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
693 * src/spawn.c: removed
694 * src/spawn.h: removed
695 * support/regression/ports/ds390/spec.mk: link with -r
697 2003-01-24 <johan@CP255758-A>
699 * src/ds390/gen.c (aopOp): fixed bug #667458
700 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
701 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
702 (createIvalCharPtr): an ival doesn't always have a storage class anymore
704 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
706 * src/mcs51/peeph.def: better assembler identation by Frieder
707 * src/mcs51/gen.c: better assembler identation by Frieder
709 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
711 * as/z80/string.h: removed for gcc 3.2
712 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
713 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
715 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
717 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
718 * src/SDCCpeeph.c (replaceRule): fix bug #663503
719 * support/regression/Makefile: separate temp files for ports
720 * support/regression/generate-cases.py: separate temp files for ports
721 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
722 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
724 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
726 * moved tinitalk to device/examples/ds390
728 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
730 * as/mcs51/lkmem.c: rflag is for DS390
731 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
732 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
733 (linkEdit): move mem- and map-files the same way as ihx-files
734 * src/z80/main.c (_setDefaultOptions): removed --generic
735 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
736 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
737 * src/pic/glue.c (picglue): --c1mode works again
738 * src/pic16/glue.c (pic16glue): --c1mode works again
739 * src/asm.c (printCLine): fix #660034
741 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
743 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
744 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
745 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
746 * as/mcs51/lkmem (summary): better fix for sp problem
747 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
748 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
749 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
750 remove --stack-after-data
752 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
754 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
755 * src/SDCCutil.c (join): ugly bug: missing '\0'
756 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
758 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
760 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
762 * src/pic/main.c (_asmCmd): gpasm supports -o
763 * src/z80/main.c: more general macros
764 * device/lib/Makefile.in: remove intermediate files
766 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
768 * .version: Bumped version number to 2.3.3
769 * src/SDCCBBlock.c: new option -o
770 * src/SDCCglobl.h: new option -o
771 * src/SDCCglue.c: new option -o
772 * src/SDCCmain.c: new option -o
773 * src/asm.c: new option -o
774 * src/ds390/main.c: new option -o
775 * src/pic/glue.c: new option -o
776 * src/pic/pcode.c: new option -o
777 * src/pic/ralloc.c: new option -o
778 * src/pic16/glue.c: new option -o
779 * src/pic16/pcode.c: new option -o
780 * src/pic16/ralloc.c: new option -o
781 * src/z80/main.c: new option -o
782 * device/lib/Makefile.in: use -o
783 * support/regression/ports/ds390/spec.mk: use -o
784 * support/regression/ports/gbz80/spec.mk: use -o
785 * support/regression/ports/mcs51/spec.mk: use -o
786 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
787 * support/regression/ports/z80/spec.mk: use -o
788 * support/regression/ports/ucz80/spec.mk: use -o
789 * support/regression/ports/xa51/spec.mk: use -o
790 * support/regression/fwk/lib/timeout.c: fix usage string
792 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
793 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
795 2003-01-07 <johan@balder>
797 * src/SDCCast.c (decorateType): fixed bug #600035
799 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
800 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
801 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
802 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
803 * src/pic/pcode.c: outcommented unused variable to remove warnings
804 * src/pic/ralloc.c: outcommented unused variable to remove warnings
806 2003-01-06 <karl@turbobit.com>
807 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
810 2003-01-06 <johan@balder>
812 * src/SDCCicode.c: fixed array add
814 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
815 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
816 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
818 2003-01-04 <johan@balder>
820 * src/SDCCval.c (getNelements): fixed the initialized array of structures
822 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
823 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
825 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
826 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
827 * support/regression/tests/bug-524697.c: fit mem usage into 8032
829 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
830 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
832 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
833 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
835 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
836 * src/mcs51/main.c: removed {bindir}{sep} from aslink
838 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
840 * in \sdcc\as\mcs51\ changed these files in order to create an
841 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
842 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
843 following files to include the previous two files: aslink.dsp,
844 Makefile.aslink, Makefile.bcc, and Makefile.in.
846 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
849 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
851 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
852 value from option --iram-size.
854 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
856 * \sdcc\as\mcs51\lklist.c: added boundary check before using
859 2002-09-18 <wiml@hhhh.org>
861 * SDCClrange.h: exposed setFromRange() and setToRange()
862 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
863 packRegsForAccUse() (bug 542397)
864 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
865 multiple times and emitting the fetch operations more than once
866 added aopGetUsesAcc() function to allow binary operators to
867 fetch their operands in the correct order; made genMinus() emit
868 compact code for X = LITERAL - Y
870 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
871 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
872 sprintf() in line 1267.
874 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
875 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
878 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
879 Changes to aslink (All the changes are marked with 'JCF'):
881 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
884 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
885 area BSEG. Also moves, if possible, the DATA area down into the internal
886 ram so more space is available.
888 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
891 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
892 not bytes. Function summary() which creates a memory usage summary
893 file with extension .mem. Reports of overlaping stack and small stack
894 size. If the space for the stack is less than 16 bytes aslink trows a
897 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
898 the 8051. Option 'y' for memory summary output file.
900 Changes to sdcc (All the changes are marked with 'JCF'):
902 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
904 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
905 overlaying area for it (uses RegBankUsed[4]).
907 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
908 bank zero as used by default. By default aslink locates the stack
909 (equivalent to --stack-after-data). Pass option 'y' to aslink for
910 the creation of the .mem file. Delegates the allocation of data area
911 to aslink (it is not longer 0x30 by default). If --stack-loc passes
912 the begining of the stack area to aslink.
914 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
915 glue() in SDCCglue.c creates an area for it.
917 2002-09-03 Borut Razem <borut.razem@siol.net>
918 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
920 introduced atexit() handler for teporay files removal in case of
921 errors, assertions, ...
923 2002-08-29 Borut Razem <borut.razem@siol.net>
924 * sdcc/support/cpp2/auto-host_vc_in.h:
925 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
926 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
927 Maybe there is a similar problem with BORLANDC? It should be checked!
929 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
930 corrected improper use of assert: the assignment to clr variable was done inside the assert.
931 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
932 was not executed, and the compiler (cl) launched a warning:
933 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
935 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
936 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
938 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
939 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
941 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
942 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
943 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
944 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
945 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
946 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
947 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
948 - added Release configuration in VS projects
949 - review of compiler an linker options
950 - VC .exe files are generated in bin_vc directory, not to interfere
951 with binaries generated from other projects (cygwin, mingw, bcc ...)
953 * sdcc/src/yacc.dsp: added
955 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
956 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
957 and insert the version number definitions from .version
959 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
961 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
962 added - genarate auto-host.h using auto-host_vc_in.h as template
965 removed from CVS, generated automatically
967 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
968 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
970 2002-08-11 Borut Razem <borut.razem@siol.net>
971 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
973 2002-08-10 Borut Razem <borut.razem@siol.net>
974 * src/SDCCmain.c (main):
975 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
976 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
977 The consequence was that some temporary files were not removed.
980 unification of code in functions tempfilename() and tempfile():
981 function tempnam() is defined in Visual Studio 6.0 and .NET
983 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
985 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
986 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
987 - removed compiler command line option /WX: Treats all warnings as errors
988 - update a list of source files, included into the project
990 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
991 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
992 changed project type to Generic Project so that can be correcly converted to VS.NET project
994 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
996 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
998 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1000 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1001 added return 0 statements after assert() to make compiler happy
1003 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
1004 added newline in the def file to keep MSC compiler satisfied
1006 * sdcc/src/z80/gen.c:
1007 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
1008 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
1009 - solved MSC error in function aopDump()
1011 * sdcc_vc.h: define PREFIX as "\\sdcc"
1013 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
1014 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
1016 2002-06-22 Scott Dattalo <scott@dattalo.com>
1017 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
1018 - Rewrote the register banking algorithm.
1019 - Added pCode live-range analysis to registers (for now, only non-used and
1020 singly-used registers optimized away)
1022 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
1024 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
1026 2002-05-10 Scott Dattalo <scott@dattalo.com>
1027 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1029 2002-04-22 Michael Hope <michaelh@vroom>
1031 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1033 * configure.in (DD_COPT): Added include support required for gbdk.
1035 * .version: Bumped version number just to increase it.
1037 * src/SDCCmain.c: Added -nostdinc to the default options.
1039 2002-04-15 Michael Hope <michaelh@vroom>
1041 * device/lib/z80/printf.c (sprintf): Added.
1043 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1045 * src/z80/peeph.def: Added transpose redundent load rule.
1047 * src/z80/main.c: Added force callee saves for jaune.
1049 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1051 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1053 2002-03-28 Johan Knol <johan@balder>
1055 * src/SDCCval.c: fixed bug #532436
1057 2002-03-14 Scott Dattalo <scott@dattalo.com>
1059 Added "char *Processor" field to the port structure.
1062 Added -p option. Allows port dependent processor to be specified.
1065 Initialized the new field char *Processor field to NULL in all ports
1068 Compiler generated registers for interrupt context saving
1069 were not getting allocated.
1071 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
1074 Fixed left shift. Will promote the left side of a left shift
1075 if a) left shifting more than size of operand or b) when assigned
1076 to something size > size of left side
1078 2002-03-14 Scott Dattalo <scott@dattalo.com>
1080 tons of changes. Register allocation has been
1081 rewritten. Added customization for the various PICs. Flow
1082 analysis is restructured. ...
1088 Added. device.c is a PIC port hack to accomodate variations
1091 2002-03-13 Michael Hope <michaelh@vroom>
1093 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
1095 2002-03-04 johanknol <johanknol@manik>
1097 * /src/SDCCval.c: fixed
1099 const unsigned char arr[][2] = { { 0, 1 } };
1100 t18.c:1: error: Initializer element is not constant
1102 2002-03-04 bela <bela@manik>
1104 * /device/include/mcs51reg.h:
1105 ds89c420 register definition update
1107 2002-03-03 <johan@FRIJA>
1109 * support/Util/SDCCerr.c: did something, but don't no why anymore
1111 * support/regression/tests/bug-524691.c: made it a little less shy
1113 * src/SDCCast.c (decorateType): fixed bug #524697
1115 * src/SDCCast.c: made some lineno improvements
1117 * src/SDCCval.c (getNelements): changed warning to error
1119 * src/SDCCglue.c (printIvalArray): changed warning to error
1121 * src/SDCCicode.c: fixed a warning for mingw
1123 * src/SDCCast.c (decorateType): fixed the << promotion for ops
1125 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1127 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
1129 * src/ds390/peeph.def:
1130 Added some more peephole rules
1132 * src/ds390/gen.c: Various fixes & enhancements
1134 * src/SDCClrange.c, src/SDCClrange.h:
1135 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1137 * src/ds390/ralloc.c:
1138 various fixes & enhancements (ds390) specific
1140 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
1141 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
1144 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1146 2002-03-02 <johan@FRIJA>
1148 * src/SDCCast.c (decorateType): fixed bug #524708
1150 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1152 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1154 2002-03-01 Michael Hope <michaelh@vroom>
1156 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1158 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1160 2002-03-01 <johan@FRIJA>
1162 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1164 * src/SDCCast.c (decorateType): fixed bug #524209
1166 * src/SDCCval.c (valNot): fixed bug #524195
1168 2002-02-26 <johan@balder>
1170 * src/xa51/gen.c: fixed a warning
1172 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1174 * src/SDCCast.c (decorateType): fixed bug #522534
1176 2002-02-23 <johan@balder>
1178 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1180 2002-02-22 <johan@balder>
1182 * src/SDCCast.c: fixed bug #514865
1184 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1186 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
1188 * sdcc/src/SDCCloop.c:
1189 Previous fix was not good. basic blocks that have "break" or "return" are
1190 not really partof a loop , but live ranges used in these blocks should
1191 be live thru the entire loop, so set partOfLoop but don't add them to
1194 2002-02-21 <johan@FRIJA>
1196 * src/SDCCcse.c: fixed bug #514308
1198 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
1201 Fixed BUG #519583. If a conditional block ended in a return/break
1202 statement inside a loop, it was not being considered part of the loop.
1204 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1206 2002-02-10 Karl Bongers <karl@turbobit.com>
1209 Fixed up SDCDB debugger somewhat. Updated debugger/README
1210 with lots of comments and notes.
1212 * device/examples/test2.c:
1213 Fix bug, "red" variable not being initialized(compiler complained).
1215 * device/examples/Makefile, examples/test3.c:
1216 Add Makefile in device/examples folder, compiles test3.c
1217 for use as a multiple module SDCDB test case.
1219 * sim/ucsim/cmd.src/cmdset.cc:
1220 Took out debug printfs in ucsim "next" command.
1223 Karl and Johan start ucsim XA support. Most dissassembly working,
1224 about 75% emulation done(plenty of work remaining).
1226 * sim/ucsim/z80.src:
1227 Add Z80 support to ucsim, add test-ucz80 regression test,
1228 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
1229 Notice z80 compiler fails on examples/test3.c/crc code.
1231 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
1233 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1234 Added support for --parms-in-bank1
1236 * src/ds390/peeph.def:
1237 added a few more peephole optimzations
1240 1) added __builtin_inp & __builtin_outp used to read in data of given length
1241 from a memory mapped port
1242 2) added __builtin_memcmp
1243 3) added __builtin_swapw swap bytes of a short
1245 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
1246 1) handle multiple send & receives from register bank1
1247 2) ralloc can now allocate DPTR1 to some liveRanges
1249 * src/SDCCsymt.c, src/SDCCsymt.h:
1250 changes to handle multiple sends & receives
1253 added some pointer arithmetic optimization
1256 added some pointer arithmetic optimizations but not stable yet so not
1257 called from anywhere (will get this working shortly)
1259 * src/SDCCopt.c: fixed for multiple sends & receives
1262 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
1263 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
1264 set preprocessor defines (depending on options)
1266 * src/SDCCicode.c, src/SDCCicode.h:
1267 changes made to handle multiple sends & receives
1270 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1272 * src/SDCCcse.c, src/SDCCcse.h:
1273 added function findbackward def (to be used in upcoming optimization)
1275 * src/SDCCcflow.c, src/SDCCcflow.h:
1276 added function returnAtEnd - to determine if a basic block terminates with
1279 * src/SDCCast.c, src/SDCCast.h:
1280 added option parms-in-bank1
1282 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
1283 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
1284 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
1285 adjusted for --parms-in-bank1 option
1287 * device/include/string.h:
1288 donot redefine "reentrant" keyword
1290 * device/include/ds80c390.h: Added some more SFRs
1292 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
1294 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
1296 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
1298 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1300 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
1302 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1304 2002-01-18 Paul Stoffregen <paul@pjrc.com>
1306 * Added --xram-movc option
1308 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
1310 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1312 2002-01-11 Johan Knol
1314 * Added math lib of Jesus Calvino-Fraga
1316 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
1318 * src/SDCCmain.c (processFile): fix processing of ../../src.c
1319 * support/regression/Makefile: new target test-mcs51-stack-auto
1320 * support/regression/ports/mcs51-stack-auto/spec.mk: added
1322 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1324 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1326 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1328 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1330 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
1332 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1334 * src/SDCCglue.h: add definition for printIvalChar()
1336 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1338 * src/SDCCast.c: fix #498138 by Johan
1340 * src/SDCCglue.c: fix #498138 by Johan
1342 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1344 * support/regression/Makefile: fix clean
1346 * support/regression/ports/ds390/support.c: fix transmission of last character
1348 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
1350 * /sdcc/src/ds390/gen.c:
1351 a) improved computing address of stack variable
1352 b) took out some #if 0 code
1353 c) improved parmBytes adjustment
1354 d) improved genPlusIncr & genMinusIncr
1355 e) genCmp could generate bad code (when left assigned to DPTR)
1356 f) Fixed bug in hasInc
1358 * /sdcc/src/ds390/ralloc.c:
1359 a) packRegsForSupport could mess up live information (Fixed)
1360 b) packRegsDPTRuse could be incorrect for left & right shift
1362 * /sdcc/src/mcs51/ralloc.c:
1363 packRegsForSupport could mess up the live information (Fixed)
1365 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
1367 * /sdcc/src/SDCCast.c:
1368 can reverse a loop even if function call is present as long
1369 as the loop control variable is local & is not passed as parameter
1371 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1373 * /sdcc/ChangeLog: *** empty log message ***
1375 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
1376 More builtin function additions for TININative
1378 * /sdcc/src/ds390/ralloc.c:
1379 Had broken the regression testsuite
1381 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
1383 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
1384 Added funcattr hasStackParms will be set for reentrant functions when there
1385 are paramteres on the stack, this helps in minimizing frame pointer generation
1386 typeFromStr can handle function pointers now
1388 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
1389 *** empty log message ***
1391 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1393 * /src/ds390/gen.c, /src/ds390/main.c:
1394 More builtin function additions for TININative
1396 * /src/ds390/ralloc.c:
1397 Had broken the regression testsuite
1399 * /src/SDCCast.c: Fixed a bug in dumptree
1401 * /src/SDCCsymt.c, /src/SDCCsymt.h:
1402 Added funcattr hasStackParms will be set for reentrant functions when there
1403 are paramteres on the stack, this helps in minimizing frame pointer generation
1404 typeFromStr can handle function pointers now
1406 * /doc/builtins.txt, /doc/TININative.txt:
1407 *** empty log message ***
1410 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1412 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
1413 ALPHA version for -mTININative
1415 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
1416 updated to reflect changes in the port structure
1419 added function do_assemble (similar to do_link) if non-null this function
1420 will be called to do assembly (-mTININative) requires a multi command
1422 added function genAssemblerEnd will be called to generate assembler Epilogue
1425 added _JavaNative to debug info printing
1427 * /src/SDCCmain.c: added option --tini-libid
1428 added port->do_assemble function (-mTININative) has a multi command assemble
1430 * /src/SDCCglue.c: Disabled "constExpr" check
1431 added port->genAssemblerEnd function
1433 * /src/SDCCglobl.h: Added option --tini-libid value
1436 tookout optimizeCompare from the header (has no external references)
1438 * /src/SDCCast.c: made one more function "static"
1440 2001-12-23 Michael Hope <michaelh@juju.net.nz>
1442 * src/z80/mappings.i: Added z80asm support.
1444 * src/z80/main.c: Added z80asm support on --asm=z80asm
1446 * src/z80/gen.c: Fixed asm portability issues.
1448 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
1450 * src/SDCCglue.c (printExterns): Added global/extern split.
1452 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
1454 * support/regression/Makefile: added test for mcs51 model large
1456 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
1458 * support/regression/ports/gbz80/spec.mk: added -mgbz80
1460 2001-12-05 Michael Hope <michaelh@juju.net.nz>
1462 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
1464 1904-01-06 Michael Hope <michaelh@juju.net.nz>
1466 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
1468 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
1470 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
1472 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
1474 * support/regression/tests/simplefloat.c: Port to mcs51.
1476 2001-11-25 Michael Hope <michaelh@juju.net.nz>
1477 * support/regression/tests/bug-485362.c: Added.
1479 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
1481 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
1483 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
1485 * src/z80/gen.c (aopDump): Added a dump function.
1487 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
1488 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
1490 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
1492 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
1494 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
1496 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
1498 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
1500 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
1502 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
1504 * support/regression/ports/ds390/support.c: Use tinibios.
1506 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
1508 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
1510 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
1511 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
1513 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
1515 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
1517 2001-11-18 Michael Hope <michaelh@juju.net.nz>
1519 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
1521 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
1522 (packRegsForIYUse): Created and optimised.
1524 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1526 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
1527 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
1529 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
1531 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
1533 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
1535 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1537 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
1539 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
1541 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1543 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
1545 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
1547 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
1549 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1551 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
1552 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
1553 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
1555 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
1557 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
1558 (genNotFloat): Added.
1559 (genUminusFloat): Added.
1561 * device/lib/z80/Makefile: Added floating pt stubs.
1563 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
1565 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
1567 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
1569 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1571 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
1573 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
1575 * sdcc/support/regression/Makefile: Add port ds390.
1577 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
1579 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
1581 * sdcc/support/regression/ports/ds390/spec.mk: Added.
1583 * sdcc/support/regression/ports/ds390/support.c: Added.
1585 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
1587 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
1589 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
1591 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1593 * device/include/malloc.h: Added z80 and gbz80 support.
1595 * device/lib/gbz80/heap.s: Added.
1597 * device/lib/z80/heap.s: Added.
1599 * device/lib/malloc.c: Added z80 and gbz80 support.
1601 * support/regression/tests/malloc.c (testMalloc): Added.
1603 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
1605 * support/regression/tests/bug-478094.c: Added.
1607 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
1609 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
1611 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
1613 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
1615 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
1617 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
1619 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
1621 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1623 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
1625 2001-11-03 Michael Hope <michaelh@juju.net.nz>
1627 * support/regression/tests/bug-477927.c: Added.
1629 * src/z80/peeph.def: Added minor rules.
1631 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
1633 * src/z80/peeph.def: Added jump optimisation modification.
1635 2001-11-01 Michael Hope <michaelh@juju.net.nz>
1637 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
1639 2001-10-30 Michael Hope <michaelh@juju.net.nz>
1641 * support/regression/tests/funptrs.c: Added.
1643 2001-10-29 Michael Hope <michaelh@juju.net.nz>
1645 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
1647 2001-10-28 Michael Hope <michaelh@juju.net.nz>
1649 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
1651 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
1653 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
1654 (movLeft2ResultLong): Created.
1656 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
1657 (joinPushes): Added. Joins two char pushes into a word push.
1659 2001-10-27 Michael Hope <michaelh@juju.net.nz>
1661 * support/cpp2/Makefile.in (install): Added creation of dest dir.
1663 * support/makebin/Makefile (install): Added creation of dest dir.
1665 2001-10-24 Karl Bongers <karl@turbobit.com>
1667 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
1669 2001-10-21 Michael Hope <michaelh@juju.net.nz>
1671 * src/z80/ralloc.c: Turned off faulty pack for one use.
1673 * src/z80/peeph-gbz80.def: Removed redundent restart options.
1675 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
1677 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
1679 * support/regression/Makefile: Improved clean
1681 * support/regression/ports/gbz80/spec.mk: Added clean
1683 * support/regression/ports/host/spec.mk: Added clean
1685 * support/regression/ports/z80/spec.mk: Added clean
1687 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
1689 * support/regression/ports/mcs51/timeout.c: little improvements
1691 2001-10-17 Michael Hope <michaelh@juju.net.nz>
1693 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
1695 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
1697 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
1699 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
1701 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
1703 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
1705 2001-10-13 Michael Hope <michaelh@juju.net.nz>
1706 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
1708 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
1710 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
1712 * src/mcs51/main.c (_linkCmd): Added bin path to command.
1714 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
1716 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
1718 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
1720 * support/regression/tests/longor.c: Added.
1722 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
1724 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
1726 * as/mcs51/aslink.h: define PATH_MAX
1728 * as/mcs51/asm.h: define PATH_MAX
1730 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
1732 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
1734 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
1736 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
1738 * src/SDCCglobl.h: define PATH_MAX
1740 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
1742 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
1744 2001-10-11 Michael Hope <michaelh@juju.net.nz>
1746 * src/z80/gen.c (gencjneshort): Fixed
1748 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
1750 2001-10-09 Michael Hope <michaelh@juju.net.nz>
1752 * support/regression/tests/bug-469671.c: Added.
1754 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
1756 2001-10-08 Michael Hope <michaelh@juju.net.nz>
1758 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
1760 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
1762 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
1764 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
1766 * src/device/lib/_mulint.c : removed hint: nooverlay bug
1768 * src/device/lib/_mullong.c : removed hint: nooverlay bug
1770 * src/device/lib/_divuint.c : removed hint: nooverlay bug
1772 * src/device/lib/_divulong.c: removed hint: nooverlay bug
1774 * src/device/lib/_moduint.c : removed hint: nooverlay bug
1776 * src/device/lib/_modulong.c: removed hint: nooverlay bug
1778 2001-10-07 Michael Hope <michaelh@juju.net.nz>
1780 * 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.
1782 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
1784 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
1786 2001-10-07 <johan@FRIJA>
1788 * device/lib/gets.c (gets): fixed the return value.
1790 2001-10-06 Michael Hope <michaelh@juju.net.nz>
1791 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
1793 * 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.
1795 * 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.
1797 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
1799 * src/pic/gen.c: Removed Safe_strdup.
1801 * configure.in: Added option to enable libgc support.
1803 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
1804 (bitVectUnion): Optimised.
1805 (bitVectIntersect): Optimised.
1806 (bitVectBitsInCommon): Optimised.
1807 (bitVectCplAnd): Optimised.
1809 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
1811 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
1813 * src/SDCCmain.c: distinguish between assembler debug and plain options
1815 * src/avr/main.c: remove standard assembler options
1817 * src/ds390/main.c: remove standard assembler options
1819 * src/mcs51/main.c: remove standard assembler options
1821 * src/port.h: removed "PENDING" comment
1823 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
1825 * src/device/lib/_mulint.c : new, with assember functions
1827 * src/device/lib/_mullong.c : new, with assember functions
1829 * src/device/lib/_divuint.c : with assember functions
1831 * src/device/lib/_divsint.c : with assember functions
1833 * src/device/lib/_divulong.c: with assember functions
1835 * src/device/lib/_divslong.c: with assember functions
1837 * src/device/lib/_moduint.c : with assember functions
1839 * src/device/lib/_modsint.c : with assember functions
1841 * src/device/lib/_modulong.c: with assember functions
1843 * src/device/lib/_modslong.c: with assember functions
1845 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
1847 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
1849 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
1850 replaced _mululong.c and _mulslong.c by _mullong.c
1852 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
1854 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
1856 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
1858 * src/SDCCglue.c: test, if win32api is available for MINGW
1860 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
1862 * src/SDCCsymt.c: no more _modifier in printTypeChain()
1863 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
1864 * support/regression/ports/gbz80/spec.mk: removed GENERIC
1865 * support/regression/ports/host/spec.mk: removed GENERIC
1866 * support/regression/ports/mcs51/spec.mk: removed GENERIC
1867 * support/regression/ports/z80/spec.mk: removed GENERIC
1869 2001-10-01 Michael Hope <michaelh@juju.net.nz>
1871 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
1873 * support/regression/tests/bug-467035.c: Created.
1875 2001-10-01 <johan@FRIJA>
1877 * src/SDCC.y: fixed bug #466586 part 1
1879 2001-10-01 Johan Knol <johan.knol@iduna.nl>
1881 * SDCCicode.c: z80 has no generic pointers
1882 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
1884 2001-09-30 Michael Hope <michaelh@juju.net.nz>
1886 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
1888 2001-09-29 Michael Hope <michaelh@juju.net.nz>
1890 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
1892 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
1894 2001-09-25 Michael Hope <michaelh@juju.net.nz>
1896 * configure.in: Fixed up so that ucsim is only configured once.
1898 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
1900 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
1901 (getPathDifference): As above.
1903 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
1905 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
1907 2001-09-23 Michael Hope <michaelh@juju.net.nz>
1908 * .version: Updated to 2.3.1
1910 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
1911 Added copyright header.
1913 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
1914 (assemble): Added support for macro based assembler commands.
1915 (linkEdit): Added support for macro based linker commands.
1916 (preProcess): Changed the pre-processor to use macros.
1917 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
1918 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
1920 * device/lib/z80/crt0.s: Added module name for debugging.
1922 2001-09-20 Michael Hope <michaelh@juju.net.nz>
1924 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
1926 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
1928 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
1930 * src/Makefile.in: Added SDCCmacro and SDCCutil
1932 2001-09-19 Michael Hope <michaelh@juju.net.nz>
1934 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
1936 2001-09-16 <johan@FRIJA>
1938 * 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.
1940 2001-09-15 <johan@FRIJA>
1942 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
1943 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
1945 2001-09-11 <johan@FRIJA>
1947 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
1949 2001-09-10 Michael Hope <michaelh@juju.net.nz>
1951 * support/regression/tests/bug-460444.c: Added test case.
1953 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
1954 (genCast): Added justification for all of the asserts.
1956 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
1958 * support/regression/support.c: _xdata replaced by xdata
1960 * support/regression/spec.mk: removed _generic
1962 2001-09-09 Michael Hope <michaelh@juju.net.nz>
1964 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
1966 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
1967 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
1969 * src/z80/peeph.def: Added a rule to optimise shift then compare.
1971 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
1973 * support/regression/tests/bug-460010.c: Added test case.
1975 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
1977 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
1979 * support/regression/Makefile: inter-port-clean adjusted for mcs51
1981 * support/regression/testfwk.c: removed workaround for bug #436344
1983 * support/regression/tests/bp.c: use less memory with mcs51
1985 * support/regression/tests/bug-441448.c: use less memory
1987 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
1989 * support/regression/collate-results.py: typo
1991 2001-09-08 Michael Hope <michaelh@juju.net.nz>
1993 * support/regression/tests/fetchoverlap.c: Added new test case.
1995 * support/regression/tests/bp.c: Added new test case.
1997 * support/regression/tests/bug-448984.c: Added new test case.
1999 * support/regression/tests/pow2shifts.c: Added new test case.
2001 * src/z80/gen.c: Turned off the noise it normally generates for the release.
2002 (genlshTwo): Fixed right shift for count > 8.
2004 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2006 2001-09-08 <johan@FRIJA>
2008 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2010 2001-09-07 <johan@FRIJA>
2012 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2014 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2016 2001-09-06 <johan@FRIJA>
2018 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
2019 * bernhard noted me at this: "() equals to (void)" (1.38)
2021 2001-09-05 <johan@FRIJA>
2023 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2025 2001-09-04 <johan@FRIJA>
2027 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2030 2001-09-04 Paul Stoffregen <paul@pjrc.com>
2032 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
2034 2001-09-03 Michael Hope <michaelh@juju.net.nz>
2036 * link/z80/aslink.h: Fixed path for PATH_MAX
2038 2001-09-02 Michael Hope <michaelh@juju.net.nz>
2040 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2042 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2044 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
2046 * 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.
2048 2001-09-01 Michael Hope <michaelh@juju.net.nz>
2050 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
2051 (genCmp): Fixed up genCmp for the GB with longs.
2053 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2055 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2057 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2059 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2061 2001-08-30 Paul Stoffregen <paul@pjrc.com>
2063 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
2065 2001-08-30 Michael Hope <michaelh@juju.net.nz>
2067 * 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.
2069 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2071 2001-08-29 Michael Hope <michaelh@juju.net.nz>
2073 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
2075 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2077 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
2079 * sim/ucsim/configure: little improvement of Cygwin-detection
2080 * sim/ucsim/configure.in: little improvement of Cygwin-detection
2081 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
2082 * support/regression/tests/bug-221100.c: small changes for mcs51
2083 * support/regression/tests/bug-221168.c: small changes for mcs51
2084 * support/regression/tests/bug-227710.c: small changes for mcs51
2085 * support/regression/tests/staticinit.c: small changes for mcs51
2086 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
2087 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
2088 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601