1 2003-07-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3 Linker now complaints if linked modules have conflicting options, for
4 example, one compiled using --model-large and another one compiled with
5 --model-small. The following files were modified:
27 2003-07-28 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
29 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
30 as/mcs51/lklibr.c: Generate a warning when a library is not found.
32 2003-07-28 Bernhard Held <bernhard@bernhardheld.de>
34 * src/z80/mappings.i: fix _mul[us][int,long] entries
36 2003-07-26 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
38 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
40 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
42 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
43 * support/regression/tests/bitopcse.c: added
51 2003-07-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
53 added support for new library format to z80, gbz80 linkers:
59 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
61 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
62 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
64 2003-07-23 Bernhard Held <bernhard@bernhardheld.de>
66 added DUMMY_READ_VOLATILE:
75 * src/SDCCcse.c (algebraicOpts): many improvements
76 * src/SDCCcse.h: removed algebraicOpts()
77 * src/SDCCicode.c (picDummyRead): added
79 2003-07-23 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
81 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
82 "Insufficient space in data memory".
84 2003-07-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
86 * src/mcs51/gen.c: fixed bug #771358
87 * src/z80/gen.c: fixed bug #759087
89 2003-07-20 Bernhard Held <bernhard@bernhardheld.de>
91 * src/pic16/glue.c: minor cleanup by Vangelis
93 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann@web.de>
95 * device/include/regc515c.h: fixed #758477
96 * device/lib/_gptrget.c: saving some cycles in generic pointer get
97 * device/lib/_gptrput.c: saved a few bytes
98 * my tab spacing is 8, yours too?)
99 * device/lib/_ser.c: process RX bytes earlier than TX bytes
100 * device/lib/serial.c: process RX bytes earlier than TX bytes
101 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
103 2003-07-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
105 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
107 2003-07-17 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
109 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
111 2003-07-17 Bernhard Held <bernhard@bernhardheld.de>
113 * device/lib/Makefile.in: bad fix, reverted to 1.43
115 2003-07-16 Bernhard Held <bernhard@bernhardheld.de>
117 * device/lib/Makefile.in: added missing z80 object files
119 2003-07-14 Bernhard Held <bernhard@bernhardheld.de>
121 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
122 pic16 progress by Vangelis:
140 2003-07-13 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
142 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
144 2003-07-12 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
146 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
147 added gbz80 build to MSVC project.
148 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
149 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
150 from 8051 stuff and setup so it links using a .lnk file.
152 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
154 * support/librarian/sdcclib.c: sdcc librarian.
155 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
158 2003-07-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
160 * as/mcs51/lkmain.c: properly handle extensions in function afile.
162 2003-07-02 Borut Razem <borut.razem@siol.net>
164 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
165 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
166 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
167 src/xa51/main.c, src/z80/main.c:
168 virtualization of glue() function: each port has it's own glue function,
169 which is accessed by do_glue function pointer in PORT.general structure
171 2003-07-01 Kevin Vigor <kevin@vigor.nu>
173 * DS800C400 fun, improved ROM interface and tinibios.
175 2003-06-27 Kevin Vigor <kevin@vigor.nu>
177 * More support for DS80C400. Now includes beginning of interface to ROM.
179 2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
181 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
183 2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
185 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
187 2003-06-19 Borut Razem <borut.razem@siol.net>
189 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
191 2003-06-19 Borut Razem <borut.razem@siol.net>
193 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
194 fixed Z80 port - crt0.o: cannot open.
196 2003-06-19 Bernhard Held <bernhard@bernhardheld.de>
198 * support/Util/MySystem.c (merge_command): revert bad fix
200 2003-06-18 Borut Razem <borut.razem@siol.net>
202 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
204 2003-06-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
206 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
207 option --use-stdout sends errors to stdout instead of stderr.
209 2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
211 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
213 2003-06-15 Borut Razem <borut.razem@siol.net>
215 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
216 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
217 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
218 fixed width array of pointers replaced with sets;
219 multiple include and lib paths ared transferred to preprocessor and linker
220 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
221 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
222 fixed width array of pointers
223 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
224 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
225 fixupPath(), getPathDifference()
226 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
227 fixed width array of pointers
229 2003-06-11 Bernhard Held <bernhard@bernhardheld.de>
231 * src/pic16/ralloc.c: fix warnings
232 * src/pic16/pcode.c: fix warning
234 2003-06-10 Scott Dattalo <scott@dattalo.com>
236 Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't
237 know all the details, but essentially this set of changes enable
238 the pic16 port to generate movff instructions and generate assembler
244 * src/pic16/device.c:
247 * src/pic16/pcoderegs.c:
248 * src/pic16/ralloc.c:
249 * src/pic16/ralloc.h:
251 2003-06-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
253 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
254 added option --vc, so sdcc errors and warnings are compatible with
255 Microsoft Visual Studio.
257 2003-06-07 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
259 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
260 device/lib/libfloat.lib: added atof function.
262 2003-06-04 Bernhard Held <bernhard@bernhardheld.de>
264 * doc/sdccman.lyx: updated to Lyx 1.3
265 * doc/cdbfileformat.lyx: updated to Lyx 1.3
266 * doc/test_suite_spec.lyx: updated to Lyx 1.3
267 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
269 2003-06-03 Bernhard Held <bernhard@bernhardheld.de>
271 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
273 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann@web.de>
275 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
276 additions to the "related tools/documentation" section
278 2003-06-02 Bernhard Held <bernhard@bernhardheld.de>
280 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
282 2003-05-29 Bernhard Held <bernhard@bernhardheld.de>
284 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
285 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
287 2003-05-28 Bernhard Held <bernhard@bernhardheld.de>
289 * doc/sdccman.lyx: fix double dash and other minor things
290 * doc/Makefile: fix double dash
292 2003-05-28 Karl Bongers(patches from Martin Helmling)
293 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
294 condition and ignore commands.
296 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
298 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
299 is in parts still quite out of date, I did changes as far as I felt makes sense
300 for a non-native english speaker.
301 Please feel free to add to the manual or to correct my changes.
302 * doc/Makefile: undid touching the date of intermediate tex files.
304 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann@web.de>
306 * doc/sdccman.lyx: Manual has an index now
308 2003-05-25 Bernhard Held <bernhard@bernhardheld.de>
310 Finalize muluint/mulsint and mululong/mulslong merging:
311 * device/lib/_mulint.c
312 * device/lib/_mullong.c
313 * device/lib/gbz80/mul.s
314 * device/lib/gbz80/stubs.s
315 * device/lib/z80/mul.s
316 * device/lib/z80/stubs.s
317 * src/SDCCsymt.c (initCSupport)
319 2003-05-25 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
321 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
322 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
323 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
324 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
327 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann@web.de>
329 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
330 the regression tests I'm not brave enough to enable 245.b, 245.c
331 * doc/sdccman.lyx: added latex preamble for hyperref package.
332 Using pdflatex this will give you a hyperlinked pdf file with
333 bookmarks. (prepend '%' before /usepackage if this breaks something)
335 2003-05-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
337 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
339 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
341 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
343 2003-05-21 <johan@balder>
345 * src/SDCCglue.c (printIval): fixed bug #739934
347 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
349 Applied patch from bug 737905 (renamed yylineo to mylineno):
356 * src/pic16/pcode.c: Cleaned warnings
357 * src/pic16/pcodeflow.c: Cleaned warnings
358 * src/pic16/pcoderegs.c: Cleaned warnings
360 2003-05-19 Scott Dattalo <scott@dattalo.com>
362 * src/pic16/pcode.c: Cleaned warnings
363 * src/pic16/pcodepeep.c: Cleaned warnings
364 * src/pic16/ralloc.c: Cleaned warnings
366 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
368 * doc/sdccman.lyx: fixed bug 739745
369 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
371 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
373 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
374 it can be defined with CFLAGS when running configure
375 * src/SDCCmain.c: fixed compiling + linking with object files
377 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
379 * configure.in: configure for pic16 port,
380 added --disable-pic16-port
381 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
382 * src/SDCCmain.c: linkOptions is changed to set *,
383 added if/endif conditional macros to remove options help
384 messages from optionsTable when a port is not configured, added
385 support for the PIc16 port in the ports table, when executing
386 the compiler with no port specified on command line, a default
387 port is selected with the new macro DEFAULT_PORT which is
388 defined in port.h, in setDefaultOptions() linkOptions is removed
389 from initialization assignment, since now it is a set,
390 parseCmdLine uses setParseWithComma for linkOptions, in
391 linkEdit() linkOptions are accessed with new function indexSet()
392 which returns the i'th item of a set variable. See SDCCset.c, in
393 linkEdit() when calling buildCmdLine(), added linkOptions as
394 last argument. Now users can pass arguments to gplink via the
395 -Wl option, main() uses pic16glue() to glue up pic16 programs
396 * src/SDCCpeeph.c: various changes to support pic16
397 * src/SDCCset.c: added function void *indexSet(set *, int) to
398 return the i'th item of the set
399 * src/SDCCset.h: added function prototype for indexSet()
400 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
401 * src/clean.mk: added pic16 in CLEANALLPORTS variable
402 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
403 added macro DEFAULT_PORT
404 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
405 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
407 * src/pic16/glue.c: commented out some error producing lines
408 * src/pic16/main.c: __config directives are commented out to stop
409 gpasm complaining and test the linkage with gplink, _linkCmd and
410 _asmCmd changed to be more gplink and gpasm friendly
411 * src/pic16/peeph.def: peep rule 3 is commented out, since it
412 produced an error when parsed, peep rule 12 is added to utilize
413 movff, but it is commented out since the pCode does not support
414 yet a command with 2 address arguments
416 2003-05-18 <johan@balder>
418 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
419 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
420 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
422 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
423 Added feature to script commands from file.
425 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
427 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
428 * src/SDCCutil.c: include ctype.h for win32
430 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
432 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
434 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
436 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
437 Fixed so you can set breakpoints prior to run, run does not stop
438 on entry now. Add tbreak. Other enhancements and fixes for use
441 2003-05-12 Borut Razem <borut.razem@siol.net>
443 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
445 2003-05-11 Borut Razem <borut.razem@siol.net>
447 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
448 the path of bin directory, so that PATH is the only env. variable, which has to be set
449 in case of standard installation.
450 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
451 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
452 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
454 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
456 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
457 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
458 temp files are in the port dir; clean the gen/test directory when
459 generating new test.c
460 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
461 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
462 * support/regression/tests/zeropad.c: added
464 2003-05-09 <johan@balder>
466 * src/SDCCglue.c: fixed bug #597940
468 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
470 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
471 cache sfr, optimize next,step, fix off by one sourceline,
472 support ddd list function.
473 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
475 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
477 * support/regression/HTMLgen.py: added compare_s2f()
478 * support/regression/Makefile: redo 1.27
479 * support/regression/generate-cases.py: redo 1.5
481 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
483 * support/regression/tests/float.c: workaround 33 bit hex constant
484 * support/regression/tests/simplefloat.c: fix division for host
486 2003-04-29 Scott Dattalo <scott@dattalo.com>
488 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
489 that tame's the PIC's over-aggressive optimizer.
491 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
493 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
496 2003-04-29 Kevin Vigor <kevin@vigor.nu>
498 Initial support for DS80C400. "Hello world" runs on TINIm400
501 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
503 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
504 * Some notes on ddd usage added in debugger/README
505 Martin Helmling adding more features and fixes for ddd GUI debugger.
506 Code added for nexti, stepi, up, down, and other adjustments.
508 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
510 * src/pic/pCodepeep.c non-wildcard asmops are now handled
511 * src/pic/peeph.def Added two rules to optimize carry manipulation
512 * src/pic/* removed debug printfs
514 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
516 * debugger/mcs51/cmd.c: added header newalloc.h
518 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
520 * as/Makefile: new EXEEXT
521 * as/z80/Makefile: remove trailing slash of BUILDIR
522 * as/z80/clean.mk: new EXEEXT
523 * Makefile.common.in: add to CFLAGS (and others), don't replace it
524 * support/cpp2/Makefile.in: new EXEEXT
525 * src/pic/glue.c (pic14emitRegularMap): fixed warning
527 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
529 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
530 EXEEXT was introduced to fix all related problems with targets
531 "clean", "install" and "uninstall"; a couple of further flaws
532 especially with "clean" have been fixed too
533 * as/mcs51/Makefile.in
538 * debugger/mcs51/Makefile.in
539 * debugger/mcs51/clean.mk
541 * link/z80/Makefile.in
544 * packihx/Makefile.in
548 * sim/ucsim/avr.src/Makefile.in
549 * sim/ucsim/avr.src/clean.mk
550 * sim/ucsim/s51.src/Makefile.in
551 * sim/ucsim/s51.src/clean.mk
552 * sim/ucsim/xa.src/Makefile.in
553 * sim/ucsim/xa.src/clean.mk
554 * sim/ucsim/z80.src/Makefile.in
555 * sim/ucsim/z80.src/clean.mk
556 * sim/ucsim/main_in.mk
557 * sim/ucsim/packages_in.mk
558 * sim/ucsim/gui.src/Makefile.in
559 * sim/ucsim/gui.src/serio.src/Makefile.in
560 * sim/ucsim/gui.src/serio.src/clean.mk
563 * support/cpp2/Makefile.in
564 * support/cpp2/clean.mk
565 * support/makebin/Makefile
566 * support/makebin/clean.mk
567 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
568 * doc/sdccman.lyx: --program-suffix no longer needed
570 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
572 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
573 Martin Helmling added support for ddd GUI debugger.
574 Code added to display assembly, set variables, and other commands
577 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
579 * as/Makefile: fix target clean
580 * as/clean.mk: fix target clean
581 * as/z80/clean.mk: fix target clean
583 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
585 * Makefile.common.in: added @EXEEXT@
586 * configure.in: removed all mingw32 stuff
587 * configure: rebuilt from configure.in
588 * doc/sdccman.lyx: updated section "installation"
589 * support/scripts/sdcc_mingw32: adapted to configure
590 * support/scripts/sdcc_cygwin_mingw32: added
592 2003-04-22 Scott Dattalo <scott@dattalo.com>
594 * src/pic Added object file support for the PIC port
595 * src/pic Applied patch from Craig Franklin (this started the object file support)
596 * src/regression Updated the PIC regression tests for object files
598 2003-04-20 Borut Razem <borut.razem@siol.net>
600 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
601 lklex.c: In function `getfid':
602 lklex.c:203: warning: array subscript has type `char'
603 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
604 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
605 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
606 stack handling macros
608 2003-04-19 Borut Razem <borut.razem@siol.net>
610 * "handling space characters in file path" task:
611 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
612 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
613 * support/Util/MySystem.h: make it self-sufficient
614 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
615 src/z80/main.c, sdcc/as/mcs51/lklex.c:
616 handling space characters in file path
617 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
618 (it will be used by assemblers, which have their own includes, e.g. gpasm)
619 * support/Util/MySystem.c: handling space characters in executable's path
621 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
623 * as/z80/Makefile: fix permanent rebuild of z80
624 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
625 * support/regression/tests/bitfields.c: added Johan's bitfields.c
627 2003-04-18 Kevin Vigor <kevin@vigor.nu>
629 * src/SDCCopt.c: add special case optimization to replace modulo by
630 a power of two with a bitwise AND.
632 2003-04-18 <johan@balder>
634 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
636 2003-04-17 <johan@balder>
638 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
639 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
641 2003-04-13 Borut Razem <borut.razem@siol.net>
643 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
644 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
645 fixed mingw problem in adl_NORMALIZE_PATH
647 2003-04-12 Borut Razem <borut.razem@siol.net>
649 * fixed "#pragma SAVE/RESTORE can not be nested":
650 * src/SDCC.lex: reworked pragma handling functions
651 * sdcc/src/SDCCglobl.h: reworked stack handling macros
652 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
654 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
656 * src/SDCCutil.c (pathEquivalent): defined but not used
657 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
658 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
659 * configure: rebuilt from configure.in
660 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
661 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
662 * device/include/Makefile.in: replace sdcc_datadir
663 * device/lib/Makefile.in: replace sdcc_datadir
664 * Makefile.common.in: add LDFLAGS from configure
665 * packihx/Makefile.in: use LDFLAGS
666 * src/Makefile.in: use LDFLAGS
667 * support/cpp2/Makefile.in: add LDFLAGS from configure
668 * support/makebin/Makefile: use LDFLAGS
669 * .version: bumped version number to 2.3.5
671 2003-04-12 Borut Razem <borut.razem@siol.net>
673 * completed "different paths" task:
674 * src/SDCCmacro.c: fixed bug in handling quotes
675 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
676 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
678 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
680 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
682 2003-04-11 kevin Vigor <kevin@vigor.nu>
684 * ds390/gen.c ds390/peeph.def: fix bug 706781
686 2003-04-11 Borut Razem <borut.razem@siol.net>
688 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
690 2003-04-10 Scott Dattalo <scott@dattalo.com>
692 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
693 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
694 set - this bit used to not be set...).
695 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
697 * src/regression/and2.c added to test bug 609268
698 * src/regression/Makefile added and2.c to regression test
701 2003-04-08 <johan@CP255758-A>
703 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
704 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
705 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
707 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
709 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
711 * support/cpp2/Makefile.in: fix bug #487815
712 * configure: rebuilt from configure.in
713 * Makefile.common.in: docdir changed, new path suffixes
714 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
715 * sdcc_vc_in.h: reflect changes from sdccconf.h
716 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
717 * src/SDCCutil.h: remove BINDIR hack
718 * doc/sdccman.lyx: update new path hierarchy
720 2003-04-06 Paul Stoffregen <paul@pjrc.com>
722 * src/SDCCpeeph.c: added okToRemoveSLOC test
724 2003-04-06 Paul Stoffregen <paul@pjrc.com>
726 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
728 2003-04-06 Paul Stoffregen <paul@pjrc.com>
730 * src/SDCCpeeph.c: added labelIsReturnOnly test
731 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
733 2003-04-05 <johan@balder>
735 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
736 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
737 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
738 * src/SDCCast.c: fixed a warning
739 * src/SDCCast.h: fixed a warning
740 * src/SDCCicode.c (operandFromAst): fixed a warning
742 2003-04-04 <johan@balder>
744 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
745 * src/SDCCast.c (decorateType): fixed bug #715076
746 * src/SDCC.y: fixed bug #702907
748 2003-04-03 <johan@balder>
750 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
751 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
752 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
753 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
754 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
756 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
758 * _decdptr.c: fix return values
759 * _gptrget.c: fix return values
760 * _gptrgetc.c: fix return values
761 * _gptrput.c: fix return values
762 * _mulint.c: fix return values
763 * as/z80/Makefile: fix 'make -j' problem
765 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
767 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
768 * configure.in: big cleanup, updated to autoconf 2.5x
769 * configure: rebuilt from configure.in
770 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
771 * sdcc_vc_in.h: reflect changes from sdccconf.h
772 * doc/Makefile: fixed a flaw in "make install"
774 2003-04-02 <johan@balder>
776 * src/ds390/gen.c (genCmp): no comments
777 * src/mcs51/gen.c (genCmp): no comments
778 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
779 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
781 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
783 * support/regression/generate-cases.py: place generated file in given sub directory
784 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
785 * support/regression/Makefile: improvements for 'make -j';
786 side effect: it's simpler and faster now
788 2003-03-31 Borut Razem <borut.razem@siol.net>
790 * src/z80/main.c: link-{port} and as-{port} defined without path
791 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
793 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
795 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
797 2003-03-30 Borut Razem <borut.razem@siol.net>
799 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
800 changed type of list parameter to set
801 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
802 * src/port.h: changed type of do_assemble() parameter to set
803 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
804 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
805 definition of "cppoutfilename" macro with NULL value in preProcess()
806 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
807 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
808 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
809 replaced with set *binPathSet
810 * shash_add() deallocates the item, if allready exsists, before adding the new one
811 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
813 2003-03-30 Scott Dattalo <scott@dattalo.com>
815 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
816 a nested for loop bug in the PIC port
817 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
820 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
822 * support/Util/dbuf.h: remove C++ stuff to make it portable
824 2003-03-28 Borut Razem <borut.razem@siol.net>
826 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
827 literal strings in stringLiteral()
828 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
829 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
832 2003-03-27 Paul Stoffregen <paul@pjrc.com>
834 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
836 2003-03-26 <johan@balder>
838 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
839 * src/ds390/gen.c (saveRegisters): catched symbol abuse
840 * src/SDCCast.c (decorateType): fixed " -v < 3"
842 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
844 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
845 Added Lenny Story's debug infrastructure changes:
846 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
847 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
848 * src/cdbFile.c: added
849 * src/SDCCdebug.c: added
850 * src/SDCCdebug.h: added
851 * src/SDCCast.c (createFunction)
852 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
853 * src/SDCCmain.c (parseCmdLine, main)
854 * src/SDCCmem.c (redoStackOffsets)
855 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
858 * src/avr/gen.c (genAVRCode)
859 * src/ds390/gen.c (gen390Code)
860 * src/mcs51/gen.c (gen51Code)
861 * src/pic/gen.c (genpic14Code)
862 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
863 * src/xa51/gen.c (genXA51Code)
864 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
866 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
868 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
869 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
871 2003-03-22 <johan@balder>
873 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
875 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
877 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
878 * doc/cdbfileformat.lyx: added, written by Lenny Story
879 * doc/Makefile: added cdbfileformat.lyx
880 * doc/clean.mk: added cdbfileformat.lyx
882 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
884 * src/mcs51/peeph.def: fix bug #705773
886 2003-03-20 <johan@balder>
888 An sfr/sbit can have an "at #" AND an initializer
889 * src/SDCCsymt.c (checkSClass):
890 * src/SDCCmem.c (allocGlobal):
891 * src/SDCCmem.c (allocLocal):
892 * src/SDCCast.c (createBlock):
894 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
896 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
898 2003-03-16 <johan@balder>
900 Undid the hackup of const and volatile, the problem is much bigger
902 * src/SDCCast.c:1.171
903 * src/SDCCglue.c:1.138
904 * src/SDCCicode.c:1.146
905 * src/SDCCsymt.c:1.150
908 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
910 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
911 * src/ds390/gen.c (genAddrOf): fixed bug #704087
913 2003-03-13 <johan@balder>
915 Hackup const and volatile modifiers in type chains a bit:
917 * src/SDCCast.c:1.169
918 * src/SDCCglue.c:1.136
919 * src/SDCCicode.c:1.143
920 * src/SDCCsymt.c1.146
924 2003-03-12 <johan@balder>
926 * src/SDCCBBlock.h: more LRH debugging junk
927 * src/SDCCcflow.h: more LRH debugging junk
928 * src/SDCCloop.c: more LRH debugging junk
929 * src/SDCC.y (struct_declaration): fixed bug #697590
930 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
931 * src/ds390/gen.c (aopForRemat): fixed bug #700031
932 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
934 2003-03-11 Kevin Vigor <kevin@vigor.nu>
935 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
936 test function names must now match exactly).
937 * src/SDCCcse.c: added special case in findCheaperOp to allow
938 extending a short integer. Makes less awful code for bug 700121 test case.
940 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
942 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
943 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
945 2003-03-11 Kevin Vigor <kevin@vigor.nu>
947 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
948 actually called (operandsNotEqual() was called for all
949 operandsNotEqualX tests).
951 2003-03-11 Kevin Vigor <kevin@vigor.nu>
953 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
954 with shorter literals. Fixes bug 700121.
956 2003-03-11 <johan@balder>
958 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
960 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
962 * src/SDCCloop.c (mergeRegions): an evil beast is dead
963 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
965 2003-03-10 Borut Razem <borut.razem@siol.net>
967 * src/SDCCmain.c: pipe preprocessor's output
968 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
969 * sdcc_vc_in.h: define pclose as _pclose for WIN32
970 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
971 which closes all pipes in pipeSet set
972 * src/SDCCset.c: free deleted item in function deleteSetItem()
973 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
974 moved from z80 to src subproject
975 * .version: increased version number to 2.3.4
977 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
979 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
980 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
981 * support/regression/ports/xa51/spec.mk: fix typo
983 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
985 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
987 2003-03-09 Borut Razem <borut.razem@siol.net>
989 * src/SDCCmain.c: pipe preprocessor's output
990 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
991 * sdcc_vc_in.h: define pclose as _pclose for WIN32
992 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
993 which closes all pipes in pipeSet set
994 * src/SDCCset.c: free deleted item in function deleteSetItem()
995 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
996 moved from z80 to src subproject
998 2003-03-09 Borut Razem <borut.razem@siol.net>
1000 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
1001 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
1002 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
1003 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
1004 * src/SDCCglobl.h: unification of WIN32 native definitions
1006 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1008 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
1010 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
1012 * src/configure.in: check for endianess (even while cross-compiling)
1013 * src/configure: check for endianess (even while cross-compiling)
1014 * src/configure_in.h: check for endianess (even while cross-compiling)
1015 * src/avr/gen.c: remove old endianess stuff
1016 * src/mcs51/gen.c: remove old endianess stuff
1017 * src/ds390/gen.c: remove old endianess stuff
1018 * src/pic/gen.c: remove old endianess stuff
1019 * src/pic/genarith.c: remove old endianess stuff
1020 * src/pic/glue.c: fix endianess check
1021 * src/pic16/gen.c: remove old endianess stuff
1022 * src/pic16/genarith.c: remove old endianess stuff
1023 * src/pic16/glue.c: fix endianess check
1024 * src/xa51/gen.c: remove old endianess stuff
1025 * src/z80/gen.c: fix endianess check
1026 * src/SDCCglue.c: fix endianess check
1027 * src/ds390/peeph.def: fix bug 700036
1029 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
1031 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
1032 * src/configure: find appropriate data-types on host for SDCC's int and long
1033 * src/configure.in: find appropriate data-types on host for SDCC's int and long
1034 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
1035 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
1037 2003-03-07 <johan@balder>
1040 some minor cleanups before the big shot
1041 OP_DEFS and OP_USES now use Kevin's protection
1042 new option --nolabelopt
1053 * src/ds390/ralloc.c:
1054 * src/mcs51/ralloc.c:
1056 * src/xa51/ralloc.c:
1059 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
1061 * src/pic/pcode.c (get_op): fix 64 bit warnings
1062 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
1063 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
1064 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
1065 * support/regression/tests/malloc.c: fix 64 bit warnings
1067 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
1069 * src/mcs51/gen.c (genMinus): fixed bug 696436
1071 2003-03-02 Borut Razem <borut.razem@siol.net>
1073 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
1075 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
1077 * configure.in: test for mkstemp
1078 * sdccconf_in.h: add HAVE_MKSTEMP
1080 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
1082 * device/include/ctype.h: removed warning while using --stack-auto
1083 * device/include/malloc.h: removed warning while using --stack-auto
1084 * device/include/string.h: removed warning while using --stack-auto
1086 2003-02-23 Borut Razem <borut.razem@siol.net>
1088 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
1089 because NDEBUG is defined (see man assert)
1090 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
1092 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1094 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
1095 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
1097 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1099 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
1100 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
1102 2003-02-18 <johan@balder>
1104 * as/mcs51/asmain.c (asmbl): module can start with a digit
1105 * as/z80/asmain.c (asmbl): module can start with a digit
1107 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
1109 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
1110 * src/asm.c: fix pipe() for Mingw32
1112 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
1114 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
1115 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
1116 make -V work again; --c1mode reads now from stdin
1117 * doc/sdccman.lyx: added --c1mode
1118 * support/Util/SDCCerr.c: new messages for c1 mode
1119 * support/Util/SDCCerr.h: new messages for c1 mode
1120 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
1122 2003-02-15 <johan@balder>
1124 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
1126 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
1128 * doc/sdccman.lyx: Environment variables, -o and other minor things
1130 2003-02-14 <johan@balder>
1132 * src/xa51/main.c: before anyone really tries to use it :)
1134 * Install doc's in share/sdcc/doc
1135 * removed some obsolete files
1136 * Do a proper make distclean and uninstall
1137 M Makefile.common.in
1140 M device/include/Makefile.in
1141 M device/lib/Makefile.in
1144 M sim/ucsim/doc/Makefile.in
1147 R src/xa51/peeph.rul
1148 M support/cpp2/Makefile.in
1149 M support/makebin/Makefile
1152 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
1154 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
1156 2003-02-10 Borut Razem <borut.razem@siol.net>
1158 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
1159 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
1160 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
1161 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
1162 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
1163 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
1164 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
1165 src/z80/Makefile.bcc: Borland Makefile cleanup
1166 * as/z80/Makefile.bcc: Added Borland Makefile
1167 * support/cpp2/borland.h: Removed
1169 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
1171 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
1172 * src/SDCC.lex: new pragma NOIV
1173 * src/SDCCglobl.h: new pragma NOIV
1174 * src/SDCCmem.c: new pragma NOIV
1176 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1178 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
1180 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1182 * src/SDCCmain.c: signal handling is switched off by --debug
1183 * doc/Makefile: small fix for install; use clean.mk again
1184 * doc/clean.mk: clean *.pdf and *.html too
1186 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
1188 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
1189 * device/lib/printfl.c: fix a ds390 bug by making it portable
1190 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
1191 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
1192 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
1193 * debugger/mcs51/cmd.c: converted multi-line string literals
1194 * sim/ucsim/globals.cc: converted multi-line string literals
1195 * src/SDCCmain.c: introduced signal handler to remove temp files
1196 * doc/Makefile: small tweaks, implement clean
1197 * doc: removed generated files
1199 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1201 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
1202 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
1203 Address Record is not correctly generated for DS390."
1205 2003-02-02 Borut Razem <borut.razem@siol.net>
1207 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
1208 * as/mcs51/asm.h: fixed compilation with Borland C
1209 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
1210 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
1211 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
1212 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
1213 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
1214 src/z80/Makefile.bcc: delete $(LIB) only if exist
1215 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
1217 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
1219 * device/include/malloc.h: introduced NULL
1220 * device/include/string.h: introduced NULL
1221 * device/include/stdlib.h: introduced NULL
1222 * device/lib/_memcpy.c: removed NULL
1223 * device/lib/_strcat.c: removed NULL
1224 * device/lib/_strchr.c: removed NULL
1225 * device/lib/_strcmp.c: removed NULL
1226 * device/lib/_strcpy.c: removed NULL
1227 * device/lib/_strcspn.c: removed NULL
1228 * device/lib/_strlen.c: removed NULL
1229 * device/lib/_strncat.c: removed NULL
1230 * device/lib/_strncmp.c: removed NULL
1231 * device/lib/_strncpy.c: removed NULL
1232 * device/lib/_strpbrk.c: removed NULL
1233 * device/lib/_strrchr.c: removed NULL
1234 * device/lib/_strspn.c: removed NULL
1235 * device/lib/_strstr.c: removed NULL
1236 * device/lib/_strtok.c: removed NULL
1237 * device/lib/malloc.c: removed NULL, include own header
1239 2003-02-02 <johan@balder>
1241 * 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
1242 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
1243 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
1244 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
1245 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
1246 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
1248 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1250 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
1253 2003-02-01 <johan@balder>
1255 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
1257 2003-01-31 <johan@CP255758-A>
1259 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
1261 2003-01-30 <johan@balder>
1263 * src/SDCCBBlock.c: automatic bug detection
1264 * src/SDCCicode.c: automatic bug detection
1266 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1268 * src/SDCCglobl.h: now --xram-size 0 works
1269 * src/SDCCmain.c: now --xram-size 0 works
1271 2003-01-29 <johan@balder>
1273 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
1275 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1277 * as/mcs51/aslink.h: Added options --xram-size and --code-size
1278 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
1279 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
1280 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
1281 * src/SDCCglobl.h: Added options --xram-size and --code-size
1282 * src/SDCCmain.c: Added options --xram-size and --code-size
1284 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
1286 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
1287 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
1289 2003-01-27 <johan@balder>
1291 * src/SDCC.y: fixed bug #613764
1293 2003-01-26 <johan@balder>
1295 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
1296 * src/SDCCsymt.h: fixed bug #673374
1297 * src/SDCCglue.c: fixed bug #661910
1298 * src/SDCCast.c: fixed bug #458099 and 673374
1300 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
1302 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
1303 * as/mcs51/strcmpi.h: added
1304 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
1305 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
1306 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
1307 * as/mcs51/assym.c: strcmpi -> as_strcmpi
1308 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
1309 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
1310 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
1311 * as/mcs51/Makefile.aslink: new module strcmpi
1312 * as/mcs51/Makefile.asx8051: new module strcmpi
1313 * as/mcs51/Makefil.bcc: new module strcmpi
1314 * as/mcs51/Makefile.in: new module strcmpi
1315 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
1317 2003-01-26 <johan@balder>
1319 * src/SDCCglue.c: reverted back to 1.124
1320 * src/SDCCast.c: reverted back to 1.156
1321 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
1323 2003-01-25 <johan@balder>
1325 * src/SDCCglue.c: A better fix for bug #661910
1326 * src/SDCCast.c: A better fix for bug #661910
1327 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
1329 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1331 * src/Makefile.in: remove spawn.o
1332 * src/SDCCmain.c: remove spawn.h
1333 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
1334 * src/spawn.c: removed
1335 * src/spawn.h: removed
1336 * support/regression/ports/ds390/spec.mk: link with -r
1338 2003-01-24 <johan@CP255758-A>
1340 * src/ds390/gen.c (aopOp): fixed bug #667458
1341 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
1342 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
1343 (createIvalCharPtr): an ival doesn't always have a storage class anymore
1345 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1347 * src/mcs51/peeph.def: better assembler identation by Frieder
1348 * src/mcs51/gen.c: better assembler identation by Frieder
1350 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
1352 * as/z80/string.h: removed for gcc 3.2
1353 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
1354 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
1356 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
1358 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
1359 * src/SDCCpeeph.c (replaceRule): fix bug #663503
1360 * support/regression/Makefile: separate temp files for ports
1361 * support/regression/generate-cases.py: separate temp files for ports
1362 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
1363 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
1365 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
1367 * moved tinitalk to device/examples/ds390
1369 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
1371 * as/mcs51/lkmem.c: rflag is for DS390
1372 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
1373 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
1374 (linkEdit): move mem- and map-files the same way as ihx-files
1375 * src/z80/main.c (_setDefaultOptions): removed --generic
1376 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
1377 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
1378 * src/pic/glue.c (picglue): --c1mode works again
1379 * src/pic16/glue.c (pic16glue): --c1mode works again
1380 * src/asm.c (printCLine): fix #660034
1382 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
1384 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
1385 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
1386 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
1387 * as/mcs51/lkmem (summary): better fix for sp problem
1388 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
1389 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
1390 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
1391 remove --stack-after-data
1393 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
1395 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
1396 * src/SDCCutil.c (join): ugly bug: missing '\0'
1397 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
1399 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
1401 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
1403 * src/pic/main.c (_asmCmd): gpasm supports -o
1404 * src/z80/main.c: more general macros
1405 * device/lib/Makefile.in: remove intermediate files
1407 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
1409 * .version: Bumped version number to 2.3.3
1410 * src/SDCCBBlock.c: new option -o
1411 * src/SDCCglobl.h: new option -o
1412 * src/SDCCglue.c: new option -o
1413 * src/SDCCmain.c: new option -o
1414 * src/asm.c: new option -o
1415 * src/ds390/main.c: new option -o
1416 * src/pic/glue.c: new option -o
1417 * src/pic/pcode.c: new option -o
1418 * src/pic/ralloc.c: new option -o
1419 * src/pic16/glue.c: new option -o
1420 * src/pic16/pcode.c: new option -o
1421 * src/pic16/ralloc.c: new option -o
1422 * src/z80/main.c: new option -o
1423 * device/lib/Makefile.in: use -o
1424 * support/regression/ports/ds390/spec.mk: use -o
1425 * support/regression/ports/gbz80/spec.mk: use -o
1426 * support/regression/ports/mcs51/spec.mk: use -o
1427 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
1428 * support/regression/ports/z80/spec.mk: use -o
1429 * support/regression/ports/ucz80/spec.mk: use -o
1430 * support/regression/ports/xa51/spec.mk: use -o
1431 * support/regression/fwk/lib/timeout.c: fix usage string
1433 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
1434 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
1436 2003-01-07 <johan@balder>
1438 * src/SDCCast.c (decorateType): fixed bug #600035
1440 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
1441 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
1442 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
1443 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
1444 * src/pic/pcode.c: outcommented unused variable to remove warnings
1445 * src/pic/ralloc.c: outcommented unused variable to remove warnings
1447 2003-01-06 <karl@turbobit.com>
1448 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
1451 2003-01-06 <johan@balder>
1453 * src/SDCCicode.c: fixed array add
1455 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
1456 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
1457 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
1459 2003-01-04 <johan@balder>
1461 * src/SDCCval.c (getNelements): fixed the initialized array of structures
1463 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1464 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
1466 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1467 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
1468 * support/regression/tests/bug-524697.c: fit mem usage into 8032
1470 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1471 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
1473 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
1474 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
1476 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
1477 * src/mcs51/main.c: removed {bindir}{sep} from aslink
1479 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1481 * in \sdcc\as\mcs51\ changed these files in order to create an
1482 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
1483 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
1484 following files to include the previous two files: aslink.dsp,
1485 Makefile.aslink, Makefile.bcc, and Makefile.in.
1487 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
1488 .adb instead of .cdb
1490 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1492 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
1493 value from option --iram-size.
1495 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1497 * \sdcc\as\mcs51\lklist.c: added boundary check before using
1500 2002-09-18 <wiml@hhhh.org>
1502 * SDCClrange.h: exposed setFromRange() and setToRange()
1503 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
1504 packRegsForAccUse() (bug 542397)
1505 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
1506 multiple times and emitting the fetch operations more than once
1507 added aopGetUsesAcc() function to allow binary operators to
1508 fetch their operands in the correct order; made genMinus() emit
1509 compact code for X = LITERAL - Y
1511 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1512 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
1513 sprintf() in line 1267.
1515 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1516 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
1519 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1520 Changes to aslink (All the changes are marked with 'JCF'):
1522 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
1525 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
1526 area BSEG. Also moves, if possible, the DATA area down into the internal
1527 ram so more space is available.
1529 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
1532 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
1533 not bytes. Function summary() which creates a memory usage summary
1534 file with extension .mem. Reports of overlaping stack and small stack
1535 size. If the space for the stack is less than 16 bytes aslink trows a
1538 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1539 the 8051. Option 'y' for memory summary output file.
1541 Changes to sdcc (All the changes are marked with 'JCF'):
1543 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1545 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
1546 overlaying area for it (uses RegBankUsed[4]).
1548 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
1549 bank zero as used by default. By default aslink locates the stack
1550 (equivalent to --stack-after-data). Pass option 'y' to aslink for
1551 the creation of the .mem file. Delegates the allocation of data area
1552 to aslink (it is not longer 0x30 by default). If --stack-loc passes
1553 the begining of the stack area to aslink.
1555 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
1556 glue() in SDCCglue.c creates an area for it.
1558 2002-09-03 Borut Razem <borut.razem@siol.net>
1559 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
1560 sdcc/src/pic/glue.c:
1561 introduced atexit() handler for teporay files removal in case of
1562 errors, assertions, ...
1564 2002-08-29 Borut Razem <borut.razem@siol.net>
1565 * sdcc/support/cpp2/auto-host_vc_in.h:
1566 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
1567 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
1568 Maybe there is a similar problem with BORLANDC? It should be checked!
1570 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
1571 corrected improper use of assert: the assignment to clr variable was done inside the assert.
1572 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
1573 was not executed, and the compiler (cl) launched a warning:
1574 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
1576 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
1577 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1579 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1580 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
1582 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1583 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
1584 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
1585 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1586 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
1587 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
1588 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
1589 - added Release configuration in VS projects
1590 - review of compiler an linker options
1591 - VC .exe files are generated in bin_vc directory, not to interfere
1592 with binaries generated from other projects (cygwin, mingw, bcc ...)
1594 * sdcc/src/yacc.dsp: added
1596 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
1597 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
1598 and insert the version number definitions from .version
1600 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
1602 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
1603 added - genarate auto-host.h using auto-host_vc_in.h as template
1606 removed from CVS, generated automatically
1608 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
1609 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
1611 2002-08-11 Borut Razem <borut.razem@siol.net>
1612 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
1614 2002-08-10 Borut Razem <borut.razem@siol.net>
1615 * src/SDCCmain.c (main):
1616 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
1617 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
1618 The consequence was that some temporary files were not removed.
1621 unification of code in functions tempfilename() and tempfile():
1622 function tempnam() is defined in Visual Studio 6.0 and .NET
1624 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
1626 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
1627 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
1628 - removed compiler command line option /WX: Treats all warnings as errors
1629 - update a list of source files, included into the project
1631 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
1632 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
1633 changed project type to Generic Project so that can be correcly converted to VS.NET project
1635 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
1637 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
1639 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
1641 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
1642 added return 0 statements after assert() to make compiler happy
1644 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
1645 added newline in the def file to keep MSC compiler satisfied
1647 * sdcc/src/z80/gen.c:
1648 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
1649 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
1650 - solved MSC error in function aopDump()
1652 * sdcc_vc.h: define PREFIX as "\\sdcc"
1654 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
1655 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
1657 2002-06-22 Scott Dattalo <scott@dattalo.com>
1658 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
1659 - Rewrote the register banking algorithm.
1660 - Added pCode live-range analysis to registers (for now, only non-used and
1661 singly-used registers optimized away)
1663 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
1665 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
1667 2002-05-10 Scott Dattalo <scott@dattalo.com>
1668 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
1670 2002-04-22 Michael Hope <michaelh@vroom>
1672 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
1674 * configure.in (DD_COPT): Added include support required for gbdk.
1676 * .version: Bumped version number just to increase it.
1678 * src/SDCCmain.c: Added -nostdinc to the default options.
1680 2002-04-15 Michael Hope <michaelh@vroom>
1682 * device/lib/z80/printf.c (sprintf): Added.
1684 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
1686 * src/z80/peeph.def: Added transpose redundent load rule.
1688 * src/z80/main.c: Added force callee saves for jaune.
1690 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
1692 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
1694 2002-03-28 Johan Knol <johan@balder>
1696 * src/SDCCval.c: fixed bug #532436
1698 2002-03-14 Scott Dattalo <scott@dattalo.com>
1700 Added "char *Processor" field to the port structure.
1703 Added -p option. Allows port dependent processor to be specified.
1706 Initialized the new field char *Processor field to NULL in all ports
1709 Compiler generated registers for interrupt context saving
1710 were not getting allocated.
1712 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
1715 Fixed left shift. Will promote the left side of a left shift
1716 if a) left shifting more than size of operand or b) when assigned
1717 to something size > size of left side
1719 2002-03-14 Scott Dattalo <scott@dattalo.com>
1721 tons of changes. Register allocation has been
1722 rewritten. Added customization for the various PICs. Flow
1723 analysis is restructured. ...
1729 Added. device.c is a PIC port hack to accomodate variations
1732 2002-03-13 Michael Hope <michaelh@vroom>
1734 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
1736 2002-03-04 johanknol <johanknol@manik>
1738 * /src/SDCCval.c: fixed
1740 const unsigned char arr[][2] = { { 0, 1 } };
1741 t18.c:1: error: Initializer element is not constant
1743 2002-03-04 bela <bela@manik>
1745 * /device/include/mcs51reg.h:
1746 ds89c420 register definition update
1748 2002-03-03 <johan@FRIJA>
1750 * support/Util/SDCCerr.c: did something, but don't no why anymore
1752 * support/regression/tests/bug-524691.c: made it a little less shy
1754 * src/SDCCast.c (decorateType): fixed bug #524697
1756 * src/SDCCast.c: made some lineno improvements
1758 * src/SDCCval.c (getNelements): changed warning to error
1760 * src/SDCCglue.c (printIvalArray): changed warning to error
1762 * src/SDCCicode.c: fixed a warning for mingw
1764 * src/SDCCast.c (decorateType): fixed the << promotion for ops
1766 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
1768 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
1770 * src/ds390/peeph.def:
1771 Added some more peephole rules
1773 * src/ds390/gen.c: Various fixes & enhancements
1775 * src/SDCClrange.c, src/SDCClrange.h:
1776 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
1778 * src/ds390/ralloc.c:
1779 various fixes & enhancements (ds390) specific
1781 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
1782 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
1785 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
1787 2002-03-02 <johan@FRIJA>
1789 * src/SDCCast.c (decorateType): fixed bug #524708
1791 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
1793 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
1795 2002-03-01 Michael Hope <michaelh@vroom>
1797 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
1799 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
1801 2002-03-01 <johan@FRIJA>
1803 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
1805 * src/SDCCast.c (decorateType): fixed bug #524209
1807 * src/SDCCval.c (valNot): fixed bug #524195
1809 2002-02-26 <johan@balder>
1811 * src/xa51/gen.c: fixed a warning
1813 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
1815 * src/SDCCast.c (decorateType): fixed bug #522534
1817 2002-02-23 <johan@balder>
1819 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
1821 2002-02-22 <johan@balder>
1823 * src/SDCCast.c: fixed bug #514865
1825 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
1827 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
1829 * sdcc/src/SDCCloop.c:
1830 Previous fix was not good. basic blocks that have "break" or "return" are
1831 not really partof a loop , but live ranges used in these blocks should
1832 be live thru the entire loop, so set partOfLoop but don't add them to
1835 2002-02-21 <johan@FRIJA>
1837 * src/SDCCcse.c: fixed bug #514308
1839 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
1842 Fixed BUG #519583. If a conditional block ended in a return/break
1843 statement inside a loop, it was not being considered part of the loop.
1845 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
1847 2002-02-10 Karl Bongers <karl@turbobit.com>
1850 Fixed up SDCDB debugger somewhat. Updated debugger/README
1851 with lots of comments and notes.
1853 * device/examples/test2.c:
1854 Fix bug, "red" variable not being initialized(compiler complained).
1856 * device/examples/Makefile, examples/test3.c:
1857 Add Makefile in device/examples folder, compiles test3.c
1858 for use as a multiple module SDCDB test case.
1860 * sim/ucsim/cmd.src/cmdset.cc:
1861 Took out debug printfs in ucsim "next" command.
1864 Karl and Johan start ucsim XA support. Most dissassembly working,
1865 about 75% emulation done(plenty of work remaining).
1867 * sim/ucsim/z80.src:
1868 Add Z80 support to ucsim, add test-ucz80 regression test,
1869 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
1870 Notice z80 compiler fails on examples/test3.c/crc code.
1872 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
1874 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
1875 Added support for --parms-in-bank1
1877 * src/ds390/peeph.def:
1878 added a few more peephole optimzations
1881 1) added __builtin_inp & __builtin_outp used to read in data of given length
1882 from a memory mapped port
1883 2) added __builtin_memcmp
1884 3) added __builtin_swapw swap bytes of a short
1886 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
1887 1) handle multiple send & receives from register bank1
1888 2) ralloc can now allocate DPTR1 to some liveRanges
1890 * src/SDCCsymt.c, src/SDCCsymt.h:
1891 changes to handle multiple sends & receives
1894 added some pointer arithmetic optimization
1897 added some pointer arithmetic optimizations but not stable yet so not
1898 called from anywhere (will get this working shortly)
1900 * src/SDCCopt.c: fixed for multiple sends & receives
1903 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
1904 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
1905 set preprocessor defines (depending on options)
1907 * src/SDCCicode.c, src/SDCCicode.h:
1908 changes made to handle multiple sends & receives
1911 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
1913 * src/SDCCcse.c, src/SDCCcse.h:
1914 added function findbackward def (to be used in upcoming optimization)
1916 * src/SDCCcflow.c, src/SDCCcflow.h:
1917 added function returnAtEnd - to determine if a basic block terminates with
1920 * src/SDCCast.c, src/SDCCast.h:
1921 added option parms-in-bank1
1923 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
1924 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
1925 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
1926 adjusted for --parms-in-bank1 option
1928 * device/include/string.h:
1929 donot redefine "reentrant" keyword
1931 * device/include/ds80c390.h: Added some more SFRs
1933 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
1935 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
1937 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
1939 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
1941 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
1943 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
1945 2002-01-18 Paul Stoffregen <paul@pjrc.com>
1947 * Added --xram-movc option
1949 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
1951 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
1953 2002-01-11 Johan Knol
1955 * Added math lib of Jesus Calvino-Fraga
1957 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
1959 * src/SDCCmain.c (processFile): fix processing of ../../src.c
1960 * support/regression/Makefile: new target test-mcs51-stack-auto
1961 * support/regression/ports/mcs51-stack-auto/spec.mk: added
1963 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1965 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
1967 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
1969 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
1971 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
1973 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
1975 * src/SDCCglue.h: add definition for printIvalChar()
1977 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1979 * src/SDCCast.c: fix #498138 by Johan
1981 * src/SDCCglue.c: fix #498138 by Johan
1983 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
1985 * support/regression/Makefile: fix clean
1987 * support/regression/ports/ds390/support.c: fix transmission of last character
1989 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
1991 * /sdcc/src/ds390/gen.c:
1992 a) improved computing address of stack variable
1993 b) took out some #if 0 code
1994 c) improved parmBytes adjustment
1995 d) improved genPlusIncr & genMinusIncr
1996 e) genCmp could generate bad code (when left assigned to DPTR)
1997 f) Fixed bug in hasInc
1999 * /sdcc/src/ds390/ralloc.c:
2000 a) packRegsForSupport could mess up live information (Fixed)
2001 b) packRegsDPTRuse could be incorrect for left & right shift
2003 * /sdcc/src/mcs51/ralloc.c:
2004 packRegsForSupport could mess up the live information (Fixed)
2006 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
2008 * /sdcc/src/SDCCast.c:
2009 can reverse a loop even if function call is present as long
2010 as the loop control variable is local & is not passed as parameter
2012 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2014 * /sdcc/ChangeLog: *** empty log message ***
2016 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
2017 More builtin function additions for TININative
2019 * /sdcc/src/ds390/ralloc.c:
2020 Had broken the regression testsuite
2022 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
2024 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
2025 Added funcattr hasStackParms will be set for reentrant functions when there
2026 are paramteres on the stack, this helps in minimizing frame pointer generation
2027 typeFromStr can handle function pointers now
2029 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
2030 *** empty log message ***
2032 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2034 * /src/ds390/gen.c, /src/ds390/main.c:
2035 More builtin function additions for TININative
2037 * /src/ds390/ralloc.c:
2038 Had broken the regression testsuite
2040 * /src/SDCCast.c: Fixed a bug in dumptree
2042 * /src/SDCCsymt.c, /src/SDCCsymt.h:
2043 Added funcattr hasStackParms will be set for reentrant functions when there
2044 are paramteres on the stack, this helps in minimizing frame pointer generation
2045 typeFromStr can handle function pointers now
2047 * /doc/builtins.txt, /doc/TININative.txt:
2048 *** empty log message ***
2051 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2053 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
2054 ALPHA version for -mTININative
2056 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
2057 updated to reflect changes in the port structure
2060 added function do_assemble (similar to do_link) if non-null this function
2061 will be called to do assembly (-mTININative) requires a multi command
2063 added function genAssemblerEnd will be called to generate assembler Epilogue
2066 added _JavaNative to debug info printing
2068 * /src/SDCCmain.c: added option --tini-libid
2069 added port->do_assemble function (-mTININative) has a multi command assemble
2071 * /src/SDCCglue.c: Disabled "constExpr" check
2072 added port->genAssemblerEnd function
2074 * /src/SDCCglobl.h: Added option --tini-libid value
2077 tookout optimizeCompare from the header (has no external references)
2079 * /src/SDCCast.c: made one more function "static"
2081 2001-12-23 Michael Hope <michaelh@juju.net.nz>
2083 * src/z80/mappings.i: Added z80asm support.
2085 * src/z80/main.c: Added z80asm support on --asm=z80asm
2087 * src/z80/gen.c: Fixed asm portability issues.
2089 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
2091 * src/SDCCglue.c (printExterns): Added global/extern split.
2093 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
2095 * support/regression/Makefile: added test for mcs51 model large
2097 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
2099 * support/regression/ports/gbz80/spec.mk: added -mgbz80
2101 2001-12-05 Michael Hope <michaelh@juju.net.nz>
2103 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
2105 1904-01-06 Michael Hope <michaelh@juju.net.nz>
2107 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
2109 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
2111 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
2113 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
2115 * support/regression/tests/simplefloat.c: Port to mcs51.
2117 2001-11-25 Michael Hope <michaelh@juju.net.nz>
2118 * support/regression/tests/bug-485362.c: Added.
2120 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
2122 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
2124 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
2126 * src/z80/gen.c (aopDump): Added a dump function.
2128 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
2129 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
2131 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
2133 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
2135 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
2137 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
2139 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
2141 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
2143 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
2145 * support/regression/ports/ds390/support.c: Use tinibios.
2147 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
2149 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
2151 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
2152 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
2154 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
2156 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
2158 2001-11-18 Michael Hope <michaelh@juju.net.nz>
2160 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
2162 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
2163 (packRegsForIYUse): Created and optimised.
2165 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2167 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
2168 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
2170 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
2172 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
2174 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
2176 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2178 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
2180 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
2182 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2184 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
2186 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
2188 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
2190 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2192 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
2193 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
2194 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
2196 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
2198 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
2199 (genNotFloat): Added.
2200 (genUminusFloat): Added.
2202 * device/lib/z80/Makefile: Added floating pt stubs.
2204 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
2206 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
2208 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
2210 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2212 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
2214 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
2216 * sdcc/support/regression/Makefile: Add port ds390.
2218 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
2220 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
2222 * sdcc/support/regression/ports/ds390/spec.mk: Added.
2224 * sdcc/support/regression/ports/ds390/support.c: Added.
2226 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
2228 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
2230 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
2232 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2234 * device/include/malloc.h: Added z80 and gbz80 support.
2236 * device/lib/gbz80/heap.s: Added.
2238 * device/lib/z80/heap.s: Added.
2240 * device/lib/malloc.c: Added z80 and gbz80 support.
2242 * support/regression/tests/malloc.c (testMalloc): Added.
2244 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
2246 * support/regression/tests/bug-478094.c: Added.
2248 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
2250 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
2252 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
2254 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
2256 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
2258 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
2260 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
2262 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2264 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
2266 2001-11-03 Michael Hope <michaelh@juju.net.nz>
2268 * support/regression/tests/bug-477927.c: Added.
2270 * src/z80/peeph.def: Added minor rules.
2272 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
2274 * src/z80/peeph.def: Added jump optimisation modification.
2276 2001-11-01 Michael Hope <michaelh@juju.net.nz>
2278 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
2280 2001-10-30 Michael Hope <michaelh@juju.net.nz>
2282 * support/regression/tests/funptrs.c: Added.
2284 2001-10-29 Michael Hope <michaelh@juju.net.nz>
2286 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
2288 2001-10-28 Michael Hope <michaelh@juju.net.nz>
2290 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
2292 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
2294 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
2295 (movLeft2ResultLong): Created.
2297 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
2298 (joinPushes): Added. Joins two char pushes into a word push.
2300 2001-10-27 Michael Hope <michaelh@juju.net.nz>
2302 * support/cpp2/Makefile.in (install): Added creation of dest dir.
2304 * support/makebin/Makefile (install): Added creation of dest dir.
2306 2001-10-24 Karl Bongers <karl@turbobit.com>
2308 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
2310 2001-10-21 Michael Hope <michaelh@juju.net.nz>
2312 * src/z80/ralloc.c: Turned off faulty pack for one use.
2314 * src/z80/peeph-gbz80.def: Removed redundent restart options.
2316 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
2318 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
2320 * support/regression/Makefile: Improved clean
2322 * support/regression/ports/gbz80/spec.mk: Added clean
2324 * support/regression/ports/host/spec.mk: Added clean
2326 * support/regression/ports/z80/spec.mk: Added clean
2328 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
2330 * support/regression/ports/mcs51/timeout.c: little improvements
2332 2001-10-17 Michael Hope <michaelh@juju.net.nz>
2334 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
2336 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
2338 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
2340 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
2342 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
2344 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
2346 2001-10-13 Michael Hope <michaelh@juju.net.nz>
2347 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
2349 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
2351 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
2353 * src/mcs51/main.c (_linkCmd): Added bin path to command.
2355 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
2357 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
2359 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
2361 * support/regression/tests/longor.c: Added.
2363 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
2365 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
2367 * as/mcs51/aslink.h: define PATH_MAX
2369 * as/mcs51/asm.h: define PATH_MAX
2371 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
2373 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
2375 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
2377 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
2379 * src/SDCCglobl.h: define PATH_MAX
2381 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
2383 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
2385 2001-10-11 Michael Hope <michaelh@juju.net.nz>
2387 * src/z80/gen.c (gencjneshort): Fixed
2389 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
2391 2001-10-09 Michael Hope <michaelh@juju.net.nz>
2393 * support/regression/tests/bug-469671.c: Added.
2395 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
2397 2001-10-08 Michael Hope <michaelh@juju.net.nz>
2399 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
2401 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
2403 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
2405 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
2407 * src/device/lib/_mulint.c : removed hint: nooverlay bug
2409 * src/device/lib/_mullong.c : removed hint: nooverlay bug
2411 * src/device/lib/_divuint.c : removed hint: nooverlay bug
2413 * src/device/lib/_divulong.c: removed hint: nooverlay bug
2415 * src/device/lib/_moduint.c : removed hint: nooverlay bug
2417 * src/device/lib/_modulong.c: removed hint: nooverlay bug
2419 2001-10-07 Michael Hope <michaelh@juju.net.nz>
2421 * 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.
2423 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
2425 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
2427 2001-10-07 <johan@FRIJA>
2429 * device/lib/gets.c (gets): fixed the return value.
2431 2001-10-06 Michael Hope <michaelh@juju.net.nz>
2432 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
2434 * 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.
2436 * 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.
2438 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
2440 * src/pic/gen.c: Removed Safe_strdup.
2442 * configure.in: Added option to enable libgc support.
2444 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
2445 (bitVectUnion): Optimised.
2446 (bitVectIntersect): Optimised.
2447 (bitVectBitsInCommon): Optimised.
2448 (bitVectCplAnd): Optimised.
2450 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
2452 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2454 * src/SDCCmain.c: distinguish between assembler debug and plain options
2456 * src/avr/main.c: remove standard assembler options
2458 * src/ds390/main.c: remove standard assembler options
2460 * src/mcs51/main.c: remove standard assembler options
2462 * src/port.h: removed "PENDING" comment
2464 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2466 * src/device/lib/_mulint.c : new, with assember functions
2468 * src/device/lib/_mullong.c : new, with assember functions
2470 * src/device/lib/_divuint.c : with assember functions
2472 * src/device/lib/_divsint.c : with assember functions
2474 * src/device/lib/_divulong.c: with assember functions
2476 * src/device/lib/_divslong.c: with assember functions
2478 * src/device/lib/_moduint.c : with assember functions
2480 * src/device/lib/_modsint.c : with assember functions
2482 * src/device/lib/_modulong.c: with assember functions
2484 * src/device/lib/_modslong.c: with assember functions
2486 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
2488 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
2490 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
2491 replaced _mululong.c and _mulslong.c by _mullong.c
2493 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2495 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
2497 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2499 * src/SDCCglue.c: test, if win32api is available for MINGW
2501 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2503 * src/SDCCsymt.c: no more _modifier in printTypeChain()
2504 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
2505 * support/regression/ports/gbz80/spec.mk: removed GENERIC
2506 * support/regression/ports/host/spec.mk: removed GENERIC
2507 * support/regression/ports/mcs51/spec.mk: removed GENERIC
2508 * support/regression/ports/z80/spec.mk: removed GENERIC
2510 2001-10-01 Michael Hope <michaelh@juju.net.nz>
2512 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
2514 * support/regression/tests/bug-467035.c: Created.
2516 2001-10-01 <johan@FRIJA>
2518 * src/SDCC.y: fixed bug #466586 part 1
2520 2001-10-01 Johan Knol <johan.knol@iduna.nl>
2522 * SDCCicode.c: z80 has no generic pointers
2523 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
2525 2001-09-30 Michael Hope <michaelh@juju.net.nz>
2527 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2529 2001-09-29 Michael Hope <michaelh@juju.net.nz>
2531 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2533 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2535 2001-09-25 Michael Hope <michaelh@juju.net.nz>
2537 * configure.in: Fixed up so that ucsim is only configured once.
2539 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2541 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2542 (getPathDifference): As above.
2544 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
2546 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2548 2001-09-23 Michael Hope <michaelh@juju.net.nz>
2549 * .version: Updated to 2.3.1
2551 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2552 Added copyright header.
2554 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
2555 (assemble): Added support for macro based assembler commands.
2556 (linkEdit): Added support for macro based linker commands.
2557 (preProcess): Changed the pre-processor to use macros.
2558 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
2559 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
2561 * device/lib/z80/crt0.s: Added module name for debugging.
2563 2001-09-20 Michael Hope <michaelh@juju.net.nz>
2565 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2567 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
2569 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2571 * src/Makefile.in: Added SDCCmacro and SDCCutil
2573 2001-09-19 Michael Hope <michaelh@juju.net.nz>
2575 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2577 2001-09-16 <johan@FRIJA>
2579 * 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.
2581 2001-09-15 <johan@FRIJA>
2583 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2584 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2586 2001-09-11 <johan@FRIJA>
2588 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2590 2001-09-10 Michael Hope <michaelh@juju.net.nz>
2592 * support/regression/tests/bug-460444.c: Added test case.
2594 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2595 (genCast): Added justification for all of the asserts.
2597 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
2599 * support/regression/support.c: _xdata replaced by xdata
2601 * support/regression/spec.mk: removed _generic
2603 2001-09-09 Michael Hope <michaelh@juju.net.nz>
2605 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
2607 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
2608 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
2610 * src/z80/peeph.def: Added a rule to optimise shift then compare.
2612 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
2614 * support/regression/tests/bug-460010.c: Added test case.
2616 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
2618 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
2620 * support/regression/Makefile: inter-port-clean adjusted for mcs51
2622 * support/regression/testfwk.c: removed workaround for bug #436344
2624 * support/regression/tests/bp.c: use less memory with mcs51
2626 * support/regression/tests/bug-441448.c: use less memory
2628 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
2630 * support/regression/collate-results.py: typo
2632 2001-09-08 Michael Hope <michaelh@juju.net.nz>
2634 * support/regression/tests/fetchoverlap.c: Added new test case.
2636 * support/regression/tests/bp.c: Added new test case.
2638 * support/regression/tests/bug-448984.c: Added new test case.
2640 * support/regression/tests/pow2shifts.c: Added new test case.
2642 * src/z80/gen.c: Turned off the noise it normally generates for the release.
2643 (genlshTwo): Fixed right shift for count > 8.
2645 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
2647 2001-09-08 <johan@FRIJA>
2649 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
2651 2001-09-07 <johan@FRIJA>
2653 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
2655 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2657 2001-09-06 <johan@FRIJA>
2659 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
2660 * bernhard noted me at this: "() equals to (void)" (1.38)
2662 2001-09-05 <johan@FRIJA>
2664 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
2666 2001-09-04 <johan@FRIJA>
2668 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
2671 2001-09-04 Paul Stoffregen <paul@pjrc.com>
2673 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
2675 2001-09-03 Michael Hope <michaelh@juju.net.nz>
2677 * link/z80/aslink.h: Fixed path for PATH_MAX
2679 2001-09-02 Michael Hope <michaelh@juju.net.nz>
2681 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
2683 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
2685 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
2687 * 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.
2689 2001-09-01 Michael Hope <michaelh@juju.net.nz>
2691 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
2692 (genCmp): Fixed up genCmp for the GB with longs.
2694 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
2696 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
2698 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
2700 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
2702 2001-08-30 Paul Stoffregen <paul@pjrc.com>
2704 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
2706 2001-08-30 Michael Hope <michaelh@juju.net.nz>
2708 * 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.
2710 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
2712 2001-08-29 Michael Hope <michaelh@juju.net.nz>
2714 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
2716 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
2718 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
2720 * sim/ucsim/configure: little improvement of Cygwin-detection
2721 * sim/ucsim/configure.in: little improvement of Cygwin-detection
2722 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
2723 * support/regression/tests/bug-221100.c: small changes for mcs51
2724 * support/regression/tests/bug-221168.c: small changes for mcs51
2725 * support/regression/tests/bug-227710.c: small changes for mcs51
2726 * support/regression/tests/staticinit.c: small changes for mcs51
2727 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
2728 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
2729 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601