1 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
3 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
4 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
5 temp files are in the port dir; clean the gen/test directory when
7 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9 * support/regression/tests/zeropad.c: added
11 2003-05-09 <johan@balder>
13 * src/SDCCglue.c: fixed bug #597940
15 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
17 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
18 cache sfr, optimize next,step, fix off by one sourceline,
19 support ddd list function.
20 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
22 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
24 * support/regression/HTMLgen.py: added compare_s2f()
25 * support/regression/Makefile: redo 1.27
26 * support/regression/generate-cases.py: redo 1.5
28 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
30 * support/regression/tests/float.c: workaround 33 bit hex constant
31 * support/regression/tests/simplefloat.c: fix division for host
33 2003-04-29 Scott Dattalo <scott@dattalo.com>
35 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
36 that tame's the PIC's over-aggressive optimizer.
38 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
40 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
43 2003-04-29 Kevin Vigor <kevin@vigor.nu>
45 Initial support for DS80C400. "Hello world" runs on TINIm400
48 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
50 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
51 * Some notes on ddd usage added in debugger/README
52 Martin Helmling adding more features and fixes for ddd GUI debugger.
53 Code added for nexti, stepi, up, down, and other adjustments.
55 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
57 * src/pic/pCodepeep.c non-wildcard asmops are now handled
58 * src/pic/peeph.def Added two rules to optimize carry manipulation
59 * src/pic/* removed debug printfs
61 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
63 * debugger/mcs51/cmd.c: added header newalloc.h
65 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
67 * as/Makefile: new EXEEXT
68 * as/z80/Makefile: remove trailing slash of BUILDIR
69 * as/z80/clean.mk: new EXEEXT
70 * Makefile.common.in: add to CFLAGS (and others), don't replace it
71 * support/cpp2/Makefile.in: new EXEEXT
72 * src/pic/glue.c (pic14emitRegularMap): fixed warning
74 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
76 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
77 EXEEXT was introduced to fix all related problems with targets
78 "clean", "install" and "uninstall"; a couple of further flaws
79 especially with "clean" have been fixed too
80 * as/mcs51/Makefile.in
85 * debugger/mcs51/Makefile.in
86 * debugger/mcs51/clean.mk
88 * link/z80/Makefile.in
95 * sim/ucsim/avr.src/Makefile.in
96 * sim/ucsim/avr.src/clean.mk
97 * sim/ucsim/s51.src/Makefile.in
98 * sim/ucsim/s51.src/clean.mk
99 * sim/ucsim/xa.src/Makefile.in
100 * sim/ucsim/xa.src/clean.mk
101 * sim/ucsim/z80.src/Makefile.in
102 * sim/ucsim/z80.src/clean.mk
103 * sim/ucsim/main_in.mk
104 * sim/ucsim/packages_in.mk
105 * sim/ucsim/gui.src/Makefile.in
106 * sim/ucsim/gui.src/serio.src/Makefile.in
107 * sim/ucsim/gui.src/serio.src/clean.mk
110 * support/cpp2/Makefile.in
111 * support/cpp2/clean.mk
112 * support/makebin/Makefile
113 * support/makebin/clean.mk
114 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
115 * doc/sdccman.lyx: --program-suffix no longer needed
117 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
119 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
120 Martin Helmling added support for ddd GUI debugger.
121 Code added to display assembly, set variables, and other commands
124 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
126 * as/Makefile: fix target clean
127 * as/clean.mk: fix target clean
128 * as/z80/clean.mk: fix target clean
130 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
132 * Makefile.common.in: added @EXEEXT@
133 * configure.in: removed all mingw32 stuff
134 * configure: rebuilt from configure.in
135 * doc/sdccman.lyx: updated section "installation"
136 * support/scripts/sdcc_mingw32: adapted to configure
137 * support/scripts/sdcc_cygwin_mingw32: added
139 2003-04-22 Scott Dattalo <scott@dattalo.com>
141 * src/pic Added object file support for the PIC port
142 * src/pic Applied patch from Craig Franklin (this started the object file support)
143 * src/regression Updated the PIC regression tests for object files
145 2003-04-20 Borut Razem <borut.razem@siol.net>
147 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
148 lklex.c: In function `getfid':
149 lklex.c:203: warning: array subscript has type `char'
150 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
151 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
152 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
153 stack handling macros
155 2003-04-19 Borut Razem <borut.razem@siol.net>
157 * "handling space characters in file path" task:
158 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
159 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
160 * support/Util/MySystem.h: make it self-sufficient
161 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
162 src/z80/main.c, sdcc/as/mcs51/lklex.c:
163 handling space characters in file path
164 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
165 (it will be used by assemblers, which have their own includes, e.g. gpasm)
166 * support/Util/MySystem.c: handling space characters in executable's path
168 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
170 * as/z80/Makefile: fix permanent rebuild of z80
171 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
172 * support/regression/tests/bitfields.c: added Johan's bitfields.c
174 2003-04-18 Kevin Vigor <kevin@vigor.nu>
176 * src/SDCCopt.c: add special case optimization to replace modulo by
177 a power of two with a bitwise AND.
179 2003-04-18 <johan@balder>
181 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
183 2003-04-17 <johan@balder>
185 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
186 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
188 2003-04-13 Borut Razem <borut.razem@siol.net>
190 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
191 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
192 fixed mingw problem in adl_NORMALIZE_PATH
194 2003-04-12 Borut Razem <borut.razem@siol.net>
196 * fixed "#pragma SAVE/RESTORE can not be nested":
197 * src/SDCC.lex: reworked pragma handling functions
198 * sdcc/src/SDCCglobl.h: reworked stack handling macros
199 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
201 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
203 * src/SDCCutil.c (pathEquivalent): defined but not used
204 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
205 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
206 * configure: rebuilt from configure.in
207 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
208 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
209 * device/include/Makefile.in: replace sdcc_datadir
210 * device/lib/Makefile.in: replace sdcc_datadir
211 * Makefile.common.in: add LDFLAGS from configure
212 * packihx/Makefile.in: use LDFLAGS
213 * src/Makefile.in: use LDFLAGS
214 * support/cpp2/Makefile.in: add LDFLAGS from configure
215 * support/makebin/Makefile: use LDFLAGS
216 * .version: bumped version number to 2.3.5
218 2003-04-12 Borut Razem <borut.razem@siol.net>
220 * completed "different paths" task:
221 * src/SDCCmacro.c: fixed bug in handling quotes
222 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
223 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
225 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
227 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
229 2003-04-11 kevin Vigor <kevin@vigor.nu>
231 * ds390/gen.c ds390/peeph.def: fix bug 706781
233 2003-04-11 Borut Razem <borut.razem@siol.net>
235 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
237 2003-04-10 Scott Dattalo <scott@dattalo.com>
239 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
240 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
241 set - this bit used to not be set...).
242 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
244 * src/regression/and2.c added to test bug 609268
245 * src/regression/Makefile added and2.c to regression test
248 2003-04-08 <johan@CP255758-A>
250 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
251 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
252 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
254 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
256 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
258 * support/cpp2/Makefile.in: fix bug #487815
259 * configure: rebuilt from configure.in
260 * Makefile.common.in: docdir changed, new path suffixes
261 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
262 * sdcc_vc_in.h: reflect changes from sdccconf.h
263 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
264 * src/SDCCutil.h: remove BINDIR hack
265 * doc/sdccman.lyx: update new path hierarchy
267 2003-04-06 Paul Stoffregen <paul@pjrc.com>
269 * src/SDCCpeeph.c: added okToRemoveSLOC test
271 2003-04-06 Paul Stoffregen <paul@pjrc.com>
273 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
275 2003-04-06 Paul Stoffregen <paul@pjrc.com>
277 * src/SDCCpeeph.c: added labelIsReturnOnly test
278 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
280 2003-04-05 <johan@balder>
282 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
283 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
284 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
285 * src/SDCCast.c: fixed a warning
286 * src/SDCCast.h: fixed a warning
287 * src/SDCCicode.c (operandFromAst): fixed a warning
289 2003-04-04 <johan@balder>
291 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
292 * src/SDCCast.c (decorateType): fixed bug #715076
293 * src/SDCC.y: fixed bug #702907
295 2003-04-03 <johan@balder>
297 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
298 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
299 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
300 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
301 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
303 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
305 * _decdptr.c: fix return values
306 * _gptrget.c: fix return values
307 * _gptrgetc.c: fix return values
308 * _gptrput.c: fix return values
309 * _mulint.c: fix return values
310 * as/z80/Makefile: fix 'make -j' problem
312 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
314 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
315 * configure.in: big cleanup, updated to autoconf 2.5x
316 * configure: rebuilt from configure.in
317 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
318 * sdcc_vc_in.h: reflect changes from sdccconf.h
319 * doc/Makefile: fixed a flaw in "make install"
321 2003-04-02 <johan@balder>
323 * src/ds390/gen.c (genCmp): no comments
324 * src/mcs51/gen.c (genCmp): no comments
325 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
326 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
328 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
330 * support/regression/generate-cases.py: place generated file in given sub directory
331 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
332 * support/regression/Makefile: improvements for 'make -j';
333 side effect: it's simpler and faster now
335 2003-03-31 Borut Razem <borut.razem@siol.net>
337 * src/z80/main.c: link-{port} and as-{port} defined without path
338 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
340 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
342 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
344 2003-03-30 Borut Razem <borut.razem@siol.net>
346 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
347 changed type of list parameter to set
348 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
349 * src/port.h: changed type of do_assemble() parameter to set
350 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
351 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
352 definition of "cppoutfilename" macro with NULL value in preProcess()
353 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
354 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
355 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
356 replaced with set *binPathSet
357 * shash_add() deallocates the item, if allready exsists, before adding the new one
358 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
360 2003-03-30 Scott Dattalo <scott@dattalo.com>
362 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
363 a nested for loop bug in the PIC port
364 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
367 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
369 * support/Util/dbuf.h: remove C++ stuff to make it portable
371 2003-03-28 Borut Razem <borut.razem@siol.net>
373 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
374 literal strings in stringLiteral()
375 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
376 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
379 2003-03-27 Paul Stoffregen <paul@pjrc.com>
381 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
383 2003-03-26 <johan@balder>
385 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
386 * src/ds390/gen.c (saveRegisters): catched symbol abuse
387 * src/SDCCast.c (decorateType): fixed " -v < 3"
389 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
391 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
392 Added Lenny Story's debug infrastructure changes:
393 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
394 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
395 * src/cdbFile.c: added
396 * src/SDCCdebug.c: added
397 * src/SDCCdebug.h: added
398 * src/SDCCast.c (createFunction)
399 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
400 * src/SDCCmain.c (parseCmdLine, main)
401 * src/SDCCmem.c (redoStackOffsets)
402 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
405 * src/avr/gen.c (genAVRCode)
406 * src/ds390/gen.c (gen390Code)
407 * src/mcs51/gen.c (gen51Code)
408 * src/pic/gen.c (genpic14Code)
409 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
410 * src/xa51/gen.c (genXA51Code)
411 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
413 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
415 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
416 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
418 2003-03-22 <johan@balder>
420 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
422 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
424 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
425 * doc/cdbfileformat.lyx: added, written by Lenny Story
426 * doc/Makefile: added cdbfileformat.lyx
427 * doc/clean.mk: added cdbfileformat.lyx
429 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
431 * src/mcs51/peeph.def: fix bug #705773
433 2003-03-20 <johan@balder>
435 An sfr/sbit can have an "at #" AND an initializer
436 * src/SDCCsymt.c (checkSClass):
437 * src/SDCCmem.c (allocGlobal):
438 * src/SDCCmem.c (allocLocal):
439 * src/SDCCast.c (createBlock):
441 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
443 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
445 2003-03-16 <johan@balder>
447 Undid the hackup of const and volatile, the problem is much bigger
449 * src/SDCCast.c:1.171
450 * src/SDCCglue.c:1.138
451 * src/SDCCicode.c:1.146
452 * src/SDCCsymt.c:1.150
455 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
457 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
458 * src/ds390/gen.c (genAddrOf): fixed bug #704087
460 2003-03-13 <johan@balder>
462 Hackup const and volatile modifiers in type chains a bit:
464 * src/SDCCast.c:1.169
465 * src/SDCCglue.c:1.136
466 * src/SDCCicode.c:1.143
467 * src/SDCCsymt.c1.146
471 2003-03-12 <johan@balder>
473 * src/SDCCBBlock.h: more LRH debugging junk
474 * src/SDCCcflow.h: more LRH debugging junk
475 * src/SDCCloop.c: more LRH debugging junk
476 * src/SDCC.y (struct_declaration): fixed bug #697590
477 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
478 * src/ds390/gen.c (aopForRemat): fixed bug #700031
479 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
481 2003-03-11 Kevin Vigor <kevin@vigor.nu>
482 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
483 test function names must now match exactly).
484 * src/SDCCcse.c: added special case in findCheaperOp to allow
485 extending a short integer. Makes less awful code for bug 700121 test case.
487 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
489 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
490 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
492 2003-03-11 Kevin Vigor <kevin@vigor.nu>
494 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
495 actually called (operandsNotEqual() was called for all
496 operandsNotEqualX tests).
498 2003-03-11 Kevin Vigor <kevin@vigor.nu>
500 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
501 with shorter literals. Fixes bug 700121.
503 2003-03-11 <johan@balder>
505 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
507 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
509 * src/SDCCloop.c (mergeRegions): an evil beast is dead
510 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
512 2003-03-10 Borut Razem <borut.razem@siol.net>
514 * src/SDCCmain.c: pipe preprocessor's output
515 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
516 * sdcc_vc_in.h: define pclose as _pclose for WIN32
517 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
518 which closes all pipes in pipeSet set
519 * src/SDCCset.c: free deleted item in function deleteSetItem()
520 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
521 moved from z80 to src subproject
522 * .version: increased version number to 2.3.4
524 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
526 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
527 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
528 * support/regression/ports/xa51/spec.mk: fix typo
530 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
532 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
534 2003-03-09 Borut Razem <borut.razem@siol.net>
536 * src/SDCCmain.c: pipe preprocessor's output
537 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
538 * sdcc_vc_in.h: define pclose as _pclose for WIN32
539 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
540 which closes all pipes in pipeSet set
541 * src/SDCCset.c: free deleted item in function deleteSetItem()
542 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
543 moved from z80 to src subproject
545 2003-03-09 Borut Razem <borut.razem@siol.net>
547 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
548 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
549 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
550 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
551 * src/SDCCglobl.h: unification of WIN32 native definitions
553 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
555 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
557 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
559 * src/configure.in: check for endianess (even while cross-compiling)
560 * src/configure: check for endianess (even while cross-compiling)
561 * src/configure_in.h: check for endianess (even while cross-compiling)
562 * src/avr/gen.c: remove old endianess stuff
563 * src/mcs51/gen.c: remove old endianess stuff
564 * src/ds390/gen.c: remove old endianess stuff
565 * src/pic/gen.c: remove old endianess stuff
566 * src/pic/genarith.c: remove old endianess stuff
567 * src/pic/glue.c: fix endianess check
568 * src/pic16/gen.c: remove old endianess stuff
569 * src/pic16/genarith.c: remove old endianess stuff
570 * src/pic16/glue.c: fix endianess check
571 * src/xa51/gen.c: remove old endianess stuff
572 * src/z80/gen.c: fix endianess check
573 * src/SDCCglue.c: fix endianess check
574 * src/ds390/peeph.def: fix bug 700036
576 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
578 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
579 * src/configure: find appropriate data-types on host for SDCC's int and long
580 * src/configure.in: find appropriate data-types on host for SDCC's int and long
581 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
582 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
584 2003-03-07 <johan@balder>
587 some minor cleanups before the big shot
588 OP_DEFS and OP_USES now use Kevin's protection
589 new option --nolabelopt
600 * src/ds390/ralloc.c:
601 * src/mcs51/ralloc.c:
606 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
608 * src/pic/pcode.c (get_op): fix 64 bit warnings
609 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
610 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
611 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
612 * support/regression/tests/malloc.c: fix 64 bit warnings
614 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
616 * src/mcs51/gen.c (genMinus): fixed bug 696436
618 2003-03-02 Borut Razem <borut.razem@siol.net>
620 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
622 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
624 * configure.in: test for mkstemp
625 * sdccconf_in.h: add HAVE_MKSTEMP
627 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
629 * device/include/ctype.h: removed warning while using --stack-auto
630 * device/include/malloc.h: removed warning while using --stack-auto
631 * device/include/string.h: removed warning while using --stack-auto
633 2003-02-23 Borut Razem <borut.razem@siol.net>
635 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
636 because NDEBUG is defined (see man assert)
637 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
639 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
641 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
642 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
644 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
646 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
647 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
649 2003-02-18 <johan@balder>
651 * as/mcs51/asmain.c (asmbl): module can start with a digit
652 * as/z80/asmain.c (asmbl): module can start with a digit
654 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
656 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
657 * src/asm.c: fix pipe() for Mingw32
659 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
661 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
662 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
663 make -V work again; --c1mode reads now from stdin
664 * doc/sdccman.lyx: added --c1mode
665 * support/Util/SDCCerr.c: new messages for c1 mode
666 * support/Util/SDCCerr.h: new messages for c1 mode
667 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
669 2003-02-15 <johan@balder>
671 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
673 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
675 * doc/sdccman.lyx: Environment variables, -o and other minor things
677 2003-02-14 <johan@balder>
679 * src/xa51/main.c: before anyone really tries to use it :)
681 * Install doc's in share/sdcc/doc
682 * removed some obsolete files
683 * Do a proper make distclean and uninstall
687 M device/include/Makefile.in
688 M device/lib/Makefile.in
691 M sim/ucsim/doc/Makefile.in
695 M support/cpp2/Makefile.in
696 M support/makebin/Makefile
699 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
701 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
703 2003-02-10 Borut Razem <borut.razem@siol.net>
705 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
706 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
707 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
708 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
709 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
710 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
711 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
712 src/z80/Makefile.bcc: Borland Makefile cleanup
713 * as/z80/Makefile.bcc: Added Borland Makefile
714 * support/cpp2/borland.h: Removed
716 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
718 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
719 * src/SDCC.lex: new pragma NOIV
720 * src/SDCCglobl.h: new pragma NOIV
721 * src/SDCCmem.c: new pragma NOIV
723 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
725 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
727 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
729 * src/SDCCmain.c: signal handling is switched off by --debug
730 * doc/Makefile: small fix for install; use clean.mk again
731 * doc/clean.mk: clean *.pdf and *.html too
733 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
735 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
736 * device/lib/printfl.c: fix a ds390 bug by making it portable
737 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
738 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
739 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
740 * debugger/mcs51/cmd.c: converted multi-line string literals
741 * sim/ucsim/globals.cc: converted multi-line string literals
742 * src/SDCCmain.c: introduced signal handler to remove temp files
743 * doc/Makefile: small tweaks, implement clean
744 * doc: removed generated files
746 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
748 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
749 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
750 Address Record is not correctly generated for DS390."
752 2003-02-02 Borut Razem <borut.razem@siol.net>
754 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
755 * as/mcs51/asm.h: fixed compilation with Borland C
756 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
757 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
758 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
759 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
760 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
761 src/z80/Makefile.bcc: delete $(LIB) only if exist
762 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
764 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
766 * device/include/malloc.h: introduced NULL
767 * device/include/string.h: introduced NULL
768 * device/include/stdlib.h: introduced NULL
769 * device/lib/_memcpy.c: removed NULL
770 * device/lib/_strcat.c: removed NULL
771 * device/lib/_strchr.c: removed NULL
772 * device/lib/_strcmp.c: removed NULL
773 * device/lib/_strcpy.c: removed NULL
774 * device/lib/_strcspn.c: removed NULL
775 * device/lib/_strlen.c: removed NULL
776 * device/lib/_strncat.c: removed NULL
777 * device/lib/_strncmp.c: removed NULL
778 * device/lib/_strncpy.c: removed NULL
779 * device/lib/_strpbrk.c: removed NULL
780 * device/lib/_strrchr.c: removed NULL
781 * device/lib/_strspn.c: removed NULL
782 * device/lib/_strstr.c: removed NULL
783 * device/lib/_strtok.c: removed NULL
784 * device/lib/malloc.c: removed NULL, include own header
786 2003-02-02 <johan@balder>
788 * 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
789 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
790 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
791 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
792 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
793 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
795 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
797 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
800 2003-02-01 <johan@balder>
802 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
804 2003-01-31 <johan@CP255758-A>
806 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
808 2003-01-30 <johan@balder>
810 * src/SDCCBBlock.c: automatic bug detection
811 * src/SDCCicode.c: automatic bug detection
813 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
815 * src/SDCCglobl.h: now --xram-size 0 works
816 * src/SDCCmain.c: now --xram-size 0 works
818 2003-01-29 <johan@balder>
820 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
822 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
824 * as/mcs51/aslink.h: Added options --xram-size and --code-size
825 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
826 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
827 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
828 * src/SDCCglobl.h: Added options --xram-size and --code-size
829 * src/SDCCmain.c: Added options --xram-size and --code-size
831 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
833 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
834 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
836 2003-01-27 <johan@balder>
838 * src/SDCC.y: fixed bug #613764
840 2003-01-26 <johan@balder>
842 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
843 * src/SDCCsymt.h: fixed bug #673374
844 * src/SDCCglue.c: fixed bug #661910
845 * src/SDCCast.c: fixed bug #458099 and 673374
847 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
849 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
850 * as/mcs51/strcmpi.h: added
851 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
852 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
853 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
854 * as/mcs51/assym.c: strcmpi -> as_strcmpi
855 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
856 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
857 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
858 * as/mcs51/Makefile.aslink: new module strcmpi
859 * as/mcs51/Makefile.asx8051: new module strcmpi
860 * as/mcs51/Makefil.bcc: new module strcmpi
861 * as/mcs51/Makefile.in: new module strcmpi
862 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
864 2003-01-26 <johan@balder>
866 * src/SDCCglue.c: reverted back to 1.124
867 * src/SDCCast.c: reverted back to 1.156
868 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
870 2003-01-25 <johan@balder>
872 * src/SDCCglue.c: A better fix for bug #661910
873 * src/SDCCast.c: A better fix for bug #661910
874 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
876 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
878 * src/Makefile.in: remove spawn.o
879 * src/SDCCmain.c: remove spawn.h
880 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
881 * src/spawn.c: removed
882 * src/spawn.h: removed
883 * support/regression/ports/ds390/spec.mk: link with -r
885 2003-01-24 <johan@CP255758-A>
887 * src/ds390/gen.c (aopOp): fixed bug #667458
888 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
889 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
890 (createIvalCharPtr): an ival doesn't always have a storage class anymore
892 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
894 * src/mcs51/peeph.def: better assembler identation by Frieder
895 * src/mcs51/gen.c: better assembler identation by Frieder
897 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
899 * as/z80/string.h: removed for gcc 3.2
900 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
901 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
903 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
905 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
906 * src/SDCCpeeph.c (replaceRule): fix bug #663503
907 * support/regression/Makefile: separate temp files for ports
908 * support/regression/generate-cases.py: separate temp files for ports
909 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
910 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
912 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
914 * moved tinitalk to device/examples/ds390
916 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
918 * as/mcs51/lkmem.c: rflag is for DS390
919 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
920 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
921 (linkEdit): move mem- and map-files the same way as ihx-files
922 * src/z80/main.c (_setDefaultOptions): removed --generic
923 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
924 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
925 * src/pic/glue.c (picglue): --c1mode works again
926 * src/pic16/glue.c (pic16glue): --c1mode works again
927 * src/asm.c (printCLine): fix #660034
929 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
931 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
932 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
933 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
934 * as/mcs51/lkmem (summary): better fix for sp problem
935 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
936 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
937 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
938 remove --stack-after-data
940 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
942 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
943 * src/SDCCutil.c (join): ugly bug: missing '\0'
944 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
946 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
948 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
950 * src/pic/main.c (_asmCmd): gpasm supports -o
951 * src/z80/main.c: more general macros
952 * device/lib/Makefile.in: remove intermediate files
954 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
956 * .version: Bumped version number to 2.3.3
957 * src/SDCCBBlock.c: new option -o
958 * src/SDCCglobl.h: new option -o
959 * src/SDCCglue.c: new option -o
960 * src/SDCCmain.c: new option -o
961 * src/asm.c: new option -o
962 * src/ds390/main.c: new option -o
963 * src/pic/glue.c: new option -o
964 * src/pic/pcode.c: new option -o
965 * src/pic/ralloc.c: new option -o
966 * src/pic16/glue.c: new option -o
967 * src/pic16/pcode.c: new option -o
968 * src/pic16/ralloc.c: new option -o
969 * src/z80/main.c: new option -o
970 * device/lib/Makefile.in: use -o
971 * support/regression/ports/ds390/spec.mk: use -o
972 * support/regression/ports/gbz80/spec.mk: use -o
973 * support/regression/ports/mcs51/spec.mk: use -o
974 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
975 * support/regression/ports/z80/spec.mk: use -o
976 * support/regression/ports/ucz80/spec.mk: use -o
977 * support/regression/ports/xa51/spec.mk: use -o
978 * support/regression/fwk/lib/timeout.c: fix usage string
980 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
981 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
983 2003-01-07 <johan@balder>
985 * src/SDCCast.c (decorateType): fixed bug #600035
987 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
988 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
989 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
990 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
991 * src/pic/pcode.c: outcommented unused variable to remove warnings
992 * src/pic/ralloc.c: outcommented unused variable to remove warnings
994 2003-01-06 <karl@turbobit.com>
995 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
998 2003-01-06 <johan@balder>
1000 * src/SDCCicode.c: fixed array add
1002 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
1003 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
1004 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
1006 2003-01-04 <johan@balder>
1008 * src/SDCCval.c (getNelements): fixed the initialized array of structures
1010 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1011 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
1013 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1014 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
1015 * support/regression/tests/bug-524697.c: fit mem usage into 8032
1017 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1018 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
1020 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
1021 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
1023 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
1024 * src/mcs51/main.c: removed {bindir}{sep} from aslink
1026 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1028 * in \sdcc\as\mcs51\ changed these files in order to create an
1029 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
1030 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
1031 following files to include the previous two files: aslink.dsp,
1032 Makefile.aslink, Makefile.bcc, and Makefile.in.
1034 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
1035 .adb instead of .cdb
1037 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1039 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
1040 value from option --iram-size.
1042 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1044 * \sdcc\as\mcs51\lklist.c: added boundary check before using
1047 2002-09-18 <wiml@hhhh.org>
1049 * SDCClrange.h: exposed setFromRange() and setToRange()
1050 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
1051 packRegsForAccUse() (bug 542397)
1052 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
1053 multiple times and emitting the fetch operations more than once
1054 added aopGetUsesAcc() function to allow binary operators to
1055 fetch their operands in the correct order; made genMinus() emit
1056 compact code for X = LITERAL - Y
1058 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1059 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
1060 sprintf() in line 1267.
1062 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1063 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
1066 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1067 Changes to aslink (All the changes are marked with 'JCF'):
1069 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
1072 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
1073 area BSEG. Also moves, if possible, the DATA area down into the internal
1074 ram so more space is available.
1076 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
1079 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
1080 not bytes. Function summary() which creates a memory usage summary
1081 file with extension .mem. Reports of overlaping stack and small stack
1082 size. If the space for the stack is less than 16 bytes aslink trows a
1085 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1086 the 8051. Option 'y' for memory summary output file.
1088 Changes to sdcc (All the changes are marked with 'JCF'):
1090 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1092 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
1093 overlaying area for it (uses RegBankUsed[4]).
1095 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
1096 bank zero as used by default. By default aslink locates the stack
1097 (equivalent to --stack-after-data). Pass option 'y' to aslink for
1098 the creation of the .mem file. Delegates the allocation of data area
1099 to aslink (it is not longer 0x30 by default). If --stack-loc passes
1100 the begining of the stack area to aslink.
1102 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
1103 glue() in SDCCglue.c creates an area for it.
1105 2002-09-03 Borut Razem <borut.razem@siol.net>
1106 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
1107 sdcc/src/pic/glue.c:
1108 introduced atexit() handler for teporay files removal in case of
1109 errors, assertions, ...
1111 2002-08-29 Borut Razem <borut.razem@siol.net>
1112 * sdcc/support/cpp2/auto-host_vc_in.h:
1113 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
1114 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
1115 Maybe there is a similar problem with BORLANDC? It should be checked!
1117 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
1118 corrected improper use of assert: the assignment to clr variable was done inside the assert.
1119 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
1120 was not executed, and the compiler (cl) launched a warning:
1121 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
1123 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
1124 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1126 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1127 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
1129 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1130 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
1131 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
1132 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1133 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
1134 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
1135 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
1136 - added Release configuration in VS projects
1137 - review of compiler an linker options
1138 - VC .exe files are generated in bin_vc directory, not to interfere
1139 with binaries generated from other projects (cygwin, mingw, bcc ...)
1141 * sdcc/src/yacc.dsp: added
1143 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
1144 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
1145 and insert the version number definitions from .version
1147 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
1149 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
1150 added - genarate auto-host.h using auto-host_vc_in.h as template
1153 removed from CVS, generated automatically
1155 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
1156 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
1158 2002-08-11 Borut Razem <borut.razem@siol.net>
1159 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
1161 2002-08-10 Borut Razem <borut.razem@siol.net>
1162 * src/SDCCmain.c (main):
1163 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
1164 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
1165 The consequence was that some temporary files were not removed.
1168 unification of code in functions tempfilename() and tempfile():
1169 function tempnam() is defined in Visual Studio 6.0 and .NET
1171 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
1173 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1174 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
1175 - removed compiler command line option /WX: Treats all warnings as errors
1176 - update a list of source files, included into the project
1178 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1179 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
1180 changed project type to Generic Project so that can be correcly converted to VS.NET project
1182 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
1184 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
1186 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1188 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1189 added return 0 statements after assert() to make compiler happy
1191 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
1192 added newline in the def file to keep MSC compiler satisfied
1194 * sdcc/src/z80/gen.c:
1195 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
1196 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
1197 - solved MSC error in function aopDump()
1199 * sdcc_vc.h: define PREFIX as "\\sdcc"
1201 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
1202 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
1204 2002-06-22 Scott Dattalo <scott@dattalo.com>
1205 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
1206 - Rewrote the register banking algorithm.
1207 - Added pCode live-range analysis to registers (for now, only non-used and
1208 singly-used registers optimized away)
1210 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
1212 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
1214 2002-05-10 Scott Dattalo <scott@dattalo.com>
1215 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1217 2002-04-22 Michael Hope <michaelh@vroom>
1219 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1221 * configure.in (DD_COPT): Added include support required for gbdk.
1223 * .version: Bumped version number just to increase it.
1225 * src/SDCCmain.c: Added -nostdinc to the default options.
1227 2002-04-15 Michael Hope <michaelh@vroom>
1229 * device/lib/z80/printf.c (sprintf): Added.
1231 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1233 * src/z80/peeph.def: Added transpose redundent load rule.
1235 * src/z80/main.c: Added force callee saves for jaune.
1237 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1239 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1241 2002-03-28 Johan Knol <johan@balder>
1243 * src/SDCCval.c: fixed bug #532436
1245 2002-03-14 Scott Dattalo <scott@dattalo.com>
1247 Added "char *Processor" field to the port structure.
1250 Added -p option. Allows port dependent processor to be specified.
1253 Initialized the new field char *Processor field to NULL in all ports
1256 Compiler generated registers for interrupt context saving
1257 were not getting allocated.
1259 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
1262 Fixed left shift. Will promote the left side of a left shift
1263 if a) left shifting more than size of operand or b) when assigned
1264 to something size > size of left side
1266 2002-03-14 Scott Dattalo <scott@dattalo.com>
1268 tons of changes. Register allocation has been
1269 rewritten. Added customization for the various PICs. Flow
1270 analysis is restructured. ...
1276 Added. device.c is a PIC port hack to accomodate variations
1279 2002-03-13 Michael Hope <michaelh@vroom>
1281 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
1283 2002-03-04 johanknol <johanknol@manik>
1285 * /src/SDCCval.c: fixed
1287 const unsigned char arr[][2] = { { 0, 1 } };
1288 t18.c:1: error: Initializer element is not constant
1290 2002-03-04 bela <bela@manik>
1292 * /device/include/mcs51reg.h:
1293 ds89c420 register definition update
1295 2002-03-03 <johan@FRIJA>
1297 * support/Util/SDCCerr.c: did something, but don't no why anymore
1299 * support/regression/tests/bug-524691.c: made it a little less shy
1301 * src/SDCCast.c (decorateType): fixed bug #524697
1303 * src/SDCCast.c: made some lineno improvements
1305 * src/SDCCval.c (getNelements): changed warning to error
1307 * src/SDCCglue.c (printIvalArray): changed warning to error
1309 * src/SDCCicode.c: fixed a warning for mingw
1311 * src/SDCCast.c (decorateType): fixed the << promotion for ops
1313 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1315 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
1317 * src/ds390/peeph.def:
1318 Added some more peephole rules
1320 * src/ds390/gen.c: Various fixes & enhancements
1322 * src/SDCClrange.c, src/SDCClrange.h:
1323 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1325 * src/ds390/ralloc.c:
1326 various fixes & enhancements (ds390) specific
1328 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
1329 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
1332 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1334 2002-03-02 <johan@FRIJA>
1336 * src/SDCCast.c (decorateType): fixed bug #524708
1338 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1340 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1342 2002-03-01 Michael Hope <michaelh@vroom>
1344 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1346 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1348 2002-03-01 <johan@FRIJA>
1350 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1352 * src/SDCCast.c (decorateType): fixed bug #524209
1354 * src/SDCCval.c (valNot): fixed bug #524195
1356 2002-02-26 <johan@balder>
1358 * src/xa51/gen.c: fixed a warning
1360 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1362 * src/SDCCast.c (decorateType): fixed bug #522534
1364 2002-02-23 <johan@balder>
1366 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1368 2002-02-22 <johan@balder>
1370 * src/SDCCast.c: fixed bug #514865
1372 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1374 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
1376 * sdcc/src/SDCCloop.c:
1377 Previous fix was not good. basic blocks that have "break" or "return" are
1378 not really partof a loop , but live ranges used in these blocks should
1379 be live thru the entire loop, so set partOfLoop but don't add them to
1382 2002-02-21 <johan@FRIJA>
1384 * src/SDCCcse.c: fixed bug #514308
1386 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
1389 Fixed BUG #519583. If a conditional block ended in a return/break
1390 statement inside a loop, it was not being considered part of the loop.
1392 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1394 2002-02-10 Karl Bongers <karl@turbobit.com>
1397 Fixed up SDCDB debugger somewhat. Updated debugger/README
1398 with lots of comments and notes.
1400 * device/examples/test2.c:
1401 Fix bug, "red" variable not being initialized(compiler complained).
1403 * device/examples/Makefile, examples/test3.c:
1404 Add Makefile in device/examples folder, compiles test3.c
1405 for use as a multiple module SDCDB test case.
1407 * sim/ucsim/cmd.src/cmdset.cc:
1408 Took out debug printfs in ucsim "next" command.
1411 Karl and Johan start ucsim XA support. Most dissassembly working,
1412 about 75% emulation done(plenty of work remaining).
1414 * sim/ucsim/z80.src:
1415 Add Z80 support to ucsim, add test-ucz80 regression test,
1416 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
1417 Notice z80 compiler fails on examples/test3.c/crc code.
1419 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
1421 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1422 Added support for --parms-in-bank1
1424 * src/ds390/peeph.def:
1425 added a few more peephole optimzations
1428 1) added __builtin_inp & __builtin_outp used to read in data of given length
1429 from a memory mapped port
1430 2) added __builtin_memcmp
1431 3) added __builtin_swapw swap bytes of a short
1433 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
1434 1) handle multiple send & receives from register bank1
1435 2) ralloc can now allocate DPTR1 to some liveRanges
1437 * src/SDCCsymt.c, src/SDCCsymt.h:
1438 changes to handle multiple sends & receives
1441 added some pointer arithmetic optimization
1444 added some pointer arithmetic optimizations but not stable yet so not
1445 called from anywhere (will get this working shortly)
1447 * src/SDCCopt.c: fixed for multiple sends & receives
1450 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
1451 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
1452 set preprocessor defines (depending on options)
1454 * src/SDCCicode.c, src/SDCCicode.h:
1455 changes made to handle multiple sends & receives
1458 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1460 * src/SDCCcse.c, src/SDCCcse.h:
1461 added function findbackward def (to be used in upcoming optimization)
1463 * src/SDCCcflow.c, src/SDCCcflow.h:
1464 added function returnAtEnd - to determine if a basic block terminates with
1467 * src/SDCCast.c, src/SDCCast.h:
1468 added option parms-in-bank1
1470 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
1471 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
1472 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
1473 adjusted for --parms-in-bank1 option
1475 * device/include/string.h:
1476 donot redefine "reentrant" keyword
1478 * device/include/ds80c390.h: Added some more SFRs
1480 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
1482 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
1484 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
1486 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1488 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
1490 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1492 2002-01-18 Paul Stoffregen <paul@pjrc.com>
1494 * Added --xram-movc option
1496 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
1498 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1500 2002-01-11 Johan Knol
1502 * Added math lib of Jesus Calvino-Fraga
1504 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
1506 * src/SDCCmain.c (processFile): fix processing of ../../src.c
1507 * support/regression/Makefile: new target test-mcs51-stack-auto
1508 * support/regression/ports/mcs51-stack-auto/spec.mk: added
1510 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1512 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1514 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1516 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1518 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
1520 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1522 * src/SDCCglue.h: add definition for printIvalChar()
1524 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1526 * src/SDCCast.c: fix #498138 by Johan
1528 * src/SDCCglue.c: fix #498138 by Johan
1530 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1532 * support/regression/Makefile: fix clean
1534 * support/regression/ports/ds390/support.c: fix transmission of last character
1536 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
1538 * /sdcc/src/ds390/gen.c:
1539 a) improved computing address of stack variable
1540 b) took out some #if 0 code
1541 c) improved parmBytes adjustment
1542 d) improved genPlusIncr & genMinusIncr
1543 e) genCmp could generate bad code (when left assigned to DPTR)
1544 f) Fixed bug in hasInc
1546 * /sdcc/src/ds390/ralloc.c:
1547 a) packRegsForSupport could mess up live information (Fixed)
1548 b) packRegsDPTRuse could be incorrect for left & right shift
1550 * /sdcc/src/mcs51/ralloc.c:
1551 packRegsForSupport could mess up the live information (Fixed)
1553 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
1555 * /sdcc/src/SDCCast.c:
1556 can reverse a loop even if function call is present as long
1557 as the loop control variable is local & is not passed as parameter
1559 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1561 * /sdcc/ChangeLog: *** empty log message ***
1563 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
1564 More builtin function additions for TININative
1566 * /sdcc/src/ds390/ralloc.c:
1567 Had broken the regression testsuite
1569 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
1571 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
1572 Added funcattr hasStackParms will be set for reentrant functions when there
1573 are paramteres on the stack, this helps in minimizing frame pointer generation
1574 typeFromStr can handle function pointers now
1576 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
1577 *** empty log message ***
1579 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1581 * /src/ds390/gen.c, /src/ds390/main.c:
1582 More builtin function additions for TININative
1584 * /src/ds390/ralloc.c:
1585 Had broken the regression testsuite
1587 * /src/SDCCast.c: Fixed a bug in dumptree
1589 * /src/SDCCsymt.c, /src/SDCCsymt.h:
1590 Added funcattr hasStackParms will be set for reentrant functions when there
1591 are paramteres on the stack, this helps in minimizing frame pointer generation
1592 typeFromStr can handle function pointers now
1594 * /doc/builtins.txt, /doc/TININative.txt:
1595 *** empty log message ***
1598 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1600 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
1601 ALPHA version for -mTININative
1603 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
1604 updated to reflect changes in the port structure
1607 added function do_assemble (similar to do_link) if non-null this function
1608 will be called to do assembly (-mTININative) requires a multi command
1610 added function genAssemblerEnd will be called to generate assembler Epilogue
1613 added _JavaNative to debug info printing
1615 * /src/SDCCmain.c: added option --tini-libid
1616 added port->do_assemble function (-mTININative) has a multi command assemble
1618 * /src/SDCCglue.c: Disabled "constExpr" check
1619 added port->genAssemblerEnd function
1621 * /src/SDCCglobl.h: Added option --tini-libid value
1624 tookout optimizeCompare from the header (has no external references)
1626 * /src/SDCCast.c: made one more function "static"
1628 2001-12-23 Michael Hope <michaelh@juju.net.nz>
1630 * src/z80/mappings.i: Added z80asm support.
1632 * src/z80/main.c: Added z80asm support on --asm=z80asm
1634 * src/z80/gen.c: Fixed asm portability issues.
1636 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
1638 * src/SDCCglue.c (printExterns): Added global/extern split.
1640 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
1642 * support/regression/Makefile: added test for mcs51 model large
1644 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
1646 * support/regression/ports/gbz80/spec.mk: added -mgbz80
1648 2001-12-05 Michael Hope <michaelh@juju.net.nz>
1650 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
1652 1904-01-06 Michael Hope <michaelh@juju.net.nz>
1654 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
1656 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
1658 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
1660 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
1662 * support/regression/tests/simplefloat.c: Port to mcs51.
1664 2001-11-25 Michael Hope <michaelh@juju.net.nz>
1665 * support/regression/tests/bug-485362.c: Added.
1667 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
1669 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
1671 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
1673 * src/z80/gen.c (aopDump): Added a dump function.
1675 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
1676 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
1678 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
1680 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
1682 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
1684 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
1686 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
1688 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
1690 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
1692 * support/regression/ports/ds390/support.c: Use tinibios.
1694 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
1696 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
1698 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
1699 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
1701 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
1703 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
1705 2001-11-18 Michael Hope <michaelh@juju.net.nz>
1707 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
1709 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
1710 (packRegsForIYUse): Created and optimised.
1712 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1714 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
1715 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
1717 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
1719 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
1721 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
1723 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1725 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
1727 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
1729 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1731 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
1733 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
1735 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
1737 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1739 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
1740 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
1741 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
1743 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
1745 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
1746 (genNotFloat): Added.
1747 (genUminusFloat): Added.
1749 * device/lib/z80/Makefile: Added floating pt stubs.
1751 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
1753 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
1755 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
1757 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1759 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
1761 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
1763 * sdcc/support/regression/Makefile: Add port ds390.
1765 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
1767 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
1769 * sdcc/support/regression/ports/ds390/spec.mk: Added.
1771 * sdcc/support/regression/ports/ds390/support.c: Added.
1773 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
1775 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
1777 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
1779 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1781 * device/include/malloc.h: Added z80 and gbz80 support.
1783 * device/lib/gbz80/heap.s: Added.
1785 * device/lib/z80/heap.s: Added.
1787 * device/lib/malloc.c: Added z80 and gbz80 support.
1789 * support/regression/tests/malloc.c (testMalloc): Added.
1791 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
1793 * support/regression/tests/bug-478094.c: Added.
1795 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
1797 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
1799 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
1801 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
1803 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
1805 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
1807 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
1809 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1811 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
1813 2001-11-03 Michael Hope <michaelh@juju.net.nz>
1815 * support/regression/tests/bug-477927.c: Added.
1817 * src/z80/peeph.def: Added minor rules.
1819 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
1821 * src/z80/peeph.def: Added jump optimisation modification.
1823 2001-11-01 Michael Hope <michaelh@juju.net.nz>
1825 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
1827 2001-10-30 Michael Hope <michaelh@juju.net.nz>
1829 * support/regression/tests/funptrs.c: Added.
1831 2001-10-29 Michael Hope <michaelh@juju.net.nz>
1833 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
1835 2001-10-28 Michael Hope <michaelh@juju.net.nz>
1837 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
1839 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
1841 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
1842 (movLeft2ResultLong): Created.
1844 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
1845 (joinPushes): Added. Joins two char pushes into a word push.
1847 2001-10-27 Michael Hope <michaelh@juju.net.nz>
1849 * support/cpp2/Makefile.in (install): Added creation of dest dir.
1851 * support/makebin/Makefile (install): Added creation of dest dir.
1853 2001-10-24 Karl Bongers <karl@turbobit.com>
1855 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
1857 2001-10-21 Michael Hope <michaelh@juju.net.nz>
1859 * src/z80/ralloc.c: Turned off faulty pack for one use.
1861 * src/z80/peeph-gbz80.def: Removed redundent restart options.
1863 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
1865 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
1867 * support/regression/Makefile: Improved clean
1869 * support/regression/ports/gbz80/spec.mk: Added clean
1871 * support/regression/ports/host/spec.mk: Added clean
1873 * support/regression/ports/z80/spec.mk: Added clean
1875 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
1877 * support/regression/ports/mcs51/timeout.c: little improvements
1879 2001-10-17 Michael Hope <michaelh@juju.net.nz>
1881 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
1883 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
1885 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
1887 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
1889 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
1891 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
1893 2001-10-13 Michael Hope <michaelh@juju.net.nz>
1894 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
1896 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
1898 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
1900 * src/mcs51/main.c (_linkCmd): Added bin path to command.
1902 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
1904 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
1906 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
1908 * support/regression/tests/longor.c: Added.
1910 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
1912 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
1914 * as/mcs51/aslink.h: define PATH_MAX
1916 * as/mcs51/asm.h: define PATH_MAX
1918 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
1920 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
1922 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
1924 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
1926 * src/SDCCglobl.h: define PATH_MAX
1928 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
1930 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
1932 2001-10-11 Michael Hope <michaelh@juju.net.nz>
1934 * src/z80/gen.c (gencjneshort): Fixed
1936 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
1938 2001-10-09 Michael Hope <michaelh@juju.net.nz>
1940 * support/regression/tests/bug-469671.c: Added.
1942 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
1944 2001-10-08 Michael Hope <michaelh@juju.net.nz>
1946 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
1948 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
1950 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
1952 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
1954 * src/device/lib/_mulint.c : removed hint: nooverlay bug
1956 * src/device/lib/_mullong.c : removed hint: nooverlay bug
1958 * src/device/lib/_divuint.c : removed hint: nooverlay bug
1960 * src/device/lib/_divulong.c: removed hint: nooverlay bug
1962 * src/device/lib/_moduint.c : removed hint: nooverlay bug
1964 * src/device/lib/_modulong.c: removed hint: nooverlay bug
1966 2001-10-07 Michael Hope <michaelh@juju.net.nz>
1968 * 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.
1970 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
1972 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
1974 2001-10-07 <johan@FRIJA>
1976 * device/lib/gets.c (gets): fixed the return value.
1978 2001-10-06 Michael Hope <michaelh@juju.net.nz>
1979 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
1981 * 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.
1983 * 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.
1985 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
1987 * src/pic/gen.c: Removed Safe_strdup.
1989 * configure.in: Added option to enable libgc support.
1991 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
1992 (bitVectUnion): Optimised.
1993 (bitVectIntersect): Optimised.
1994 (bitVectBitsInCommon): Optimised.
1995 (bitVectCplAnd): Optimised.
1997 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
1999 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2001 * src/SDCCmain.c: distinguish between assembler debug and plain options
2003 * src/avr/main.c: remove standard assembler options
2005 * src/ds390/main.c: remove standard assembler options
2007 * src/mcs51/main.c: remove standard assembler options
2009 * src/port.h: removed "PENDING" comment
2011 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2013 * src/device/lib/_mulint.c : new, with assember functions
2015 * src/device/lib/_mullong.c : new, with assember functions
2017 * src/device/lib/_divuint.c : with assember functions
2019 * src/device/lib/_divsint.c : with assember functions
2021 * src/device/lib/_divulong.c: with assember functions
2023 * src/device/lib/_divslong.c: with assember functions
2025 * src/device/lib/_moduint.c : with assember functions
2027 * src/device/lib/_modsint.c : with assember functions
2029 * src/device/lib/_modulong.c: with assember functions
2031 * src/device/lib/_modslong.c: with assember functions
2033 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
2035 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
2037 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
2038 replaced _mululong.c and _mulslong.c by _mullong.c
2040 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2042 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
2044 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2046 * src/SDCCglue.c: test, if win32api is available for MINGW
2048 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2050 * src/SDCCsymt.c: no more _modifier in printTypeChain()
2051 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
2052 * support/regression/ports/gbz80/spec.mk: removed GENERIC
2053 * support/regression/ports/host/spec.mk: removed GENERIC
2054 * support/regression/ports/mcs51/spec.mk: removed GENERIC
2055 * support/regression/ports/z80/spec.mk: removed GENERIC
2057 2001-10-01 Michael Hope <michaelh@juju.net.nz>
2059 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
2061 * support/regression/tests/bug-467035.c: Created.
2063 2001-10-01 <johan@FRIJA>
2065 * src/SDCC.y: fixed bug #466586 part 1
2067 2001-10-01 Johan Knol <johan.knol@iduna.nl>
2069 * SDCCicode.c: z80 has no generic pointers
2070 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
2072 2001-09-30 Michael Hope <michaelh@juju.net.nz>
2074 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2076 2001-09-29 Michael Hope <michaelh@juju.net.nz>
2078 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2080 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2082 2001-09-25 Michael Hope <michaelh@juju.net.nz>
2084 * configure.in: Fixed up so that ucsim is only configured once.
2086 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2088 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2089 (getPathDifference): As above.
2091 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
2093 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2095 2001-09-23 Michael Hope <michaelh@juju.net.nz>
2096 * .version: Updated to 2.3.1
2098 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2099 Added copyright header.
2101 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
2102 (assemble): Added support for macro based assembler commands.
2103 (linkEdit): Added support for macro based linker commands.
2104 (preProcess): Changed the pre-processor to use macros.
2105 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
2106 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
2108 * device/lib/z80/crt0.s: Added module name for debugging.
2110 2001-09-20 Michael Hope <michaelh@juju.net.nz>
2112 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2114 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
2116 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2118 * src/Makefile.in: Added SDCCmacro and SDCCutil
2120 2001-09-19 Michael Hope <michaelh@juju.net.nz>
2122 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2124 2001-09-16 <johan@FRIJA>
2126 * 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.
2128 2001-09-15 <johan@FRIJA>
2130 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2131 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2133 2001-09-11 <johan@FRIJA>
2135 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2137 2001-09-10 Michael Hope <michaelh@juju.net.nz>
2139 * support/regression/tests/bug-460444.c: Added test case.
2141 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2142 (genCast): Added justification for all of the asserts.
2144 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
2146 * support/regression/support.c: _xdata replaced by xdata
2148 * support/regression/spec.mk: removed _generic
2150 2001-09-09 Michael Hope <michaelh@juju.net.nz>
2152 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
2154 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
2155 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
2157 * src/z80/peeph.def: Added a rule to optimise shift then compare.
2159 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
2161 * support/regression/tests/bug-460010.c: Added test case.
2163 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
2165 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
2167 * support/regression/Makefile: inter-port-clean adjusted for mcs51
2169 * support/regression/testfwk.c: removed workaround for bug #436344
2171 * support/regression/tests/bp.c: use less memory with mcs51
2173 * support/regression/tests/bug-441448.c: use less memory
2175 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
2177 * support/regression/collate-results.py: typo
2179 2001-09-08 Michael Hope <michaelh@juju.net.nz>
2181 * support/regression/tests/fetchoverlap.c: Added new test case.
2183 * support/regression/tests/bp.c: Added new test case.
2185 * support/regression/tests/bug-448984.c: Added new test case.
2187 * support/regression/tests/pow2shifts.c: Added new test case.
2189 * src/z80/gen.c: Turned off the noise it normally generates for the release.
2190 (genlshTwo): Fixed right shift for count > 8.
2192 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2194 2001-09-08 <johan@FRIJA>
2196 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2198 2001-09-07 <johan@FRIJA>
2200 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2202 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2204 2001-09-06 <johan@FRIJA>
2206 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
2207 * bernhard noted me at this: "() equals to (void)" (1.38)
2209 2001-09-05 <johan@FRIJA>
2211 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2213 2001-09-04 <johan@FRIJA>
2215 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2218 2001-09-04 Paul Stoffregen <paul@pjrc.com>
2220 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
2222 2001-09-03 Michael Hope <michaelh@juju.net.nz>
2224 * link/z80/aslink.h: Fixed path for PATH_MAX
2226 2001-09-02 Michael Hope <michaelh@juju.net.nz>
2228 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2230 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2232 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
2234 * 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.
2236 2001-09-01 Michael Hope <michaelh@juju.net.nz>
2238 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
2239 (genCmp): Fixed up genCmp for the GB with longs.
2241 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2243 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2245 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2247 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2249 2001-08-30 Paul Stoffregen <paul@pjrc.com>
2251 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
2253 2001-08-30 Michael Hope <michaelh@juju.net.nz>
2255 * 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.
2257 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2259 2001-08-29 Michael Hope <michaelh@juju.net.nz>
2261 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
2263 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2265 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
2267 * sim/ucsim/configure: little improvement of Cygwin-detection
2268 * sim/ucsim/configure.in: little improvement of Cygwin-detection
2269 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
2270 * support/regression/tests/bug-221100.c: small changes for mcs51
2271 * support/regression/tests/bug-221168.c: small changes for mcs51
2272 * support/regression/tests/bug-227710.c: small changes for mcs51
2273 * support/regression/tests/staticinit.c: small changes for mcs51
2274 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
2275 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
2276 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601