1 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
3 * as/Makefile: new EXEEXT
4 * as/z80/Makefile: remove trailing slash of BUILDIR
5 * as/z80/clean.mk: new EXEEXT
6 * Makefile.common.in: add to CFLAGS (and others), don't replace it
7 * support/cpp2/Makefile.in: new EXEEXT
9 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
11 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12 EXEEXT was introduced to fix all related problems with targets
13 "clean", "install" and "uninstall"; a couple of further flaws
14 especially with "clean" have been fixed too
15 * as/mcs51/Makefile.in
20 * debugger/mcs51/Makefile.in
21 * debugger/mcs51/clean.mk
23 * link/z80/Makefile.in
30 * sim/ucsim/avr.src/Makefile.in
31 * sim/ucsim/avr.src/clean.mk
32 * sim/ucsim/s51.src/Makefile.in
33 * sim/ucsim/s51.src/clean.mk
34 * sim/ucsim/xa.src/Makefile.in
35 * sim/ucsim/xa.src/clean.mk
36 * sim/ucsim/z80.src/Makefile.in
37 * sim/ucsim/z80.src/clean.mk
38 * sim/ucsim/main_in.mk
39 * sim/ucsim/packages_in.mk
40 * sim/ucsim/gui.src/Makefile.in
41 * sim/ucsim/gui.src/serio.src/Makefile.in
42 * sim/ucsim/gui.src/serio.src/clean.mk
45 * support/cpp2/Makefile.in
46 * support/cpp2/clean.mk
47 * support/makebin/Makefile
48 * support/makebin/clean.mk
49 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
50 * doc/sdccman.lyx: --program-suffix no longer needed
52 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
54 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
55 Martin Helmling added support for ddd GUI debugger.
56 Code added to display assembly, set variables, and other commands
59 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
61 * as/Makefile: fix target clean
62 * as/clean.mk: fix target clean
63 * as/z80/clean.mk: fix target clean
65 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
67 * Makefile.common.in: added @EXEEXT@
68 * configure.in: removed all mingw32 stuff
69 * configure: rebuilt from configure.in
70 * doc/sdccman.lyx: updated section "installation"
71 * support/scripts/sdcc_mingw32: adapted to configure
72 * support/scripts/sdcc_cygwin_mingw32: added
74 2003-04-22 Scott Dattalo <scott@dattalo.com>
76 * src/pic Added object file support for the PIC port
77 * src/pic Applied patch from Craig Franklin (this started the object file support)
78 * src/regression Updated the PIC regression tests for object files
80 2003-04-20 Borut Razem <borut.razem@siol.net>
82 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
83 lklex.c: In function `getfid':
84 lklex.c:203: warning: array subscript has type `char'
85 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
86 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
87 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
90 2003-04-19 Borut Razem <borut.razem@siol.net>
92 * "handling space characters in file path" task:
93 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
94 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
95 * support/Util/MySystem.h: make it self-sufficient
96 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
97 src/z80/main.c, sdcc/as/mcs51/lklex.c:
98 handling space characters in file path
99 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
100 (it will be used by assemblers, which have their own includes, e.g. gpasm)
101 * support/Util/MySystem.c: handling space characters in executable's path
103 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
105 * as/z80/Makefile: fix permanent rebuild of z80
106 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
107 * support/regression/tests/bitfields.c: added Johan's bitfields.c
109 2003-04-18 Kevin Vigor <kevin@vigor.nu>
111 * src/SDCCopt.c: add special case optimization to replace modulo by
112 a power of two with a bitwise AND.
114 2003-04-18 <johan@balder>
116 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
118 2003-04-17 <johan@balder>
120 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
121 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
123 2003-04-13 Borut Razem <borut.razem@siol.net>
125 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
126 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
127 fixed mingw problem in adl_NORMALIZE_PATH
129 2003-04-12 Borut Razem <borut.razem@siol.net>
131 * fixed "#pragma SAVE/RESTORE can not be nested":
132 * src/SDCC.lex: reworked pragma handling functions
133 * sdcc/src/SDCCglobl.h: reworked stack handling macros
134 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
136 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
138 * src/SDCCutil.c (pathEquivalent): defined but not used
139 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
140 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
141 * configure: rebuilt from configure.in
142 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
143 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
144 * device/include/Makefile.in: replace sdcc_datadir
145 * device/lib/Makefile.in: replace sdcc_datadir
146 * Makefile.common.in: add LDFLAGS from configure
147 * packihx/Makefile.in: use LDFLAGS
148 * src/Makefile.in: use LDFLAGS
149 * support/cpp2/Makefile.in: add LDFLAGS from configure
150 * support/makebin/Makefile: use LDFLAGS
151 * .version: bumped version number to 2.3.5
153 2003-04-12 Borut Razem <borut.razem@siol.net>
155 * completed "different paths" task:
156 * src/SDCCmacro.c: fixed bug in handling quotes
157 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
158 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
160 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
162 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
164 2003-04-11 kevin Vigor <kevin@vigor.nu>
166 * ds390/gen.c ds390/peeph.def: fix bug 706781
168 2003-04-11 Borut Razem <borut.razem@siol.net>
170 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
172 2003-04-10 Scott Dattalo <scott@dattalo.com>
174 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
175 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
176 set - this bit used to not be set...).
177 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
179 * src/regression/and2.c added to test bug 609268
180 * src/regression/Makefile added and2.c to regression test
183 2003-04-08 <johan@CP255758-A>
185 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
186 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
187 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
189 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
191 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
193 * support/cpp2/Makefile.in: fix bug #487815
194 * configure: rebuilt from configure.in
195 * Makefile.common.in: docdir changed, new path suffixes
196 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
197 * sdcc_vc_in.h: reflect changes from sdccconf.h
198 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
199 * src/SDCCutil.h: remove BINDIR hack
200 * doc/sdccman.lyx: update new path hierarchy
202 2003-04-06 Paul Stoffregen <paul@pjrc.com>
204 * src/SDCCpeeph.c: added okToRemoveSLOC test
206 2003-04-06 Paul Stoffregen <paul@pjrc.com>
208 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
210 2003-04-06 Paul Stoffregen <paul@pjrc.com>
212 * src/SDCCpeeph.c: added labelIsReturnOnly test
213 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
215 2003-04-05 <johan@balder>
217 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
218 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
219 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
220 * src/SDCCast.c: fixed a warning
221 * src/SDCCast.h: fixed a warning
222 * src/SDCCicode.c (operandFromAst): fixed a warning
224 2003-04-04 <johan@balder>
226 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
227 * src/SDCCast.c (decorateType): fixed bug #715076
228 * src/SDCC.y: fixed bug #702907
230 2003-04-03 <johan@balder>
232 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
233 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
234 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
235 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
236 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
238 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
240 * _decdptr.c: fix return values
241 * _gptrget.c: fix return values
242 * _gptrgetc.c: fix return values
243 * _gptrput.c: fix return values
244 * _mulint.c: fix return values
245 * as/z80/Makefile: fix 'make -j' problem
247 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
249 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
250 * configure.in: big cleanup, updated to autoconf 2.5x
251 * configure: rebuilt from configure.in
252 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
253 * sdcc_vc_in.h: reflect changes from sdccconf.h
254 * doc/Makefile: fixed a flaw in "make install"
256 2003-04-02 <johan@balder>
258 * src/ds390/gen.c (genCmp): no comments
259 * src/mcs51/gen.c (genCmp): no comments
260 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
261 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
263 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
265 * support/regression/generate-cases.py: place generated file in given sub directory
266 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
267 * support/regression/Makefile: improvements for 'make -j';
268 side effect: it's simpler and faster now
270 2003-03-31 Borut Razem <borut.razem@siol.net>
272 * src/z80/main.c: link-{port} and as-{port} defined without path
273 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
275 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
277 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
279 2003-03-30 Borut Razem <borut.razem@siol.net>
281 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
282 changed type of list parameter to set
283 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
284 * src/port.h: changed type of do_assemble() parameter to set
285 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
286 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
287 definition of "cppoutfilename" macro with NULL value in preProcess()
288 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
289 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
290 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
291 replaced with set *binPathSet
292 * shash_add() deallocates the item, if allready exsists, before adding the new one
293 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
295 2003-03-30 Scott Dattalo <scott@dattalo.com>
297 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
298 a nested for loop bug in the PIC port
299 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
302 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
304 * support/Util/dbuf.h: remove C++ stuff to make it portable
306 2003-03-28 Borut Razem <borut.razem@siol.net>
308 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
309 literal strings in stringLiteral()
310 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
311 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
314 2003-03-27 Paul Stoffregen <paul@pjrc.com>
316 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
318 2003-03-26 <johan@balder>
320 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
321 * src/ds390/gen.c (saveRegisters): catched symbol abuse
322 * src/SDCCast.c (decorateType): fixed " -v < 3"
324 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
326 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
327 Added Lenny Story's debug infrastructure changes:
328 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
329 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
330 * src/cdbFile.c: added
331 * src/SDCCdebug.c: added
332 * src/SDCCdebug.h: added
333 * src/SDCCast.c (createFunction)
334 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
335 * src/SDCCmain.c (parseCmdLine, main)
336 * src/SDCCmem.c (redoStackOffsets)
337 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
340 * src/avr/gen.c (genAVRCode)
341 * src/ds390/gen.c (gen390Code)
342 * src/mcs51/gen.c (gen51Code)
343 * src/pic/gen.c (genpic14Code)
344 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
345 * src/xa51/gen.c (genXA51Code)
346 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
348 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
350 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
351 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
353 2003-03-22 <johan@balder>
355 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
357 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
359 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
360 * doc/cdbfileformat.lyx: added, written by Lenny Story
361 * doc/Makefile: added cdbfileformat.lyx
362 * doc/clean.mk: added cdbfileformat.lyx
364 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
366 * src/mcs51/peeph.def: fix bug #705773
368 2003-03-20 <johan@balder>
370 An sfr/sbit can have an "at #" AND an initializer
371 * src/SDCCsymt.c (checkSClass):
372 * src/SDCCmem.c (allocGlobal):
373 * src/SDCCmem.c (allocLocal):
374 * src/SDCCast.c (createBlock):
376 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
378 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
380 2003-03-16 <johan@balder>
382 Undid the hackup of const and volatile, the problem is much bigger
384 * src/SDCCast.c:1.171
385 * src/SDCCglue.c:1.138
386 * src/SDCCicode.c:1.146
387 * src/SDCCsymt.c:1.150
390 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
392 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
393 * src/ds390/gen.c (genAddrOf): fixed bug #704087
395 2003-03-13 <johan@balder>
397 Hackup const and volatile modifiers in type chains a bit:
399 * src/SDCCast.c:1.169
400 * src/SDCCglue.c:1.136
401 * src/SDCCicode.c:1.143
402 * src/SDCCsymt.c1.146
406 2003-03-12 <johan@balder>
408 * src/SDCCBBlock.h: more LRH debugging junk
409 * src/SDCCcflow.h: more LRH debugging junk
410 * src/SDCCloop.c: more LRH debugging junk
411 * src/SDCC.y (struct_declaration): fixed bug #697590
412 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
413 * src/ds390/gen.c (aopForRemat): fixed bug #700031
414 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
416 2003-03-11 Kevin Vigor <kevin@vigor.nu>
417 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
418 test function names must now match exactly).
419 * src/SDCCcse.c: added special case in findCheaperOp to allow
420 extending a short integer. Makes less awful code for bug 700121 test case.
422 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
424 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
425 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
427 2003-03-11 Kevin Vigor <kevin@vigor.nu>
429 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
430 actually called (operandsNotEqual() was called for all
431 operandsNotEqualX tests).
433 2003-03-11 Kevin Vigor <kevin@vigor.nu>
435 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
436 with shorter literals. Fixes bug 700121.
438 2003-03-11 <johan@balder>
440 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
442 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
444 * src/SDCCloop.c (mergeRegions): an evil beast is dead
445 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
447 2003-03-10 Borut Razem <borut.razem@siol.net>
449 * src/SDCCmain.c: pipe preprocessor's output
450 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
451 * sdcc_vc_in.h: define pclose as _pclose for WIN32
452 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
453 which closes all pipes in pipeSet set
454 * src/SDCCset.c: free deleted item in function deleteSetItem()
455 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
456 moved from z80 to src subproject
457 * .version: increased version number to 2.3.4
459 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
461 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
462 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
463 * support/regression/ports/xa51/spec.mk: fix typo
465 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
467 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
469 2003-03-09 Borut Razem <borut.razem@siol.net>
471 * src/SDCCmain.c: pipe preprocessor's output
472 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
473 * sdcc_vc_in.h: define pclose as _pclose for WIN32
474 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
475 which closes all pipes in pipeSet set
476 * src/SDCCset.c: free deleted item in function deleteSetItem()
477 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
478 moved from z80 to src subproject
480 2003-03-09 Borut Razem <borut.razem@siol.net>
482 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
483 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
484 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
485 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
486 * src/SDCCglobl.h: unification of WIN32 native definitions
488 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
490 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
492 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
494 * src/configure.in: check for endianess (even while cross-compiling)
495 * src/configure: check for endianess (even while cross-compiling)
496 * src/configure_in.h: check for endianess (even while cross-compiling)
497 * src/avr/gen.c: remove old endianess stuff
498 * src/mcs51/gen.c: remove old endianess stuff
499 * src/ds390/gen.c: remove old endianess stuff
500 * src/pic/gen.c: remove old endianess stuff
501 * src/pic/genarith.c: remove old endianess stuff
502 * src/pic/glue.c: fix endianess check
503 * src/pic16/gen.c: remove old endianess stuff
504 * src/pic16/genarith.c: remove old endianess stuff
505 * src/pic16/glue.c: fix endianess check
506 * src/xa51/gen.c: remove old endianess stuff
507 * src/z80/gen.c: fix endianess check
508 * src/SDCCglue.c: fix endianess check
509 * src/ds390/peeph.def: fix bug 700036
511 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
513 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
514 * src/configure: find appropriate data-types on host for SDCC's int and long
515 * src/configure.in: find appropriate data-types on host for SDCC's int and long
516 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
517 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
519 2003-03-07 <johan@balder>
522 some minor cleanups before the big shot
523 OP_DEFS and OP_USES now use Kevin's protection
524 new option --nolabelopt
535 * src/ds390/ralloc.c:
536 * src/mcs51/ralloc.c:
541 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
543 * src/pic/pcode.c (get_op): fix 64 bit warnings
544 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
545 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
546 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
547 * support/regression/tests/malloc.c: fix 64 bit warnings
549 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
551 * src/mcs51/gen.c (genMinus): fixed bug 696436
553 2003-03-02 Borut Razem <borut.razem@siol.net>
555 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
557 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
559 * configure.in: test for mkstemp
560 * sdccconf_in.h: add HAVE_MKSTEMP
562 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
564 * device/include/ctype.h: removed warning while using --stack-auto
565 * device/include/malloc.h: removed warning while using --stack-auto
566 * device/include/string.h: removed warning while using --stack-auto
568 2003-02-23 Borut Razem <borut.razem@siol.net>
570 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
571 because NDEBUG is defined (see man assert)
572 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
574 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
576 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
577 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
579 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
581 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
582 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
584 2003-02-18 <johan@balder>
586 * as/mcs51/asmain.c (asmbl): module can start with a digit
587 * as/z80/asmain.c (asmbl): module can start with a digit
589 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
591 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
592 * src/asm.c: fix pipe() for Mingw32
594 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
596 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
597 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
598 make -V work again; --c1mode reads now from stdin
599 * doc/sdccman.lyx: added --c1mode
600 * support/Util/SDCCerr.c: new messages for c1 mode
601 * support/Util/SDCCerr.h: new messages for c1 mode
602 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
604 2003-02-15 <johan@balder>
606 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
608 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
610 * doc/sdccman.lyx: Environment variables, -o and other minor things
612 2003-02-14 <johan@balder>
614 * src/xa51/main.c: before anyone really tries to use it :)
616 * Install doc's in share/sdcc/doc
617 * removed some obsolete files
618 * Do a proper make distclean and uninstall
622 M device/include/Makefile.in
623 M device/lib/Makefile.in
626 M sim/ucsim/doc/Makefile.in
630 M support/cpp2/Makefile.in
631 M support/makebin/Makefile
634 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
636 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
638 2003-02-10 Borut Razem <borut.razem@siol.net>
640 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
641 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
642 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
643 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
644 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
645 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
646 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
647 src/z80/Makefile.bcc: Borland Makefile cleanup
648 * as/z80/Makefile.bcc: Added Borland Makefile
649 * support/cpp2/borland.h: Removed
651 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
653 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
654 * src/SDCC.lex: new pragma NOIV
655 * src/SDCCglobl.h: new pragma NOIV
656 * src/SDCCmem.c: new pragma NOIV
658 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
660 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
662 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
664 * src/SDCCmain.c: signal handling is switched off by --debug
665 * doc/Makefile: small fix for install; use clean.mk again
666 * doc/clean.mk: clean *.pdf and *.html too
668 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
670 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
671 * device/lib/printfl.c: fix a ds390 bug by making it portable
672 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
673 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
674 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
675 * debugger/mcs51/cmd.c: converted multi-line string literals
676 * sim/ucsim/globals.cc: converted multi-line string literals
677 * src/SDCCmain.c: introduced signal handler to remove temp files
678 * doc/Makefile: small tweaks, implement clean
679 * doc: removed generated files
681 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
683 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
684 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
685 Address Record is not correctly generated for DS390."
687 2003-02-02 Borut Razem <borut.razem@siol.net>
689 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
690 * as/mcs51/asm.h: fixed compilation with Borland C
691 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
692 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
693 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
694 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
695 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
696 src/z80/Makefile.bcc: delete $(LIB) only if exist
697 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
699 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
701 * device/include/malloc.h: introduced NULL
702 * device/include/string.h: introduced NULL
703 * device/include/stdlib.h: introduced NULL
704 * device/lib/_memcpy.c: removed NULL
705 * device/lib/_strcat.c: removed NULL
706 * device/lib/_strchr.c: removed NULL
707 * device/lib/_strcmp.c: removed NULL
708 * device/lib/_strcpy.c: removed NULL
709 * device/lib/_strcspn.c: removed NULL
710 * device/lib/_strlen.c: removed NULL
711 * device/lib/_strncat.c: removed NULL
712 * device/lib/_strncmp.c: removed NULL
713 * device/lib/_strncpy.c: removed NULL
714 * device/lib/_strpbrk.c: removed NULL
715 * device/lib/_strrchr.c: removed NULL
716 * device/lib/_strspn.c: removed NULL
717 * device/lib/_strstr.c: removed NULL
718 * device/lib/_strtok.c: removed NULL
719 * device/lib/malloc.c: removed NULL, include own header
721 2003-02-02 <johan@balder>
723 * 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
724 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
725 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
726 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
727 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
728 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
730 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
732 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
735 2003-02-01 <johan@balder>
737 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
739 2003-01-31 <johan@CP255758-A>
741 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
743 2003-01-30 <johan@balder>
745 * src/SDCCBBlock.c: automatic bug detection
746 * src/SDCCicode.c: automatic bug detection
748 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
750 * src/SDCCglobl.h: now --xram-size 0 works
751 * src/SDCCmain.c: now --xram-size 0 works
753 2003-01-29 <johan@balder>
755 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
757 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
759 * as/mcs51/aslink.h: Added options --xram-size and --code-size
760 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
761 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
762 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
763 * src/SDCCglobl.h: Added options --xram-size and --code-size
764 * src/SDCCmain.c: Added options --xram-size and --code-size
766 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
768 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
769 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
771 2003-01-27 <johan@balder>
773 * src/SDCC.y: fixed bug #613764
775 2003-01-26 <johan@balder>
777 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
778 * src/SDCCsymt.h: fixed bug #673374
779 * src/SDCCglue.c: fixed bug #661910
780 * src/SDCCast.c: fixed bug #458099 and 673374
782 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
784 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
785 * as/mcs51/strcmpi.h: added
786 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
787 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
788 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
789 * as/mcs51/assym.c: strcmpi -> as_strcmpi
790 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
791 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
792 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
793 * as/mcs51/Makefile.aslink: new module strcmpi
794 * as/mcs51/Makefile.asx8051: new module strcmpi
795 * as/mcs51/Makefil.bcc: new module strcmpi
796 * as/mcs51/Makefile.in: new module strcmpi
797 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
799 2003-01-26 <johan@balder>
801 * src/SDCCglue.c: reverted back to 1.124
802 * src/SDCCast.c: reverted back to 1.156
803 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
805 2003-01-25 <johan@balder>
807 * src/SDCCglue.c: A better fix for bug #661910
808 * src/SDCCast.c: A better fix for bug #661910
809 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
811 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
813 * src/Makefile.in: remove spawn.o
814 * src/SDCCmain.c: remove spawn.h
815 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
816 * src/spawn.c: removed
817 * src/spawn.h: removed
818 * support/regression/ports/ds390/spec.mk: link with -r
820 2003-01-24 <johan@CP255758-A>
822 * src/ds390/gen.c (aopOp): fixed bug #667458
823 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
824 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
825 (createIvalCharPtr): an ival doesn't always have a storage class anymore
827 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
829 * src/mcs51/peeph.def: better assembler identation by Frieder
830 * src/mcs51/gen.c: better assembler identation by Frieder
832 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
834 * as/z80/string.h: removed for gcc 3.2
835 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
836 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
838 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
840 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
841 * src/SDCCpeeph.c (replaceRule): fix bug #663503
842 * support/regression/Makefile: separate temp files for ports
843 * support/regression/generate-cases.py: separate temp files for ports
844 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
845 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
847 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
849 * moved tinitalk to device/examples/ds390
851 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
853 * as/mcs51/lkmem.c: rflag is for DS390
854 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
855 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
856 (linkEdit): move mem- and map-files the same way as ihx-files
857 * src/z80/main.c (_setDefaultOptions): removed --generic
858 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
859 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
860 * src/pic/glue.c (picglue): --c1mode works again
861 * src/pic16/glue.c (pic16glue): --c1mode works again
862 * src/asm.c (printCLine): fix #660034
864 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
866 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
867 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
868 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
869 * as/mcs51/lkmem (summary): better fix for sp problem
870 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
871 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
872 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
873 remove --stack-after-data
875 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
877 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
878 * src/SDCCutil.c (join): ugly bug: missing '\0'
879 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
881 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
883 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
885 * src/pic/main.c (_asmCmd): gpasm supports -o
886 * src/z80/main.c: more general macros
887 * device/lib/Makefile.in: remove intermediate files
889 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
891 * .version: Bumped version number to 2.3.3
892 * src/SDCCBBlock.c: new option -o
893 * src/SDCCglobl.h: new option -o
894 * src/SDCCglue.c: new option -o
895 * src/SDCCmain.c: new option -o
896 * src/asm.c: new option -o
897 * src/ds390/main.c: new option -o
898 * src/pic/glue.c: new option -o
899 * src/pic/pcode.c: new option -o
900 * src/pic/ralloc.c: new option -o
901 * src/pic16/glue.c: new option -o
902 * src/pic16/pcode.c: new option -o
903 * src/pic16/ralloc.c: new option -o
904 * src/z80/main.c: new option -o
905 * device/lib/Makefile.in: use -o
906 * support/regression/ports/ds390/spec.mk: use -o
907 * support/regression/ports/gbz80/spec.mk: use -o
908 * support/regression/ports/mcs51/spec.mk: use -o
909 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
910 * support/regression/ports/z80/spec.mk: use -o
911 * support/regression/ports/ucz80/spec.mk: use -o
912 * support/regression/ports/xa51/spec.mk: use -o
913 * support/regression/fwk/lib/timeout.c: fix usage string
915 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
916 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
918 2003-01-07 <johan@balder>
920 * src/SDCCast.c (decorateType): fixed bug #600035
922 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
923 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
924 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
925 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
926 * src/pic/pcode.c: outcommented unused variable to remove warnings
927 * src/pic/ralloc.c: outcommented unused variable to remove warnings
929 2003-01-06 <karl@turbobit.com>
930 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
933 2003-01-06 <johan@balder>
935 * src/SDCCicode.c: fixed array add
937 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
938 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
939 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
941 2003-01-04 <johan@balder>
943 * src/SDCCval.c (getNelements): fixed the initialized array of structures
945 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
946 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
948 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
949 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
950 * support/regression/tests/bug-524697.c: fit mem usage into 8032
952 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
953 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
955 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
956 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
958 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
959 * src/mcs51/main.c: removed {bindir}{sep} from aslink
961 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
963 * in \sdcc\as\mcs51\ changed these files in order to create an
964 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
965 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
966 following files to include the previous two files: aslink.dsp,
967 Makefile.aslink, Makefile.bcc, and Makefile.in.
969 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
972 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
974 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
975 value from option --iram-size.
977 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
979 * \sdcc\as\mcs51\lklist.c: added boundary check before using
982 2002-09-18 <wiml@hhhh.org>
984 * SDCClrange.h: exposed setFromRange() and setToRange()
985 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
986 packRegsForAccUse() (bug 542397)
987 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
988 multiple times and emitting the fetch operations more than once
989 added aopGetUsesAcc() function to allow binary operators to
990 fetch their operands in the correct order; made genMinus() emit
991 compact code for X = LITERAL - Y
993 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
994 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
995 sprintf() in line 1267.
997 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
998 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
1001 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1002 Changes to aslink (All the changes are marked with 'JCF'):
1004 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
1007 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
1008 area BSEG. Also moves, if possible, the DATA area down into the internal
1009 ram so more space is available.
1011 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
1014 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
1015 not bytes. Function summary() which creates a memory usage summary
1016 file with extension .mem. Reports of overlaping stack and small stack
1017 size. If the space for the stack is less than 16 bytes aslink trows a
1020 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1021 the 8051. Option 'y' for memory summary output file.
1023 Changes to sdcc (All the changes are marked with 'JCF'):
1025 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1027 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
1028 overlaying area for it (uses RegBankUsed[4]).
1030 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
1031 bank zero as used by default. By default aslink locates the stack
1032 (equivalent to --stack-after-data). Pass option 'y' to aslink for
1033 the creation of the .mem file. Delegates the allocation of data area
1034 to aslink (it is not longer 0x30 by default). If --stack-loc passes
1035 the begining of the stack area to aslink.
1037 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
1038 glue() in SDCCglue.c creates an area for it.
1040 2002-09-03 Borut Razem <borut.razem@siol.net>
1041 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
1042 sdcc/src/pic/glue.c:
1043 introduced atexit() handler for teporay files removal in case of
1044 errors, assertions, ...
1046 2002-08-29 Borut Razem <borut.razem@siol.net>
1047 * sdcc/support/cpp2/auto-host_vc_in.h:
1048 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
1049 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
1050 Maybe there is a similar problem with BORLANDC? It should be checked!
1052 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
1053 corrected improper use of assert: the assignment to clr variable was done inside the assert.
1054 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
1055 was not executed, and the compiler (cl) launched a warning:
1056 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
1058 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
1059 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1061 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1062 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
1064 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1065 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
1066 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
1067 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1068 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
1069 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
1070 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
1071 - added Release configuration in VS projects
1072 - review of compiler an linker options
1073 - VC .exe files are generated in bin_vc directory, not to interfere
1074 with binaries generated from other projects (cygwin, mingw, bcc ...)
1076 * sdcc/src/yacc.dsp: added
1078 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
1079 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
1080 and insert the version number definitions from .version
1082 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
1084 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
1085 added - genarate auto-host.h using auto-host_vc_in.h as template
1088 removed from CVS, generated automatically
1090 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
1091 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
1093 2002-08-11 Borut Razem <borut.razem@siol.net>
1094 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
1096 2002-08-10 Borut Razem <borut.razem@siol.net>
1097 * src/SDCCmain.c (main):
1098 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
1099 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
1100 The consequence was that some temporary files were not removed.
1103 unification of code in functions tempfilename() and tempfile():
1104 function tempnam() is defined in Visual Studio 6.0 and .NET
1106 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
1108 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1109 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
1110 - removed compiler command line option /WX: Treats all warnings as errors
1111 - update a list of source files, included into the project
1113 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1114 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
1115 changed project type to Generic Project so that can be correcly converted to VS.NET project
1117 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
1119 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
1121 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1123 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1124 added return 0 statements after assert() to make compiler happy
1126 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
1127 added newline in the def file to keep MSC compiler satisfied
1129 * sdcc/src/z80/gen.c:
1130 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
1131 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
1132 - solved MSC error in function aopDump()
1134 * sdcc_vc.h: define PREFIX as "\\sdcc"
1136 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
1137 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
1139 2002-06-22 Scott Dattalo <scott@dattalo.com>
1140 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
1141 - Rewrote the register banking algorithm.
1142 - Added pCode live-range analysis to registers (for now, only non-used and
1143 singly-used registers optimized away)
1145 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
1147 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
1149 2002-05-10 Scott Dattalo <scott@dattalo.com>
1150 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1152 2002-04-22 Michael Hope <michaelh@vroom>
1154 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1156 * configure.in (DD_COPT): Added include support required for gbdk.
1158 * .version: Bumped version number just to increase it.
1160 * src/SDCCmain.c: Added -nostdinc to the default options.
1162 2002-04-15 Michael Hope <michaelh@vroom>
1164 * device/lib/z80/printf.c (sprintf): Added.
1166 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1168 * src/z80/peeph.def: Added transpose redundent load rule.
1170 * src/z80/main.c: Added force callee saves for jaune.
1172 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1174 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1176 2002-03-28 Johan Knol <johan@balder>
1178 * src/SDCCval.c: fixed bug #532436
1180 2002-03-14 Scott Dattalo <scott@dattalo.com>
1182 Added "char *Processor" field to the port structure.
1185 Added -p option. Allows port dependent processor to be specified.
1188 Initialized the new field char *Processor field to NULL in all ports
1191 Compiler generated registers for interrupt context saving
1192 were not getting allocated.
1194 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
1197 Fixed left shift. Will promote the left side of a left shift
1198 if a) left shifting more than size of operand or b) when assigned
1199 to something size > size of left side
1201 2002-03-14 Scott Dattalo <scott@dattalo.com>
1203 tons of changes. Register allocation has been
1204 rewritten. Added customization for the various PICs. Flow
1205 analysis is restructured. ...
1211 Added. device.c is a PIC port hack to accomodate variations
1214 2002-03-13 Michael Hope <michaelh@vroom>
1216 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
1218 2002-03-04 johanknol <johanknol@manik>
1220 * /src/SDCCval.c: fixed
1222 const unsigned char arr[][2] = { { 0, 1 } };
1223 t18.c:1: error: Initializer element is not constant
1225 2002-03-04 bela <bela@manik>
1227 * /device/include/mcs51reg.h:
1228 ds89c420 register definition update
1230 2002-03-03 <johan@FRIJA>
1232 * support/Util/SDCCerr.c: did something, but don't no why anymore
1234 * support/regression/tests/bug-524691.c: made it a little less shy
1236 * src/SDCCast.c (decorateType): fixed bug #524697
1238 * src/SDCCast.c: made some lineno improvements
1240 * src/SDCCval.c (getNelements): changed warning to error
1242 * src/SDCCglue.c (printIvalArray): changed warning to error
1244 * src/SDCCicode.c: fixed a warning for mingw
1246 * src/SDCCast.c (decorateType): fixed the << promotion for ops
1248 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1250 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
1252 * src/ds390/peeph.def:
1253 Added some more peephole rules
1255 * src/ds390/gen.c: Various fixes & enhancements
1257 * src/SDCClrange.c, src/SDCClrange.h:
1258 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1260 * src/ds390/ralloc.c:
1261 various fixes & enhancements (ds390) specific
1263 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
1264 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
1267 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1269 2002-03-02 <johan@FRIJA>
1271 * src/SDCCast.c (decorateType): fixed bug #524708
1273 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1275 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1277 2002-03-01 Michael Hope <michaelh@vroom>
1279 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1281 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1283 2002-03-01 <johan@FRIJA>
1285 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1287 * src/SDCCast.c (decorateType): fixed bug #524209
1289 * src/SDCCval.c (valNot): fixed bug #524195
1291 2002-02-26 <johan@balder>
1293 * src/xa51/gen.c: fixed a warning
1295 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1297 * src/SDCCast.c (decorateType): fixed bug #522534
1299 2002-02-23 <johan@balder>
1301 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1303 2002-02-22 <johan@balder>
1305 * src/SDCCast.c: fixed bug #514865
1307 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1309 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
1311 * sdcc/src/SDCCloop.c:
1312 Previous fix was not good. basic blocks that have "break" or "return" are
1313 not really partof a loop , but live ranges used in these blocks should
1314 be live thru the entire loop, so set partOfLoop but don't add them to
1317 2002-02-21 <johan@FRIJA>
1319 * src/SDCCcse.c: fixed bug #514308
1321 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
1324 Fixed BUG #519583. If a conditional block ended in a return/break
1325 statement inside a loop, it was not being considered part of the loop.
1327 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1329 2002-02-10 Karl Bongers <karl@turbobit.com>
1332 Fixed up SDCDB debugger somewhat. Updated debugger/README
1333 with lots of comments and notes.
1335 * device/examples/test2.c:
1336 Fix bug, "red" variable not being initialized(compiler complained).
1338 * device/examples/Makefile, examples/test3.c:
1339 Add Makefile in device/examples folder, compiles test3.c
1340 for use as a multiple module SDCDB test case.
1342 * sim/ucsim/cmd.src/cmdset.cc:
1343 Took out debug printfs in ucsim "next" command.
1346 Karl and Johan start ucsim XA support. Most dissassembly working,
1347 about 75% emulation done(plenty of work remaining).
1349 * sim/ucsim/z80.src:
1350 Add Z80 support to ucsim, add test-ucz80 regression test,
1351 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
1352 Notice z80 compiler fails on examples/test3.c/crc code.
1354 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
1356 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1357 Added support for --parms-in-bank1
1359 * src/ds390/peeph.def:
1360 added a few more peephole optimzations
1363 1) added __builtin_inp & __builtin_outp used to read in data of given length
1364 from a memory mapped port
1365 2) added __builtin_memcmp
1366 3) added __builtin_swapw swap bytes of a short
1368 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
1369 1) handle multiple send & receives from register bank1
1370 2) ralloc can now allocate DPTR1 to some liveRanges
1372 * src/SDCCsymt.c, src/SDCCsymt.h:
1373 changes to handle multiple sends & receives
1376 added some pointer arithmetic optimization
1379 added some pointer arithmetic optimizations but not stable yet so not
1380 called from anywhere (will get this working shortly)
1382 * src/SDCCopt.c: fixed for multiple sends & receives
1385 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
1386 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
1387 set preprocessor defines (depending on options)
1389 * src/SDCCicode.c, src/SDCCicode.h:
1390 changes made to handle multiple sends & receives
1393 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1395 * src/SDCCcse.c, src/SDCCcse.h:
1396 added function findbackward def (to be used in upcoming optimization)
1398 * src/SDCCcflow.c, src/SDCCcflow.h:
1399 added function returnAtEnd - to determine if a basic block terminates with
1402 * src/SDCCast.c, src/SDCCast.h:
1403 added option parms-in-bank1
1405 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
1406 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
1407 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
1408 adjusted for --parms-in-bank1 option
1410 * device/include/string.h:
1411 donot redefine "reentrant" keyword
1413 * device/include/ds80c390.h: Added some more SFRs
1415 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
1417 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
1419 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
1421 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1423 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
1425 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1427 2002-01-18 Paul Stoffregen <paul@pjrc.com>
1429 * Added --xram-movc option
1431 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
1433 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1435 2002-01-11 Johan Knol
1437 * Added math lib of Jesus Calvino-Fraga
1439 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
1441 * src/SDCCmain.c (processFile): fix processing of ../../src.c
1442 * support/regression/Makefile: new target test-mcs51-stack-auto
1443 * support/regression/ports/mcs51-stack-auto/spec.mk: added
1445 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1447 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1449 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1451 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1453 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
1455 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1457 * src/SDCCglue.h: add definition for printIvalChar()
1459 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1461 * src/SDCCast.c: fix #498138 by Johan
1463 * src/SDCCglue.c: fix #498138 by Johan
1465 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1467 * support/regression/Makefile: fix clean
1469 * support/regression/ports/ds390/support.c: fix transmission of last character
1471 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
1473 * /sdcc/src/ds390/gen.c:
1474 a) improved computing address of stack variable
1475 b) took out some #if 0 code
1476 c) improved parmBytes adjustment
1477 d) improved genPlusIncr & genMinusIncr
1478 e) genCmp could generate bad code (when left assigned to DPTR)
1479 f) Fixed bug in hasInc
1481 * /sdcc/src/ds390/ralloc.c:
1482 a) packRegsForSupport could mess up live information (Fixed)
1483 b) packRegsDPTRuse could be incorrect for left & right shift
1485 * /sdcc/src/mcs51/ralloc.c:
1486 packRegsForSupport could mess up the live information (Fixed)
1488 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
1490 * /sdcc/src/SDCCast.c:
1491 can reverse a loop even if function call is present as long
1492 as the loop control variable is local & is not passed as parameter
1494 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1496 * /sdcc/ChangeLog: *** empty log message ***
1498 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
1499 More builtin function additions for TININative
1501 * /sdcc/src/ds390/ralloc.c:
1502 Had broken the regression testsuite
1504 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
1506 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
1507 Added funcattr hasStackParms will be set for reentrant functions when there
1508 are paramteres on the stack, this helps in minimizing frame pointer generation
1509 typeFromStr can handle function pointers now
1511 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
1512 *** empty log message ***
1514 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1516 * /src/ds390/gen.c, /src/ds390/main.c:
1517 More builtin function additions for TININative
1519 * /src/ds390/ralloc.c:
1520 Had broken the regression testsuite
1522 * /src/SDCCast.c: Fixed a bug in dumptree
1524 * /src/SDCCsymt.c, /src/SDCCsymt.h:
1525 Added funcattr hasStackParms will be set for reentrant functions when there
1526 are paramteres on the stack, this helps in minimizing frame pointer generation
1527 typeFromStr can handle function pointers now
1529 * /doc/builtins.txt, /doc/TININative.txt:
1530 *** empty log message ***
1533 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1535 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
1536 ALPHA version for -mTININative
1538 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
1539 updated to reflect changes in the port structure
1542 added function do_assemble (similar to do_link) if non-null this function
1543 will be called to do assembly (-mTININative) requires a multi command
1545 added function genAssemblerEnd will be called to generate assembler Epilogue
1548 added _JavaNative to debug info printing
1550 * /src/SDCCmain.c: added option --tini-libid
1551 added port->do_assemble function (-mTININative) has a multi command assemble
1553 * /src/SDCCglue.c: Disabled "constExpr" check
1554 added port->genAssemblerEnd function
1556 * /src/SDCCglobl.h: Added option --tini-libid value
1559 tookout optimizeCompare from the header (has no external references)
1561 * /src/SDCCast.c: made one more function "static"
1563 2001-12-23 Michael Hope <michaelh@juju.net.nz>
1565 * src/z80/mappings.i: Added z80asm support.
1567 * src/z80/main.c: Added z80asm support on --asm=z80asm
1569 * src/z80/gen.c: Fixed asm portability issues.
1571 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
1573 * src/SDCCglue.c (printExterns): Added global/extern split.
1575 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
1577 * support/regression/Makefile: added test for mcs51 model large
1579 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
1581 * support/regression/ports/gbz80/spec.mk: added -mgbz80
1583 2001-12-05 Michael Hope <michaelh@juju.net.nz>
1585 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
1587 1904-01-06 Michael Hope <michaelh@juju.net.nz>
1589 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
1591 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
1593 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
1595 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
1597 * support/regression/tests/simplefloat.c: Port to mcs51.
1599 2001-11-25 Michael Hope <michaelh@juju.net.nz>
1600 * support/regression/tests/bug-485362.c: Added.
1602 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
1604 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
1606 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
1608 * src/z80/gen.c (aopDump): Added a dump function.
1610 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
1611 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
1613 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
1615 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
1617 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
1619 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
1621 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
1623 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
1625 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
1627 * support/regression/ports/ds390/support.c: Use tinibios.
1629 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
1631 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
1633 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
1634 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
1636 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
1638 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
1640 2001-11-18 Michael Hope <michaelh@juju.net.nz>
1642 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
1644 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
1645 (packRegsForIYUse): Created and optimised.
1647 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1649 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
1650 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
1652 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
1654 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
1656 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
1658 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1660 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
1662 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
1664 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1666 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
1668 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
1670 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
1672 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1674 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
1675 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
1676 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
1678 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
1680 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
1681 (genNotFloat): Added.
1682 (genUminusFloat): Added.
1684 * device/lib/z80/Makefile: Added floating pt stubs.
1686 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
1688 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
1690 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
1692 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1694 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
1696 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
1698 * sdcc/support/regression/Makefile: Add port ds390.
1700 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
1702 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
1704 * sdcc/support/regression/ports/ds390/spec.mk: Added.
1706 * sdcc/support/regression/ports/ds390/support.c: Added.
1708 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
1710 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
1712 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
1714 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1716 * device/include/malloc.h: Added z80 and gbz80 support.
1718 * device/lib/gbz80/heap.s: Added.
1720 * device/lib/z80/heap.s: Added.
1722 * device/lib/malloc.c: Added z80 and gbz80 support.
1724 * support/regression/tests/malloc.c (testMalloc): Added.
1726 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
1728 * support/regression/tests/bug-478094.c: Added.
1730 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
1732 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
1734 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
1736 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
1738 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
1740 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
1742 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
1744 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1746 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
1748 2001-11-03 Michael Hope <michaelh@juju.net.nz>
1750 * support/regression/tests/bug-477927.c: Added.
1752 * src/z80/peeph.def: Added minor rules.
1754 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
1756 * src/z80/peeph.def: Added jump optimisation modification.
1758 2001-11-01 Michael Hope <michaelh@juju.net.nz>
1760 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
1762 2001-10-30 Michael Hope <michaelh@juju.net.nz>
1764 * support/regression/tests/funptrs.c: Added.
1766 2001-10-29 Michael Hope <michaelh@juju.net.nz>
1768 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
1770 2001-10-28 Michael Hope <michaelh@juju.net.nz>
1772 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
1774 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
1776 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
1777 (movLeft2ResultLong): Created.
1779 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
1780 (joinPushes): Added. Joins two char pushes into a word push.
1782 2001-10-27 Michael Hope <michaelh@juju.net.nz>
1784 * support/cpp2/Makefile.in (install): Added creation of dest dir.
1786 * support/makebin/Makefile (install): Added creation of dest dir.
1788 2001-10-24 Karl Bongers <karl@turbobit.com>
1790 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
1792 2001-10-21 Michael Hope <michaelh@juju.net.nz>
1794 * src/z80/ralloc.c: Turned off faulty pack for one use.
1796 * src/z80/peeph-gbz80.def: Removed redundent restart options.
1798 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
1800 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
1802 * support/regression/Makefile: Improved clean
1804 * support/regression/ports/gbz80/spec.mk: Added clean
1806 * support/regression/ports/host/spec.mk: Added clean
1808 * support/regression/ports/z80/spec.mk: Added clean
1810 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
1812 * support/regression/ports/mcs51/timeout.c: little improvements
1814 2001-10-17 Michael Hope <michaelh@juju.net.nz>
1816 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
1818 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
1820 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
1822 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
1824 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
1826 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
1828 2001-10-13 Michael Hope <michaelh@juju.net.nz>
1829 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
1831 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
1833 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
1835 * src/mcs51/main.c (_linkCmd): Added bin path to command.
1837 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
1839 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
1841 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
1843 * support/regression/tests/longor.c: Added.
1845 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
1847 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
1849 * as/mcs51/aslink.h: define PATH_MAX
1851 * as/mcs51/asm.h: define PATH_MAX
1853 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
1855 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
1857 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
1859 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
1861 * src/SDCCglobl.h: define PATH_MAX
1863 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
1865 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
1867 2001-10-11 Michael Hope <michaelh@juju.net.nz>
1869 * src/z80/gen.c (gencjneshort): Fixed
1871 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
1873 2001-10-09 Michael Hope <michaelh@juju.net.nz>
1875 * support/regression/tests/bug-469671.c: Added.
1877 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
1879 2001-10-08 Michael Hope <michaelh@juju.net.nz>
1881 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
1883 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
1885 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
1887 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
1889 * src/device/lib/_mulint.c : removed hint: nooverlay bug
1891 * src/device/lib/_mullong.c : removed hint: nooverlay bug
1893 * src/device/lib/_divuint.c : removed hint: nooverlay bug
1895 * src/device/lib/_divulong.c: removed hint: nooverlay bug
1897 * src/device/lib/_moduint.c : removed hint: nooverlay bug
1899 * src/device/lib/_modulong.c: removed hint: nooverlay bug
1901 2001-10-07 Michael Hope <michaelh@juju.net.nz>
1903 * 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.
1905 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
1907 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
1909 2001-10-07 <johan@FRIJA>
1911 * device/lib/gets.c (gets): fixed the return value.
1913 2001-10-06 Michael Hope <michaelh@juju.net.nz>
1914 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
1916 * 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.
1918 * 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.
1920 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
1922 * src/pic/gen.c: Removed Safe_strdup.
1924 * configure.in: Added option to enable libgc support.
1926 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
1927 (bitVectUnion): Optimised.
1928 (bitVectIntersect): Optimised.
1929 (bitVectBitsInCommon): Optimised.
1930 (bitVectCplAnd): Optimised.
1932 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
1934 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
1936 * src/SDCCmain.c: distinguish between assembler debug and plain options
1938 * src/avr/main.c: remove standard assembler options
1940 * src/ds390/main.c: remove standard assembler options
1942 * src/mcs51/main.c: remove standard assembler options
1944 * src/port.h: removed "PENDING" comment
1946 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
1948 * src/device/lib/_mulint.c : new, with assember functions
1950 * src/device/lib/_mullong.c : new, with assember functions
1952 * src/device/lib/_divuint.c : with assember functions
1954 * src/device/lib/_divsint.c : with assember functions
1956 * src/device/lib/_divulong.c: with assember functions
1958 * src/device/lib/_divslong.c: with assember functions
1960 * src/device/lib/_moduint.c : with assember functions
1962 * src/device/lib/_modsint.c : with assember functions
1964 * src/device/lib/_modulong.c: with assember functions
1966 * src/device/lib/_modslong.c: with assember functions
1968 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
1970 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
1972 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
1973 replaced _mululong.c and _mulslong.c by _mullong.c
1975 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
1977 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
1979 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
1981 * src/SDCCglue.c: test, if win32api is available for MINGW
1983 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
1985 * src/SDCCsymt.c: no more _modifier in printTypeChain()
1986 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
1987 * support/regression/ports/gbz80/spec.mk: removed GENERIC
1988 * support/regression/ports/host/spec.mk: removed GENERIC
1989 * support/regression/ports/mcs51/spec.mk: removed GENERIC
1990 * support/regression/ports/z80/spec.mk: removed GENERIC
1992 2001-10-01 Michael Hope <michaelh@juju.net.nz>
1994 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
1996 * support/regression/tests/bug-467035.c: Created.
1998 2001-10-01 <johan@FRIJA>
2000 * src/SDCC.y: fixed bug #466586 part 1
2002 2001-10-01 Johan Knol <johan.knol@iduna.nl>
2004 * SDCCicode.c: z80 has no generic pointers
2005 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
2007 2001-09-30 Michael Hope <michaelh@juju.net.nz>
2009 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2011 2001-09-29 Michael Hope <michaelh@juju.net.nz>
2013 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2015 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2017 2001-09-25 Michael Hope <michaelh@juju.net.nz>
2019 * configure.in: Fixed up so that ucsim is only configured once.
2021 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2023 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2024 (getPathDifference): As above.
2026 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
2028 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2030 2001-09-23 Michael Hope <michaelh@juju.net.nz>
2031 * .version: Updated to 2.3.1
2033 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2034 Added copyright header.
2036 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
2037 (assemble): Added support for macro based assembler commands.
2038 (linkEdit): Added support for macro based linker commands.
2039 (preProcess): Changed the pre-processor to use macros.
2040 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
2041 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
2043 * device/lib/z80/crt0.s: Added module name for debugging.
2045 2001-09-20 Michael Hope <michaelh@juju.net.nz>
2047 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2049 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
2051 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2053 * src/Makefile.in: Added SDCCmacro and SDCCutil
2055 2001-09-19 Michael Hope <michaelh@juju.net.nz>
2057 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2059 2001-09-16 <johan@FRIJA>
2061 * 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.
2063 2001-09-15 <johan@FRIJA>
2065 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2066 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2068 2001-09-11 <johan@FRIJA>
2070 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2072 2001-09-10 Michael Hope <michaelh@juju.net.nz>
2074 * support/regression/tests/bug-460444.c: Added test case.
2076 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2077 (genCast): Added justification for all of the asserts.
2079 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
2081 * support/regression/support.c: _xdata replaced by xdata
2083 * support/regression/spec.mk: removed _generic
2085 2001-09-09 Michael Hope <michaelh@juju.net.nz>
2087 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
2089 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
2090 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
2092 * src/z80/peeph.def: Added a rule to optimise shift then compare.
2094 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
2096 * support/regression/tests/bug-460010.c: Added test case.
2098 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
2100 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
2102 * support/regression/Makefile: inter-port-clean adjusted for mcs51
2104 * support/regression/testfwk.c: removed workaround for bug #436344
2106 * support/regression/tests/bp.c: use less memory with mcs51
2108 * support/regression/tests/bug-441448.c: use less memory
2110 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
2112 * support/regression/collate-results.py: typo
2114 2001-09-08 Michael Hope <michaelh@juju.net.nz>
2116 * support/regression/tests/fetchoverlap.c: Added new test case.
2118 * support/regression/tests/bp.c: Added new test case.
2120 * support/regression/tests/bug-448984.c: Added new test case.
2122 * support/regression/tests/pow2shifts.c: Added new test case.
2124 * src/z80/gen.c: Turned off the noise it normally generates for the release.
2125 (genlshTwo): Fixed right shift for count > 8.
2127 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2129 2001-09-08 <johan@FRIJA>
2131 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2133 2001-09-07 <johan@FRIJA>
2135 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2137 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2139 2001-09-06 <johan@FRIJA>
2141 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
2142 * bernhard noted me at this: "() equals to (void)" (1.38)
2144 2001-09-05 <johan@FRIJA>
2146 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2148 2001-09-04 <johan@FRIJA>
2150 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2153 2001-09-04 Paul Stoffregen <paul@pjrc.com>
2155 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
2157 2001-09-03 Michael Hope <michaelh@juju.net.nz>
2159 * link/z80/aslink.h: Fixed path for PATH_MAX
2161 2001-09-02 Michael Hope <michaelh@juju.net.nz>
2163 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2165 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2167 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
2169 * 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.
2171 2001-09-01 Michael Hope <michaelh@juju.net.nz>
2173 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
2174 (genCmp): Fixed up genCmp for the GB with longs.
2176 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2178 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2180 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2182 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2184 2001-08-30 Paul Stoffregen <paul@pjrc.com>
2186 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
2188 2001-08-30 Michael Hope <michaelh@juju.net.nz>
2190 * 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.
2192 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2194 2001-08-29 Michael Hope <michaelh@juju.net.nz>
2196 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
2198 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2200 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
2202 * sim/ucsim/configure: little improvement of Cygwin-detection
2203 * sim/ucsim/configure.in: little improvement of Cygwin-detection
2204 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
2205 * support/regression/tests/bug-221100.c: small changes for mcs51
2206 * support/regression/tests/bug-221168.c: small changes for mcs51
2207 * support/regression/tests/bug-227710.c: small changes for mcs51
2208 * support/regression/tests/staticinit.c: small changes for mcs51
2209 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
2210 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
2211 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601