1 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
3 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
5 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
7 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8 Fixed so you can set breakpoints prior to run, run does not stop
9 on entry now. Add tbreak. Other enhancements and fixes for use
12 2003-05-12 Borut Razem <borut.razem@siol.net>
14 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
16 2003-05-11 Borut Razem <borut.razem@siol.net>
18 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
19 the path of bin directory, so that PATH is the only env. variable, which has to be set
20 in case of standard installation.
21 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
22 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
23 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
25 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
27 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
28 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
29 temp files are in the port dir; clean the gen/test directory when
31 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
32 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
33 * support/regression/tests/zeropad.c: added
35 2003-05-09 <johan@balder>
37 * src/SDCCglue.c: fixed bug #597940
39 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
41 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
42 cache sfr, optimize next,step, fix off by one sourceline,
43 support ddd list function.
44 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
46 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
48 * support/regression/HTMLgen.py: added compare_s2f()
49 * support/regression/Makefile: redo 1.27
50 * support/regression/generate-cases.py: redo 1.5
52 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
54 * support/regression/tests/float.c: workaround 33 bit hex constant
55 * support/regression/tests/simplefloat.c: fix division for host
57 2003-04-29 Scott Dattalo <scott@dattalo.com>
59 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
60 that tame's the PIC's over-aggressive optimizer.
62 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
64 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
67 2003-04-29 Kevin Vigor <kevin@vigor.nu>
69 Initial support for DS80C400. "Hello world" runs on TINIm400
72 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
74 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
75 * Some notes on ddd usage added in debugger/README
76 Martin Helmling adding more features and fixes for ddd GUI debugger.
77 Code added for nexti, stepi, up, down, and other adjustments.
79 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
81 * src/pic/pCodepeep.c non-wildcard asmops are now handled
82 * src/pic/peeph.def Added two rules to optimize carry manipulation
83 * src/pic/* removed debug printfs
85 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
87 * debugger/mcs51/cmd.c: added header newalloc.h
89 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
91 * as/Makefile: new EXEEXT
92 * as/z80/Makefile: remove trailing slash of BUILDIR
93 * as/z80/clean.mk: new EXEEXT
94 * Makefile.common.in: add to CFLAGS (and others), don't replace it
95 * support/cpp2/Makefile.in: new EXEEXT
96 * src/pic/glue.c (pic14emitRegularMap): fixed warning
98 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
100 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
101 EXEEXT was introduced to fix all related problems with targets
102 "clean", "install" and "uninstall"; a couple of further flaws
103 especially with "clean" have been fixed too
104 * as/mcs51/Makefile.in
109 * debugger/mcs51/Makefile.in
110 * debugger/mcs51/clean.mk
112 * link/z80/Makefile.in
115 * packihx/Makefile.in
119 * sim/ucsim/avr.src/Makefile.in
120 * sim/ucsim/avr.src/clean.mk
121 * sim/ucsim/s51.src/Makefile.in
122 * sim/ucsim/s51.src/clean.mk
123 * sim/ucsim/xa.src/Makefile.in
124 * sim/ucsim/xa.src/clean.mk
125 * sim/ucsim/z80.src/Makefile.in
126 * sim/ucsim/z80.src/clean.mk
127 * sim/ucsim/main_in.mk
128 * sim/ucsim/packages_in.mk
129 * sim/ucsim/gui.src/Makefile.in
130 * sim/ucsim/gui.src/serio.src/Makefile.in
131 * sim/ucsim/gui.src/serio.src/clean.mk
134 * support/cpp2/Makefile.in
135 * support/cpp2/clean.mk
136 * support/makebin/Makefile
137 * support/makebin/clean.mk
138 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
139 * doc/sdccman.lyx: --program-suffix no longer needed
141 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
143 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
144 Martin Helmling added support for ddd GUI debugger.
145 Code added to display assembly, set variables, and other commands
148 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
150 * as/Makefile: fix target clean
151 * as/clean.mk: fix target clean
152 * as/z80/clean.mk: fix target clean
154 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
156 * Makefile.common.in: added @EXEEXT@
157 * configure.in: removed all mingw32 stuff
158 * configure: rebuilt from configure.in
159 * doc/sdccman.lyx: updated section "installation"
160 * support/scripts/sdcc_mingw32: adapted to configure
161 * support/scripts/sdcc_cygwin_mingw32: added
163 2003-04-22 Scott Dattalo <scott@dattalo.com>
165 * src/pic Added object file support for the PIC port
166 * src/pic Applied patch from Craig Franklin (this started the object file support)
167 * src/regression Updated the PIC regression tests for object files
169 2003-04-20 Borut Razem <borut.razem@siol.net>
171 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
172 lklex.c: In function `getfid':
173 lklex.c:203: warning: array subscript has type `char'
174 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
175 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
176 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
177 stack handling macros
179 2003-04-19 Borut Razem <borut.razem@siol.net>
181 * "handling space characters in file path" task:
182 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
183 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
184 * support/Util/MySystem.h: make it self-sufficient
185 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
186 src/z80/main.c, sdcc/as/mcs51/lklex.c:
187 handling space characters in file path
188 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
189 (it will be used by assemblers, which have their own includes, e.g. gpasm)
190 * support/Util/MySystem.c: handling space characters in executable's path
192 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
194 * as/z80/Makefile: fix permanent rebuild of z80
195 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
196 * support/regression/tests/bitfields.c: added Johan's bitfields.c
198 2003-04-18 Kevin Vigor <kevin@vigor.nu>
200 * src/SDCCopt.c: add special case optimization to replace modulo by
201 a power of two with a bitwise AND.
203 2003-04-18 <johan@balder>
205 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
207 2003-04-17 <johan@balder>
209 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
210 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
212 2003-04-13 Borut Razem <borut.razem@siol.net>
214 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
215 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
216 fixed mingw problem in adl_NORMALIZE_PATH
218 2003-04-12 Borut Razem <borut.razem@siol.net>
220 * fixed "#pragma SAVE/RESTORE can not be nested":
221 * src/SDCC.lex: reworked pragma handling functions
222 * sdcc/src/SDCCglobl.h: reworked stack handling macros
223 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
225 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
227 * src/SDCCutil.c (pathEquivalent): defined but not used
228 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
229 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
230 * configure: rebuilt from configure.in
231 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
232 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
233 * device/include/Makefile.in: replace sdcc_datadir
234 * device/lib/Makefile.in: replace sdcc_datadir
235 * Makefile.common.in: add LDFLAGS from configure
236 * packihx/Makefile.in: use LDFLAGS
237 * src/Makefile.in: use LDFLAGS
238 * support/cpp2/Makefile.in: add LDFLAGS from configure
239 * support/makebin/Makefile: use LDFLAGS
240 * .version: bumped version number to 2.3.5
242 2003-04-12 Borut Razem <borut.razem@siol.net>
244 * completed "different paths" task:
245 * src/SDCCmacro.c: fixed bug in handling quotes
246 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
247 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
249 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
251 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
253 2003-04-11 kevin Vigor <kevin@vigor.nu>
255 * ds390/gen.c ds390/peeph.def: fix bug 706781
257 2003-04-11 Borut Razem <borut.razem@siol.net>
259 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
261 2003-04-10 Scott Dattalo <scott@dattalo.com>
263 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
264 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
265 set - this bit used to not be set...).
266 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
268 * src/regression/and2.c added to test bug 609268
269 * src/regression/Makefile added and2.c to regression test
272 2003-04-08 <johan@CP255758-A>
274 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
275 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
276 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
278 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
280 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
282 * support/cpp2/Makefile.in: fix bug #487815
283 * configure: rebuilt from configure.in
284 * Makefile.common.in: docdir changed, new path suffixes
285 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
286 * sdcc_vc_in.h: reflect changes from sdccconf.h
287 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
288 * src/SDCCutil.h: remove BINDIR hack
289 * doc/sdccman.lyx: update new path hierarchy
291 2003-04-06 Paul Stoffregen <paul@pjrc.com>
293 * src/SDCCpeeph.c: added okToRemoveSLOC test
295 2003-04-06 Paul Stoffregen <paul@pjrc.com>
297 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
299 2003-04-06 Paul Stoffregen <paul@pjrc.com>
301 * src/SDCCpeeph.c: added labelIsReturnOnly test
302 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
304 2003-04-05 <johan@balder>
306 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
307 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
308 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
309 * src/SDCCast.c: fixed a warning
310 * src/SDCCast.h: fixed a warning
311 * src/SDCCicode.c (operandFromAst): fixed a warning
313 2003-04-04 <johan@balder>
315 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
316 * src/SDCCast.c (decorateType): fixed bug #715076
317 * src/SDCC.y: fixed bug #702907
319 2003-04-03 <johan@balder>
321 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
322 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
323 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
324 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
325 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
327 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
329 * _decdptr.c: fix return values
330 * _gptrget.c: fix return values
331 * _gptrgetc.c: fix return values
332 * _gptrput.c: fix return values
333 * _mulint.c: fix return values
334 * as/z80/Makefile: fix 'make -j' problem
336 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
338 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
339 * configure.in: big cleanup, updated to autoconf 2.5x
340 * configure: rebuilt from configure.in
341 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
342 * sdcc_vc_in.h: reflect changes from sdccconf.h
343 * doc/Makefile: fixed a flaw in "make install"
345 2003-04-02 <johan@balder>
347 * src/ds390/gen.c (genCmp): no comments
348 * src/mcs51/gen.c (genCmp): no comments
349 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
350 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
352 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
354 * support/regression/generate-cases.py: place generated file in given sub directory
355 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
356 * support/regression/Makefile: improvements for 'make -j';
357 side effect: it's simpler and faster now
359 2003-03-31 Borut Razem <borut.razem@siol.net>
361 * src/z80/main.c: link-{port} and as-{port} defined without path
362 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
364 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
366 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
368 2003-03-30 Borut Razem <borut.razem@siol.net>
370 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
371 changed type of list parameter to set
372 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
373 * src/port.h: changed type of do_assemble() parameter to set
374 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
375 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
376 definition of "cppoutfilename" macro with NULL value in preProcess()
377 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
378 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
379 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
380 replaced with set *binPathSet
381 * shash_add() deallocates the item, if allready exsists, before adding the new one
382 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
384 2003-03-30 Scott Dattalo <scott@dattalo.com>
386 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
387 a nested for loop bug in the PIC port
388 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
391 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
393 * support/Util/dbuf.h: remove C++ stuff to make it portable
395 2003-03-28 Borut Razem <borut.razem@siol.net>
397 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
398 literal strings in stringLiteral()
399 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
400 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
403 2003-03-27 Paul Stoffregen <paul@pjrc.com>
405 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
407 2003-03-26 <johan@balder>
409 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
410 * src/ds390/gen.c (saveRegisters): catched symbol abuse
411 * src/SDCCast.c (decorateType): fixed " -v < 3"
413 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
415 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
416 Added Lenny Story's debug infrastructure changes:
417 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
418 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
419 * src/cdbFile.c: added
420 * src/SDCCdebug.c: added
421 * src/SDCCdebug.h: added
422 * src/SDCCast.c (createFunction)
423 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
424 * src/SDCCmain.c (parseCmdLine, main)
425 * src/SDCCmem.c (redoStackOffsets)
426 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
429 * src/avr/gen.c (genAVRCode)
430 * src/ds390/gen.c (gen390Code)
431 * src/mcs51/gen.c (gen51Code)
432 * src/pic/gen.c (genpic14Code)
433 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
434 * src/xa51/gen.c (genXA51Code)
435 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
437 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
439 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
440 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
442 2003-03-22 <johan@balder>
444 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
446 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
448 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
449 * doc/cdbfileformat.lyx: added, written by Lenny Story
450 * doc/Makefile: added cdbfileformat.lyx
451 * doc/clean.mk: added cdbfileformat.lyx
453 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
455 * src/mcs51/peeph.def: fix bug #705773
457 2003-03-20 <johan@balder>
459 An sfr/sbit can have an "at #" AND an initializer
460 * src/SDCCsymt.c (checkSClass):
461 * src/SDCCmem.c (allocGlobal):
462 * src/SDCCmem.c (allocLocal):
463 * src/SDCCast.c (createBlock):
465 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
467 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
469 2003-03-16 <johan@balder>
471 Undid the hackup of const and volatile, the problem is much bigger
473 * src/SDCCast.c:1.171
474 * src/SDCCglue.c:1.138
475 * src/SDCCicode.c:1.146
476 * src/SDCCsymt.c:1.150
479 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
481 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
482 * src/ds390/gen.c (genAddrOf): fixed bug #704087
484 2003-03-13 <johan@balder>
486 Hackup const and volatile modifiers in type chains a bit:
488 * src/SDCCast.c:1.169
489 * src/SDCCglue.c:1.136
490 * src/SDCCicode.c:1.143
491 * src/SDCCsymt.c1.146
495 2003-03-12 <johan@balder>
497 * src/SDCCBBlock.h: more LRH debugging junk
498 * src/SDCCcflow.h: more LRH debugging junk
499 * src/SDCCloop.c: more LRH debugging junk
500 * src/SDCC.y (struct_declaration): fixed bug #697590
501 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
502 * src/ds390/gen.c (aopForRemat): fixed bug #700031
503 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
505 2003-03-11 Kevin Vigor <kevin@vigor.nu>
506 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
507 test function names must now match exactly).
508 * src/SDCCcse.c: added special case in findCheaperOp to allow
509 extending a short integer. Makes less awful code for bug 700121 test case.
511 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
513 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
514 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
516 2003-03-11 Kevin Vigor <kevin@vigor.nu>
518 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
519 actually called (operandsNotEqual() was called for all
520 operandsNotEqualX tests).
522 2003-03-11 Kevin Vigor <kevin@vigor.nu>
524 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
525 with shorter literals. Fixes bug 700121.
527 2003-03-11 <johan@balder>
529 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
531 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
533 * src/SDCCloop.c (mergeRegions): an evil beast is dead
534 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
536 2003-03-10 Borut Razem <borut.razem@siol.net>
538 * src/SDCCmain.c: pipe preprocessor's output
539 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
540 * sdcc_vc_in.h: define pclose as _pclose for WIN32
541 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
542 which closes all pipes in pipeSet set
543 * src/SDCCset.c: free deleted item in function deleteSetItem()
544 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
545 moved from z80 to src subproject
546 * .version: increased version number to 2.3.4
548 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
550 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
551 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
552 * support/regression/ports/xa51/spec.mk: fix typo
554 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
556 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
558 2003-03-09 Borut Razem <borut.razem@siol.net>
560 * src/SDCCmain.c: pipe preprocessor's output
561 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
562 * sdcc_vc_in.h: define pclose as _pclose for WIN32
563 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
564 which closes all pipes in pipeSet set
565 * src/SDCCset.c: free deleted item in function deleteSetItem()
566 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
567 moved from z80 to src subproject
569 2003-03-09 Borut Razem <borut.razem@siol.net>
571 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
572 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
573 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
574 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
575 * src/SDCCglobl.h: unification of WIN32 native definitions
577 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
579 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
581 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
583 * src/configure.in: check for endianess (even while cross-compiling)
584 * src/configure: check for endianess (even while cross-compiling)
585 * src/configure_in.h: check for endianess (even while cross-compiling)
586 * src/avr/gen.c: remove old endianess stuff
587 * src/mcs51/gen.c: remove old endianess stuff
588 * src/ds390/gen.c: remove old endianess stuff
589 * src/pic/gen.c: remove old endianess stuff
590 * src/pic/genarith.c: remove old endianess stuff
591 * src/pic/glue.c: fix endianess check
592 * src/pic16/gen.c: remove old endianess stuff
593 * src/pic16/genarith.c: remove old endianess stuff
594 * src/pic16/glue.c: fix endianess check
595 * src/xa51/gen.c: remove old endianess stuff
596 * src/z80/gen.c: fix endianess check
597 * src/SDCCglue.c: fix endianess check
598 * src/ds390/peeph.def: fix bug 700036
600 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
602 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
603 * src/configure: find appropriate data-types on host for SDCC's int and long
604 * src/configure.in: find appropriate data-types on host for SDCC's int and long
605 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
606 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
608 2003-03-07 <johan@balder>
611 some minor cleanups before the big shot
612 OP_DEFS and OP_USES now use Kevin's protection
613 new option --nolabelopt
624 * src/ds390/ralloc.c:
625 * src/mcs51/ralloc.c:
630 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
632 * src/pic/pcode.c (get_op): fix 64 bit warnings
633 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
634 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
635 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
636 * support/regression/tests/malloc.c: fix 64 bit warnings
638 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
640 * src/mcs51/gen.c (genMinus): fixed bug 696436
642 2003-03-02 Borut Razem <borut.razem@siol.net>
644 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
646 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
648 * configure.in: test for mkstemp
649 * sdccconf_in.h: add HAVE_MKSTEMP
651 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
653 * device/include/ctype.h: removed warning while using --stack-auto
654 * device/include/malloc.h: removed warning while using --stack-auto
655 * device/include/string.h: removed warning while using --stack-auto
657 2003-02-23 Borut Razem <borut.razem@siol.net>
659 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
660 because NDEBUG is defined (see man assert)
661 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
663 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
665 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
666 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
668 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
670 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
671 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
673 2003-02-18 <johan@balder>
675 * as/mcs51/asmain.c (asmbl): module can start with a digit
676 * as/z80/asmain.c (asmbl): module can start with a digit
678 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
680 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
681 * src/asm.c: fix pipe() for Mingw32
683 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
685 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
686 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
687 make -V work again; --c1mode reads now from stdin
688 * doc/sdccman.lyx: added --c1mode
689 * support/Util/SDCCerr.c: new messages for c1 mode
690 * support/Util/SDCCerr.h: new messages for c1 mode
691 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
693 2003-02-15 <johan@balder>
695 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
697 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
699 * doc/sdccman.lyx: Environment variables, -o and other minor things
701 2003-02-14 <johan@balder>
703 * src/xa51/main.c: before anyone really tries to use it :)
705 * Install doc's in share/sdcc/doc
706 * removed some obsolete files
707 * Do a proper make distclean and uninstall
711 M device/include/Makefile.in
712 M device/lib/Makefile.in
715 M sim/ucsim/doc/Makefile.in
719 M support/cpp2/Makefile.in
720 M support/makebin/Makefile
723 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
725 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
727 2003-02-10 Borut Razem <borut.razem@siol.net>
729 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
730 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
731 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
732 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
733 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
734 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
735 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
736 src/z80/Makefile.bcc: Borland Makefile cleanup
737 * as/z80/Makefile.bcc: Added Borland Makefile
738 * support/cpp2/borland.h: Removed
740 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
742 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
743 * src/SDCC.lex: new pragma NOIV
744 * src/SDCCglobl.h: new pragma NOIV
745 * src/SDCCmem.c: new pragma NOIV
747 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
749 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
751 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
753 * src/SDCCmain.c: signal handling is switched off by --debug
754 * doc/Makefile: small fix for install; use clean.mk again
755 * doc/clean.mk: clean *.pdf and *.html too
757 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
759 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
760 * device/lib/printfl.c: fix a ds390 bug by making it portable
761 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
762 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
763 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
764 * debugger/mcs51/cmd.c: converted multi-line string literals
765 * sim/ucsim/globals.cc: converted multi-line string literals
766 * src/SDCCmain.c: introduced signal handler to remove temp files
767 * doc/Makefile: small tweaks, implement clean
768 * doc: removed generated files
770 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
772 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
773 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
774 Address Record is not correctly generated for DS390."
776 2003-02-02 Borut Razem <borut.razem@siol.net>
778 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
779 * as/mcs51/asm.h: fixed compilation with Borland C
780 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
781 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
782 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
783 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
784 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
785 src/z80/Makefile.bcc: delete $(LIB) only if exist
786 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
788 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
790 * device/include/malloc.h: introduced NULL
791 * device/include/string.h: introduced NULL
792 * device/include/stdlib.h: introduced NULL
793 * device/lib/_memcpy.c: removed NULL
794 * device/lib/_strcat.c: removed NULL
795 * device/lib/_strchr.c: removed NULL
796 * device/lib/_strcmp.c: removed NULL
797 * device/lib/_strcpy.c: removed NULL
798 * device/lib/_strcspn.c: removed NULL
799 * device/lib/_strlen.c: removed NULL
800 * device/lib/_strncat.c: removed NULL
801 * device/lib/_strncmp.c: removed NULL
802 * device/lib/_strncpy.c: removed NULL
803 * device/lib/_strpbrk.c: removed NULL
804 * device/lib/_strrchr.c: removed NULL
805 * device/lib/_strspn.c: removed NULL
806 * device/lib/_strstr.c: removed NULL
807 * device/lib/_strtok.c: removed NULL
808 * device/lib/malloc.c: removed NULL, include own header
810 2003-02-02 <johan@balder>
812 * 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
813 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
814 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
815 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
816 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
817 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
819 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
821 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
824 2003-02-01 <johan@balder>
826 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
828 2003-01-31 <johan@CP255758-A>
830 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
832 2003-01-30 <johan@balder>
834 * src/SDCCBBlock.c: automatic bug detection
835 * src/SDCCicode.c: automatic bug detection
837 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
839 * src/SDCCglobl.h: now --xram-size 0 works
840 * src/SDCCmain.c: now --xram-size 0 works
842 2003-01-29 <johan@balder>
844 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
846 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
848 * as/mcs51/aslink.h: Added options --xram-size and --code-size
849 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
850 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
851 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
852 * src/SDCCglobl.h: Added options --xram-size and --code-size
853 * src/SDCCmain.c: Added options --xram-size and --code-size
855 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
857 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
858 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
860 2003-01-27 <johan@balder>
862 * src/SDCC.y: fixed bug #613764
864 2003-01-26 <johan@balder>
866 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
867 * src/SDCCsymt.h: fixed bug #673374
868 * src/SDCCglue.c: fixed bug #661910
869 * src/SDCCast.c: fixed bug #458099 and 673374
871 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
873 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
874 * as/mcs51/strcmpi.h: added
875 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
876 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
877 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
878 * as/mcs51/assym.c: strcmpi -> as_strcmpi
879 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
880 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
881 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
882 * as/mcs51/Makefile.aslink: new module strcmpi
883 * as/mcs51/Makefile.asx8051: new module strcmpi
884 * as/mcs51/Makefil.bcc: new module strcmpi
885 * as/mcs51/Makefile.in: new module strcmpi
886 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
888 2003-01-26 <johan@balder>
890 * src/SDCCglue.c: reverted back to 1.124
891 * src/SDCCast.c: reverted back to 1.156
892 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
894 2003-01-25 <johan@balder>
896 * src/SDCCglue.c: A better fix for bug #661910
897 * src/SDCCast.c: A better fix for bug #661910
898 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
900 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
902 * src/Makefile.in: remove spawn.o
903 * src/SDCCmain.c: remove spawn.h
904 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
905 * src/spawn.c: removed
906 * src/spawn.h: removed
907 * support/regression/ports/ds390/spec.mk: link with -r
909 2003-01-24 <johan@CP255758-A>
911 * src/ds390/gen.c (aopOp): fixed bug #667458
912 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
913 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
914 (createIvalCharPtr): an ival doesn't always have a storage class anymore
916 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
918 * src/mcs51/peeph.def: better assembler identation by Frieder
919 * src/mcs51/gen.c: better assembler identation by Frieder
921 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
923 * as/z80/string.h: removed for gcc 3.2
924 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
925 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
927 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
929 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
930 * src/SDCCpeeph.c (replaceRule): fix bug #663503
931 * support/regression/Makefile: separate temp files for ports
932 * support/regression/generate-cases.py: separate temp files for ports
933 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
934 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
936 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
938 * moved tinitalk to device/examples/ds390
940 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
942 * as/mcs51/lkmem.c: rflag is for DS390
943 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
944 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
945 (linkEdit): move mem- and map-files the same way as ihx-files
946 * src/z80/main.c (_setDefaultOptions): removed --generic
947 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
948 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
949 * src/pic/glue.c (picglue): --c1mode works again
950 * src/pic16/glue.c (pic16glue): --c1mode works again
951 * src/asm.c (printCLine): fix #660034
953 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
955 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
956 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
957 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
958 * as/mcs51/lkmem (summary): better fix for sp problem
959 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
960 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
961 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
962 remove --stack-after-data
964 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
966 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
967 * src/SDCCutil.c (join): ugly bug: missing '\0'
968 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
970 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
972 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
974 * src/pic/main.c (_asmCmd): gpasm supports -o
975 * src/z80/main.c: more general macros
976 * device/lib/Makefile.in: remove intermediate files
978 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
980 * .version: Bumped version number to 2.3.3
981 * src/SDCCBBlock.c: new option -o
982 * src/SDCCglobl.h: new option -o
983 * src/SDCCglue.c: new option -o
984 * src/SDCCmain.c: new option -o
985 * src/asm.c: new option -o
986 * src/ds390/main.c: new option -o
987 * src/pic/glue.c: new option -o
988 * src/pic/pcode.c: new option -o
989 * src/pic/ralloc.c: new option -o
990 * src/pic16/glue.c: new option -o
991 * src/pic16/pcode.c: new option -o
992 * src/pic16/ralloc.c: new option -o
993 * src/z80/main.c: new option -o
994 * device/lib/Makefile.in: use -o
995 * support/regression/ports/ds390/spec.mk: use -o
996 * support/regression/ports/gbz80/spec.mk: use -o
997 * support/regression/ports/mcs51/spec.mk: use -o
998 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
999 * support/regression/ports/z80/spec.mk: use -o
1000 * support/regression/ports/ucz80/spec.mk: use -o
1001 * support/regression/ports/xa51/spec.mk: use -o
1002 * support/regression/fwk/lib/timeout.c: fix usage string
1004 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
1005 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
1007 2003-01-07 <johan@balder>
1009 * src/SDCCast.c (decorateType): fixed bug #600035
1011 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
1012 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
1013 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
1014 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
1015 * src/pic/pcode.c: outcommented unused variable to remove warnings
1016 * src/pic/ralloc.c: outcommented unused variable to remove warnings
1018 2003-01-06 <karl@turbobit.com>
1019 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
1022 2003-01-06 <johan@balder>
1024 * src/SDCCicode.c: fixed array add
1026 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
1027 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
1028 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
1030 2003-01-04 <johan@balder>
1032 * src/SDCCval.c (getNelements): fixed the initialized array of structures
1034 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1035 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
1037 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1038 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
1039 * support/regression/tests/bug-524697.c: fit mem usage into 8032
1041 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1042 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
1044 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
1045 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
1047 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
1048 * src/mcs51/main.c: removed {bindir}{sep} from aslink
1050 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1052 * in \sdcc\as\mcs51\ changed these files in order to create an
1053 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
1054 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
1055 following files to include the previous two files: aslink.dsp,
1056 Makefile.aslink, Makefile.bcc, and Makefile.in.
1058 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
1059 .adb instead of .cdb
1061 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1063 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
1064 value from option --iram-size.
1066 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1068 * \sdcc\as\mcs51\lklist.c: added boundary check before using
1071 2002-09-18 <wiml@hhhh.org>
1073 * SDCClrange.h: exposed setFromRange() and setToRange()
1074 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
1075 packRegsForAccUse() (bug 542397)
1076 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
1077 multiple times and emitting the fetch operations more than once
1078 added aopGetUsesAcc() function to allow binary operators to
1079 fetch their operands in the correct order; made genMinus() emit
1080 compact code for X = LITERAL - Y
1082 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1083 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
1084 sprintf() in line 1267.
1086 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1087 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
1090 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1091 Changes to aslink (All the changes are marked with 'JCF'):
1093 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
1096 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
1097 area BSEG. Also moves, if possible, the DATA area down into the internal
1098 ram so more space is available.
1100 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
1103 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
1104 not bytes. Function summary() which creates a memory usage summary
1105 file with extension .mem. Reports of overlaping stack and small stack
1106 size. If the space for the stack is less than 16 bytes aslink trows a
1109 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1110 the 8051. Option 'y' for memory summary output file.
1112 Changes to sdcc (All the changes are marked with 'JCF'):
1114 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1116 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
1117 overlaying area for it (uses RegBankUsed[4]).
1119 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
1120 bank zero as used by default. By default aslink locates the stack
1121 (equivalent to --stack-after-data). Pass option 'y' to aslink for
1122 the creation of the .mem file. Delegates the allocation of data area
1123 to aslink (it is not longer 0x30 by default). If --stack-loc passes
1124 the begining of the stack area to aslink.
1126 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
1127 glue() in SDCCglue.c creates an area for it.
1129 2002-09-03 Borut Razem <borut.razem@siol.net>
1130 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
1131 sdcc/src/pic/glue.c:
1132 introduced atexit() handler for teporay files removal in case of
1133 errors, assertions, ...
1135 2002-08-29 Borut Razem <borut.razem@siol.net>
1136 * sdcc/support/cpp2/auto-host_vc_in.h:
1137 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
1138 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
1139 Maybe there is a similar problem with BORLANDC? It should be checked!
1141 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
1142 corrected improper use of assert: the assignment to clr variable was done inside the assert.
1143 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
1144 was not executed, and the compiler (cl) launched a warning:
1145 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
1147 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
1148 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1150 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1151 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
1153 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1154 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
1155 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
1156 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1157 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
1158 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
1159 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
1160 - added Release configuration in VS projects
1161 - review of compiler an linker options
1162 - VC .exe files are generated in bin_vc directory, not to interfere
1163 with binaries generated from other projects (cygwin, mingw, bcc ...)
1165 * sdcc/src/yacc.dsp: added
1167 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
1168 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
1169 and insert the version number definitions from .version
1171 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
1173 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
1174 added - genarate auto-host.h using auto-host_vc_in.h as template
1177 removed from CVS, generated automatically
1179 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
1180 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
1182 2002-08-11 Borut Razem <borut.razem@siol.net>
1183 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
1185 2002-08-10 Borut Razem <borut.razem@siol.net>
1186 * src/SDCCmain.c (main):
1187 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
1188 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
1189 The consequence was that some temporary files were not removed.
1192 unification of code in functions tempfilename() and tempfile():
1193 function tempnam() is defined in Visual Studio 6.0 and .NET
1195 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
1197 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1198 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
1199 - removed compiler command line option /WX: Treats all warnings as errors
1200 - update a list of source files, included into the project
1202 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1203 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
1204 changed project type to Generic Project so that can be correcly converted to VS.NET project
1206 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
1208 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
1210 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1212 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1213 added return 0 statements after assert() to make compiler happy
1215 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
1216 added newline in the def file to keep MSC compiler satisfied
1218 * sdcc/src/z80/gen.c:
1219 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
1220 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
1221 - solved MSC error in function aopDump()
1223 * sdcc_vc.h: define PREFIX as "\\sdcc"
1225 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
1226 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
1228 2002-06-22 Scott Dattalo <scott@dattalo.com>
1229 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
1230 - Rewrote the register banking algorithm.
1231 - Added pCode live-range analysis to registers (for now, only non-used and
1232 singly-used registers optimized away)
1234 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
1236 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
1238 2002-05-10 Scott Dattalo <scott@dattalo.com>
1239 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1241 2002-04-22 Michael Hope <michaelh@vroom>
1243 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1245 * configure.in (DD_COPT): Added include support required for gbdk.
1247 * .version: Bumped version number just to increase it.
1249 * src/SDCCmain.c: Added -nostdinc to the default options.
1251 2002-04-15 Michael Hope <michaelh@vroom>
1253 * device/lib/z80/printf.c (sprintf): Added.
1255 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1257 * src/z80/peeph.def: Added transpose redundent load rule.
1259 * src/z80/main.c: Added force callee saves for jaune.
1261 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1263 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1265 2002-03-28 Johan Knol <johan@balder>
1267 * src/SDCCval.c: fixed bug #532436
1269 2002-03-14 Scott Dattalo <scott@dattalo.com>
1271 Added "char *Processor" field to the port structure.
1274 Added -p option. Allows port dependent processor to be specified.
1277 Initialized the new field char *Processor field to NULL in all ports
1280 Compiler generated registers for interrupt context saving
1281 were not getting allocated.
1283 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
1286 Fixed left shift. Will promote the left side of a left shift
1287 if a) left shifting more than size of operand or b) when assigned
1288 to something size > size of left side
1290 2002-03-14 Scott Dattalo <scott@dattalo.com>
1292 tons of changes. Register allocation has been
1293 rewritten. Added customization for the various PICs. Flow
1294 analysis is restructured. ...
1300 Added. device.c is a PIC port hack to accomodate variations
1303 2002-03-13 Michael Hope <michaelh@vroom>
1305 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
1307 2002-03-04 johanknol <johanknol@manik>
1309 * /src/SDCCval.c: fixed
1311 const unsigned char arr[][2] = { { 0, 1 } };
1312 t18.c:1: error: Initializer element is not constant
1314 2002-03-04 bela <bela@manik>
1316 * /device/include/mcs51reg.h:
1317 ds89c420 register definition update
1319 2002-03-03 <johan@FRIJA>
1321 * support/Util/SDCCerr.c: did something, but don't no why anymore
1323 * support/regression/tests/bug-524691.c: made it a little less shy
1325 * src/SDCCast.c (decorateType): fixed bug #524697
1327 * src/SDCCast.c: made some lineno improvements
1329 * src/SDCCval.c (getNelements): changed warning to error
1331 * src/SDCCglue.c (printIvalArray): changed warning to error
1333 * src/SDCCicode.c: fixed a warning for mingw
1335 * src/SDCCast.c (decorateType): fixed the << promotion for ops
1337 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1339 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
1341 * src/ds390/peeph.def:
1342 Added some more peephole rules
1344 * src/ds390/gen.c: Various fixes & enhancements
1346 * src/SDCClrange.c, src/SDCClrange.h:
1347 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1349 * src/ds390/ralloc.c:
1350 various fixes & enhancements (ds390) specific
1352 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
1353 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
1356 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1358 2002-03-02 <johan@FRIJA>
1360 * src/SDCCast.c (decorateType): fixed bug #524708
1362 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1364 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1366 2002-03-01 Michael Hope <michaelh@vroom>
1368 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1370 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1372 2002-03-01 <johan@FRIJA>
1374 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1376 * src/SDCCast.c (decorateType): fixed bug #524209
1378 * src/SDCCval.c (valNot): fixed bug #524195
1380 2002-02-26 <johan@balder>
1382 * src/xa51/gen.c: fixed a warning
1384 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1386 * src/SDCCast.c (decorateType): fixed bug #522534
1388 2002-02-23 <johan@balder>
1390 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1392 2002-02-22 <johan@balder>
1394 * src/SDCCast.c: fixed bug #514865
1396 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1398 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
1400 * sdcc/src/SDCCloop.c:
1401 Previous fix was not good. basic blocks that have "break" or "return" are
1402 not really partof a loop , but live ranges used in these blocks should
1403 be live thru the entire loop, so set partOfLoop but don't add them to
1406 2002-02-21 <johan@FRIJA>
1408 * src/SDCCcse.c: fixed bug #514308
1410 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
1413 Fixed BUG #519583. If a conditional block ended in a return/break
1414 statement inside a loop, it was not being considered part of the loop.
1416 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1418 2002-02-10 Karl Bongers <karl@turbobit.com>
1421 Fixed up SDCDB debugger somewhat. Updated debugger/README
1422 with lots of comments and notes.
1424 * device/examples/test2.c:
1425 Fix bug, "red" variable not being initialized(compiler complained).
1427 * device/examples/Makefile, examples/test3.c:
1428 Add Makefile in device/examples folder, compiles test3.c
1429 for use as a multiple module SDCDB test case.
1431 * sim/ucsim/cmd.src/cmdset.cc:
1432 Took out debug printfs in ucsim "next" command.
1435 Karl and Johan start ucsim XA support. Most dissassembly working,
1436 about 75% emulation done(plenty of work remaining).
1438 * sim/ucsim/z80.src:
1439 Add Z80 support to ucsim, add test-ucz80 regression test,
1440 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
1441 Notice z80 compiler fails on examples/test3.c/crc code.
1443 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
1445 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1446 Added support for --parms-in-bank1
1448 * src/ds390/peeph.def:
1449 added a few more peephole optimzations
1452 1) added __builtin_inp & __builtin_outp used to read in data of given length
1453 from a memory mapped port
1454 2) added __builtin_memcmp
1455 3) added __builtin_swapw swap bytes of a short
1457 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
1458 1) handle multiple send & receives from register bank1
1459 2) ralloc can now allocate DPTR1 to some liveRanges
1461 * src/SDCCsymt.c, src/SDCCsymt.h:
1462 changes to handle multiple sends & receives
1465 added some pointer arithmetic optimization
1468 added some pointer arithmetic optimizations but not stable yet so not
1469 called from anywhere (will get this working shortly)
1471 * src/SDCCopt.c: fixed for multiple sends & receives
1474 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
1475 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
1476 set preprocessor defines (depending on options)
1478 * src/SDCCicode.c, src/SDCCicode.h:
1479 changes made to handle multiple sends & receives
1482 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1484 * src/SDCCcse.c, src/SDCCcse.h:
1485 added function findbackward def (to be used in upcoming optimization)
1487 * src/SDCCcflow.c, src/SDCCcflow.h:
1488 added function returnAtEnd - to determine if a basic block terminates with
1491 * src/SDCCast.c, src/SDCCast.h:
1492 added option parms-in-bank1
1494 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
1495 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
1496 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
1497 adjusted for --parms-in-bank1 option
1499 * device/include/string.h:
1500 donot redefine "reentrant" keyword
1502 * device/include/ds80c390.h: Added some more SFRs
1504 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
1506 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
1508 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
1510 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1512 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
1514 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1516 2002-01-18 Paul Stoffregen <paul@pjrc.com>
1518 * Added --xram-movc option
1520 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
1522 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1524 2002-01-11 Johan Knol
1526 * Added math lib of Jesus Calvino-Fraga
1528 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
1530 * src/SDCCmain.c (processFile): fix processing of ../../src.c
1531 * support/regression/Makefile: new target test-mcs51-stack-auto
1532 * support/regression/ports/mcs51-stack-auto/spec.mk: added
1534 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1536 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1538 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1540 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1542 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
1544 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1546 * src/SDCCglue.h: add definition for printIvalChar()
1548 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1550 * src/SDCCast.c: fix #498138 by Johan
1552 * src/SDCCglue.c: fix #498138 by Johan
1554 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1556 * support/regression/Makefile: fix clean
1558 * support/regression/ports/ds390/support.c: fix transmission of last character
1560 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
1562 * /sdcc/src/ds390/gen.c:
1563 a) improved computing address of stack variable
1564 b) took out some #if 0 code
1565 c) improved parmBytes adjustment
1566 d) improved genPlusIncr & genMinusIncr
1567 e) genCmp could generate bad code (when left assigned to DPTR)
1568 f) Fixed bug in hasInc
1570 * /sdcc/src/ds390/ralloc.c:
1571 a) packRegsForSupport could mess up live information (Fixed)
1572 b) packRegsDPTRuse could be incorrect for left & right shift
1574 * /sdcc/src/mcs51/ralloc.c:
1575 packRegsForSupport could mess up the live information (Fixed)
1577 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
1579 * /sdcc/src/SDCCast.c:
1580 can reverse a loop even if function call is present as long
1581 as the loop control variable is local & is not passed as parameter
1583 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1585 * /sdcc/ChangeLog: *** empty log message ***
1587 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
1588 More builtin function additions for TININative
1590 * /sdcc/src/ds390/ralloc.c:
1591 Had broken the regression testsuite
1593 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
1595 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
1596 Added funcattr hasStackParms will be set for reentrant functions when there
1597 are paramteres on the stack, this helps in minimizing frame pointer generation
1598 typeFromStr can handle function pointers now
1600 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
1601 *** empty log message ***
1603 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1605 * /src/ds390/gen.c, /src/ds390/main.c:
1606 More builtin function additions for TININative
1608 * /src/ds390/ralloc.c:
1609 Had broken the regression testsuite
1611 * /src/SDCCast.c: Fixed a bug in dumptree
1613 * /src/SDCCsymt.c, /src/SDCCsymt.h:
1614 Added funcattr hasStackParms will be set for reentrant functions when there
1615 are paramteres on the stack, this helps in minimizing frame pointer generation
1616 typeFromStr can handle function pointers now
1618 * /doc/builtins.txt, /doc/TININative.txt:
1619 *** empty log message ***
1622 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
1624 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
1625 ALPHA version for -mTININative
1627 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
1628 updated to reflect changes in the port structure
1631 added function do_assemble (similar to do_link) if non-null this function
1632 will be called to do assembly (-mTININative) requires a multi command
1634 added function genAssemblerEnd will be called to generate assembler Epilogue
1637 added _JavaNative to debug info printing
1639 * /src/SDCCmain.c: added option --tini-libid
1640 added port->do_assemble function (-mTININative) has a multi command assemble
1642 * /src/SDCCglue.c: Disabled "constExpr" check
1643 added port->genAssemblerEnd function
1645 * /src/SDCCglobl.h: Added option --tini-libid value
1648 tookout optimizeCompare from the header (has no external references)
1650 * /src/SDCCast.c: made one more function "static"
1652 2001-12-23 Michael Hope <michaelh@juju.net.nz>
1654 * src/z80/mappings.i: Added z80asm support.
1656 * src/z80/main.c: Added z80asm support on --asm=z80asm
1658 * src/z80/gen.c: Fixed asm portability issues.
1660 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
1662 * src/SDCCglue.c (printExterns): Added global/extern split.
1664 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
1666 * support/regression/Makefile: added test for mcs51 model large
1668 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
1670 * support/regression/ports/gbz80/spec.mk: added -mgbz80
1672 2001-12-05 Michael Hope <michaelh@juju.net.nz>
1674 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
1676 1904-01-06 Michael Hope <michaelh@juju.net.nz>
1678 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
1680 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
1682 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
1684 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
1686 * support/regression/tests/simplefloat.c: Port to mcs51.
1688 2001-11-25 Michael Hope <michaelh@juju.net.nz>
1689 * support/regression/tests/bug-485362.c: Added.
1691 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
1693 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
1695 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
1697 * src/z80/gen.c (aopDump): Added a dump function.
1699 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
1700 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
1702 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
1704 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
1706 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
1708 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
1710 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
1712 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
1714 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
1716 * support/regression/ports/ds390/support.c: Use tinibios.
1718 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
1720 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
1722 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
1723 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
1725 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
1727 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
1729 2001-11-18 Michael Hope <michaelh@juju.net.nz>
1731 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
1733 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
1734 (packRegsForIYUse): Created and optimised.
1736 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1738 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
1739 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
1741 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
1743 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
1745 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
1747 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1749 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
1751 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
1753 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1755 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
1757 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
1759 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
1761 2001-11-07 Michael Hope <michaelh@juju.net.nz>
1763 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
1764 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
1765 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
1767 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
1769 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
1770 (genNotFloat): Added.
1771 (genUminusFloat): Added.
1773 * device/lib/z80/Makefile: Added floating pt stubs.
1775 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
1777 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
1779 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
1781 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
1783 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
1785 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
1787 * sdcc/support/regression/Makefile: Add port ds390.
1789 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
1791 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
1793 * sdcc/support/regression/ports/ds390/spec.mk: Added.
1795 * sdcc/support/regression/ports/ds390/support.c: Added.
1797 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
1799 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
1801 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
1803 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1805 * device/include/malloc.h: Added z80 and gbz80 support.
1807 * device/lib/gbz80/heap.s: Added.
1809 * device/lib/z80/heap.s: Added.
1811 * device/lib/malloc.c: Added z80 and gbz80 support.
1813 * support/regression/tests/malloc.c (testMalloc): Added.
1815 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
1817 * support/regression/tests/bug-478094.c: Added.
1819 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
1821 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
1823 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
1825 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
1827 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
1829 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
1831 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
1833 2001-11-04 Michael Hope <michaelh@juju.net.nz>
1835 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
1837 2001-11-03 Michael Hope <michaelh@juju.net.nz>
1839 * support/regression/tests/bug-477927.c: Added.
1841 * src/z80/peeph.def: Added minor rules.
1843 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
1845 * src/z80/peeph.def: Added jump optimisation modification.
1847 2001-11-01 Michael Hope <michaelh@juju.net.nz>
1849 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
1851 2001-10-30 Michael Hope <michaelh@juju.net.nz>
1853 * support/regression/tests/funptrs.c: Added.
1855 2001-10-29 Michael Hope <michaelh@juju.net.nz>
1857 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
1859 2001-10-28 Michael Hope <michaelh@juju.net.nz>
1861 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
1863 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
1865 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
1866 (movLeft2ResultLong): Created.
1868 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
1869 (joinPushes): Added. Joins two char pushes into a word push.
1871 2001-10-27 Michael Hope <michaelh@juju.net.nz>
1873 * support/cpp2/Makefile.in (install): Added creation of dest dir.
1875 * support/makebin/Makefile (install): Added creation of dest dir.
1877 2001-10-24 Karl Bongers <karl@turbobit.com>
1879 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
1881 2001-10-21 Michael Hope <michaelh@juju.net.nz>
1883 * src/z80/ralloc.c: Turned off faulty pack for one use.
1885 * src/z80/peeph-gbz80.def: Removed redundent restart options.
1887 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
1889 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
1891 * support/regression/Makefile: Improved clean
1893 * support/regression/ports/gbz80/spec.mk: Added clean
1895 * support/regression/ports/host/spec.mk: Added clean
1897 * support/regression/ports/z80/spec.mk: Added clean
1899 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
1901 * support/regression/ports/mcs51/timeout.c: little improvements
1903 2001-10-17 Michael Hope <michaelh@juju.net.nz>
1905 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
1907 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
1909 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
1911 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
1913 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
1915 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
1917 2001-10-13 Michael Hope <michaelh@juju.net.nz>
1918 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
1920 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
1922 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
1924 * src/mcs51/main.c (_linkCmd): Added bin path to command.
1926 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
1928 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
1930 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
1932 * support/regression/tests/longor.c: Added.
1934 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
1936 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
1938 * as/mcs51/aslink.h: define PATH_MAX
1940 * as/mcs51/asm.h: define PATH_MAX
1942 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
1944 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
1946 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
1948 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
1950 * src/SDCCglobl.h: define PATH_MAX
1952 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
1954 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
1956 2001-10-11 Michael Hope <michaelh@juju.net.nz>
1958 * src/z80/gen.c (gencjneshort): Fixed
1960 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
1962 2001-10-09 Michael Hope <michaelh@juju.net.nz>
1964 * support/regression/tests/bug-469671.c: Added.
1966 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
1968 2001-10-08 Michael Hope <michaelh@juju.net.nz>
1970 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
1972 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
1974 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
1976 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
1978 * src/device/lib/_mulint.c : removed hint: nooverlay bug
1980 * src/device/lib/_mullong.c : removed hint: nooverlay bug
1982 * src/device/lib/_divuint.c : removed hint: nooverlay bug
1984 * src/device/lib/_divulong.c: removed hint: nooverlay bug
1986 * src/device/lib/_moduint.c : removed hint: nooverlay bug
1988 * src/device/lib/_modulong.c: removed hint: nooverlay bug
1990 2001-10-07 Michael Hope <michaelh@juju.net.nz>
1992 * 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.
1994 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
1996 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
1998 2001-10-07 <johan@FRIJA>
2000 * device/lib/gets.c (gets): fixed the return value.
2002 2001-10-06 Michael Hope <michaelh@juju.net.nz>
2003 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
2005 * 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.
2007 * 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.
2009 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
2011 * src/pic/gen.c: Removed Safe_strdup.
2013 * configure.in: Added option to enable libgc support.
2015 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
2016 (bitVectUnion): Optimised.
2017 (bitVectIntersect): Optimised.
2018 (bitVectBitsInCommon): Optimised.
2019 (bitVectCplAnd): Optimised.
2021 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
2023 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2025 * src/SDCCmain.c: distinguish between assembler debug and plain options
2027 * src/avr/main.c: remove standard assembler options
2029 * src/ds390/main.c: remove standard assembler options
2031 * src/mcs51/main.c: remove standard assembler options
2033 * src/port.h: removed "PENDING" comment
2035 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2037 * src/device/lib/_mulint.c : new, with assember functions
2039 * src/device/lib/_mullong.c : new, with assember functions
2041 * src/device/lib/_divuint.c : with assember functions
2043 * src/device/lib/_divsint.c : with assember functions
2045 * src/device/lib/_divulong.c: with assember functions
2047 * src/device/lib/_divslong.c: with assember functions
2049 * src/device/lib/_moduint.c : with assember functions
2051 * src/device/lib/_modsint.c : with assember functions
2053 * src/device/lib/_modulong.c: with assember functions
2055 * src/device/lib/_modslong.c: with assember functions
2057 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
2059 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
2061 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
2062 replaced _mululong.c and _mulslong.c by _mullong.c
2064 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2066 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
2068 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2070 * src/SDCCglue.c: test, if win32api is available for MINGW
2072 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2074 * src/SDCCsymt.c: no more _modifier in printTypeChain()
2075 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
2076 * support/regression/ports/gbz80/spec.mk: removed GENERIC
2077 * support/regression/ports/host/spec.mk: removed GENERIC
2078 * support/regression/ports/mcs51/spec.mk: removed GENERIC
2079 * support/regression/ports/z80/spec.mk: removed GENERIC
2081 2001-10-01 Michael Hope <michaelh@juju.net.nz>
2083 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
2085 * support/regression/tests/bug-467035.c: Created.
2087 2001-10-01 <johan@FRIJA>
2089 * src/SDCC.y: fixed bug #466586 part 1
2091 2001-10-01 Johan Knol <johan.knol@iduna.nl>
2093 * SDCCicode.c: z80 has no generic pointers
2094 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
2096 2001-09-30 Michael Hope <michaelh@juju.net.nz>
2098 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2100 2001-09-29 Michael Hope <michaelh@juju.net.nz>
2102 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2104 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2106 2001-09-25 Michael Hope <michaelh@juju.net.nz>
2108 * configure.in: Fixed up so that ucsim is only configured once.
2110 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2112 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2113 (getPathDifference): As above.
2115 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
2117 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2119 2001-09-23 Michael Hope <michaelh@juju.net.nz>
2120 * .version: Updated to 2.3.1
2122 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2123 Added copyright header.
2125 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
2126 (assemble): Added support for macro based assembler commands.
2127 (linkEdit): Added support for macro based linker commands.
2128 (preProcess): Changed the pre-processor to use macros.
2129 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
2130 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
2132 * device/lib/z80/crt0.s: Added module name for debugging.
2134 2001-09-20 Michael Hope <michaelh@juju.net.nz>
2136 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2138 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
2140 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2142 * src/Makefile.in: Added SDCCmacro and SDCCutil
2144 2001-09-19 Michael Hope <michaelh@juju.net.nz>
2146 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2148 2001-09-16 <johan@FRIJA>
2150 * 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.
2152 2001-09-15 <johan@FRIJA>
2154 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2155 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2157 2001-09-11 <johan@FRIJA>
2159 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2161 2001-09-10 Michael Hope <michaelh@juju.net.nz>
2163 * support/regression/tests/bug-460444.c: Added test case.
2165 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2166 (genCast): Added justification for all of the asserts.
2168 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
2170 * support/regression/support.c: _xdata replaced by xdata
2172 * support/regression/spec.mk: removed _generic
2174 2001-09-09 Michael Hope <michaelh@juju.net.nz>
2176 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
2178 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
2179 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
2181 * src/z80/peeph.def: Added a rule to optimise shift then compare.
2183 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
2185 * support/regression/tests/bug-460010.c: Added test case.
2187 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
2189 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
2191 * support/regression/Makefile: inter-port-clean adjusted for mcs51
2193 * support/regression/testfwk.c: removed workaround for bug #436344
2195 * support/regression/tests/bp.c: use less memory with mcs51
2197 * support/regression/tests/bug-441448.c: use less memory
2199 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
2201 * support/regression/collate-results.py: typo
2203 2001-09-08 Michael Hope <michaelh@juju.net.nz>
2205 * support/regression/tests/fetchoverlap.c: Added new test case.
2207 * support/regression/tests/bp.c: Added new test case.
2209 * support/regression/tests/bug-448984.c: Added new test case.
2211 * support/regression/tests/pow2shifts.c: Added new test case.
2213 * src/z80/gen.c: Turned off the noise it normally generates for the release.
2214 (genlshTwo): Fixed right shift for count > 8.
2216 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2218 2001-09-08 <johan@FRIJA>
2220 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2222 2001-09-07 <johan@FRIJA>
2224 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2226 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2228 2001-09-06 <johan@FRIJA>
2230 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
2231 * bernhard noted me at this: "() equals to (void)" (1.38)
2233 2001-09-05 <johan@FRIJA>
2235 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2237 2001-09-04 <johan@FRIJA>
2239 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2242 2001-09-04 Paul Stoffregen <paul@pjrc.com>
2244 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
2246 2001-09-03 Michael Hope <michaelh@juju.net.nz>
2248 * link/z80/aslink.h: Fixed path for PATH_MAX
2250 2001-09-02 Michael Hope <michaelh@juju.net.nz>
2252 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2254 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2256 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
2258 * 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.
2260 2001-09-01 Michael Hope <michaelh@juju.net.nz>
2262 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
2263 (genCmp): Fixed up genCmp for the GB with longs.
2265 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2267 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2269 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2271 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2273 2001-08-30 Paul Stoffregen <paul@pjrc.com>
2275 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
2277 2001-08-30 Michael Hope <michaelh@juju.net.nz>
2279 * 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.
2281 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2283 2001-08-29 Michael Hope <michaelh@juju.net.nz>
2285 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
2287 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2289 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
2291 * sim/ucsim/configure: little improvement of Cygwin-detection
2292 * sim/ucsim/configure.in: little improvement of Cygwin-detection
2293 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
2294 * support/regression/tests/bug-221100.c: small changes for mcs51
2295 * support/regression/tests/bug-221168.c: small changes for mcs51
2296 * support/regression/tests/bug-227710.c: small changes for mcs51
2297 * support/regression/tests/staticinit.c: small changes for mcs51
2298 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
2299 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
2300 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601