1 2007-02-03 Borut Razem <borut.razem AT siol.net>
3 * sdc/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
4 applied patch #1646602 option to set default signedness of char to
5 unsigned, added -funsigned-char command line option
7 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
9 * device/include/mcs51/SST89x5xRDx.h: Added.
11 2007-02-02 Raphael Neider <rneider AT web.de>
13 * src/pic/glue.c (emitSymbolSet): check sym->etype before use
14 * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
16 2007-02-01 Raphael Neider <rneider AT web.de>
18 * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
21 2007-01-31 Borut Razem <borut.razem AT siol.net>
23 * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
24 if compiled with GCC. Thanks to Raphael Neider
26 2007-01-31 Raphael Neider <rneider AT web.de>
28 * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
29 operand names, handles name and (name + n) for all n,
30 (sameBank): restructured, also check bank allocation policy,
31 * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
32 (pic14_operandsAllocatedInSameBank): check whether to operands
33 will be allocated into the same bank (i.e., section) to reduce
34 BANKSEL overhead, queried from pcode.c:sameBank,
35 (pic14printLocals): reintroduced clustering registers into a single
36 section: all compiler generated symbols will now reside in one
37 bank (per file), reducing BANKSEL overhead and code size,
38 (showAllMemmaps): use local dbuf where possible
40 2007-01-29 Raphael Neider <rneider AT web.de>
42 * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
43 (call_libraryfunc): retrieve/create symbol and mark as used,
44 (genFunction): mark defined functions as non-extern and add again
45 to code memmap for later output
46 * src/pic/glue.c (emitPseudoStack): put into own subroutine,
47 (pic14printLocals): reworked for new symbol emission,
48 (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
49 showAllMemmaps): reworked symbol output using dbufs, added handling
50 of string literals (still incomplete),
51 (picglue): removed symbol emission, moved into showAllMemmaps,
52 (emitSymbolSet): new workhorse for symbol output,
53 (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
55 2007-01-29 Borut Razem <borut.razem AT siol.net>
57 * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
58 component contains the extension separator.
60 2007-01-28 Borut Razem <borut.razem AT siol.net>
62 * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
64 * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
65 src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
66 src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
67 src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
68 src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
69 src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
70 src/z80/gen.c, support/Util/MySystem.c:
71 accept slash and backslash as directory separator on WIN32 and
74 2007-01-28 Raphael Neider <rneider AT web.de>
76 * src/pic16/devices.inc,
77 * device/include/pic16/pic18f[24][23]21.h,
78 * device/include/pic16/pic18fregs.h,
79 * device/lib/pic16/libdev/pic18f[24][23]21.c,
80 * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
81 * device/lib/pic16/libio/adc.ignore,
82 * device/lib/pic16/libio/i2c.ignore,
83 * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
84 family, as gputils do not yet support the devices
85 * device/lib/pic16/Makefile.subdir: ignore errors on install
86 * support/scripts/inc2h-pic16.pl: script to generate pic16 device
87 headers and libraries from gputils .inc files
89 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
91 * doc/sdccman.lyx: add printf_fast_f precision limitation note
93 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
95 * doc/sdccman.lyx: add printf benchmarks
97 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
99 * device/lib/printf_fast.c: fix %c, char promoted to int
100 * device/lib/printf_tiny.c: fix %c, char promoted to int
102 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
104 * device/lib/printf_fast.c: fix float overflow check, bug #1525093
106 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
108 * support/regression/tests/swap.c: 64 bit hosts failed
109 * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
111 2007-01-25 Raphael Neider <rneider AT web.de>
113 * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
114 based on absolute register address, patch by Alex Blond
116 2007-01-22 Raphael Neider <rneider AT web.de>
118 * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
119 emitted, do not emit them again...
121 2007-01-22 Raphael Neider <rneider AT web.de>
123 * src/regression/bank1.c, src/regression/compare6.c,
124 src/regression/add.c: cosmetic changes
125 * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
126 * src/pic/gen.c: fixed global zero and one,
127 (aopForSym): removed unued code,
128 (aopGet): assert aop is defined, check and use `index' of
129 pCodeImmd operands (fixes #1630908),
130 * src/pic/pcode.c (get_op): added output of generic pointer tag,
131 (register_reassign): prevent accidental register unification,
132 (ReuseReg): cosmetic changes (also above)
133 * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
134 pic14emitStaticSeg): do not emit initialized data,
135 (printIval*): replaced with working versions,
136 (pic14createInterruptVect,picglue): use idata for initialized data,
137 now init data should work in all modules (not only main()),
138 * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
140 2007-01-21 Borut Razem <borut.razem AT siol.net>
142 * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
143 use -fPIC or -fpic if they are supported and not ignored
144 * src/SDCCval.c: fixed bug introduced by me in rev. #4577
145 * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
147 2007-01-20 Borut Razem <borut.razem AT siol.net>
149 * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
150 implemented RFE #1470316: allow "$" in variable names
152 2007-01-20 Raphael Neider <rneider AT web.de>
154 * device/include/pic/pic14regs.h: reverted accidental wipe of the file
156 2007-01-20 Raphael Neider <rneider AT web.de>
158 * device/lib/pic/libdev/devices.txt: device list for mkall.sh
159 * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
160 * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
161 * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
162 applied patch from Robert Tate (#1629249) to add PORTs and TRISs
163 * device/lib/pic/libdev/pic*.c,
164 * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
165 * device/lib/pic/libdev/Makefile.in: show progress
167 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
169 * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
170 * support/scripts/sdcc_cygwin_mingw32,
171 * support/scripts/sdcc_mingw32,
172 * support/scripts/build.mak: replaced --datadir by --datarootdir for
173 conformance with autoconf 2.6
175 2007-01-19 Raphael Neider <rneider AT web.de>
177 * src/pic/device.c (register_map): fixed list construction
178 * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
179 (genMod): removed case for genModbits,
180 (genModbits): removed as now unused/unimplemented
181 * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
183 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
185 * support/regression/tests/swap.c: added in response to #1638622
186 * doc/sdccman.lyx: synced version, minor changes
188 2007-01-18 Borut Razem <borut.razem AT siol.net>
190 * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
191 thanks to Gunther Jehle
192 * src/asm.c: don't die if the file drfined in #line couldn't be opened
193 * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
194 src/SDCCval.c: removed redundant definitions of currFname and mylineno;
195 use filename in lineno instead.
196 * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
197 print the file name in ast_print()
199 2007-01-18 Borut Razem <borut.razem AT siol.net>
201 * support/Util/dbuf_string.c: removed (PTR) cast since it is not
203 * src/SDCC.lex: stringLiteral() returns const char pointer,
204 EOF detection in stringLiteral(), fixed asmbuf memory leak,
205 fixed column counting
206 * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
207 accept const char pointer as parameter
208 * src/SDCCdwarf2.c: corrected buffer size
210 2007-01-17 Borut Razem <borut.razem AT siol.net>
212 * support/Util/dbuf_string.c: fixed for amd64
214 2007-01-15 Borut Razem <borut.razem AT siol.net>
216 * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
217 removed terminal symbol ELIPSIS, since it was never generated by the
218 lexer and it was wrongly used in parameter_identifier_list rule
220 2007-01-15 Raphael Neider <rneider AT web.de>
222 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
223 code page and data banking description
224 * src/pic/genarith.c,
225 * src/pic/gen.h: removed bit arithmetic functions,
226 updated exit(1) to exit(EXIT_FAILURE)
227 * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
228 * device/include/pic16/pic18f2455.h,
229 * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
230 TRISD and TRISE, fixed/added some bit names
231 * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
232 * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
233 updated pic18f2455.{c,h} instead of duplicating them
235 2007-01-14 Borut Razem <borut.razem AT siol.net>
237 * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
238 Cannot debug files that contain spaces in the path name
239 by converting spaces in asm file name to underscores
241 2007-01-13 Borut Razem <borut.razem AT siol.net>
243 * doc/sdccman.lyx: fixed format errors
245 2007-01-10 Borut Razem <borut.razem AT siol.net>
247 * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
248 codeseg/constseg #pragma fail
249 * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
250 * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
251 suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
252 suppoprt/cpp2/sdcpp.[ch]: house cleaning
254 2007-01-09 Borut Razem <borut.razem AT siol.net>
256 * get rid of diagnistic.[ch], pretty-print.[ch],
257 c-pretty-print.[ch], ... used just for error, warning, ...
259 * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
260 suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
261 suppoprt/cpp2/pretty-print.[ch]:
263 * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
264 suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
265 suppoprt/cpp2/sdcpp.dsp:
268 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
270 * device/lib/printf_large.c (output_float): removed recursion,
271 use smaller buffer on stack for mcs51,
272 fixed bug printing 1.96
273 * support/regression/tests/snprintf.c: added test
275 2007-01-07 Borut Razem <borut.razem AT siol.net>
277 * use dynamic memory buffers instead temporary files
278 * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
280 * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
281 src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
282 src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
283 src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
284 src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
285 src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
286 src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
287 src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
288 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
289 src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
290 src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
291 support/Util/dbuf.c, support/Util/dbuf.h:
293 * .version, sdcc.spec: bumped version to 2.6.4
295 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
297 * src/port.h: added TARGET_Z80_LIKE macro
298 * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
299 output PSEG location if --xram-loc or --xstack-loc was used
300 * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
302 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
304 * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
305 * as/as_z80.dsp, as/z80/as_z80.dsp,
306 * as/asx8051.dsp, as/mcs51/asx8051.dsp,
307 * sdcc.dsw: moved project files into subdir
308 * as/hc08/as_hc08.dsp,
309 * as/hc08/Makefile.bcc,
310 * as/hc08/Makefile.in,
311 * as/mcs51/Makefile.bcc,
312 * as/mcs51/Makefile.in,
313 * as/z80/Makefile.bcc,
314 * as/z80/Makefile.in,
315 * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
318 * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
323 * as/z80/assym.c: removed include "strcmpi.h"
326 * as/mcs51/strcmpi.c,
327 * as/mcs51/strcmpi.h,
328 * support/Util/strcmpi.c,
329 * support/Util/strcmpi.h: removed files
330 * as/strcmpi.c: added as_strncmpi()
332 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
334 * sdcc.dsw: Added some dependencies on project config.dsp
336 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
338 * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
339 with [di]ram_start to fix a regresion
341 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
343 * configure.in: added missing mcs51 in status output
344 * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
346 * debugger/mcs51/clean.mk (distclean): remove config.h
347 * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
348 * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
349 options.h, s-options-h and options.c
350 * support/cpp2/clean.mk: unused, removed
351 * Makefile.common.in,
354 * as/hc08/Makefile.in,
356 * as/mcs51/Makefile.in,
360 * as/z80/Makefile.in,
362 * as/link/Makefile.in,
363 * as/link/hc08/Makefile.in,
364 * as/link/hc08/clean.mk,
365 * as/link/mcs51/Makefile.in,
366 * as/link/mcs51/clean.mk,
367 * as/link/z80/Makefile.in,
368 * as/link/z80/clean.mk,
369 * as/link/z80/conf.mk,
370 * debugger/mcs51/Makefile.in,
371 * debugger/mcs51/clean.mk,
372 * device/include/Makefile.in,
373 * device/lib/Makefile.in,
374 * device/lib/mcs51/Makefile.in,
375 * device/lib/pic/Makefile.in,
376 * device/lib/pic/Makefile.common.in,
377 * device/lib/pic/Makefile.subdir,
378 * device/lib/pic/Makefile.rules,
379 * device/lib/pic16/libio/Makefile.in,
380 * device/lib/pic16/Makefile.subdir,
381 * device/lib/pic16/libdev/Makefile.in,
382 * device/lib/pic16/Makefile.rules,
383 * device/lib/pic16/Makefile.common.in,
384 * sim/ucsim/avr.src/Makefile.in,
385 * sim/ucsim/main_in.mk,
386 * sim/ucsim/cmd.src/Makefile.in,
387 * sim/ucsim/doc/Makefile.in,
388 * sim/ucsim/gui.src/Makefile.in,
389 * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
390 * sim/ucsim/gui.src/serio.src/Makefile.in,
391 * sim/ucsim/hc08.src/Makefile.in,
392 * sim/ucsim/libltdl/Makefile.in,
393 * sim/ucsim/s51.src/Makefile.in,
394 * sim/ucsim/sim.src/Makefile.in,
395 * sim/ucsim/sim.src/conf.mk,
396 * sim/ucsim/xa.src/Makefile.in,
397 * sim/ucsim/z80.src/Makefile.in,
401 * support/cpp2/Makefile.in,
402 * support/librarian/Makefile.in,
403 * support/librarian/clean.mk,
404 * support/makebin/Makefile.in,
405 * support/makebin/clean.mk,
406 * support/packihx/Makefile.in,
407 * support/regression/Makefile.in,
408 * support/regression/ports/ds390/spec.mk,
409 * support/regression/ports/gbz80/spec.mk,
410 * support/regression/ports/hc08/spec.mk,
411 * support/regression/ports/mcs51/spec.mk,
412 * support/regression/ports/mcs51-large/spec.mk,
413 * support/regression/ports/mcs51-medium/spec.mk,
414 * support/regression/ports/mcs51-xstack-auto/spec.mk,
415 * support/regression/ports/pic14/spec.mk,
416 * support/regression/ports/pic16/spec.mk,
417 * support/regression/ports/mcs51-stack-auto/spec.mk,
418 * support/regression/ports/ucz80/spec.mk,
419 * support/regression/ports/xa51/spec.mk,
420 * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
421 adding a slash after $(top_builddir) and/or adding @datarootdir@
423 * debugger/mcs51/configure.in,
424 * device/lib/pic/configure.in,
425 * device/lib/pic16/configure.in,
426 * sim/ucsim/configure.in,
427 * support/cpp2/configure.in,
428 * support/packihx/configure.in: changed AC_PREREQ to 2.60
430 * debugger/mcs51/configure,
431 * device/lib/pic/configure,
432 * device/lib/pic16/configure,
433 * sim/ucsim/configure,
434 * support/cpp2/configure,
435 * support/packihx/configure: generated with autoconf 2.60
437 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
439 * as/link/hc08/lkihx.c (newArea),
440 * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
442 2007-01-02 Borut Razem <borut.razem AT siol.net>
444 * doc/sdccman.lyx: documented #pragma sdcc_hash
445 * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
447 * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
449 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
451 * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
452 empty 'while'-loop to work correctly, see regression test 'while.c'
453 * support/regression/tests/while.c: added
455 2007-01-01 Borut Razem <borut.razem AT siol.net>
457 * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
458 support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
459 support/cpp2/libcpp/sdcpp.c:
460 sdcpp specific pragma/directive/option handling moved to sdcpp.c
461 * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
462 * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
464 2006-12-31 Borut Razem <borut.razem AT siol.net>
466 * SDCPP synchronized with GCC CPP release version 4.1.1,
467 currently the latest release:
468 * support/cpp2/libcpp, support/cpp2/libcpp/include,
469 support/cpp2/libcpp/include/cpp-id-data.h
470 support/cpp2/libiberty/fopen_unlocked.c
471 support/cpp2/libiberty/md5.c
473 support/cpp2/opt-functions.awk
474 support/cpp2/opt-gather.awk
475 support/cpp2/optc-gen.awk
476 support/cpp2/opth-gen.awk:
478 * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
479 support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
480 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
481 support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
482 support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
483 support/cpp2/diagnostic.h, support/cpp2/except.h,
484 support/cpp2/hwint.h, support/cpp2/input.h,
485 support/cpp2/intl.h, support/cpp2/move-if-change,
486 support/cpp2/opts.c, support/cpp2/opts.h,
487 support/cpp2/output.h, support/cpp2/prefix.c,
488 support/cpp2/prefix.h, support/cpp2/pretty-print.c,
489 support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
490 support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
491 support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
492 support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
493 support/cpp2/version.c:
495 * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
496 support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
497 support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
498 support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
499 support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
500 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
501 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
502 support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
503 support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
504 support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
505 support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
507 * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
508 support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
509 support/cpp2/cpphash.c, support/cpp2/cpphash.h,
510 support/cpp2/cppinit.c, support/cpp2/cpplex.c,
511 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
512 support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
513 support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
514 support/cpp2/hashtab.h, support/cpp2/hashtable.c,
515 support/cpp2/hashtable.h, support/cpp2/line-map.c,
516 support/cpp2/line-map.h, support/cpp2/mkdeps.c,
517 support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
518 support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
519 support/cpp2/system.h:
522 2006-12-31 Borut Razem <borut.razem AT siol.net>
524 * configure.in, configure: fixed bug #1538756: configure dies if bison
525 and flex are not installed, 2nd try
527 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
529 * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
530 400.x for better code in RFE 899102
532 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
534 * src/SDCCpeeph.c (deadMove),
536 * src/mcs51/peep.h: renamed 'op' by 'reg'
537 * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
538 (scan4op): small change for removeDeadMove(), added support for
539 'callee saves' and/or PACLL function calls,
540 (removeDeadMove): added, removes superflous 'mov r%1,%2',
541 (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
542 left in new dispatcher mcs51DeadMove()
543 (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
545 * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
547 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
549 * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
550 support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
552 2006-12-30 Borut Razem <borut.razem AT siol.net>
554 * support/cpp2/spacs.h: deleted from svn
555 * configure.in, configure: fixed bug #1538756: configure dies if bison
556 and flex are not installed
558 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
560 * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
561 with this z80 passes printf float test when enabled
562 * support/regression/tests/bug1057979.c: typo disabled ds390 float test
564 2006-12-28 Borut Razem <borut.razem AT siol.net>
566 * support/cpp2/config.in, support/cpp2/configure.in,
567 support/cpp2/configure, support/cpp2/Makefile.in:
568 fix for the solaris build
570 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
572 * src/SDCC.y (type_specifier2, pointer),
574 * src/SDCCsymt.c (mergeSpec, checkSClass),
575 * support/Util/SDCCerr.c,
576 * support/Util/SDCCerr.h: Parse and validate the restrict keyword
577 * support/valdiag/valdiag.py: Allow test cases to specify
578 required language standard
579 * support/valdiag/tests/restrict.c: New file to test restrict keyword
580 * support/valdiag/tests/tentdecl.c: Supress empty source file error
582 2006-12-27 Borut Razem <borut.razem AT siol.net>
584 * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
585 * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
587 * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
589 * support/cpp2/libiberty/Makefile.bcc: updated
590 * src/pic16/main.c: fixed #pragma udata handling
591 * src/mcs51/mcs51.dsp: added peep.[ch] to the project
593 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
595 * src/SDCCpeeph.c: made labelHashEntry global,
596 made pcDistance, FBYNAME static,
597 (pcDistance): made static, use isComment and isLabel,
599 (getLabelRef): added, extracted from labelRefCount(),
600 (labelRefCount): use new getLabelRef(),
601 (callFuncByName): made static, added deadMove,
602 use isComment and isLabel,
603 (newPeepRule): made static, set isLabel,
604 (isLabelDefinition): added parameter isPeepRule to allow '%' in
605 labels from peephole rules,
606 (buildLabelRefCountHash): speed up by running isLabelDefinition() only
607 when isComment or isLabel is set
608 * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
609 added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
611 * src/mcs51/peep.h: added
612 * src/mcs51/peep.c: added, implements mcs51DeadMove()
613 * src/port.h: added peep->deadMove to port structure
614 * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
615 * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
616 deadMove, finally removed no. 1 and 2
623 * src/hc08/gen.c: mark lines with isComment or isLabel
624 * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
626 * sdcc.spec: bumped version to 2.6.3
628 2006-12-26 Borut Razem <borut.razem AT siol.net>
630 * support/cpp2/Makefile.in: added dependency on options.h
631 * configure: regenerated
632 * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
633 * support/cpp2/Makefile.in: added vasprintf.c
635 2006-12-25 Borut Razem <borut.razem AT siol.net>
637 * SDCPP synchronized with GCC CPP release version 3.4.6,
638 the latest release before 4.x:
639 * support/cpp2/Makefile.in, support/cpp2/config.h,
640 support/cpp2/configure, support/cpp2/configure.in,
641 support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
642 support/cpp2/cpperror.c, support/cpp2/cppexp.c,
643 support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
644 support/cpp2/cpphash.h, support/cpp2/cppinit.c,
645 support/cpp2/cpplex.c, support/cpp2/cpplib.c,
646 support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
647 support/cpp2/cpptrad.c, support/cpp2/except.h,
648 support/cpp2/hashtable.c, support/cpp2/hashtable.h,
649 support/cpp2/hwint.h, support/cpp2/intl.h,
650 support/cpp2/line-map.c, support/cpp2/line-map.h,
651 support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
652 support/cpp2/output.h, support/cpp2/prefix.c,
653 support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
654 support/cpp2/system.h, support/cpp2/version.c:
656 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
657 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
658 support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
659 support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
660 support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
661 support/cpp2/hashtab.c, support/cpp2/hashtab.h,
662 support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
663 support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
664 support/cpp2/move-if-change, support/cpp2/opts.c,
665 support/cpp2/opts.h, support/cpp2/opts.sh,
666 support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
667 support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
668 support/cpp2/win32, support/cpp2/win32/dirent.c,
669 support/cpp2/win32/dirent.h:
671 * support/cpp2/sdcpp.c: renamed from sdcppmain.c
672 * support/cpp2/sdcpp.h: renamed from sdcc.h
673 * sdcppinit.c: deleted
675 2006-12-23 Borut Razem <borut.razem AT siol.net>
677 * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
678 support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
679 preproc.c: an other try to fix bug #982435: introduced
680 -pedantic-parse-number command line option and pedantic_parse_number
683 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
685 * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
687 (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
688 corrected overlayed areax addresses, warn about memory overlaps
689 * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
698 * src/port.h: added xabs_name and iabs_name
699 * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
700 (glue, emitMaps): create and emit maps d_abs and i_abs
701 * src/SDCCglue.h: cosmetic changes
702 * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
704 * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
705 (allocDefault): put absolute, initialized globals in them
706 * support/regression/tests/absolute.c: added absolute bdata test
707 * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
709 2006-12-20 Borut Razem <borut.razem AT siol.net>
711 * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
712 * support/regression/tests/preproc.c: renamed from bug-1351710.c,
713 added regression test for bug #982435
715 2006-12-18 Borut Razem <borut.razem AT siol.net>
717 * src/SDCCutil.c: fixed a bug in (get_pragma_token)
718 * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
719 small cosmetic changes
720 * src/SDCC.lex: (stringLiteral) fixed bug #1351710
721 * support/regression/tests/bug-1351710.c: added regression test
723 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
725 * doc/sdccman.lyx: added the long missed iCode table
726 "<where is figure II?>", added links to wiki
728 2006-12-17 Borut Razem <borut.razem AT siol.net>
730 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
731 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
732 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
733 unified table driven pragma handling, pragma argument type checking
734 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
735 current one - version 1.1.3
736 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
738 2006-12-13 Raphael Neider <rneider AT web.de>
740 * src/pic/device.h: removed AssignedMemory structure and macros
741 * src/pic/device.c: removed global finalMapping (linker assigns
743 (register_map): add SFRs to remembered memRanges
744 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
745 assignFixedRegisters,assignRelocatableRegisters): removed,
746 (setMaxRAM,validAddress): adapted accordingly,
747 (pic14_hasSharebank,pic14_getSharedStack): only report and use
748 reasonably sized sharebanks,
749 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
750 (allDefsOutOfRange): removed unused code,
751 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
753 * src/pic/pcode.c (register_reassign): removed recursion warning,
755 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
756 to use existing pic14_stringInSet() to avoid duplicate symbols,
757 tidied up the code a bit,
758 (pic14printLocals): added in symmetry to printExterns, replaces
759 writeUsedRegs more or less,
760 (picglue): call new pic14_printLocals(),
761 * device/include/pic/pic*.h: removed #pragma memmap directives,
762 information gathered from include/pic/pic14devices.txt
763 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
765 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
767 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
769 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
771 * device/include/mcs51/cc2430.h: fixed missing ';'
773 2006-12-10 Raphael Neider <rneider AT web.de>
775 * device/lib/pic16/libc/stdio/vfprintf.c,
776 * device/lib/pic16/libc/stdio/printf_small.c,
777 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
778 char arguments, as char varargs are cast to int by the caller,
779 hopefully fixes #1604915 (other device libraries are still affected)
781 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
783 * src/mcs51/ralloc.c (packRegsForAssign),
784 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
786 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
788 * device/include/malloc.h: removed init_dynamic_memory
789 * device/lib/malloc.c: made init_dynamic_memory static and automatically
790 call it once from malloc. Also use _sdcc_heap[] from _heap.c
791 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
792 * device/lib/libsdcc.lib,
793 * device/lib/Makefile.in,
794 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
795 * doc/sdccman.lyx: documented use of new _heap.c
796 * support/regression/tests/malloc.c: removed init_dynamic_memory
797 * src/cdbFile.c(spacesToUnderscores): new function,
798 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
800 * device/include/tinibios.h: removed defines for putchar and getchar
801 * device/lib/ds390/Makefile.in: added putchar.c
802 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
804 2006-12-09 Borut Razem <borut.razem AT siol.net>
806 * support/cpp2/sdcc.h: prevent multiple inclusion
807 * support/cpp2/options.h: deleted
809 2006-12-08 Borut Razem <borut.razem AT siol.net>
811 * support/cpp2/sdcc.h: removed x*alloc() macros
812 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
813 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
814 support/cpp2/sdcpp.sdc: x*alloc files added to the project
815 * support/cpp2/system.h: moved #include "sdcc.h"
816 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
817 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
819 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
820 -funsigned-char options
821 * support/cpp2/sdcppmain.c: fixed bug 1611411
823 2006-12-07 Borut Razem <borut.razem AT siol.net>
825 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
828 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
830 * src/SDCCsymt.c (addDecl): fixed bug 1609244
831 * src/SDCCmain.c (linkEdit): fixed bug 1609279
833 * .version: bumped to 2.6.2 because a) it's been a while
834 b) the linker sources have moved c) the preprocessor is upgraded
836 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
838 * support/regression/tests/snprintf.c: some checks
839 * lib/src/printf_large.c: %bc: read char instead of int from stack
841 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
843 * device/include/mcs51/cc2430.h: inserted _XPAGE
845 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
847 * device/include/mcs51/cc2430.h: added
849 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
851 * device/include/asm/default/features.h,
852 * device/include/asm/ds390/features.h,
853 * device/include/mcs51/at89s53.h,
854 * device/include/ser.h,
855 * device/include/ser_ir.h,
856 * device/include/serial.h: changed keywords to double underscore variants,
857 fixes bug 1590261 some more, thanks Steven Borley
859 2006-12-01 Raphael Neider <rneider AT web.de>
861 * src/pic/pcode.c (register_reassign): do not crash on recursive code
862 but emit warning (recursion is not supported for pic14)
864 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
866 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
867 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
869 2006-11-30 Raphael Neider <rneider AT web.de>
871 * src/pic/device.c (dump_sfr): always emit symbols
872 * src/pic/glue.c (pic14printPublics): fixed typo
874 2006-11-30 Raphael Neider <rneider AT web.de>
876 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
877 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
878 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
879 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
880 a sharebank, use a non-shared bank for the stack if none available
881 * src/pic/device.h (struct memRange): added linked list next field,
882 added prototypes for above functions
883 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
884 (typeRegWithIdx): accept fixed and unfixed stack registers
885 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
886 the stack, handle shared and banked stack (except for WSAVE),
887 (insertBankSel): removed useless optimization (will never fire),
888 (FixRegisterBanking): added optimization for devices with only one
889 possibly aliased bank of memory, like 16f84
890 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
891 devices have no SHAREBANK in the linker script
892 * device/include/pic/pic14devices.txt: documented memmap
893 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
895 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
897 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
898 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
899 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
900 genhc08Code): switched most of the D (debug) macros to DD (detailed
901 debug) macros to better control clutter in the generated .asm file.
902 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
903 genRightShift): fixed bug with non-constant bit shift stored to
904 a volatile result (SF Open Discussion forum thread #1616749).
905 Single byte case is not yet optimized.
907 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
909 * device/include/asm/mcs51/features.h,
910 * device/include/malloc.h,
911 * device/include/stdio.h: changed keywords to double underscore variants,
914 2006-11-27 Borut Razem <borut.razem AT siol.net>
916 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
917 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
918 support/cpp2/output.h, support/cpp2/cppinit.c,
919 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
920 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
921 support/cpp2/cppdefault.c, support/cpp2/system.h,
922 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
923 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
924 support/cpp2/prefix.c, support/cpp2/except.h,
925 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
926 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
927 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
928 support/cpp2/version.c, support/cpp2/cppmain.c,
929 support/cpp2/version.h, support/cpp2/hashtable.c,
930 support/cpp2/cpperror.c:
931 synchronized with GCC CPP release version 3.3.6,
932 the latest where cppmain.c still exists.
933 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
934 support/cpp2/sdcppinit.c: added
936 2006-11-27 Borut Razem <borut.razem AT siol.net>
938 * support/cpp2/cpplex.c:
939 fixed _asm ... _endasm handling bug, introduce with GCC CPP
941 * support/cpp2/cpplib.c: removed definitions of unused variables
943 2006-11-26 Borut Razem <borut.razem AT siol.net>
945 * support/cpp2/libiberty.h: commented out x*alloc() declarations
946 since they are redefined by macros in support/cpp2/sdcc.h
947 * support/cpp2/sdcc.h: x*alloc macro redefinition
949 2006-11-25 Borut Razem <borut.razem AT siol.net>
951 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
952 support/cpp2/configure, support/cpp2/Makefile.in,
953 support/cpp2/cppfiles.c, support/cpp2/output.h,
954 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
955 support/cpp2/config.h, support/cpp2/cpplib.h,
956 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
957 support/cpp2/cppdefault.c, support/cpp2/config.in,
958 support/cpp2/system.h, support/cpp2/cpplex.c,
959 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
960 support/cpp2/cppdefault.h, support/cpp2/prefix.c
961 support/cpp2/hwint.h, support/cpp2/mbchar.h,
962 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
963 support/cpp2/configure.in, support/cpp2/intl.h,
964 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
965 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
966 support/cpp2/version.c, support/cpp2/cppmain.c,
967 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
968 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
969 support/cpp2/cpperror.c,
970 support/cpp2/libiberty/safe-ctype.c,
971 support/cpp2/libiberty/safe-ctype.h,
972 support/cpp2/libiberty/splay-tree.c,
973 support/cpp2/libiberty/obstack.c,
974 support/cpp2/libiberty/lbasename.c,
975 support/cpp2/libiberty/splay-tree.h,
976 support/cpp2/libiberty/obstack.h:
977 synchronized with GCC CPP release version 3.2.3,
978 the latest before integration of cpp into gcc
979 * support/cpp2/except.h, support/cpp2/line-map.c,
980 support/cpp2/line-map.h,
981 support/cpp2/libiberty/hex.c,
982 support/cpp2/libiberty/concat.c,
983 support/cpp2/libiberty/filenames.h: added
984 * support/cpp2/intl.c: deleted
986 2006-11-24 Borut Razem <borut.razem AT siol.net>
988 * src/SDCC.y: enabled compilation of empty source file
989 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
990 "ISO C forbids an empty source file"
991 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
992 if all the code is ifdefed out.
994 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
996 * src/hc08/gen.c (genPcall): fix for bug #1601032
998 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1000 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1001 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1002 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1003 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1004 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1005 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1006 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1007 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1008 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1009 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1010 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1011 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1012 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1013 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1014 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1015 Renamed to all upper case as per the standard set by SiLabs
1017 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1019 * device/include/mcs51/C8051F520.h: new, added
1020 * device/include/mcs51/compiler.h: added link about predefined macros
1022 2006-11-23 Raphael Neider <rneider AT web.de>
1024 * src/regression/Makefile: add -L path to fresh library
1025 * src/regression/simulate: emphasize FAILED output
1026 * src/regression/create_stc: output _failures from gpsim
1027 * src/regression/compare4.c,
1028 * src/regression/rotate6.c: fixed char literals,
1029 all compile, all run =8-D
1031 * src/pic/pcode.h: added isPCASMDIR macro
1032 * src/pic/gen.c (genAnd): fixed bit offset
1033 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1034 packBits): unified register numbering schemes,
1035 (newReg): do not insert stack registers into hash table,
1036 (initStack): unpinned pseudo stack, simplified,
1037 (typeRegWithIdx): fixed retrieval of stack registers,
1038 * src/pic/pcode.c (addpCodeComment,sameBank): added,
1039 (pCodeReplace): removed invalid assertion,
1040 (insertPCodeInstruction): fixed newly added labels,
1041 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1042 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1043 DumpFlow): removed unsed (broken?) code,
1044 (insertBankSel): prevent STATUS from being BANKSELed,
1045 (FixRegisterBanking): rewritten from scratch, implemented generic
1046 optimizations (suppress BANKSELs to same register and to registers
1047 present in all banks),
1048 (AnalyzeBanking): update flow after BANKSELection
1050 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1051 sharebank, let linker place it, mark STKxx symbols as emitted
1053 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1055 * src/regression/arrays.c,
1056 * src/regression/bank1.c,
1057 * src/regression/bool2.c,
1058 * src/regression/compare7.c,
1059 * src/regression/compare8.c,
1060 * src/regression/compare9.c,
1061 * src/regression/compare10.c,
1062 * src/regression/configword.c,
1063 * src/regression/for.c,
1064 * src/regression/mult1.c,
1065 * src/regression/pointer1.c,
1066 * src/regression/rotate6.c,
1067 * src/regression/string1.c,
1068 * src/regression/struct1.c,
1069 * src/regression/Makefile: make PIC14 regression tests run again
1070 (3 fail, 6 won't compile)
1072 2006-11-21 Raphael Neider <rneider AT web.de>
1074 * device/include/pic16/pic18f4550.h,
1075 * device/include/pic16/pic18f4455.h,
1076 * device/lib/pic16/libdev/pic18f4550.c,
1077 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1078 * configure.in: removed superfluous closing bracket
1080 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1082 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1085 2006-11-21 Raphael Neider <rneider AT web.de>
1087 * src/pic/device.{c,h}: added pic14_getPIC()
1088 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1089 (genAnd): added PIC code for one case, fixes #1597044
1090 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1091 SFRs that are present in all banks (e.g., STATUS)
1093 2006-11-20 Raphael Neider <rneider AT web.de>
1095 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1096 INCFSZ/INCFSZW and declared them as changing Z bit,
1097 (insertPCodeInstruction): correctly invert the above instructions,
1099 (DoBankSelect): don't panic on po_immediates
1101 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1104 * as/link/mcs51/lkihx.c (newArea),
1105 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1106 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1108 2006-11-11 Raphael Neider <rneider AT web.de>
1110 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1111 bitfield symbols, fixes #1579535 (once more...).
1113 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1115 * support/regression/generate-cases.py,
1116 * support/regression/fwk/include/testfwk.h,
1117 * support/regression/fwk/lib/testfwk.c: used code pointers,
1118 (about 50kByte less code generated for mcs51)
1120 2006-11-06 Borut Razem <borut.razem AT siol.net>
1122 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1123 debugger/mcs51/configure: fixed failed check because the function
1124 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1125 who submitted the patch for gpsim.
1126 * debugger/mcs51/configure.in: removed the result message
1127 * debugger/mcs51/Makefile.in: fixed the config.status warning
1128 "... seems to ignore the --datarootdir setting"
1130 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1132 * device/include/mcs51/c8051f020.h,
1133 * device/include/mcs51/c8051f040.h,
1134 * device/include/mcs51/c8051f060.h,
1135 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1136 * src/z80/gen.c (gencjneshort),
1137 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1139 2006-10-31 Borut Razem <borut.razem AT siol.net>
1141 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1142 debugger/mcs51/configure: get readline version
1144 2006-10-30 Borut Razem <borut.razem AT siol.net>
1146 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1147 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1148 debugger/mcs51/configure: locate readline even when cross compiling
1149 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1151 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1153 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1156 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1158 * device/include/malloc.h,
1159 * device/lib/calloc.c,
1160 * device/lib/free.c,
1161 * device/lib/malloc.c,
1162 * device/lib/realloc.c: moved definition of struct into sources
1163 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1165 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1167 * as/asx8051.dsp: corrected output directories
1168 * as/link/hc08: new directory for hc08 linker
1169 * as/hc08/aslink.h, as/link/aslink.h,
1170 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
1171 * as/hc08/clean.mk, as/link/hc08/clean.mk,
1172 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
1173 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
1174 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
1175 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
1176 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
1177 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
1178 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
1179 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
1180 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
1181 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
1182 * as/hc08/lks19.c, as/link/hc08/lks19.c,
1183 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
1184 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
1185 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
1186 * as/link/hc08/conf.mk,
1190 * sdcc.dsw: moved hc08 linker to as/link/hc08
1191 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
1192 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
1193 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
1194 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
1195 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
1196 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
1197 * as/link/mcs51/aslink.dsp,
1198 * as/link/mcs51/Makefile.in: factored out the common files
1199 * as/hc08/lkstore.c: deleted, use the one already in as/link/
1200 * as/clean.mk: extra cleaning common files
1201 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
1202 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1203 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1205 2006-10-29 Raphael Neider <rneider AT web.de>
1207 * src/pic/ralloc.c (newReg): create aliases for registers with
1208 multiple names to fix #1579535 and #1584001,
1209 (regWithIdx,dirregWithName): resolve aliases on lookup
1210 * src/pic/pcode.c (DoBankSelect): die with error message on failing
1212 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1213 to prevent build errors on small devices
1215 2006-10-28 Raphael Neider <rneider AT web.de>
1217 * src/pic/gen.c (genFunction,genCall): drop "same code page"
1218 assumption within interrupt handlers, fixes #1584940
1219 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1220 "emitted" to avoid emitting them again in udata
1222 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1224 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1227 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1229 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1230 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
1231 on/off CR to CRLF conversion.
1233 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1235 * doc/sdccman.lyx: updated IRQ section
1237 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1239 * device/lib/serial_io.c: removed
1240 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1241 replacements for serial_io.c
1243 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1245 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1247 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1249 * device/lib/serial_io.c: Default putchar() and getchar() for
1250 mcs51 uses serial port.
1252 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1254 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1256 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1258 * support/regression/ports/mcs51/support.c: smaller
1259 _sdcc_external_startup()
1260 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1262 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1264 * device/lib/gbz80/crt0.s,
1265 * device/lib/gbz80/crt0_rle.s,
1266 * device/lib/gbz80/div.s,
1267 * device/lib/gbz80/fstubs.s,
1268 * device/lib/gbz80/heap.s,
1269 * device/lib/gbz80/mul.s,
1270 * device/lib/gbz80/putchar.s,
1271 * device/lib/gbz80/stubs.s,
1272 * device/lib/z80/crt0.s,
1273 * device/lib/z80/crt0_rle.s,
1274 * device/lib/z80/div.s,
1275 * device/lib/z80/fstubs.s,
1276 * device/lib/z80/heap.s,
1277 * device/lib/z80/mul.s,
1278 * device/lib/z80/putchar.s,
1279 * device/lib/z80/stubs.s: reverted, I was mistaken
1281 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1283 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1284 * support/regression/ports/mcs51/support.c: removed race
1285 condition on TI in _putchar allowing to use serial port mode 0
1287 2006-10-20 Borut Razem <borut.razem AT siol.net>
1289 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
1291 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1293 * device/lib/gbz80/crt0.s,
1294 * device/lib/gbz80/crt0_rle.s,
1295 * device/lib/gbz80/div.s,
1296 * device/lib/gbz80/fstubs.s,
1297 * device/lib/gbz80/heap.s,
1298 * device/lib/gbz80/mul.s,
1299 * device/lib/gbz80/putchar.s,
1300 * device/lib/gbz80/stubs.s,
1301 * device/lib/z80/crt0.s,
1302 * device/lib/z80/crt0_rle.s,
1303 * device/lib/z80/div.s,
1304 * device/lib/z80/fstubs.s,
1305 * device/lib/z80/heap.s,
1306 * device/lib/z80/mul.s,
1307 * device/lib/z80/putchar.s,
1308 * device/lib/z80/stubs.s: removed all leading underscores from area names
1310 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
1312 * support/regression/ports/mcs51/support.c: use highest baudrate so the
1313 regression tests are not waiting in the simulator for simulated
1314 transmission of debug output
1316 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1318 * device/lib/printf_large.c: slightly smaller
1319 * doc/sdccman.lyx: do not use spaces within html links
1321 2006-10-16 Borut Razem <borut.razem AT siol.net>
1323 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
1324 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
1325 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
1326 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
1327 debugger/mcs51/configure:
1328 [ 1185668 ] add gnu readline support to sdcdb - enabled
1330 2006-10-16 Raphael Neider <rneider AT web.de>
1332 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
1333 fixes #1577882, removes close to all banking optimizations
1335 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
1337 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
1338 variables in code memory
1339 * support/regression/tests/absolute.c: added test for this
1341 2006-10-15 Raphael Neider <rneider AT web.de>
1343 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
1345 (BankSelect): emit BANKSEL before touching linker-placed regs,
1348 2006-10-10 Raphael Neider <rneider AT web.de>
1350 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
1351 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
1352 * src/pic/main.c (_pic14_parseOptions),
1353 * src/pic/main.h: mostly reverted to previous state, now use results
1354 from SDCCmain.c's argument parsing
1356 2006-10-10 Borut Razem <borut.razem AT siol.net>
1358 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
1359 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
1360 [ 1185668 ] add gnu readline support to sdcdb -
1361 prepared for READLINE, not enabled yet,
1362 thanks to <tal.bav AT gmail.com>
1364 2006-10-10 Raphael Neider <rneider AT web.de>
1366 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
1367 * src/pic16/devices.inc,
1368 * device/include/pic16 (pic18f[24]620.h),
1369 * device/include/pic18fregs.h,
1370 * device/lib/pic16/pics.all,
1371 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
1372 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
1373 Gary Plumbridge and Anton Strobl
1375 2006-10-10 Raphael Neider <rneider AT web.de>
1377 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
1378 --stack-siz=NUM options to configure the argument passing stack
1379 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
1380 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
1381 (pic14_getSharebankSize): obey --stack-siz=NUM,
1382 (pic14_getSharebankAddress): obey --stack-loc=NUM
1384 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1386 * doc/sdccman.lyx: added to the manual
1387 * doc/figures/ddd_example.png: added (neither pdflatex nor
1388 most browsers seem to like the .eps file)
1390 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1392 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
1393 to /tmp and /var/tmp acc. LSB
1394 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
1396 * support/regression/tests/onebyte.c: added test
1398 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1400 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
1402 2006-10-05 Borut Razem <borut.razem AT siol.net>
1404 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
1406 - sdcc.dsw: changed property eol-style to CRLF
1407 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
1409 2006-10-04 Raphael Neider <rneider AT web.de>
1411 * device/include/pic/{pic16f84.h,pic16f84a.h},
1412 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
1413 from patch #1522504, thanks to Robas Teodor
1415 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
1417 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
1420 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
1422 * src/pic16/glue.c (pic16emitMaps),
1423 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
1424 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
1425 * device/lib/pic16/libc/string/memcpypgm2ram.c,
1426 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
1428 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
1429 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
1431 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1433 * support/librarian/sdcclib.c: Added option -l.
1434 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
1436 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
1437 using Windows command prompt.
1439 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1441 * device/lib/libsdcc.lib: added module rand
1442 * src/ds390/ralloc.c (rematStr),
1443 * src/hc08/ralloc.c (rematStr),
1444 * src/mcs51/ralloc.c (rematStr),
1445 * src/z80/ralloc.c (rematStr): made output more consistent
1446 * src/mcs51/gen.c: cosmetic changes
1448 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1450 * src/port.h: added mem.cabs_name to PORT
1457 * src/z80/main.c: added cabs_name initializers
1458 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
1460 (emitMaps): emit absolutes in code memory into cabs_name
1462 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
1463 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
1464 * support/regression/fwk/include/testfwk.h: added define for at
1465 * support/regression/tests/absolute.c: added, new
1467 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
1469 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
1470 optimizations, see also patch 887161 by Stas Sergeev
1471 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
1472 to be necessary anymore,
1473 (102, 103, 104, 127): renamed all occurances of bp to _bp
1475 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
1477 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
1478 thanks Weston T. Schmidt for patch 1555221
1479 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
1480 * src/SDCCicode.c(geniCodeMultiply): small optimization
1482 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1484 * device/include/stdlib.h: added rand prototypes
1485 * device/lib/rand.c: new, added
1486 * device/lib/Makefile.in: added rand.c
1487 * src/z80/peeph.def,
1488 * src/z80/peeph-gbz80.def,
1489 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
1491 2006-09-20 Raphael Neider <rneider AT web.de>
1493 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
1495 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
1497 * as/link/aslink.h: cosmetic changes
1498 * as/link/mcs51/Makefile.in,
1499 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
1501 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
1504 * as/link/mcs51/aslink.h,
1505 * as/link/z80/aslink.h: merged and moved to as/link/
1506 * as/link/lkstore.c,
1507 * as/link/mcs51/lkstore.c: moved to as/link/
1508 * as/link/clean.mk: remove *.o
1509 * as/link/mcs51/alloc.h: deleted
1510 * as/link/mcs51/lkarea.c: added lnksect prototype
1511 * as/link/mcs51/lkdata.c,
1512 * as/link/mcs51/lklex.c,
1513 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
1514 * as/link/mcs51/lkmem.c,
1515 * as/link/mcs51/lknoice.c: removed include strcmpi.h
1516 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
1517 * as/link/mcs51/aslink.dsp,
1518 * as/link/mcs51/Makefile.aslink,
1519 * as/link/mcs51/Makefile.bcc,
1520 * as/link/mcs51/Makefile.in: updated for moved files
1521 * as/link/z80/lkarea.c,
1522 * as/link/z80/lkhead.c,
1523 * as/link/z80/lklex.c,
1524 * as/link/z80/lklibr.c,
1525 * as/link/z80/lklist.c,
1526 * as/link/z80/lkmain.c,
1527 * as/link/z80/lkrloc.c,
1528 * as/link/z80/lksym.c: synced with mcs51
1529 * as/link/z80/lkdata.c,
1530 * as/link/z80/lkeval.c,
1531 * as/link/z80/lkihx.c,
1532 * as/link/z80/lks19.c: cosmetic changes
1533 * as/link/z80/Makefile.in,
1534 * as/link/z80/linkgbz80.dsp,
1535 * as/link/z80/linkz80.dsp: updated for moved files
1537 2006-09-16 Borut Razem <borut.razem AT siol.net>
1539 * debugger/mcs51/sdcdb.c: partially fixed
1540 [ 1203664 ] sdcdb fails to open files w. two "." periods
1541 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
1542 debugger/mcs51/symtab.h: fixed indenting
1543 * configure.in, configure: up to date with latest Maarten's changes
1545 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
1548 as/aslink.dsp, as/link/mcs51/aslink.dsp,
1549 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
1550 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
1551 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
1552 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
1553 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
1554 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
1555 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
1556 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
1557 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
1558 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
1559 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
1560 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
1561 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
1562 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
1563 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
1564 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
1565 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
1566 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
1567 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
1568 as/link/mcs51/alloc.h,
1569 as/link/mcs51/clean.mk,
1570 as/link/mcs51/conf.mk,
1571 as/link/mcs51/Makefile.bcc,
1572 as/link/mcs51/Makefile.in,
1573 as/link/mcs51/readme.390,
1574 as/link/mcs51/strcmpi.c,
1575 as/link/mcs51/strcmpi.h,
1577 as/mcs51/Makefile.bcc,
1578 as/mcs51/Makefile.in,
1581 sdcc.dsw: moved mcs51 linker to as/link/mcs51
1583 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
1586 * as/link/Makefile.in,
1587 * as/link/z80/linkgbz80.dsp,
1588 * as/link/z80/linkz80.dsp,
1595 * link/z80/aslink.h,
1596 * link/z80/clean.mk,
1598 * link/z80/linkgbz80.dsp,
1599 * link/z80/linkz80.dsp,
1600 * link/z80/lkarea.c,
1601 * link/z80/lkdata.c,
1602 * link/z80/lkeval.c,
1605 * link/z80/lkhead.c,
1608 * link/z80/lklibr.c,
1609 * link/z80/lklist.c,
1610 * link/z80/lkmain.c,
1611 * link/z80/lkrloc.c,
1614 * link/z80/Makefile.in,
1616 * sdcc.dsw: moved link/ to as/link/
1618 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
1620 * as/mcs51/i51mch.c (machine): fixed warning
1622 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1624 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
1626 2006-09-09 Borut Razem <borut.razem AT siol.net>
1628 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
1629 sdcdb WIN32 native port
1630 * src/clean.mk: fixed
1632 2006-09-08 Borut Razem <borut.razem AT siol.net>
1634 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
1636 2006-09-08 Raphael Neider <rneider AT web.de>
1638 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
1639 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
1640 to gplink to disable processor mismatch warning and to allow
1641 the use of devices with only aliased (shared) memory banks,
1642 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
1644 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1646 * doc/sdccman.lyx: Some re-formating plus example on using
1647 #pragma preproc_asm +/-
1649 2006-09-07 Borut Razem <borut.razem AT siol.net>
1651 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
1654 2006-09-06 Borut Razem <borut.razem AT siol.net>
1656 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
1657 line at sdcc.nsi:153
1658 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
1660 2006-09-05 Borut Razem <borut.razem AT siol.net>
1662 * configure.in, configure: support for winsock2
1663 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
1664 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
1665 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
1666 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
1667 debugger/mcs51/symtab.h: sdcdb WIN32 native port
1669 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1671 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
1673 * support/regression/tests/bug1551947.c: new, added
1674 * src/SDCCsymt.h: strings are char* not byte*
1676 2006-09-05 Raphael Neider <rneider AT web.de>
1678 * device/lib/pic16/libdev/pic18f4550.c,
1679 device/include/pic16/pic18f4550.h: added PORTD/TRISD
1680 declarations/definitions from patch #1520949
1682 2006-09-05 Raphael Neider <rneider AT web.de>
1684 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
1685 byte-aligned bitfields, fixes #1539278
1687 2006-09-05 Raphael Neider <rneider AT web.de>
1689 * src/pic/gen.c (genReceive): skip unreferenced arguments,
1692 2006-09-04 Borut Razem <borut.razem AT siol.net>
1694 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
1695 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
1696 -mno-cygwin is a part of the compiler name
1697 * support/scripts/sdcc_mingw32: don't disable ucsim
1699 2006-09-03 Borut Razem <borut.razem AT siol.net>
1701 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
1702 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
1704 2006-09-03 Raphael Neider <rneider AT web.de>
1707 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
1708 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
1711 2006-09-01 Borut Razem <borut.razem AT siol.net>
1713 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
1714 to make ppc-osx happy
1716 2006-08-31 Borut Razem <borut.razem AT siol.net>
1718 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
1719 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
1720 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
1721 * support/regression/ports/ds390/spec.mk,
1722 support/regression/ports/mcs51/spec.mk,
1723 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
1724 To run regression tests in mingw environment:
1725 make DEV_NULL=NUL CC=gcc
1727 2006-08-30 Borut Razem <borut.razem AT siol.net>
1729 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
1730 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
1731 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
1732 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
1733 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
1734 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
1735 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
1736 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
1737 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
1738 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
1739 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
1740 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
1741 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1742 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
1743 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
1744 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
1745 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
1746 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
1747 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1748 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
1749 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
1750 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
1751 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
1752 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
1753 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
1754 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
1755 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
1756 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
1757 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
1758 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
1759 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
1760 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
1761 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
1762 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
1763 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
1764 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
1765 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1766 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1767 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
1768 ucsim WIN32 native port
1770 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1772 * doc/sdccman.lyx: added note on dynamic memory heap initialization
1774 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1776 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1777 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
1779 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
1781 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1782 * support/regression/tests/bug1546986.c: new, added
1783 * as/mcs51/.cvsignore,
1784 * debugger/mcs51/.cvsignore,
1785 * src/.cvsignore: deleted
1787 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1789 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
1792 2006-08-20 Borut Razem <borut.razem AT siol.net>
1794 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
1795 removed cl_listen_console::match(), cl_console::match(),
1796 restructured cl_commander::proc_input()
1798 2006-08-16 Borut Razem <borut.razem AT siol.net>
1800 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
1801 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1802 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
1804 2006-08-14 Borut Razem <borut.razem AT siol.net>
1806 * support/regression/Makefile.in,
1807 support/regression/ports/pic14/gpsim.cmd,
1808 support/regression/ports/pic14/spec.mk,
1809 support/regression/ports/pic14/support.c:
1810 added pic14 regression test
1812 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
1814 * as/doc/asxhtm.html: documented changed ABS behaviour
1815 * as/doc/README: fixed some typos
1817 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
1819 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
1822 2006-08-12 Borut Razem <borut.razem AT siol.net>
1824 * support/regression/fwk/include/testfwk.h,
1825 support/regression/fwk/lib/testfwk.c,
1826 support/regression/generate-cases.py,
1827 support/regression/Makefile.in:
1828 regression test framework does not depend on function pointers and
1831 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1833 * device/include/stddef.h: c temporary hack to fix bug 1518273
1835 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1837 * device/include/mcs51/cc2510fx.h: added
1838 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
1841 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1843 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
1844 * as/z80/Makefile.in: added strcmpi.c
1845 * as/z80/z80adr.c: added upper case registers and lower case conditionals
1846 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
1848 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
1850 * device/lib/gbz80/asm_strings.s,
1851 * device/lib/gbz80/crt0_rle.s,
1852 * device/lib/gbz80/div.s,
1853 * device/lib/gbz80/mul.s,
1854 * device/lib/gbz80/shift.s,
1855 * device/lib/z80/asm_strings.s,
1856 * device/lib/z80/crt0_rle.s,
1857 * device/lib/z80/div.s,
1858 * device/lib/z80/mul.s,
1859 * device/lib/z80/shift.s: changed to all lower case menmonics except the
1860 flags which are all upper case
1862 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1864 * as/z80/asm.h: made CASE_SENSITIVE 1
1865 * link/z80/aslink.h: made CASE_SENSITIVE 1
1866 * src/z80/gen.c (throughout): made all conditionals upper case
1867 * support/regression/tests/bug1503067.c: new
1869 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1871 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
1872 (shiftIntoPair): added case 2 for PAIR_IY,
1873 (setupToPreserveCarry): replaced parameters with iCode and check if
1874 PAIR_DE is in use to fix bug 1399290,
1875 (genPlus, genMinus): updated call to setupToPreserveCarry
1876 * support/regression/tests/bug1399290.c: new
1878 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
1880 * device/lib/Makefile.in (Z80SOURCES): enabled float support
1881 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
1882 * src/ds390/gen.c (shiftRLong),
1883 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
1884 * src/mcs51/gen.c (sameReg): changed to sameByte,
1885 (xch_a_aopGet): new,
1886 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
1887 shiftRLong): fixed bug 1533966
1888 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
1889 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
1890 * support/regression/Makefile.in: disabled z80, enabled ucz80
1891 * support/regression/tests/float_trans.c: enabled test for z80 and host
1892 * support/regression/tests/shifts2.c: new, for testing bug 1533966
1894 2006-08-01 Borut Razem <borut.razem AT siol.net>
1896 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
1897 comparison is always false due to limited range of data type
1898 on PPC64 machine (openpower-linux1) where "char = unsigned char"
1900 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
1902 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
1903 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
1904 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
1905 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
1907 2006-07-31 Borut Razem <borut.razem AT siol.net>
1909 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
1910 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
1911 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
1912 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
1913 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
1914 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
1915 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
1916 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
1917 enable ucsim mingw compilation. Serial port is disabled,
1918 since it uses termios.h API, which is not available on native
1921 2006-07-31 Borut Razem <borut.razem AT siol.net>
1923 * Small Device C Compiler 2.6.0 released
1924 * support/scripts/sdcc.nsi: added FULL_DOC option
1925 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
1927 2006-07-28 Borut Razem <borut.razem AT siol.net>
1929 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
1930 * doc/INSTALL.txt: updated
1932 2006-07-27 Borut Razem <borut.razem AT siol.net>
1934 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
1935 device/lib/pic/libdev/Makefile.in: fixed bug
1936 [ 1438354 ] pic libsdcc: distclean doesn't work
1937 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
1938 device/lib/pic16/libio/Makefile.in: fixed bug
1939 [ 1438344 ] pic16 lib: clean doesn't work properly
1940 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
1942 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
1944 * device/lib/pic/libsdcc/fsdiv.c,
1945 * device/lib/pic/libsdcc/fsmul.c,
1946 * device/lib/pic16/libsdcc/float/fsdiv.c,
1947 * device/lib/pic16/libsdcc/float/fsmul.c,
1948 * device/lib/_fsdiv.c,
1949 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
1950 * support/regression/tests/bug1520966.c: added
1951 * doc/knownbugs.html: removed [ 1520966 ] from the list
1953 2006-07-25 Borut Razem <borut.razem AT siol.net>
1955 * configure.in, configure, sdccconf_in.h: fixed bug
1956 [ 1519095 ] regression test onebyte.c fails on ppc64 host
1957 * doc/knownbugs.html: removed [ 1519095 ] from the list
1959 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
1961 * doc/knownbugs.html: added, contains list of known bugs at release
1962 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
1964 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1966 * device/include/mcs51/compiler.h: added SFRX for xdata based special
1967 function registers and corrected defaults with additional warning
1968 * device/lib/malloc.c: cosmetic changes
1969 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
1970 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
1971 (fillGaps): and used it
1973 2006-07-20 Raphael Neider <rneider AT web.de>
1975 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
1976 output unless SDCCPICDEBUG is set
1977 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
1978 output if SILENT is set
1980 2006-07-11 Borut Razem <borut.razem AT siol.net>
1982 * doc/README.txt: updated
1984 2006-07-10 Borut Razem <borut.razem AT siol.net>
1986 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
1987 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
1988 in WIN32 installation
1989 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
1992 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
1994 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
1995 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
1997 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
1999 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2001 2006-07-06 Borut Razem <borut.razem AT siol.net>
2003 * support/regression/tests/bitfields.c:
2004 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2005 * support/regression/tests/constantRange.c:
2006 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2008 2006-07-04 Borut Razem <borut.razem AT siol.net>
2010 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2012 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2013 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2014 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2015 reverted changes from 2006-07-03
2016 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2017 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2018 added CPPFLAGS, used by the host port
2020 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2022 * support/regression/valdiag/tests/switch.c,
2023 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2024 * support/regression/tests/libmullong.c: fixed for host
2025 * support/regression/ports/host/spec.mk: disable all warnings for host,
2026 SDCC runs with --less-pedantic too
2028 2006-07-03 Borut Razem <borut.razem AT siol.net>
2030 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2032 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2033 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2034 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2035 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2037 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2038 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2039 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2040 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2042 2006-07-02 Raphael Neider <rneider AT web.de>
2044 * src/pic16/devices.inc,
2045 * device/include/pic16/pic18fregs.h,
2046 * device/include/pic16/pic18f4550.h,
2047 * device/lib/pic16/pics.all,
2048 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2050 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2052 * as/hc08/lkaomf51.c (OutputName),
2053 * as/mcs51/lkaomf51.c (OutputName),
2054 * as/z80/asmain.c (asmbl),
2055 * src/ds390/main.c (asmLineNodeFromLineNode),
2056 * src/hc08/ralloc.c (hc08_assignRegisters),
2057 * src/mcs51/main.c (asmLineNodeFromLineNode),
2058 * src/xa51/ralloc.c (checkRegMask),
2059 * src/xa51/gen.c (emitcode),
2060 * src/z80/gen.c (_emit2),
2061 * src/SDCCast.c (searchLitOp),
2063 * support/packihx/packihx.c,
2064 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2065 * src/ds390/gen.c (aopPutUsesAcc),
2066 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2067 * support/regression/tests/libmullong.c (mullong_wrapper),
2068 * src/SDCCsymt.c (powof2),
2070 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2071 * src/SDCCsymt.h: added TYPE_TARGET_*
2072 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2073 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2074 SDCCast because 1) header problems 2) this is the right place
2075 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2076 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2079 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2081 * src/SDCCicode.h: removed buggy semicolon in unused macro
2082 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2083 search for previous definiton of auto symbols too,
2084 (findPrevUse): fixed logic of emitWarnings
2086 2006-06-26 Raphael Neider <rneider AT web.de>
2088 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2089 PCLATH and PCLATU on interrupts, potentially fixes #1505141
2091 2006-06-25 Raphael Neider <rneider AT web.de>
2093 * device/lib/pic/libm: NEW, added math library functions
2094 * device/lib/pic/libsdcc: NEW; added float support functions
2095 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2096 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2097 NEW, added math related headers
2098 * device/include/asm/pic/features.h: NEW
2099 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2100 (popGet): allow larger offsets for AOP_PCODE,
2101 (genDataPointerSet): handle literals explicitly, more debug output,
2102 (genAssign): fixed for float using aopLiteral ;-)
2103 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2104 GOTO initialisation routine
2105 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2106 flag on registers, fixes #1469043 (local variables do not work)
2107 * src/pic/main.c (_pic14_do_link),
2108 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2111 2006-06-25 Borut Razem <borut.razem AT siol.net>
2113 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2114 characters printed (not including the trailing '\0' used to end
2115 output to strings). Problem detected in regression test bug-927659.c.
2116 NOTE: printf() family functions should return int instead
2118 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2119 specifier are printed as themselves
2120 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2121 support flags, width and precision specifiers
2123 2006-06-24 Borut Razem <borut.razem AT siol.net>
2125 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2126 to the list of sdcc tagrets not supporting bit type
2127 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2128 testfor pic16 due to bug:
2129 [ 1511794 ] pic16: regression test bug-895992.c fails
2131 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2133 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2134 * src/SDCCglue.c (initPointer), fixed bug 1496419
2135 * support/regression/tests/bug1496419.c: new, added
2137 2006-06-22 Borut Razem <borut.razem AT siol.net>
2139 * support/regression/ports/pic16/support.c: use gpsim usart module from
2140 libgpsim_modules library
2142 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2144 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2147 2006-06-19 Raphael Neider <rneider AT web.de>
2149 * src/pic/glue.h,src/pic16/glue.h: added prototypes
2150 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2151 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2152 (pic14printExterns,pic14printPublics,pic16printPublics,
2153 pic16_printExterns): use new functions to emit symbols
2154 (picglue,pic16glue): emit publics before emitting externs
2155 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2156 locally defined functions to avoid bug #1443651
2157 * support/regression/tests/bug-716242.c: removed pic16 workaround
2158 * support/regression/ports/pic16/spec.mk: ignore errors during build
2160 2006-06-19 Raphael Neider <rneider AT web.de>
2162 * src/pic/glue.h: added pic14aopLiteral prototype
2163 * src/pic/glue.c (pic14aopLiteral): return unsigned int
2164 * src/pic/gen.c: removed stdint.h dependency
2165 (aopGet): use Safe_strdup()
2166 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2167 (genDataPointerSet): use pic14aopLiteral()
2168 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2169 for pic16; thanks to Bernhard and Maarten
2171 2006-06-18 Borut Razem <borut.razem AT siol.net>
2173 * support/regression/tests/structflexarray.c: flexible array members
2174 not supported by gcc < 3
2175 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2177 * src/pic/gen.c: don't include [p]strdin.h on solaris
2178 * support/Util/pstdint.h: addad svn attributes
2179 * support/regression/tests/constantRange.c,
2180 support/regression/tests/rotate.c: include inttypes.h instead
2181 stdint.h on solaris, addad svn attributes
2183 2006-06-18 Raphael Neider <rneider AT web.de>
2185 * src/SDCCsymt.c (initCSupport): change return type of divschar to
2187 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2188 (pic16_genMinusBits): simplified sign-extension
2189 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2190 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2191 adjusted to correctly handle mixed-signed operands, disabled
2192 now unused multiplciation routines
2193 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2194 (assignResultValue): added argument denoting the size of the result
2195 as returned by the function (fixes upcasts in assigning from
2196 function calls: char foo(); int i = foo();)
2197 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2198 function result to assignResultValue
2199 (genMult): disabled inlined multiplication code
2200 (genDiv): augmented to also handle the modulus operator, fixed to
2201 handle mixed-signed operands correctly
2202 (genMod): simply call genDiv, disabled unused code
2203 (genAssign): fixed missing (sign-)extension on result
2204 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2205 valid char operands, allow signed operands for native code, added
2206 division and modulo operator handling
2207 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2209 As a consequence, onebyte.c (if split into two files) and muldiv.c
2210 pass regression tests.
2212 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2214 * doc/Makefile.in: two runs of makeindex seem needed to get
2215 correct page references in the index of sdccman.pdf
2216 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2218 2006-06-17 Borut Razem <borut.razem AT siol.net>
2220 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2222 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2224 * doc/sdccman.lyx: updated, added (porting source code, debugging),
2225 mentioned ec2drv and paulmon
2227 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2229 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2230 consecutive abs areas
2231 (find_empty_space, allocate_space): added map to handle codemap or
2233 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2234 absolute idata and xdata
2235 * as/mcs51/lkmem.c (summary2): updated legend
2237 2006-06-16 Raphael Neider <rneider AT web.de>
2239 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2241 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2243 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2245 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2247 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2249 * src/port.h (struct PORT): added field gp_tags, to hold the tag
2250 value of generic pointers,
2260 src/z80/main.c: PORT structure, added elements for gp_tags field,
2261 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2262 fields in the PORT structure of each port,
2263 * src/SDCCast.c (decorateType): allow processing of generic pointers
2264 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2267 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2273 * src/pic16/pcode.c,
2275 * src/pic/pcoderegs.c,
2278 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2279 bug 1504689 on minGW
2281 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2283 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2285 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2287 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
2289 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2291 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
2294 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
2296 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
2297 to a char variable. Fixed bug #1504211
2298 * device/include/pic16/adc.h,
2299 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
2300 and fixed bug #1364390
2302 2006-06-10 Borut Razem <borut.razem AT siol.net>
2304 * CVSROOT: removed the CVS left-over
2306 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2308 * as/hc08/asmain.c (asexit),
2309 * as/hc08/lkmain.c (lkexit),
2310 * as/mcs51/asmain.c (asexit),
2311 * as/mcs51/lkmain.c (lkexit),
2312 * src/SDCCglue.c (DEFSETFUNC),
2313 * src/SDCCmain.c (linkEdit, assemble),
2314 * support/librarian/sdcclib.c (AddRel),
2315 replaced unlink() by standard C remove()
2316 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
2317 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
2318 gatherImplicitVariables): new, added to fix bug 608752,
2319 (createFunction): added gatherImplicitVariables()
2320 * src/SDCCast.h: added createRMW prototype
2321 * src/SDCCsymt.h (struct symbol): added infertype
2322 * support/regression/tests/bug608752.c: new, added
2324 2006-06-10 Raphael Neider <rneider AT web.de>
2326 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
2327 multibyte dummy reads (fixes #1503234)
2329 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2331 * device/include/mcs51/compiler.h: new, added header file to enable
2332 creating common sfr definition header files for different compilers
2334 2006-06-05 Raphael Neider <rneider AT web.de>
2336 * src/pic16/{pcode.h,genarith.c}:
2337 introduced pCodeOp combining any two pCodeOps (previously only
2338 two register operands could be combined), removed pcop2 from
2339 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
2340 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
2341 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
2342 rewritten to use new PO_TWO_OPS
2343 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
2344 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
2345 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
2346 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
2347 (pic16_get_op): embraced return arg to allow #define return(x),
2348 added new case for combined opcodes
2349 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
2350 (pic16_pCode2str,pic16_getRegFrompCodeOp,
2351 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
2353 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2355 * src/SDCCval.c (checkConstantRange): added
2356 * src/SDCCval.h: added checkConstantRange
2357 * support/Util/SDCCerr.c,
2358 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
2359 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
2360 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
2361 * src/SDCCast.c (decorateType): added checkConstantRange,
2362 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
2363 can be emitted with the correct always true/false warning,
2364 added optimization for double '!';
2365 result of decorateType() must be assigned back to the tree, because
2366 decorateType() can change the tree
2367 * src/SDCCicode.c (geniCodeLogic),
2368 (geniCodeAssign): replaced new checkConstantRange, added warnings,
2369 (checkConstantRange): removed, it was only a fragment which never
2371 * src/SDCCsymt.c (computeType): fixed promotion for
2372 "-1 < (unsigned bit) b"
2373 * src/pic/ralloc.c (packRegsForAssign),
2374 * src/pic16/ralloc.c (packRegsForAssign),
2375 * src/hc08/ralloc.c (packRegsForAssign),
2376 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
2378 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
2379 * support/regression/tests/constantRange.c: added
2380 * support/valdiag/tests/constantRange.c: added
2381 * support/valdiag/valdiag.py: added -DPORT_HOST=1
2383 2006-06-02 Borut Razem <borut.razem AT siol.net>
2385 * support/regression/ports/pic16/support.c: increase stack size
2387 * support/regression/Makefile.in: sort tests by name so that the
2388 resutlts can be compared on different machines / platforms
2390 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2392 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
2393 * src/ds390/gen.c (emitLabel): new, added,
2394 (genDjnz): fixed stack overflow bug,
2395 (throughout): cosmetic changes to sync with mcs51/gen.c,
2396 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
2397 * src/mcs51/gen.c (genEndFunction): small optimization,
2398 (throughout): cosmetic changes to sync with ds390/gen.c
2400 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2402 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
2403 (_print_format): fixed printing pointers
2404 * src/mcs51/gen.c (emitLabel, movb): new, added,
2405 (genAssign): small optimization,
2406 (genDjnz): fixed stack overflow bug,
2407 (throughout): replaced sprintf with SNPRINTF,
2408 replaced mcs51_regWithIdx with REG_WITH_INDEX,
2409 replaced emitcode("mov", "b,...") with MOVB(...),
2410 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
2411 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2412 * src/mcs51/peeph.def: added rules 140 and 264
2413 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
2414 so they may get optimized into registers
2416 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
2418 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
2419 immediately when encountered,
2420 (printUsage): always use stderr even on windows
2422 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
2424 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
2425 (processParms): fixed bug #1247551
2426 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
2427 parseCmdLine, main): print '--version' to stdout,
2428 print 'help' to stdout if --help is given,
2429 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
2430 arguments are given; fixed --help
2432 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
2434 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
2435 * support/regression/tests/bug-1493710.c: added
2437 2006-05-27 Borut Razem <borut.razem AT siol.net>
2439 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
2441 * support/regression/ports/pic16/support.c: increase stack size
2442 from default 64 bytes to 128 bytes
2443 * support/regression/tests/staticinit.c,
2444 support/regression/tests/float.c: regression tests fully enabled
2445 for pic16 port by putting the initialized data arrays into the code
2447 * support/regression/ports/pic16/spec.mk: don't link default libraries.
2448 This was changed by mistake in the previous version.
2450 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
2452 * src/pic16/gen.c (genFunction, genEndFunction): some
2453 beautifications, fixed bug with falsely restoring FSR2 in large
2454 stack model, thanks to Beau E. Cox for reporting the bug
2456 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2458 * debugger/mcs51/break.c,
2459 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
2460 use %p to print pointers, made address variables unsigned
2461 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
2462 * debugger/mcs51/symtab.c (parseSymbol): must return something
2463 * src/mcs51/gen.c (aopForSym): small optimization,
2464 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
2465 (freeAsmop): added missing break,
2466 (aopPut): removed parameter bvolatile, determine it inside the function,
2467 (saveRegisters, unsaveRegisters): small optimization,
2468 (genIpush): removed pointless check,
2469 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
2470 replaced sprintf with SNPRINTF,
2471 replaced strcpy with strncpyz,
2472 updated aopPut calls,
2473 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2474 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
2476 2006-05-24 Borut Razem <borut.razem AT siol.net>
2478 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
2479 modification of test for the pic16 port, put the array to the code
2480 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
2482 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2484 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
2485 * support/Util/pstdint.h: added
2487 2006-05-22 Borut Razem <borut.razem AT siol.net>
2489 * src/regression/Makefile: removed bool2.c test, added -q linker option
2490 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
2491 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
2492 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
2493 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
2494 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
2495 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
2496 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
2497 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
2498 define SUPPORT_BIT_TYPES 0, removed unused bit variables
2500 2006-05-22 Raphael Neider <rneider AT web.de>
2502 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
2503 bug #1492360 (problematic due to generic pointers, see code)
2505 2006-05-22 Borut Razem <borut.razem AT siol.net>
2507 * support/regression/ports/pic16/specs.mk: removed stack size linker
2509 * support/regression/tests/array.c,
2510 support/regression/tests/bitopcse.c,
2511 support/regression/tests/bug-908454.c,
2512 support/regression/tests/malloc.c: modified for pic16 regression test
2513 * support/regression/tests/bitfields.c:
2514 pic16 - excluded bitfileds of size > 8
2515 * support/regression/tests/bp.c: pic16 - reduced data size
2516 * support/regression/tests/bug-221100.c: pic16 - reduced data size
2517 * support/regression/tests/bug-460010.c:
2518 pic16 - used the absolute address the fits in memory
2519 * support/regression/tests/bug-716242.c:
2520 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
2521 * support/regression/tests/float.c:
2522 pic16 - excluded - data size too big
2523 * support/regression/tests/onebyte.c:
2524 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
2525 * support/regression/tests/shifts.c:
2526 pic16 - function names probably have to differ in first X characters
2528 * support/regression/tests/staticinit.c:
2529 pic16 - excluded some tests due error: no target memory available for
2532 2006-05-22 Borut Razem <borut.razem AT siol.net>
2534 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2535 second try. Thanks Stas Sergeev once more.
2537 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2539 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
2540 (genLeftShift, genRightShift): fixed bug 1491627
2541 * src/hc08/peeph.def (rules 7, 8.x): added
2542 * support/regression/tests/shifts.c (ShiftLeftByParam,
2543 ShiftRightByParam, testShiftByParam): added to test variable shifting
2545 2006-05-20 Raphael Neider <rneider AT web.de>
2547 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
2548 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
2549 (allocReg): add only new registers to dynAllocRegs,
2550 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
2551 #1489055, #1445850, and probably #1483693
2553 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
2555 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
2556 bug in for-loop that didn't emit the last of CONFIG and ID registers
2558 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
2560 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
2562 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
2563 1489016, 1434401 and 1490124
2564 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
2565 1489016, 1434401 and 1490124
2567 2006-05-17 Borut Razem <borut.razem AT siol.net>
2569 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2572 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2574 * device/include/mcs51/P89c51RD2.h,
2575 * device/include/mcs51/P89LPC901.h,
2576 * device/include/mcs51/P89LPC922.h,
2577 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
2579 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2581 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
2582 to fix missing stack pragma in compiled binary object file,
2584 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2586 * support/packihx/configure.in,
2587 * support/packihx/configure: removed warning, autoconf >= 2.5x can
2588 determine sizeof basic types even while cross compiling
2590 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2592 * src/avr/gen.c (aopop),
2593 * src/ds390/gen.c (aopOp),
2594 * src/hc08/gen.c (aopOp),
2595 * src/mcs51/gen.c (aopop),
2596 * src/pic16/gen.c (pic16_aopOp),
2597 * src/pic/gen.c (aopOp),
2598 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
2599 if size of operand is smaller than spill location
2601 2006-05-12 Borut Razem <borut.razem AT siol.net>
2603 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
2604 have to have CR/LF line endings even if they are checked out on *nix
2605 or on WIN32 in cygwin binmode
2607 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
2609 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
2610 * device/include/ds80c390.h: added sfr16 definitions
2614 * src/ds390/ralloc.c,
2615 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
2616 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
2617 bit returning functions
2618 * support/regression/tests/sfr16.c: enabled test on ds390
2620 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2622 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
2623 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
2625 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2627 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
2628 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
2629 (cl_address_space constructor): removed expensive initialization,
2630 (cl_address_space::get_cell): extended for late initialization,
2631 (cl_address_space::*): use late initialization,
2632 (cl_address_decoder::activate): removed expensive initialization,
2633 This reduced regression test running time by 25%
2635 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
2643 * support/packihx/Makefile.in,
2644 * support/packihx/clean.mk,
2645 * support/packihx/Makefile.bcc,
2646 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
2648 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2650 * src/SDCCval.c (valNot): fix for regression test failure
2651 of not.c on big endian hosts
2653 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2655 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
2657 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2659 * device/lib/mcs51/Makefile.in: changed string comparison operator
2660 to = for POSIX compliance; == is bash extension
2662 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2664 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
2667 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
2669 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
2670 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
2671 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
2672 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
2673 bug report #1478657,
2675 2006-05-05 Borut Razem <borut.razem AT siol.net>
2677 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
2680 2006-05-02 Borut Razem <borut.razem AT siol.net>
2682 * doc/Makefile.in: removed *.ind dependency since there is no rule to
2683 create *.ind, which made make to fail if invoked with -j 2
2685 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
2687 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
2688 Hubert Sack for patch 1479782
2690 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
2692 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
2694 2006-05-01 Raphael Neider <rneider AT web.de>
2696 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
2697 (create_pic): store only prefix-free device name,
2698 (init_pic): check for device names with "16" prefix,
2700 * src/pic/device.h (struct PIC_device),
2701 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
2703 * device/include/pic/pic12f{635,675,629,683}.h,
2704 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
2705 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
2706 * device/include/pic/pic16f505.h,
2707 * device/lib/pic/libdev/pic16f505.c: removed
2708 * device/include/pic/pic14devices.txt: added support for pic12f
2709 devices, removed unsupported non 16-bit devices
2710 [above changes provided by patch from Zik Saleeba]
2711 * src/pic/*, src/pic16/*, device/include/pic16/*,
2712 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
2714 2006-05-01 Borut Razem <borut.razem AT siol.net>
2716 * configure.in, configure, doc/Makefile.in:
2717 sync with nightly build makefile - latex, dvipdf and dvips
2720 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2722 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
2723 in the library source
2725 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
2727 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
2729 2006-04-28 Raphael Neider <rneider AT web.de>
2731 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
2732 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
2733 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
2734 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
2736 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2738 * device/lib/pic/libdev/Makefile.in,
2739 * device/lib/hc08/Makefile.in,
2740 * device/lib/gbz80/Makefile.in,
2741 * device/lib/z80/Makefile.in,
2742 * device/lib/ds390/Makefile.in,
2743 * device/lib/ds400/Makefile.in: added srcdir to include search path,
2744 thanks to Borut for the bug report
2746 * configure: always create doc/Makefile independent from --enable-doc
2747 * Makefile.in: always install from directory doc independent from
2749 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
2751 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
2752 * doc/Makefile.in: install *.txt if present
2753 * device/include/Makefile.in (install): added installation of pic/*.inc
2754 and pic/*.txt files again, they were erroneously removed
2756 2006-04-28 Raphael Neider <rneider AT web.de>
2758 * src/pic/{gen.c,main.h,pcode.c},
2759 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
2760 concerning signedness with casts
2762 2006-04-28 Raphael Neider <rneider AT web.de>
2764 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
2765 definition of an interrupt handler,
2766 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
2767 interrupt handler stuff from picglue() to separate routine,
2768 (picglue): enabled definition of intr handlers in files w/o main()
2770 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2772 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
2773 compilation with MSVC 2005 Express Edition (VC8)
2775 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2777 * device/lib/Makefile: fixed build of gbz80 lib
2779 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2781 * support/regression/tests/bug-460010.c,
2782 * support/regression/tests/bug-524691.c,
2783 * support/regression/tests/bug-716242.c: removed conditional defines
2784 that are already in testfwk.h
2786 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2788 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
2789 (AccAXRsh1): added, shift right by 1,
2790 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
2792 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
2794 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
2796 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
2797 remove cast to same type
2798 * src/SDCCast.c (decorateType): fix for RFE 1475742,
2799 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
2801 * link/z80/Makefile: removed, they have moved to
2804 * configure.in: replaced duplicate message about ucsim by missing sdcpp
2805 * install-sh: fix bug #1204398 by setting umask 0022
2806 * device/lib/Makefile: separate build of z80 and gbz80 lib
2808 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2810 Enabled VPATH feature: changed nearly all Makefiles (149 files).
2811 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
2813 One basic decision: e.g. src/clean.mk includes further files. In order
2814 to make this work there are two solutions:
2815 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
2816 run configure on them. This way they can use
2817 'include $(srcdir)/port-clean.mk'
2818 - always include clean.mk by the Makefile at the same level. To avoid
2819 that `make clean` tries to include and build Makefile.dep the
2820 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
2821 implemented, because now even `make uninstall` doesn't create
2822 Makefile.in. clean.mk could be eliminated by pasting it in
2825 * debugger/mcs51/Makefile.in: build own objects from library sources
2826 (SLIB, SDCC) in current directory
2828 * configure, configure.in: renamed --disable-device-lib-build in
2829 --disable-device-lib; added --enable-doc, the required tools are
2830 searched by configure; added result message; the toolchain for the
2831 belonging ports are now only built, if the port is enabled.
2833 * support/regression/*: all output is written in directory gen, because
2834 the fwk and ports directories don't livet in the build tree using vpath
2836 * doc/sdccman.lyx: renamed --disable-device-lib-build to
2837 --disable-device-lib, added --enable-doc, added section VPATH
2839 * sim/ucsim/configure.in,
2840 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
2841 z80 are enabled by default
2843 2006-04-24 Raphael Neider <rneider AT web.de>
2845 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
2846 to config word, "pic14_"-prefixed some extern functions
2847 (pic14_emitConfigWord): emit __config directive(s) if assignment to
2848 config word has been found
2849 * src/pic/device.h: added prototypes
2850 * src/pic/pcode.c: added "pic14_"-prefix where needed
2851 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
2853 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
2855 (pic14emitRegularMap): ignore config words,
2856 (pic14createInterruptVect): moved generating __config directives away
2857 (picglue): have __config directives emitted
2859 2006-04-24 Borut Razem <borut.razem AT siol.net>
2861 * doc/Makefile: sync with nightly build makefile
2863 2006-04-24 Raphael Neider <rneider AT web.de>
2865 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
2866 registers that have not been assigned proper liveranges,
2867 fixes #1469504 and #1474602,
2868 (pCodeRegOptimizeRegUsage): fixed typo in comment
2870 2006-04-24 Borut Razem <borut.razem AT siol.net>
2872 * device/examples/main8051.c: deleted - it was removed from CVS
2873 24.mar.2000 and after that modified 18.feb.2001, so it reappered
2874 after the transition to Subversion
2875 * src/SDCCalloc.h: deleted - it was removed from CVS
2876 3.feb.2001 and after that modified 18.feb.2001, so it reappered
2877 after the transition to Subversion
2878 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
2879 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
2880 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
2881 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
2883 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
2885 * as/asx8051.dsp: added mcs51/strcmpi.h
2886 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
2887 * as/hc08/aslink.h: updated lnksect prototype
2889 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
2891 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
2892 (newdot): handle A_ABS
2894 * as/mcs51/asout.c (outarea): output address
2895 * as/hc08/lkaomf51.c,
2896 * as/mcs51/lkaomf51.c: disabled unused array UsageType
2898 * as/mcs51/i51pst.c,
2899 * as/z80/z80pst.c: "ABS" is not A_OVR
2900 * as/hc08/lkarea.c (newarea): read a_addr,
2901 (lnkarea): added codemap array, sort absolute areas to the front,
2902 combine all GSINITx/GSFINAL,
2903 (find_empty_space, allocate_space): new functions,
2904 (lnksect): return next address, handle absolute sections
2905 * as/mcs51/lkarea.c (newarea): read a_addr,
2906 lnksect2 prototype changed,
2907 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
2908 (find_empty_space, allocate_space): new, factored out of lnksect2,
2909 (lnksect2): return next address, handle absolute sections
2911 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
2912 * as/hc08/lklibr.c (addfile, fndsym),
2913 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
2914 index out of range and detect both '\' and '/'
2915 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
2916 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
2917 regression tests (ds390 cannot return bool yet)
2918 * doc/sdccman.lyx: changed version number, document changed --no-peep,
2919 document critical interrupts on z80, document changed SDCC define
2920 * src/asm.c (_asxxxx_mapping): fixed .org directive,
2921 (_a390_mapping): added .org directive
2922 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
2923 (genMultOneByte): fixed warnings
2924 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
2926 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
2927 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
2928 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
2929 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
2930 * src/pic16/main.c: removed newReg prototype
2931 * src/pic16/pcode.c,
2932 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
2934 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
2936 * src/pic16/ralloc.c
2937 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
2939 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
2940 from short to PIC_OPTYPE
2941 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
2942 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
2943 optype from short to PIC_OPTYPE
2944 * src/port.h: made int_size unsigned to fix warnings
2945 * src/SDCC.y: fixed warning on MSVC
2946 * src/SDCCicode.c (getArraySizePtr): return unsigned int
2947 * src/SDCCopt.c (convertToFcall): fixed warnings
2948 * src/SDCCsymt.h: removed double prototype for genSymName
2949 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
2950 offset int to fix warnings
2952 2006-04-22 Borut Razem <borut.razem AT siol.net>
2954 * doc/sdccman.lyx, */Makefile, */Makefile.in:
2955 references to CVS replaced with Subversion
2957 2006-04-21 Borut Razem <borut.razem AT siol.net>
2959 * doc/sdccman.lyx, */Makefile, */Makefile.in:
2960 references to CVS replaced with Subversion
2962 2006-04-19 Borut Razem <borut.razem AT siol.net>
2964 * src/version.awk: adapted for svn
2965 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
2966 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
2967 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
2968 /binutils-avr/etc/*.vi, *.jin: removed all properties
2969 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
2971 2006-04-19 Borut Razem <borut.razem AT siol.net>
2973 * CVS to Subversion migration completed
2975 2006-04-18 Borut Razem <borut.razem AT siol.net>
2977 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
2978 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
2980 2006-04-17 Borut Razem <borut.razem AT siol.net>
2982 * device/include/Makefile.in: added pic/*.inc to the installation
2984 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
2986 * support/regression/collate-results.py: fixed output in case of
2988 * support/regression/generate-cases.py: fixed splitting of pathnames
2990 * as/hc08/lklibr.c (addfile),
2991 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
2993 2006-04-11 Raphael Neider <rneider AT web.de>
2995 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
2996 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
2997 * src/pic16/pcode.c (assignValnums): fixed #1460578
2999 2006-04-11 Raphael Neider <rneider AT web.de>
3001 * device/lib/pic/libdev/*.c,
3002 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3003 fixes #1468739, enables compilation in --std-c99 mode
3004 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3006 2006-04-11 Raphael Neider <rneider AT web.de>
3008 * src/pic/device.c (find_device): removed debug output
3009 (list_valid_pics): enabled verbose listing of supported devices
3010 * device/include/stdbool.h: define bool as char for pic14/16 as well
3012 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3014 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3016 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3018 * .version: bumped version to 2.5.6
3019 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3021 2006-04-06 Raphael Neider <rneider AT web.de>
3023 * .version: bumped version to 2.5.6 (pic14 ABI changed)
3024 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3025 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3026 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3027 pic14_constructAbsMap
3028 (pic14printPublics): declare absolute global symbols as global
3029 (pic14createInterruptVect),
3030 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3031 (newReg): assume new registers unused, use correct name in
3032 hashtable (reg->name instead of name), more debugLog output
3033 * src/pic/device.h (PIC_device): added fields for verbose output
3034 * src/pic/device.c: moved device definition to pic14devices.txt,
3035 added routines for runtime parsing of pic14devices.txt,
3036 added support for second config word
3037 * src/pic/main.c (_process_pragma): removed #pragma maxram,
3038 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3039 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3040 (_pic14_parseOptions): moved pCodeInitRegisters here
3041 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3042 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3043 (pCodeInitRegisters): rewrapped comments, perpared new approach to
3044 handling the pseudo stack
3045 * device/lib/Makefile.in: ignore failures in objects-pic16,
3046 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3047 * device/lib/pic/NEWS: document new dependency on picXXX.lib
3048 * device/lib/pic/Makefile.subdir,
3049 * device/lib/pic16/Makefile.subdir: improved clean rules
3050 * device/lib/pic/libdev/: NEW, pic14 device libraries
3051 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3052 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3053 * device/include/Makefile.in: create subdir and install pic14 headers
3054 * device/include/pic/p16f_common.inc: removed unused declarations
3055 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3056 PICs from inc2h.pl v1.6,
3057 replaced BIT_AT macros with struct declarations
3058 * device/include/pic/pic14devices.txt: definition of supported devices,
3059 all above improvements contributed by Zik Saleeba, thanks
3060 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3061 * support/scripts/sdcc.nsi: also install pic14 device libraries and
3064 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3066 * device/include/mcs51/c8051f410.h: added interrupt numbers,
3067 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3068 thanks to Charles Olds
3070 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3072 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3074 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3076 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3077 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3078 * support/regression/bug1464657.c: added, new test
3080 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3082 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3085 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3087 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3088 --no-peep and --peep-file <file> are used don't use default rules but
3091 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3093 * src/mcs51/gen.c (genCall): fixed bug 1457608
3095 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3097 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3098 changes seem to cause (trigger?) problems with the build system.
3100 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3102 * src/SDCCpeeph.c (operandsLiteral): new, added,
3103 (callFuncByName): inserted operandsLiteral
3104 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3106 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3108 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3109 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3111 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3113 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3114 implemented patch 1120823 Thanks to Willy De la Court (normal
3115 interrupts need an interrupt number now if they are made critical),
3116 and enabled nesting of critical functions though not for gbz80
3117 (genCritical, genEndCritical): added functions
3118 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3119 * src/z80/mappings.i: added "ei" to all mappings
3121 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3123 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3124 submitted by the Debian SDCC maintainer Aurelien Jarno:
3125 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3126 archive with gcc 4.1 on mips and wrote the patch"
3128 2006-03-16 Raphael Neider <rneider AT web.de>
3130 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3131 the left operand is shorter than the result (c* = lit-c* + int),
3133 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3136 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3138 * src/.version: increased version number to 2.5.5
3139 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3140 linking is done manually in pic16 port's _linkEdit,
3141 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3142 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3143 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3144 allocate asmop as AOP_ACC,
3145 (aopForRemat): added parameter 'bool result' in function declaration,
3146 (pic16_aopGet): return AOP_ACC when accessing WREG,
3147 (pic16_popGetTempReg): minor modification,
3148 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3149 'pic16_allocWithIdx',
3150 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3151 calling function in absolute addresses,
3152 (genAssign): take into account AOP_ACC asmop,
3153 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3154 * src/pic16/pcoderegs.c: some debug functions and lines added,
3155 * src/pic16/ralloc.c (decodeRegType): added but commented out,
3156 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3158 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3159 call to allocReg, not by manually allocating a new one,
3160 (pic16_assignRegisters): now before going through the register
3161 allocating functions mark all registers as free. This eliminates some
3162 side effects resulting from peephole parser done earlier in the backbone
3164 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3166 * src/SDCCicode.c (geniCodeLogic),
3167 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3169 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3171 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3172 (genSend): bugfix, do not allocate and free twice,
3173 (shiftRLong): handle partially overlapping aops
3174 * support/regression/tests/bitopcse.c: fixed warning redefined idata
3176 2006-03-08 Borut Razem <borut.razem AT siol.net>
3178 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3181 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3183 * support/regression/tests/bug1409955.c: new, added
3184 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3185 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3186 (aopForSym, aopOp): increment asmop.allocated if reused,
3187 (freeAsmop): decrement asmop.allocated and check for zero instead of
3189 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3190 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3191 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3192 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3193 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3194 genSignedRightShift, genRightShift, genDataPointerGet,
3195 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3196 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3197 in reverse order from allocation,
3198 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3199 added swappedLR to keep track
3200 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3201 pdata & code for GCC, z80, gbz80 & hc08
3202 * support/regression/tests/zeropad.c: moved defines to testfwk.h
3204 2006-03-08 Raphael Neider <rneider AT web.de>
3206 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3208 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3210 * device/include/mcs51/c8051f410.h: new SiLabs mcu
3211 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3212 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3214 2006-03-06 Borut Razem <borut.razem AT siol.net>
3216 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3217 made the linker quiet
3219 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3221 * src/pic16/gen.c (genPcall): fixed bug #1443644
3222 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3223 which dumps before the function entry point a data byte which represents
3224 the number of the local variables used by the specified function, added
3225 'xinst' for initial support for Extended Instruction Support,
3226 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3227 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3228 port->fun_prefix anymore (may change later),
3229 (genFunction, genEndFunction): do not store/restore local registers for
3230 _main (this should take care the --main-return command line option in
3232 (genOr): removed some legacy pic-port instructions,
3233 * src/pic16/genarith.c (genAddLit): re-enabled old code because
3234 performing operations with SFR's causes data to be written more than
3235 once to each SFR. Perhaps SFRs should be handled in special cases...
3236 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3238 * src/pic16/main.c (_process_pragma): stack bound checking did not take
3239 into account for stack starting position,
3240 (struct OPTIONS pic16_optionsTable): added command line argument
3241 --extended or -y for Extended Instruction Support,
3242 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3243 (deassignLRs): *** perhaps the most important change, old 'for' code
3244 (commented out for reference), didn't account for some registers which
3245 were left marked 'not free' after a pointer operation. The change
3246 reduces register usage a lot in some cases
3248 2006-03-04 Borut Razem <borut.razem AT siol.net>
3250 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3252 * support/regression/tests/bug-524697.c: decreased array size for
3253 mcs51 to fit into the internal RAM
3254 * support/regression/Makefile.in: a little bit more verbose
3256 2006-03-03 Borut Razem <borut.razem AT siol.net>
3258 * support/regression/fwk/lib/testfwk.c,
3259 support/regression/fwk/include/testfwk.h: introduced function
3260 _prints(), nonrecursive _printn(), call _initEmu() from main()
3261 * support/regression/ports/gbz80/support.asm,
3262 support/regression/ports/ucz80/support.asm,
3263 support/regression/ports/z80/support.asm,
3264 support/regression/ports/ds390/support.c,
3265 support/regression/ports/hc08/support.c,
3266 support/regression/ports/host/support.c,
3267 support/regression/ports/mcs51/support.c,
3268 support/regression/ports/xa51/support.c: added empty _initEmu()
3270 * support/regression/ports/pic16/gpsim.cmd,
3271 support/regression/ports/pic16/spec.mk,
3272 support/regression/ports/pic16/support.c,
3273 support/regression/Makefile.in: added pic16 regression test
3275 2006-03-01 Raphael Neider <rneider AT web.de>
3277 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3278 genConstPointerGet): use safe way of generating MOVFF to cover
3279 literals as well as registers, fixes bug #1440527
3280 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3282 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3283 more correctly, fixes bug #1232186
3284 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3285 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3286 gplink guess the correct processor in more cases, applied patch
3287 from Till Riedel attached to and fixing bug #1436552
3289 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3291 * support/regression/tests/array.c: added, contains check for #1434401
3292 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
3294 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3296 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
3297 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
3298 * device/include/mcs51/c8051f326.h,
3299 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
3300 * device/include/mcs51/c8051f000.h,
3301 * device/include/mcs51/c8051f018.h,
3302 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
3303 PCON_IDLE,PCON_STOP and added sfr16 definitions
3305 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3307 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
3308 genGetWord): fixed bug 1409955
3310 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3312 * device/include/hc08/mc68hc908gp32.h,
3313 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
3315 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
3317 * src/SDCCast.c (constExprValue): return NULL if not a value
3318 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
3319 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
3320 * support/regression/tests/bitfields.c: enabled signed bitfield for all
3322 2006-02-13 Borut Razem <borut.razem AT siol.net>
3324 * src/regression/ptrarg.c: added, fails due to bug #1430967
3325 * src/regression/Makefile: ptrarg.c added, ...
3327 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3329 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
3330 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
3332 2006-02-11 Borut Razem <borut.razem AT siol.net>
3334 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
3335 print "Processor: xxx" message to stdout only if --verbose
3337 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3339 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
3340 * support/regression/tests/bug1426356.c: added
3341 * support/regression/tests/bitfields.c: removed 2 tests
3343 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3345 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
3346 * device/include/mcs51/c8051f330.h,
3347 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
3348 PCON_IDLE,PCON_STOP and added sfr16 definitions
3349 * device/lib/_divsint.c,
3350 * device/lib/_divuint.c,
3351 * device/lib/_divulong.c,
3352 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
3353 register bank bug for small stackauto
3355 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3357 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
3359 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
3361 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
3362 * all.dsp: corrected several bin paths
3363 * device/include/mcs51/c8051f120.h,
3364 * device/include/mcs51/c8051f300.h,
3365 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
3366 to PCON_IDLE,PCON_STOP
3367 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
3368 * device/lib/printf_large.c (output_float): fixed bug 1388703
3369 * support/regression/tests/bug1057979.c: added test for bug 1388703
3371 2006-02-08 Raphael Neider <rneider AT web.de>
3373 * src/pic/pcode.c (pciTRIS): fixed typo,
3374 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
3375 (LinkFlow): fixed handling of flows that end in a call,
3376 (ReuseReg): perform safety check earlier
3377 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
3378 to work with flows at the beginning of a pBlock,
3379 fixes #1426557 (Symbol not previously defined),
3380 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
3382 (RemoveUnusedRegisters): update register usage info
3383 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
3384 created, reuse existing ones instead
3385 * src/pic/gen.c (genPcall): fixed #1424719
3387 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
3389 * link/z80/lkmain.c,
3391 * link/z80/lkdata.c,
3392 * link/z80/aslink.h: fixed build on current cygwin:
3393 replaced getline() by lk_getline()
3395 2006-02-01 Borut Razem <borut.razem AT siol.net>
3397 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
3398 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
3399 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
3400 src/regression/bool1.c, src/regression/bool2.c,
3401 src/regression/bool3.c, src/regression/call1.c,
3402 src/regression/compare.c, src/regression/compare10.c,
3403 src/regression/compare2.c, src/regression/compare3.c,
3404 src/regression/compare4.c, src/regression/compare5.c,
3405 src/regression/compare6.c, src/regression/compare7.c,
3406 src/regression/compare8.c, src/regression/compare9.c,
3407 src/regression/configword.c, src/regression/for.c,
3408 src/regression/inline.c, src/regression/mult1.c,
3409 src/regression/nestfor.c, src/regression/or1.c,
3410 src/regression/pointer1.c, src/regression/ptrfunc.c,
3411 src/regression/rotate1.c, src/regression/rotate2.c,
3412 src/regression/rotate3.c, src/regression/rotate4.c,
3413 src/regression/rotate5.c, src/regression/rotate6.c,
3414 src/regression/rotate7.c, src/regression/string1.c,
3415 src/regression/struct1.c, src/regression/sub.c,
3416 src/regression/sub2.c, src/regression/switch1.c,
3417 src/regression/while.c, src/regression/xor.c,
3418 src/regression/create_stc, src/regression/simulate,
3419 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
3421 * src/regression/gpsim_assert.h: added
3423 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3425 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
3426 ((void (code *) (void)) 0) ();
3435 * as/mcs51/aslink.h,
3437 * as/mcs51/asmain.c,
3438 * as/mcs51/lkdata.c,
3440 * as/mcs51/lkmain.c,
3443 * as/z80/asmain.c: fixed build on current cygwin:
3444 replaced getline() by as_getline()
3446 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3448 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
3449 declarator in the symbol chain
3451 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
3452 parameter list for function pointers
3453 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
3454 * support/regression/tests/bug-716242.c: added
3456 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
3458 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
3460 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
3462 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
3464 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
3465 inifinitely recurseable, added static
3466 * support/regression/tests/bug-1408066.c: added
3468 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
3471 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
3472 renamed, added possibility to create "postLoopLbl"-labels
3473 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
3474 newiTempLoopHeaderLabel
3475 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
3476 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
3477 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
3478 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
3479 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
3480 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
3481 (basicInduction): fixed bug #136564, made static,
3482 (loopInduction): changed parameter of basicInduction, made static,
3483 (addPostLoopBlock): added
3484 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
3485 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
3487 * support/regression/tests/bug-136564.c: added
3488 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
3489 --std-sdcc99 to LIBSDCCFLAGS
3491 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
3493 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
3495 * support/regression/tests/bug-1406131.c: added
3497 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
3499 * src/SDCCast.c (decorateType): fix promotion of unary minus
3500 * src/SDCCsymt.c (computeType): beautified
3501 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
3502 (valUnaryPM, valComplement): fix sign and promotion,
3503 (valNot): ANSI: result type is int (SDCC: unsigned char)
3504 * support/regression/tests/uminus.c: speedup by removing superflous
3506 * support/regression/tests/onebyte.c: added promotion and signedness
3507 tests for unary minus
3508 * support/regressions/tests/bug-477927.c: disable warning about
3509 uninitialized variables
3510 * support/regression/tests/not.c: added
3512 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3514 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
3515 * src/mcs51/gen.c (gen51Code): show final register usage after
3516 fillGaps in asm with --i-code-in-asm
3517 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
3518 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
3519 incUsed, rliveClear, adjustIChain): made static,
3520 (setFromRange): excluded because it's unused,
3521 (findPrevUseSym, markWholeLoop): added,
3522 (findPrevUse): rewritten; fixes bug 895992; now a complete search
3523 through all branches of predecessors enables sdcc to emit the warning
3524 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
3525 (rlivePoint): made static, added parameter emitWarnings which is only
3526 true during the first run out of two,
3527 (findRecursiveSucc, findRecursivePred): removed,
3528 (computeLiveRanges): made static, added parameter emitWarnings,
3529 (dumpIcRlive): added for debugging only
3530 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
3531 removed prototype of setFromRange()
3532 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
3533 in call of computeLiveRanges()
3534 * support/regression/tests/bug-895992.c: added
3535 * support/regression/tests/bug-971834.c: added
3536 * support/valdiag/tests/bug-895992.c: added
3537 * support/valdiag/tests/bug-971834.c: added
3539 2005-12-18 Raphael Neider <rneider AT web.de>
3541 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
3542 (genUnpackBits): improved code for direct operands,
3543 (genPackBits): improved code for literal assignment to bitfields
3544 and for direct destination operands (no FSR indirection),
3545 prevented redundant AND, fixes #1362800,
3546 (AccLsh): added parameter to disable masking of the result
3547 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
3548 skip instructions with side-effects (like incfsz),
3549 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
3550 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
3551 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
3554 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
3556 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
3557 volatile variables as spill location
3559 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
3561 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
3563 * support/regression/tests/bug-1376320.c: added
3565 2005-12-08 Raphael Neider <rneider AT web.de>
3567 * src/pic/device.c: renamed is_shared to pic14_is_shared
3568 * src/pic/gen.c (genIfx): re-enabled handling of sbits
3569 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
3570 (is_valid_identifier): added for above workaround
3572 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
3574 * device/lib/Makefile.in: fixed to enable port-specific-objects
3575 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
3576 char, thanks Hubert Sack
3577 * doc/sdccman.lyx: documented --xstack-loc,
3578 elaborated a bit more on interrupts and pitfalls,
3579 removed "setjmp/longjmp unsupported",
3580 documented some unsupported C99 features
3581 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
3582 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
3583 if, thanks Hubert Sack
3584 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
3585 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
3587 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
3588 regression tests can report resource usage (rfe 700441)
3589 * support/regression/collate-results.py: report resource usage
3590 * support/regression/ports/ds390/spec.mk,
3591 * support/regression/ports/hc08/spec.mk,
3592 * support/regression/ports/mcs51/spec.mk,
3593 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
3594 * support/regression/ports/ds390/uCsim.cmd,
3595 * support/regression/ports/hc08/uCsim.cmd,
3596 * support/regression/ports/mcs51/uCsim.cmd,
3597 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
3598 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
3599 library, use the default one
3600 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
3601 building the library
3603 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3605 * config.dsp: added dependency on .version and configure_vc.awk
3606 * device/include/setjmp.h: updated for --stack-auto and --xstack
3607 * device/include/mcs51/at89c51snd1c.h: corrected line endings
3608 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
3609 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
3610 * device/lib/libsdcc.lib: added _setjmp
3611 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
3612 (decorateType): fixed bug 1372851,
3613 (optimizeGetHbit): fixed warning
3614 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
3615 array initialisation
3616 * support/regression/tests/bug1057979.c: added test for bug 1358192
3617 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
3619 2005-12-03 Borut Razem <borut.razem AT siol.net>
3621 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
3622 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
3624 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3626 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
3627 createIval): implement symbol independant "flexible array member",
3628 (createIvalCharPtr): implemented flexible array initialisation with a
3630 * src/SDCCsymt.c (copyStruct): removed,
3631 (getSize): fixed misleading comment,
3632 (getAllocSize): removed, the additional allocation size is now in
3633 sym->flexArrayLength,
3634 (checkStructFlexArray): new, syntax checks for flexible array members,
3635 (compStructSize): added syntax checks for "flexible array members"
3636 (copyStruct): removed,
3637 (copyLinkChain): removed inefficient fix for bug 770487
3638 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
3639 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
3640 symbol->flexArrayLength
3642 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
3643 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
3644 * support/regression/tests/structflexarray.c: added
3645 * support/valdiag/tests/structflexiblearray.c: added
3647 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3649 * src/SDCCast.c (decorateType): fixed bug 1368489
3650 * support/Util/SDCCerr.c,
3651 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
3653 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3655 * device/include/mcs51/at89c51snd1c.h: added file submitted by
3656 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
3658 2005-11-27 Borut Razem <borut.razem AT siol.net>
3660 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
3661 support/cpp2/mkdeps.h: added command line option
3662 -obj-ext=<extension> to SDCPP to define object file externion, used
3663 for generation of make dependencies (-M)
3664 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
3666 2005-11-26 Borut Razem <borut.razem AT siol.net>
3668 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
3669 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
3670 added pic and pic16 libraries
3672 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3674 * device/include/float.h: Corrected typo in prototype of __fsgt
3676 2005-11-25 Borut Razem <borut.razem AT siol.net>
3678 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
3679 added creation of model-mcs51-stack-auto libraries
3681 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
3683 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
3685 * src/SDCCast.c (createIvalArray): removed obsolete comment
3687 2005-11-24 Borut Razem <borut.razem AT siol.net>
3689 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
3690 added missing device/lib/mcs51/crt*.asm sources
3692 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
3694 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
3696 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
3698 * device/lib/_fs2schar.c,
3699 * device/lib/_fs2sint.c,
3700 * device/lib/_fs2slong.c: optimized inline asm
3702 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3704 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
3705 Better handling of floats between -1.0 and 0.0.
3707 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3709 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
3710 (the missing "if"s prohibited removal of redundant labels)
3712 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3714 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
3715 Properly convert floats between -1.0 and 0.0 to long, int, and char
3716 types (max integer value of negative floats tends to zero).
3717 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3718 Removed changes made so to work properly with floats between
3719 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
3722 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3724 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
3725 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
3726 (genCast) cosmetic change
3727 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
3728 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
3730 * support/regression/tests/bitfields (testSignedBitfields): added
3732 2005-11-18 Borut Razem <borut.razem AT siol.net>
3734 * sdcc/device/lib/Makefile.in: remove all unnecessary files
3735 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
3736 introduced SILENT option to make building of pic16 libraries less
3738 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3740 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3741 Now they work properly with floats between -1.0 and 0.0
3742 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
3744 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3746 * src/SDCCicode.c (printOperand): added missing else
3748 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3750 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
3751 reformatted for better readability
3752 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
3755 2005-11-17 Borut Razem <borut.razem AT siol.net>
3757 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
3758 introduced SILENT option to make building of pic16 libraries less
3759 verbose - used for nightly snapshot build
3760 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
3761 available on Win32 platforms.
3762 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
3763 medium, large, pic and pic16
3765 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3767 * device/lib/printf_large.c: Temporary patch for bug 1358192:
3768 printf("%f"...) sets fraction to zero.
3770 2005-11-16 Raphael Neider <rneider AT web.de>
3772 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
3774 * src/pic/gen.c (genIfx): implemented for CARRY bit
3775 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
3776 to generic pointers, fixes #1357332,
3777 (pic16_movLit2f): NEW,
3778 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
3780 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3782 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
3784 2005-11-11 Raphael Neider <rneider AT web.de>
3786 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
3787 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
3788 compute pointer's type from operand,
3789 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
3790 improved single bit reads, fixes bug #1353379
3792 2005-11-09 Borut Razem <borut.razem AT siol.net>
3794 * support/scripts/sdcc.nsi: added lib/pic to the package
3796 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
3798 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
3800 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3802 * support/regression/tests/bug1348008.c: added
3803 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
3804 * support/regression/tests/bug1337835.c: updated comment
3806 2005-11-06 Borut Razem <borut.razem AT siol.net>
3808 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3809 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3810 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3811 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3812 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
3813 dynamic construction of cl_error_class and derivates - 2.nd try
3815 2005-11-05 Borut Razem <borut.razem AT siol.net>
3817 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
3818 bug, which caused Bus Errors on sparc solaris
3820 2005-11-04 Borut Razem <borut.razem AT siol.net>
3822 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3823 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3824 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3825 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3826 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
3827 and derivates to resolve the initialization problem on OSX
3829 2005-11-02 Borut Razem <borut.razem AT siol.net>
3831 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3832 corrected typo - #include <winsock2.h>
3834 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
3836 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
3837 (_asxxxx_mapping): added org directive for future enhancements
3839 2005-11-01 Borut Razem <borut.razem AT siol.net>
3841 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3842 enabled sockets on WIN32
3843 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
3845 2005-10-31 Borut Razem <borut.razem AT siol.net>
3847 * support/regression/generate-cases.py: escape backslashes in {testcase}:
3848 WIN32 backslash path delimiters should be escaped when used in C strings
3849 * support/regression/tests/bitfields.c: exclude failing assertions for
3850 __CYGWIN32__ and __MINGW32__ hosts
3852 2005-10-30 Borut Razem <borut.razem AT siol.net>
3854 * src/SDCCutil.c: corrected double comparison typo
3856 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
3858 * device/lib/medium/Makefile: added for new memory model medium
3859 * device/include/asm/mcs51/features.h: updated for medium/pdata
3860 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
3861 added Multiply & Accumulate sbit's and MAC0_PAGE define
3862 * device/include/mcs51/c8051f300.h: added sfr16 definitions
3863 * device/include/mcs51/c8051f310.h: added sfr16 definitions
3864 * device/lib/_mullong.c: update for medium model
3865 * device/lib/incl.mk: added medium model
3866 * doc/sdccman.lyx: documented medium model
3867 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
3868 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
3869 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
3870 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
3871 (allocParms): set SCLS and OCLS to pdata for medium model
3872 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
3874 (powof2): return <0 if not power of 2
3875 * src/avr/gen.c (genBitWise): use updated powof2
3876 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
3877 (shiftR2Left2Result): small optimization in setup, save acc when storing,
3878 (shiftLLeftOrResult): use B if necessary
3879 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
3880 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
3881 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
3882 * support/regression/Makefile.in: added test-mcs51-medium
3883 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
3885 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3887 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
3889 * device/lib/time.c (mktime): fixed bug 1334315
3891 2005-10-28 Raphael Neider <rneider AT web.de>
3893 * device/include/pic/p16f_common.inc: added common declarations
3894 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
3896 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3898 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
3899 (aopPutUsesAcc): added to predict accumulator use,
3900 (assignResultValue): save acc if necessary,
3901 (genMinusDec): store result if indirectly addressed,
3902 (genDivOneByte): save acc if necessary,
3903 (movLeft2Result): bugfix if left already in acc,
3904 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
3905 attention to accumulator use (esp. pdata),
3906 (genReceive): receive pdata correctly
3907 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
3908 * src/SDCCicode.h: added isOperandInPagedSpace prototype
3910 2005-10-27 Raphael Neider <rneider AT web.de>
3912 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
3914 2005-10-27 Raphael Neider <rneider AT web.de>
3916 * .version: changed version to 2.5.4
3917 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
3918 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
3919 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
3920 arithmetics support routines
3921 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
3922 * device/lib/Makefile.in: also create installdir for pic
3924 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
3926 * src/pic/device.c (dump_sfr): rewritten to delegate register
3927 placement to the linker (use `extern sym' rather than sym EQU addr),
3928 (validAddress): fixed to check last specified address
3929 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
3930 (popGetLit): truncate literal value to 8 bit,
3931 (popGet): moved assert to more appropriate place
3932 (popGetExternal): create pCode operand from and mark the according
3933 symbol as being `extern'
3934 (popGetAddr): added sanity check on immediate's offset, provide
3935 GPOINTER tag on demand
3936 (aopPut): fixed for immediates,
3937 (mov2w_op): move operand's address or contents to WREG (depending on
3938 operand type), safer variant of mov2w,
3939 (movwf,call_libraryfunc): NEW, handy abbreviations,
3940 (get_argument_pcop,get_return_val_pcop,pass_argument,
3941 get_returnvalue): interface for accessing function parameters and
3943 (assignResultValuei,genRet): use new parameter/return value interface
3944 (pic14_getDataSize): back to old version handling generic pointers,
3945 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
3946 provided implementation and/or fixed old one,
3947 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
3948 calls, removed legacy 8051 reference code
3949 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
3950 (loadSignToC): NEW, move the operands sign bit to CARRY,
3951 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
3952 genRightShiftSigned, accepts negative shift counts,
3953 (setup_fsr): load FSR and adjust IRP (indirect memory access),
3954 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
3955 generic pointers, __data pointers and __code pointers,
3956 (genUnpackBits,genPackBits): rewritten to work with generic pointers
3957 and signed bitfields, limit bitfields to 8 bit,
3958 (genDataPointerGet): fixed number of bytes read,
3959 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
3960 (genPointerGet,genPointerSet): fixed handling of __code pointers,
3961 pointers to constant data are no longer assumed to point to __code
3962 space, removed invalid pointer types,
3963 (bitpatternFromVal): retrieve the PICs representation of an integer
3965 (genDataPointerSet): fixed assigning to po_immediate operands,
3966 (genGenPointerSet): implemented as library call,
3967 (genIfx): fixed incorrect condition,
3968 (genAddrOf): limit generic pointers' addresses to 2 bytes,
3969 provide GPOINTER tag according to destination's storage class,
3970 (genCast): added code to handle casting to generic pointers, added
3971 sign-/zero extension of the result
3972 (aop_isLitLike,op_isLitLike): fixed handling of immediates
3973 * src/pic/gen.h: added macros to access IRP bit in STATUS register
3974 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
3976 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
3977 address/register resides in the shared banks
3978 (emitSymbolToFile): improved to handle global and `pinned' symbols,
3979 put all variables into separate sections (have the linker arrange
3981 (picglue): put init code and interrupt handlers in separate sections
3982 * src/pic/main.c: added port specific options table, modified to PORT
3983 structure to make GPOINTERs 3 byte, added pic14_options
3984 (_pic14_do_link): private linking routine (update paths to libraries,
3985 add libsdcc.lib by default)
3986 * src/pic/main.h: declare pic14_options
3987 * src/pic/pcode.c: fixed instructions i/o relations,
3988 (RegCond): reverted to correct version,
3989 (newpCodeOpLit): truncate literals to 8 bit,
3990 (genericPrint): added debug output,
3991 (getRegFromInstruction): fixed for various operand types, simplified
3992 (BuildFlow): fixed broken handling of isntructions with labels
3993 (LinkFlow): start at last instruction in flow (skip trailing comments),
3994 pass the flow on to the next instruction after CALL
3995 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
3996 (insertPCodeInstruction): fixed inserting after a skip instruction,
3997 (DoBankSelect): fixed for labeled instructions
3998 (OptimizepBlock): honor --nopeep switch
3999 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4000 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4001 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4002 (pCodeOptime2pCodes): allow disabling this optimization via
4003 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4004 but is still buggy), started implementation of a dataflow based
4005 pCode optimization (CSE + dead code elimination)
4006 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4007 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4008 names are independant of the stack location and therefore portable across
4011 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4013 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4014 (selectSpil): fixed bug 1337835 by not spilling bit variables
4015 * support/regression/tests/bug1337835.c: added test for this bug
4016 * src/mcs51/peeph.def: restart after rule 3.c,
4017 addded rules 263.x to optimize loading constants
4019 2005-10-26 Raphael Neider <rneider AT web.de>
4021 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4022 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4023 (genAssign): emit warning when casting literals to generic pointer
4024 type, also applies when taking the address of a fixed variable,
4025 (genCast): improved casting to generic pointers
4026 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4027 extern variables, added verbose error message
4028 * device/include/pic16/{string.h,errno.h}: added #pragma library c
4030 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4032 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4033 carry must be complemented too
4034 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4035 could be emitted by genMinus
4036 * src/SDCCval.c (constVal): fixed bug 1305065
4038 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4040 * src/SDCCast.c (addCast): added promotion for bit variables
4041 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4042 promotion casts + optimisation
4043 (optimizeGetWord): fix warning 'i' might be used uninitialized
4044 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4045 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4047 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4049 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4050 all chars are promoted to int; promotion should be handled in SDCCast.c
4052 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4054 * device/lib/_strcmp.c: Fixed bug 1326457
4056 2005-10-11 Raphael Neider <rneider AT web.de>
4058 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4059 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4061 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4063 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4064 * support/regression/tests/sfr16.c: added test for the sfr32 bug
4066 2005-10-04 Raphael Neider <rneider AT web.de>
4068 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4069 device/lib/pic16/pics.all: added pic18f1320
4070 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4072 2005-09-30 Raphael Neider <rneider AT web.de>
4074 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4075 * src/pic16/devices.inc: NEW, provides device descriptions
4076 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4078 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4080 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4083 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4085 * doc/sdccman.lyx: updated Highest Order Bit documentation,
4086 documented Any Order Bit, Higher Order Byte and Higher Order Word
4087 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4088 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4089 (optimizeGetAbit): new, to get any bit, not only the high bit,
4090 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4091 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4092 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4093 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4094 RIGHT_OP: also try GETBYTE, GETWORD optimization,
4095 GETABIT, GETBYTE, GETWORD: decorate them,
4096 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4097 (ast_print): added GETABIT, GETBYTE, GETWORD
4098 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4099 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4100 (geniCodeBinary): new generic binary icode,
4101 (ast2iCode): added GETABIT, GETBYTE, GETWORD
4102 * src/port.h: updated comment for PORT.hasExtBitOp
4103 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4104 (genGetByte): new, to get a single byte,
4105 (genGetWord): new, to get a word from a long,
4106 (gen51Code): added GETABIT, GETBYTE, GETWORD
4107 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4109 2005-09-23 Raphael Neider <rneider AT web.de>
4111 * configure.in, configure: have device/lib/pic configured
4112 * device/lib/Makefile.in: added model-pic14
4113 * device/lib/clean.mk: added pic/ to clean rule
4114 * device/lib/pic: added rudimentary pic14 library providing support
4115 functions for multiplication/division/generic pointer access
4116 * src/SDCCopt.c (convilong): mark support functions as extern
4117 for pic14 port as well
4118 * src/pic/gen.c (genMult): added assertions,
4119 (genpic14Code): emit warning on unhandled iCodes
4120 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4121 * src/pic/pcode.c (pCodeOpCopy),
4122 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4123 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4124 SFR_REGISTER}), made safe for future extensions
4125 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4126 instructions even if preceeded by SKIP instructions (also remove
4127 them); removed unused code
4128 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4129 prevents leaving parts of the structure uninitialized after copying
4131 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4133 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4135 * support/regression/tests/addsub.c: added test for the bug
4137 2005-09-21 Raphael Neider <rneider AT web.de>
4139 * device/include/pic16/pic18f1220.h,
4140 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4141 * device/lib/pic16/Makefile.rules: added missing opening paren
4142 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4143 are provided in genutils.c,
4144 (genUminusFloat,genUminus,genCmpEq): added asserts on different
4145 operand/result sizes,
4146 (genCmp): assert on NULL pointers first, then check deref'ed values
4147 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4150 2005-09-18 Raphael Neider <rneider AT web.de>
4152 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4153 as these are now unused,
4154 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4155 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4156 local, avoids uninitialized pointer dereference on r->name
4157 * src/pic16/ralloc.c (newReg): fixed indentation
4159 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4161 * src/SDCCval.c (constVal): fixed bug 730366
4162 * support/Util/SDCCerr.c,
4163 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4165 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4167 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4169 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4171 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4173 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4175 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4176 (hex2dec): made hex_digit unsigned char, removed ascii dependance
4177 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4178 (hex2dec): made hex_digit unsigned char, removed ascii dependance
4179 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4180 * packihx/packihx.c (hexDigit): made c unsigned char
4181 * as/mcs51/lklibr.c (fndsym),
4182 * link/z80/lkgb.c (gb),
4183 * link/z80/lklibr.c (fndsym),
4184 * link/z80/lkrloc.c (relr),
4185 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4186 * src/SDCC.lex (checkCurrFile, process_pragma),
4187 * src/SDCCglue.c (spacesToUnderscores),
4188 * src/SDCCmain.c (setParseWithComma, processFile),
4189 * src/asm.c (tvsprintf, printCLine),
4190 * src/avr/gen.c (emitcode, aopPut),
4191 * src/ds390/gen.c (emitcode),
4192 * src/hc08/gen.c (emitcode, emitinline),
4193 * src/mcs51/gen.c (emitcode, genInline),
4194 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4196 * src/pic/ralloc.c (debugLog),
4197 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4199 * src/pic16/ralloc.c (debugLog),
4200 * src/z80/main.c (_process_pragma):
4201 made all ctype.h function calls safe
4202 * src/SDCCopt.c: include math.h for fabs
4203 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4204 and used them throughout the code to make ctype.h function calls safe
4205 * src/ds390/main.c (asmLineNodeFromLineNode),
4206 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4207 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4209 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4210 (newpCodeAsmDir): made ctype.h function calls safe
4211 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4212 pic16_emitcode): made lbp unsigned char*
4213 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4214 (pic16_newpCodeAsmDir): made ctype.h function calls safe
4215 * src/xa51/gen.c (emitcode),
4216 * src/z80/gen.c (_emit2): made lbp unsigned char*
4217 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4220 2005-09-05 Raphael Neider <rneider AT web.de>
4222 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4223 access bank splitpoint
4225 2005-09-05 Raphael Neider <rneider AT web.de>
4227 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4229 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4231 * .version: changed to version 2.5.3
4232 * doc/sdccman.lyx: changed version to 2.5.3,
4233 documented --codeseg and --constseg and pragma codeseg and constseg,
4234 documented bit parameters (reentrant) and bit returning
4235 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4236 currFunc->recvSize, but is this ok for all ports?
4237 (ast2iCode): result of ~ on unsigned char must be cast to int for
4239 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4240 function pointers in bit space
4241 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4242 (processFuncArgs): call port.reg_parm() with reentrancy info
4250 * src/z80/main.c: port.reg_parm prototype extended with
4251 "bool reentrant" parameter
4252 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4253 options.stackAuto for allocating bit register parameters
4254 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4255 (genSend): set BitBankUsed if it is,
4256 (selectRegBank): factored out of genCall for use in genPcall,
4257 (genCall): removed redundant dtype assignmen, use selectRegBank,
4258 (genPcall): handle returning in Carry properly, save in F0 if needed,
4259 (genReceive): handle bit register parameters
4260 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4261 (mcs51_assignRegisters): enable bit registers for all reentrant
4262 functions and don't set BitBankUsed unconditionally
4263 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4264 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4265 * support/regression/tests/funptrs.c: added tests for BOOL and for return
4267 2005-08-27 Borut Razem <borut.razem AT siol.net>
4269 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4270 ppc-osx (Darwin) does not support -u option. It seems that it is
4271 supported only on Linux - GNU cp
4273 2005-08-25 Borut Razem <borut.razem AT siol.net>
4275 * sim/ucsim/gui.src/serio.src/Makefile.in,
4276 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4277 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4278 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4279 install and strip, since the strip at /usr/ccs/bin should be used
4282 2005-08-24 Borut Razem <borut.razem AT siol.net>
4284 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4286 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4288 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
4291 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
4293 * as/mcs51/aslink.h: completed lkrloc.c prototypes
4294 * as/mcs51/lkmain.c (link_main): fixed warning
4295 * device/include/stdbool.h: ds390 has no advanced bit support yet
4296 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
4297 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
4298 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
4299 and updated their macros
4300 * src/SDCCval.c (constVal): updated comment for renamed b_long
4302 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
4304 * as/mcs51/asdata.c: changed ctype['['] to BINOP
4305 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
4306 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
4307 (oprio): set priority for '['
4308 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
4310 * as/mcs51/asm.h: added defines R_BIT and S_BIT
4311 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
4312 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
4313 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
4314 added overlayable BIT_BANK area
4315 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
4316 (summary2): explain 'T' in legenda
4317 * as/mcs51/lkrloc.c: replaced old K&R style,
4318 (relr): added R_BIT processing,
4319 (errmsg): added "Bit-addressable relocation error",
4320 (adb_bit): added for converting from byte- to bit-addressable space,
4321 (adb_24_bit): added for converting from byte- to bit-addressable space
4322 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
4323 used in reentrant functions now even as return value
4324 * device/lib/_gptrput.c (_gptrput): removed obsolete code
4325 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
4326 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
4327 * src/SDCCglobl.h: added indicator BitBankUsed
4328 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
4329 the bit registers b0-b7
4330 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
4331 (geniCodeCast): fixed bug 1263853,
4332 (geniCodeLogicAndOr): put result in bool or char,
4333 (geniCodeReceive): added parameter func for accessing the return type,
4334 (geniCodeFunctionBody): pass func to geniCodeReceive
4335 * src/SDCCmain.c: added indicator BitBankUsed
4336 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
4337 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
4338 (checkSClass): don't put automatic bool/bit on stack,
4339 (checkFunction): removed check on function cannot return bit
4340 * src/SDCCsymt.h: added newBoolLink prototype
4341 * src/mcs51/gen.c (rb1regs): added bit registers,
4342 (movc): created for assigning to carry,
4343 (pushReg, popReg): created for pushing registers,
4344 (sameRegs): check both AOP_REG and AOP_CRY types,
4345 (aopOp): handle bit registers,
4346 (aopPut): optimization no self-assign,
4347 (saveRegisters): push reg->base (bits) only once for bit registers,
4349 (unsaveRegisters): pop reg->base only once and use popReg,
4350 (assignResultValue): added parameter func and return in carry for bits,
4351 (genIpush): optimization no reload in A if not changed,
4352 (genSend): bit parameters in reentrant functions are passed in bit
4353 registers by first assigning to bits in B, then save registers and
4355 (genCall): handle returning in Carry properly, save it in F0 if needed,
4356 (genPcall): updated assignResultValue call, this is not safe yet for bit
4357 returning function !!!
4358 (genFunction): don't generate equ's for bit registers and use pushReg,
4359 (genEndFunction): take care of bit returning functions and use popReg,
4360 (genRet): return bit in Carry,
4361 (genIfx): optimize bit registers and other directly addressable bits,
4362 (genReceive): updated assignResultValue call
4363 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
4364 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
4365 registers when using stack-auto
4366 * src/mcs51/ralloc.c (_G): added allBitregs,
4367 (regs8051): added the bit registers,
4368 (createStackSpil): use macro IS_BIT,
4369 (getRegBit): added to allocate a bit register, else spill,
4370 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
4371 (updateRegUsage): factored out to ease stepping while debugging,
4372 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
4373 also allocate bit registers,
4374 (fillGaps): handle bit registers,
4375 (findAllBitregs): added to create bit vector with all bit registers,
4376 (mcs51_allBitregs): returns this bit vector,
4377 (mcs51_assignRegisters): when using stack-auto use bit registers for
4378 passing parameters and creating local variables
4379 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
4381 2005-08-22 Borut Razem <borut.razem AT siol.net>
4383 * device/lib/Makefile.in: replaced find option -or with -o
4384 to make it run on solaris
4386 2005-08-22 Raphael Neider <rneider AT web.de>
4388 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
4389 fixes #1265442 (crash on Solaris)
4391 2005-08-20 Borut Razem <borut.razem AT siol.net>
4393 * configure, configure.in: added tests for libsocket and libnsl libraries,
4394 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
4395 from support/regression/Makefile.in
4396 * support/regression/Makefile.in: added
4397 * device/lib/pic16/Makefile.common.in: force make to use bash shell
4398 * sim/ucsim/libtool: regenerated on sparc-solaris
4399 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4400 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
4401 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
4402 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
4403 sparc-solaris, which doesn't use GNU ld linker
4404 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
4405 * as/Makefile: find on sparc-solaris does not support -maxdepth option
4407 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
4409 * src/mcs51/peeph.def: updated comments
4411 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4413 * device/lib/_gptrget.c,
4414 * device/lib/_gptrput.c: slightly shorter
4415 * doc/sdccman.lyx: incremented version
4416 * src/mcs51/peeph.def: moved peephole comments to the line of first
4417 change to better keep line correlation, reanimated 186.e
4418 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
4420 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4422 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
4423 David Saxton with quotes around file name.
4425 2005-08-15 Borut Razem <borut.razem AT siol.net>
4427 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
4428 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
4429 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
4430 make tests run on x86_64 platform
4432 2005-08-13 Raphael Neider <rneider AT web.de>
4434 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
4435 as it might be executed DURING a build (parallel make is wonderful)
4437 2005-08-13 Raphael Neider <rneider AT web.de>
4439 * device/lib/Makefile.in (port-specific-objects-pic16):
4440 revert to cp $(PORT)/bin/*.* $(PORTDIR)
4441 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
4443 * device/lib/pic16/Makefile.rules: build subdirs before creating
4444 the library, removed builddir rule, create $(builddir) early in
4445 recurse rule, use empty recurse rule for leaf directories
4446 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
4447 mkdir errors (race condition), removed duplicate suffix "hex"
4449 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
4450 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
4451 prevents mkdir -p from aborting on Alpha
4453 2005-08-12 Raphael Neider <rneider AT web.de>
4455 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
4456 db-statements in order to allow for arrays of pointers in code
4457 sections to be placed without interspersed 0-padding, fixes
4459 * (emitStatistics): fixed division by zero for pic18f1220
4460 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
4461 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
4462 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
4463 * (pic16_pCodeConstString): keep track of already emitted string
4464 literals to prevent "duplicate definitions of symbol _str_NR"
4465 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
4467 * device/lib/Makefile.in: ignore failing PIC16 library builds
4468 * device/lib/pic16/Makefile: do not build if gputils are missing
4469 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
4471 2005-08-10 Raphael Neider <rneider AT web.de>
4473 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
4476 2005-08-10 Raphael Neider <rneider AT web.de>
4478 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
4479 Rokas' patch to add the new fixed point type "__fixed16x16"
4480 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
4481 functions for __fixed16x16 arithmetics
4482 * device/lib/pic16: reimplemented the build system to support
4483 a separate build directory, better handling of libio (create
4484 the library in a separate subdir for each architecture) and
4485 easier configuration (centralized in Makefile.common)
4487 2005-08-07 Raphael Neider <rneider AT web.de>
4489 * src/pic16/gen.c (genrshTwo): fixed sign extension
4490 * src/pic16/device.c: added pic18f2320, 4220 and 4320
4491 * device/include/pic16/pic18f2220.h: changed some bit definitions,
4493 * device/include/pic16/pic18f4220.h: NEW, header for
4494 pic18f4220 and pic18f4320
4495 * device/include/pic16/pic18fregs.h: added new devices,
4496 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
4497 * device/include/pic16/signal.h: resolved name clashes
4498 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
4499 to also allow testing for interrupt enable bits, added
4500 comments on how to use the macros
4501 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
4502 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
4503 register definitions for the devices
4504 * device/lib/pic16/pics.all: added new devices
4505 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
4507 * device/lib/pic16/libc/stdlib/memfree: do not count
4508 the block header as free memory
4509 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
4510 simplified and added missing end-of-blocklist-marker
4511 (reported by Peter Onion, fixes #1252814)
4512 * (_mergeHeapBlock): fixed loop condition
4513 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
4514 len==0, restructured code
4515 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
4516 up a bit, reduced bitfield accesses, prevent endless loops
4517 in case of heap corruption
4518 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
4519 "unreferenced arguments/must return a value" warnings
4520 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
4521 replaced BAUDREG with SPBRG
4522 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
4523 device/lib/pic16/debug/gstack/gstack.c: replaced
4524 _naked, _asm, _endasm with __naked, __asm, __endasm
4526 2005-08-05 Raphael Neider <rneider AT web.de>
4528 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
4529 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
4531 2005-08-05 Borut Razem <borut.razem AT siol.net>
4533 * device/lib/Makefile.in: added missing ';'
4534 * configure: removed ^M characters
4536 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4538 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
4539 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
4542 2005-08-04 Borut Razem <borut.razem AT siol.net>
4544 * configure.in: pic16 libraries build 2nd try - enable running
4545 configure in device/lib/pic16
4546 * configure: regenerated from configure.in
4547 * device/lib/Makefile.in: create $(PORT)/bin directory
4549 2005-08-03 Raphael Neider <rneider AT web.de>
4551 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
4552 to get/set values via pointers
4553 * (genUnpackBits,genPackBits): changed detection of
4554 ptr->bitfield vs. sym.bitfield, fixed access via generic
4555 pointers, removed dead (wrong) code for multibyte bitfields
4556 * (genNearPointerGet, genGenPointerGet): removed useless code,
4557 fixed bitfield detection, fixes #1250594
4558 * (genNearPointerSet): removed useless code
4559 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
4560 and introduced macro pic16_emitpcode that conditionally emits
4561 the origin of the following pCode (useful for debugging SDCC)
4562 * src/pic16/pcode.c: changed (and disabled) some debug outputs
4563 * (createDefmap): fixed handling of LFSR for --optimize-df
4565 2005-08-02 Borut Razem <borut.razem AT siol.net>
4567 * device/lib/Makefile.in: pic16 libraries build enabled since
4568 gputils-0.13.2 are now localy installed at sourceforge's compile farm
4570 2005-08-02 Raphael Neider <rneider AT web.de>
4572 * src/pic16/gen.c (genPackBits): removed deprecated warning
4573 * (genGenPointerSet): fixed bitfield detection
4575 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4577 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
4579 2005-07-31 Raphael Neider <rneider AT web.de>
4581 * device/lib/pic16/libdev/pic18f458.c,
4582 device/include/pic16/pic18f458.h: added missing T0CONbits
4584 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4586 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
4588 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
4590 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
4592 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4594 * device/include/mcs51/at89c51ed2.h: added.
4596 2005-07-23 Raphael Neider <rneider AT web.de>
4598 * src/pic/gen.h: added emitpcode macro for debugging
4599 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
4600 and replace by macro adding debug information on demand
4601 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
4602 * (gencjne): tried to fix; replaced with correct (slower) code
4603 * (gen{Unp,P}ackBits): fixed single bit access
4604 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
4605 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
4606 previous instruction
4607 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
4608 register has to be handled with care (forbidding movement
4609 of assignments/uses, removing assignments completely, ...)
4610 * (pCodeOptime2pCodes): make use of regIsSpecial
4611 * added lots of debugging output (commented out)
4612 * src/pic/rallloc.c (deassignLRs): prevent operand registers
4613 from being reused as result UNLESS it is known to work
4615 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4617 * support/Util/dbuf.h: include <stddef.h> for size_t
4618 * .version: changed to version 2.5.2
4620 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4622 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
4624 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4626 * src/hc08/gen.c (genMinus): fixed bug #1241835,
4627 (genModOneByte): removed needless psha/pula
4629 2005-07-22 Raphael Neider <rneider AT web.de>
4631 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
4632 have PIC14 handled like PIC16, fixes broken pic14 linker calls
4633 * src/pic/gen.c (resolveIfx): do not "invent" labels
4634 * (genSkipc): changed to positive logic
4635 * (genSkipCond): removed as no longer needed
4636 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
4638 * (genLeftShift): check operands are in different registers
4639 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
4640 INCF does not update CARRY...
4641 * src/pic/main.c: fixed _linkCmd
4642 * src/pic/pcode.c (unlinkpCode): added inactive code
4643 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
4644 alive (do not assign result and operand overlapping registers)
4646 2005-07-22 Raphael Neider <rneider AT web.de>
4648 * src/pic/device.c (dump_sfr): replaced register declaration with
4649 call to emitSymbolToFile() to avoid duplicate symbols
4650 * (assignRelocatableRegisters): do not declare external symbols
4651 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
4652 right (take size of type, not etype)
4653 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
4654 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
4655 * (packRegsForAccUse): disabled assignment of WREG as
4656 the result reg to prevent occurence of just fixed #1235003,
4658 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
4659 symbols (avoids duplicate symbols in .asm file)
4660 * (pic14emitRegularMap): use emitSymbolToFile()
4661 * src/pic/gen.c (aopOp): fixed spillLocation handling
4662 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
4663 * (genDataPointerSet): removed unneccessary variables/output
4665 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
4667 * as/mcs51/lkarea.c: enlarged codemap for banked memory
4668 * device/lib/mcs51/crtbank.asm: added # to 0x0F
4670 2005-07-21 Raphael Neider <rneider AT web.de>
4672 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
4673 architecture cannot handle them efficiently, fixes bug #1235003
4674 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
4675 check for empty sets before using them (fixes bug #1232190)
4677 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
4679 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
4680 (lnksect2): generate warnings for memory overlap
4681 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
4682 constseg to set the name of these segments so you can instruct the linker
4683 to place them in banks
4684 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
4685 * src/SDCCglobl.h: added MODEL_HUGE to enum,
4686 added code_seg and const_seg to options
4687 * src/SDCCglue.c (emitMaps): use options.const_seg,
4688 (createInterruptVect): put interrupt vectors in segment HOME,
4689 (glue): put HOME before static segment and put the main glue in HOME,
4690 (glue): use options.code_seg
4691 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
4692 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
4693 these segments so you can instruct the linker to place them in banks
4694 (linkEdit): use code_loc for HOME segment which should be the first
4695 segment in code memory now
4696 * src/SDCCmem.c: fixed more stuff like bug 1238386
4697 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
4698 (changePointer): don't change function pointers to code pointers for
4700 (compareType): added exceptional check for banked function pointers
4701 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
4702 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
4703 after static in code memory
4704 * src/mcs51/gen.c: added aopLiteralLong prototype,
4705 (aopForSym): use getSize for functions,
4706 (genCall): generate banked calls over one trampoline __sdcc_banked_call
4707 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
4708 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
4710 (genPcall): use call for literal function pointers and generate banked
4711 calls over the one trampoline so there's only one place for the user to
4712 modify according to his/hers hardware,
4713 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
4714 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
4715 * src/mcs51/main.c: added keyword banked,
4716 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
4717 * support/Util/SDCCerr.c,
4718 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
4719 needed for passing the bank and address to the trampoline
4720 * device/lib/mcs51/crtbank.asm: added for bankswitching
4721 * device/lib/mcs51/Makefile: added crtbank
4723 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4725 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
4726 for fields at offset 0 of a struct or union as reported
4727 on 2005-07-07 in the developer mailing list.
4729 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
4731 * src/SDCCmem.c: fixed bug 1238386
4733 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4735 * src/mcs51/peeph.def: added labelrefcounting for peepholes
4736 (patch #1144962), added peephole 300, enabled 259.x
4737 * doc/sdccman.lyx: removed screenshot and provided link instead
4739 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4741 * doc/sdccman.lyx: added section about debugging with ddd
4742 * doc/figures/ddd_example.eps: screenshot of debugging session
4744 2005-07-04 Raphael Neider <rneider AT web.de>
4746 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
4747 like CODE pointers, fixes #1115683
4748 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
4749 call, fixes bugs #1232211, #1228110,
4750 fixed wrong casts to pCodeFlow from pCodeInstructions
4752 2005-07-04 Raphael Neider <rneider AT web.de>
4754 * src/pic/gen.c (popGet): changed assert to allow for
4756 * (popGetAddr): changed signature to provide
4757 an additional index, patched all call sites
4758 * (genCmpEq): handle literal-like operands correctly
4759 * (genAddrOf): added sanity checks on __code/__data pointers
4760 * (genAssign): added handling of symbols from __code section
4761 * (gencjne): do not generate code for comparisons whose result
4762 is neither stored nor used, fixes bug #1171114
4763 * (AccLsh, AccRsh): operate on operand instead of WREG
4764 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
4765 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
4767 * rewrote complete shift-by-literal logic, commented unused
4769 * (genConstPointerGet): get multiple bytes (if result size > 1),
4770 fixed handling of non-immediate addresses
4771 * (genPointerGet): handle CODE pointers like CONST pointers
4772 * (genpic14Code): insert C-SRC lines as Cource-pCodes
4773 * ({aop,op}_isLitLike): NEW, single place to decide whether an
4774 operand is to be treated as a literal or not
4775 * (mov2w,genPcall,genCmpEq),
4776 src/pic/genarith.c: use aop_isLitLike() to decide between
4777 literal/register contents
4778 * (addSign): added missing offset
4779 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
4780 only emit comment in debug-mode,
4781 use {aop,op}_isLitLike throughout the file
4782 * src/pic/glue.c: fix initializers for pointers (work in progress)
4783 * src/pic/pcode.c (get_op): honor index on _const symbols
4784 * ({reset,dump}pCodeStatistics): NEW, estimate code size
4785 * (dumppBlock): added pCode size estimation
4786 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
4787 check for IS_SYMOP before OP_SYMBOL'ing
4788 * fixed indentation, compacted switch-statements
4789 * (allocReg): find free register and allocate it instead of
4790 allocating new registers all the time
4791 * (deassignLRs): prevent POINTER_GET's from being assigned the same
4792 registers as its operands (necessary only for multibyte GETs)
4794 2005-07-01 Raphael Neider <rneider AT web.de>
4796 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
4797 debugging .asm-output macros FENTRY + FEXIT
4798 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
4800 * (emitpComment): NEW, printf to pCode
4801 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
4803 * (popGetAddr): NEW, variant of popGet to access an immediates
4804 high(er) bytes instead of the n'th byte of memory they reference,
4805 replaced popGet with popGetAddr where neccessary
4806 * (genDataPointerGet): reactivated and fixed implementation
4807 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
4809 * (genDataPointerSet): fixed multibyte assignments
4810 * (genpic14Code): fixed --i-code-in-asm handling
4811 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
4812 * (genPlus): fixed index-out-of-bounds error
4813 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
4814 * src/pic/ralloc.c: added debugging output macro FENTRY2
4815 * (spillThis): fixed indentation, enbraced for-body for clarity
4816 * (rematStr): commented out as now unused
4817 * (regTypeNum): commented out special spill case (overwrites
4819 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
4821 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
4823 * doc/sdccman.lyx: documented sfr16/sfr32,
4824 added example for using storage class with function pointers
4825 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
4827 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
4829 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
4830 * device/lib/_itoa.c,
4831 * device/lib/_ltoa.c: optimized codesize
4832 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
4833 but don't know how to suppress the double warning.
4834 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
4835 * support/Util/SDCCerr.c,
4836 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
4838 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
4840 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
4841 fixed old K&R prototypes
4842 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
4843 * device/lib/_gptrget.c,
4844 * device/lib/_gptrgetc.c,
4845 * device/lib/_gptrput.c: changed versions for new memory indicator values,
4846 also new versions for small generic pointers and banked generic pointers
4847 * src/port.h: added const_name
4848 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
4849 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
4850 * src/SDCCcse.c (findPrevIc): check all associative operators
4851 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
4852 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
4853 * src/SDCCmem.c: updated comments,
4854 set far-space to 0 for pdata, results in optimized code
4855 * src/SDCCmem.h: added macro CONST_NAME
4856 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
4857 moving the info into the highest bits, see also gptrget/gptrput
4858 * src/src.dsp: added sdcc.ico to project files
4859 * src/avr/gen.c (genCast): fixed bug 0x%d
4860 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
4861 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
4862 relation between ptr_type and DCL_TYPE,
4863 (genCast): fixed bug 0x%d
4864 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
4865 (CODE)" for const_name
4866 * src/hc08/gen.c (genCast): fixed bug 0x%d
4867 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
4868 (hc08_port): added "CONST (CODE)" for const_name
4869 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
4870 (aopForRemat, adjustArithmeticResult): disconnected direct relation
4871 between ptr_type and DCL_TYPE,
4872 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
4873 operand* and took AOP() inside function so sfr-ness can be checked,
4874 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
4876 (genFunction, genEndFunction): optimized stack setup,
4877 (genMinus): optimized for literals with ending zeroes (in bytes),
4878 (genCast): fixed bug 0x%d
4879 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
4880 (mcs51_port): added "CONST (CODE)" for const_name
4881 * src/mcs51/peeph.def: made rule 226 more generic
4882 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
4883 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
4884 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
4885 * src/z80/main.c (z80_port): added NULL for const_name,
4886 (gbz80_port): added NULL for const_name
4887 * support/regression/tests/bug663539.c,
4888 * support/regression/tests/sfr16.c: new tests
4890 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4892 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
4894 2005-06-24 Raphael Neider <rneider AT web.de>
4896 * device/lib/pic16/libdev/pic18f[68][567]20.c:
4898 * device/include/pic16/signal.h: added USBIF
4901 2005-06-24 Raphael Neider <rneider AT web.de>
4903 * device/lib/pic16/libdev/pic18f2455.c,
4904 device/include/pic16/pic18f2455.h: NEW
4905 * device/include/pic16/pic18fregs.h,
4906 device/lib/pic16/pics.all,
4907 src/pic16/device.c: added 18f2455
4908 * device/lib/pic16/libdev/pic18f[68][567]20.c,
4909 device/include/pic16/{pic18f[68][567].h,usart.h}:
4910 replaced MULTIPLE_USARTS define with more relaible
4911 compatibility sfrs (for USART access)
4913 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
4915 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
4916 and the output asm file line is printed on two lines.
4918 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4920 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
4921 BGT, BLE, BHI, and BLS instructions
4922 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
4924 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
4925 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
4927 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
4929 2005-06-15 Raphael Neider <rneider AT web.de>
4931 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
4932 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
4933 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
4934 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
4935 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
4937 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4939 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
4940 Marcel Telka in bug #1215704
4942 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
4944 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
4945 located in shared memory bank.
4947 2005-05-31 Raphael Neider <rneider AT web.de>
4949 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
4950 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
4951 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
4953 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
4955 * device/lib/_strncpy.c: fixed the fix
4957 2005-05-26 Raphael Neider <rneider AT web.de>
4959 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
4960 initializers with \0, bug #1208187
4961 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
4962 intializers with \0, bug #1208187
4964 2005-05-26 Raphael Neider <rneider AT web.de>
4966 * src/pic16/glue.c (pic16_printIvalChar): fixed string
4967 initializers with \0, bug #1208187
4968 * src/pic16/main.c (_process_pragma): added sanity checks
4969 for stack position and size, emit warnings when appropriate
4971 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4973 * device/lib/_strncpy.c: fixed not filling with \0
4975 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4977 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
4979 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
4980 compound_statement),
4982 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
4984 2005-05-24 Raphael Neider <rneider AT web.de>
4986 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
4988 2005-05-24 Raphael Neider <rneider AT web.de>
4990 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
4991 TRISE definitions, closes bug #1162453
4993 2005-05-22 Raphael Neider <rneider AT web.de>
4995 * src/pic16/main.c (_process_pragma): check for missing
4996 arguments to pragmas code and udata
4997 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
4998 consistency fixes to match other headers (thanks to Jim Paris)
4999 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5001 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5003 * src/SDCCicode.c (isOperandEqual): fixed missing ;
5005 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5007 * support/regression/tests/bug1198642.c: new test
5008 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5009 * src/SDCCcse.c (findPrevIc): added comment, please have a look
5010 * support/scripts/resource.h,
5011 * support/scripts/resource.rc,
5012 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5013 * support/scripts/sdcc.ico: added 32x32 icon
5015 2005-05-18 Raphael Neider <rneider AT web.de>
5017 * device/lib/pic16/libdev/pic18f*.c,
5018 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5019 keywords to "__sfr" and "__at (X)"
5020 * device/include/pic16/pic18fregs.h: added pic18f4520
5021 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5022 #1203088 (MPLAB compatibility)
5024 2005-05-17 Raphael Neider <rneider AT web.de>
5026 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5027 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5028 * device/lib/pic16/pics.all: added new devices
5029 * src/pic16/device.c: added support for pic18f4520
5031 2005-05-16 Raphael Neider <rneider AT web.de>
5032 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5033 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5034 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5035 convenience function for bit access
5037 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5039 * device/lib/printf_large.c: fixed bug 1193299
5040 * support/regression/tests/bug1057979.c: added test %3.3s
5042 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5044 * device/include/mcs51/8051.h,
5045 * device/include/mcs51/8052.h: made parseable with lint
5046 * device/include/mcs51/lint.h: added include file for (sp)lint
5047 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5048 * doc/cdbfileformat.lyx,
5049 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5051 2005-05-14 Raphael Neider <rneider AT web.de>
5053 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5054 * device/lib/pic16/libc/stdlib/itoa.c (new)
5055 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5056 * device/lib/pic16/libio/Makefile: exclude subdir according to
5057 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5058 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5059 * src/pic16/gen.c (genFunction): prevent annoying warning
5060 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5062 * support/cpp2/cppmain.c (cpp_output_string): new
5063 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5066 2005-05-13 Borut Razem <borut.razem AT siol.net>
5068 * src/SDCCmain.c (linkEdit): fixed bug 1195202
5070 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5072 * .version: changed to version 2.5.1; back to bleeding edge development
5074 2005-05-11 Borut Razem <borut.razem AT siol.net>
5076 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5077 generate PDF version 1.3 documents
5079 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5081 * .version: changed to version 2.5.0
5083 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5085 * doc/sdccman.lyx: updated weblinks, index and smaller updates
5087 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5089 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5090 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5091 well as many smaller updates.
5092 * .version: changed to version 2.5.0-pre1
5094 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5096 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5098 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5100 * support/regression/tests/bug1185672.c: added
5101 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5103 * src/mcs51/gen.c (genCall): added comments, made it look safer
5104 * src/mcs51/gen.c (genEndFunction): simplified
5106 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5108 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5110 2005-04-14 Borut Razem <borut.razem AT siol.net>
5112 * fixed bug 1045046 - SIGSEGV with really simple code?:
5113 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5114 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5116 2005-04-14 Borut Razem <borut.razem AT siol.net>
5118 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5119 src/pic16/device.h: temporarily disabled experimental #inline pragma
5122 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5124 * device/include/z80/stdio.h,
5125 * device/include/z80/string.h: removed these highly incomplete files so
5126 SDCC can use the default ones in device/include/
5128 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5130 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5132 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5135 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5137 * device/include/malloc.h: removed redundant __reentrant prototypes
5138 * device/lib/_mullong.c: added working xstack variant in asm (C version
5139 doesn't pass regression tests)
5140 * device/lib/bpx.c: used __data and made bpx char for mcs51
5141 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5142 (createFunction): fixed bug with xstackPtr
5143 * src/SDCCcse.c: corrected comments
5144 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5145 (killDeadCode, eBBlockFromiCode): removed unused code
5146 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5148 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5149 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5150 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5151 (genModOneByte): fixed warning in MSVC
5152 * src/mcs51/main.c (): added comments
5153 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5155 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5157 * src/SDCCmain.c (linkEdit): oops, changed one line too many
5159 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5161 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5163 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5165 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5166 characters arrays of larger size than the declared one.
5168 2005-04-10 Borut Razem <borut.razem AT siol.net>
5170 * src/pic/gen.c (genInline),
5171 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5172 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5173 (findNextInstruction), (findPrevInstruction),
5174 (findInstructionUsingLabel),
5175 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5176 * src/pic/pcode.c (findLabel): added missing '\n'
5177 * src/src.dsp: added SDCCdwarf2.c to the project
5179 2005-04-09 Borut Razem <borut.razem AT siol.net>
5181 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5183 2005-04-08 Raphael Neider <rneider AT web.de>
5185 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5186 into the chain after a given one) and mergeDefmapSymbols (combine
5187 defmap entries for each symbol per pcode)
5188 * (createDefmap): have defmap entries merged in the end
5189 * (defmapReplaceSymRef): split defmap entries covering two accesses to
5190 a symbol before replacing one access type's symbol, merge symbols in
5191 the end (replacement symbol might already have an entry)
5192 * (assignValnums): keep reference to written WREG intact
5194 2005-04-08 Raphael Neider <rneider AT web.de>
5196 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5199 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5201 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5204 2005-04-07 Raphael Neider <rneider AT web.de>
5206 * device/include/pic16/usart.h: added compatibility defines for
5207 devices with more than one USART
5208 * device/include/pic16/pic18f[68][567]20.h: activated above defines
5210 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5212 * device/lib/Makefile.in: updated for port specific include
5214 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5216 * support/regression/ports/mcs51/spec.mk: added mcs51 include
5218 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5220 * device/include/8051.h,
5221 * device/include/8052.h,
5222 * device/include/at89S8252.h,
5223 * device/include/at89c55.h,
5224 * device/include/at89x051.h,
5225 * device/include/at89x51.h,
5226 * device/include/at89x52.h,
5227 * device/include/mcs51reg.h,
5228 * device/include/reg51.h,
5229 * device/include/reg764.h,
5230 * device/include/regc515c.h,
5231 * device/include/sab80515.h: (re)moved these 12 files
5232 * device/include/mcs51/8051.h,
5233 * device/include/mcs51/8052.h,
5234 * device/include/mcs51/at89S8252.h,
5235 * device/include/mcs51/at89c55.h,
5236 * device/include/mcs51/at89x051.h,
5237 * device/include/mcs51/at89x51.h,
5238 * device/include/mcs51/at89x52.h,
5239 * device/include/mcs51/mcs51reg.h,
5240 * device/include/mcs51/reg51.h,
5241 * device/include/mcs51/reg764.h,
5242 * device/include/mcs51/regc515c.h,
5243 * device/include/mcs51/sab80515.h: and added them here
5245 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5247 * device/include/stdarg.h: changed SDCC specific keywords to double
5249 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5251 * device/include/hc08/mc68hc908gp32.h,
5252 * device/include/hc08/mc68hc908jb8.h,
5253 * device/include/hc08/mc68hc908jkjl.h,
5254 * device/include/hc08/mc68hc908qy.h: fixed comments
5255 * device/include/mcs51/README: updated
5256 * device/include/mcs51/c8051f120.h: added PINRSF
5257 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5258 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5259 amidst code. Also inline is not supported.
5261 2005-04-06 Raphael Neider <rneider AT web.de>
5263 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5264 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5265 callers stack/frame pointers
5267 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5269 * device/include/pic16/usart.h: added, missing in previous commit,
5270 * device/include/pic16/adc.h: fixed typo,
5271 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5273 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5275 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5276 uninitialized because a bug appears with gplink
5277 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5278 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5279 complains for unrecognised option
5281 2005-04-05 Raphael Neider <rneider AT web.de>
5283 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5284 structs as well (using memcpy)
5285 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5286 on ISRs (GOTO has no label)
5287 * src/pic16/device.h: added OF_OPTIMIZE_DF
5288 * src/pic16/main.c: added compiler switch --optimize-df to enable the
5289 new data flow analysis/optimization
5290 * src/pic16/pcode.c: added (prototypes for and implementation of)
5291 dataflow analysis functions, fixed pCodeInstructions' inCond and
5292 outCond values, made RCALL a branch instruction
5293 * (pic16_unlinkpCode): keep C line if possible
5294 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
5295 C line moved if possible
5296 * (pic16_getRegFrompCodeOp): NEW, improved version of...
5297 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
5298 to use new pic16_getRegFrompCodeOp (works for more SFRs)
5299 * (pic16_BuildFlow): fixed skip instructions with label (did not start
5301 * (pic16_getJumptabpCode): NEW, needed in...
5302 * (LinkFlow): fixed handling of jumptables, calls and conditional
5304 * (pic16_InsertCommentAfter): NEW
5305 * (pic16_pCodeReplace): made verbose and flow preserving
5306 * (AnalyzeFlow): added call to data flow analysis
5307 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
5308 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
5309 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
5311 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5313 * src/SDCCast.c (decorateType): fixed bug #1105626
5315 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
5317 * device/include/asm/pic16/features.h,
5318 * pic18f*.h headers,
5319 * device/include/pic16/adc.h,
5320 * device/include/pic16/delay.h,
5321 * device/include/pic16/i2c.h,
5322 * device/include/pic16/malloc.h,
5323 * device/include/pic16/stdio.h,
5324 * device/include/pic16/stdlib.h,
5325 * device/include/pic16/string.h,
5326 * device/lib/pic16/libc/stdio/printf_tiny.c,
5327 * device/lib/pic16/libc/stdio/printf_small.c,
5328 * device/lib/pic16/libc/stdio/strmgpsim.c,
5329 * device/lib/pic16/libc/stdio/strmmssp.c,
5330 * device/lib/pic16/libc/stdio/strmusart.c,
5331 * device/lib/pic16/libc/stdio/vfprintf.c,
5332 * device/lib/pic16/libc/stdlib/ltoa.c,
5333 * device/lib/pic16/libc/stdlib/putchar.c,
5334 * device/lib/pic16/libc/stdlib/x_ftoa.c,
5335 * device/lib/pic16/libc/stdlib/memchrpgm.c,
5336 * device/lib/pic16/libc/stdlib/memchrram.c,
5337 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
5338 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
5339 * device/lib/pic16/libio/adc/adcbusy.c,
5340 * device/lib/pic16/libio/adc/adcread.c,
5341 * device/lib/pic16/libio/adc/adcsetch.c,
5342 * device/lib/pic16/libio/usart/ubaud.c,
5343 * device/lib/pic16/libio/usart/ubusy.c,
5344 * device/lib/pic16/libio/usart/udrdy.c,
5345 * device/lib/pic16/libio/usart/uopen.c,
5346 * device/lib/pic16/libio/usart/uputc.c,
5347 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
5348 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
5349 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
5350 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
5351 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
5352 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
5353 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
5354 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
5355 specific keywords to double underlined form,
5356 * device/lib/pic16/libc/Makefile.rules,
5357 * device/lib/pic16/libsdcc/Makefile.rules,
5358 * device/lib/pic16/libm/Makefile,
5359 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
5360 to compile with C standard set in Makefile.common
5361 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
5362 rand.c and crc.c in compilation process,
5363 * device/lib/pic16/libsdcc/int/divuint.c,
5364 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
5365 `c' from signed to unsigned,
5366 * device/lib/pic16/startup/crt0.c,
5367 * device/lib/pic16/startup/crt0i.c,
5368 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
5369 keywords to double underlined form, bug fixes in _do_cinit function
5370 which prevented the correct initialization of the .idata segment,
5371 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
5372 core to enter a infinite loop
5373 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
5375 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5377 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
5379 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5381 * device/include/Makefile.in: add support for hc08 subdirectory
5382 * device/include/hc08/: new subdirectory
5383 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
5384 Lucas Loizaga, thanks!
5385 * device/include/hc08/mc68hc908qy.h,
5386 * device/include/hc08/mc68hc908gp32.h,
5387 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
5388 their own directory. Changed internal macro names to use the compiler
5389 reserved namespace. Changed SDCC specific keywords to double
5391 * device/include/math.h,
5392 * device/include/malloc.h,
5393 * device/include/stdarg.h,
5394 * device/include/stdbool.h
5395 * device/include/string.h,
5396 * device/include/tinibios.h,
5397 * device/include/ds400rom.h,
5398 * device/include/8051.h,
5399 * device/include/8052.h,
5400 * device/include/80c51xa.h,
5401 * device/include/at89c55.h,
5402 * device/include/at89S8252.h,
5403 * device/include/at89x51.h,
5404 * device/include/at89x52.h,
5405 * device/include/ds80c390.h,
5406 * device/include/reg764.h,
5407 * device/include/regc515c.h,
5408 * device/include/sab80515.h,
5409 * device/include/mcs51/c8051f000.h,
5410 * device/include/mcs51/c8051f018.h,
5411 * device/include/mcs51/c8051f020.h,
5412 * device/include/mcs51/c8051f040.h,
5413 * device/include/mcs51/c8051f060.h,
5414 * device/include/mcs51/c8051f120.h,
5415 * device/include/mcs51/c8051f300.h,
5416 * device/include/mcs51/c8051f310.h,
5417 * device/include/mcs51/c8051f320.h,
5418 * device/include/mcs51/c8051f330.h,
5419 * device/include/mcs51/c8051f350.h,
5420 * device/include/z180.h: Changed SDCC specific keywords to double
5423 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
5425 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
5427 * (pic16_assignConfigWordValue): disable testing of configuration
5428 register value with config mask,
5429 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
5430 function with port->fun_prefix,
5431 * (genFunction): when generating a naked interrupt function never
5432 create an absolute segment placed in interrupt vector address, place
5433 the actual interrupt function at IVA instead, when an interrupt
5434 function is generated with unspecified interrupt then do not create
5435 the absolute section,
5436 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
5437 code for generating a call to generic pointer get/put function with
5438 a call to function pic16_callGenericPointer(),
5439 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
5440 the call to the generic pointer get/put functions with prefixing the
5441 function name with port->fun_prefix,
5442 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
5443 * src/pic16/main.c (_process_pragma): prefix function with
5445 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
5446 calling assembler, old 18Fxxxx macro is deprecated,
5447 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
5448 PC_ASMDIR in while condition,
5449 * (findInstruction): add PC_ASMDIR in while condition,
5450 * (buildCallTree): prefix main with port->fun_prefix,
5451 * (pic16_pCode2str): fixed bug that didn't emit the memory access
5452 identifier for variable with banked access in instructions BTFSS,
5453 BTFSC, BCF, BSF, BTG
5454 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
5455 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
5456 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
5457 perform optimization when enviroment variable NO_REG_OPT is set,
5458 * (insideLRBlock): NEW, return 1 if register is inside an
5459 INF_LOCALREGS block,
5460 * (RemoveRegFromLRBlock): remove a register that is completely
5461 eliminated by register optimization, but it is still left in local
5462 register store/restore in/from stack block,
5463 * (Remove2pcodes): after removing register, check to see if it
5464 should be removed from local register store/restore in/from stack
5466 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
5467 DUMMY_READ_VOLATILE,
5469 * device/include/pic16/adc.h: minor prototype modifications and
5471 * device/include/pic16/malloc.h: added GPL notice various
5473 * device/include/pic16/stdint.h: NEW, standard header for ints
5474 * device/include/pic16/delay.h: NEW, header for delay functions,
5475 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
5477 * device/include/pic16/signal.h: NEW, header providing helper macros
5478 for implementing signal handlers,
5479 * device/include/pic16/stdio.h: added prototypes for functions,
5480 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
5481 prototypes for stdin and stdout, added macro PUTCHAR to
5482 automatically implement putchar function prototype,
5483 * device/include/pic16/usart.h: modified and updated USART library,
5484 * device/lib/pic16/libio/adc/,
5485 * device/lib/pic16/libio/i2c: some modifications to improve library
5487 * device/lib/pic16/libc/stdio/: modifications for the new printf*
5488 family of functions,
5489 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
5490 family of functions and other sources,
5491 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
5492 of the PIC18Fxx[28] devices,
5493 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
5494 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
5495 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
5496 _do_cinit function, because the previous failed when local variables
5497 where not placed in the same memory bank,
5498 * device/lib/pic16/libsdcc/char/: various modifications to improve
5499 library performance,
5500 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
5501 information on the new functions of the c library and more...
5503 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5505 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
5507 2005-03-26 Raphael Neider <rneider AT web.de>
5509 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
5510 if condition == CARRY)
5511 * (genCmp): adapted to new genSkipc semantics
5512 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
5513 on rIfx (genCmp was broken)
5515 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5517 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
5518 * src/z80/main.c (_keywords[]),
5519 * src/SDCCglobal.h (struct options),
5521 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
5522 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
5523 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
5524 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
5525 always available in leading double underscore form. The C99 support is
5526 mostly missing, but it's a start.
5527 * support/regression/tests/bug-227710.c: fixed nonconforming use of
5528 reserved identifier "__data".
5530 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5532 * src/mcs51/peeph.def: fixed bug 1170013
5534 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
5536 * device/include/mcs51reg.h: fixed bug 842007
5538 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5540 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
5543 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5545 * src/port.h (struct PORT),
5546 * src/avr/ralloc.c (avr_assignRegisters),
5548 * src/ds390/ralloc.c (ds390_assignRegisters),
5550 * src/hc08/ralloc.c (hc08_assignRegisters),
5552 * src/mcs51/ralloc.c (mcs51_assignRegisters),
5554 * src/pic/ralloc.c (pic14_assignRegisters),
5556 * src/pic16/ralloc.c (pic16_assignRegisters),
5558 * src/xa51/ralloc.c (xa51_assignRegisters),
5560 * src/z80/ralloc.c (z80_assignRegisters),
5562 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
5563 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
5565 * src/SDCCdflow.c (computeDataFlow),
5567 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
5569 * src/SDCCcflow.c (*),
5571 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
5572 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
5573 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
5574 immedDom() returning wrong block; probably fixes bug #1160833)
5576 2005-03-20 Borut Razem <borut.razem AT siol.net>
5578 * support/scripts/inc2h.pl: WIN32 port
5580 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
5582 * device/lib/makefile.in: added abs.c and labs.c
5584 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
5586 * device/include/stdint.h: added
5587 * device/lib/abs.c: added
5588 * device/lib/labs.c: added
5589 * device/include/stdlib.h: added abs() and labs() prototypes
5590 * device/lib/libsdcc.lib: added abs and labs
5591 * device/include/float.h,
5592 * device/lib/_fsmul.c,
5593 * device/lib/printf_fast.c,
5594 * device/lib/printf_tiny.c: updated comments
5596 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5598 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
5601 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5603 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
5604 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
5606 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
5608 * device/lib/printf_large.c: removed inline assembly for portability and
5609 readability. Use printf_fast if speed or size are more important.
5610 * src/pic16/gen.c: removed conditions around use of DEBUGpc
5611 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
5613 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
5615 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
5616 prevent compiler warning
5618 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5620 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
5621 moved to level 0 and declared as static. Also they are explicit
5622 placed in access bank. This was necessery because some times they
5623 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
5624 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
5625 optimizations. Currently only compare to unsigned char is implemented,
5626 * src/pic16/gen.c: added fReturnIdx array,
5627 * (struct resolvedIfx) is moved to gen.h and made public,
5628 * (struct _G): added sregsAlloc and sregsAllocSet fields,
5629 * (aopForSym): added an optimization to directly store in stack of
5630 the operand of a SEND iCode,
5631 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
5632 but as registers instead (AOP_REG) using the fReturnIdx array,
5633 * (pic16_freeAsmop): remove the freed register from the
5634 _G.sregsAlloc field,
5635 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
5636 a compare of 'WREG',
5637 * (pic16_popGetTempRegCond): changed function prototype, now
5638 function takes also a bitVector argument v which holds the current
5639 set of registers that are allocated for stack access by aopForSym,
5640 registers allocated in aopForSym for accessing stack symbols are not
5641 any more part of the functions usedRegs field,
5642 * (genCall): some times aopOp is called for a stack variable to be
5643 send, aopForSym might perform the push, if this is true make sure
5644 that genCall doesn't push the variable twice by testing _G.resDirect,
5645 * (genFunction): changed testing for unspecified interrupt number
5646 from 256 to INTNO_UNSPEC,
5647 * modified selection scheme of frame pointer generation. Previously
5648 if function did use local registers a frame pointer was generated,
5649 now a frame pointer is generated only if function has arguments
5650 (that need PLUSW2 register access), or has stack arguments, or the
5651 compiler is not instructed to omit the frame pointer,
5652 * (genEndFunction): before restoring local registers that were saved
5653 in the function preamble, also restore the registers that *might*
5654 have been allocated for stack access,
5655 * (genRet): removed some old comments,
5656 * (genCmp, the active (RN's) version): added a call to the
5657 pic16_genCmp_special function to perform the compare with a more
5658 robust and optimized way,
5659 * (genInline): a feature has been added in inline code generation,
5660 which allows a wildcard variable substitution when writing inline
5661 assembly. Code is incomplete and experimental therefore undocumented,
5662 * (genCast): changed order of aopOp for result and right to allow
5663 aopForSym to directly load the result if possible,
5664 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
5665 perform an optimized compare on some selected special occasions,
5666 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
5667 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
5668 generate an IVT any more,
5669 * src/pic16/main.c (pic16_optionsTable): added command line option
5671 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
5672 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
5674 * src/pic16/NOTES: Raphael Neider added in list of active developers
5675 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
5676 jumptable_end to prevent bug #,
5677 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
5678 inCond and outCond fields,
5679 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
5680 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
5681 turn off register spilling,
5682 * (packRegsForOneUse): synced with other ports' versions although it
5683 is not used currently,
5684 * (pic16_packRegisters): added an optimization while reading
5685 structure bitfields, some registers may be saved (malloc code is
5686 decreased by 80 bytes)
5688 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
5690 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
5691 left is a bitfield, if yes, then don't optimize assignment. Perhaps
5692 this can be optimized more?
5694 2005-03-10 Raphael Neider <rneider AT web.de>
5696 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
5697 genNearPointerGet): (hopefully) fixed access to bitfields via
5698 pointers (p->bitN = x; and x = p->bitN; failed)
5700 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
5702 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
5704 2005-03-09 Raphael Neider <rneider AT web.de>
5706 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
5708 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
5710 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
5711 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
5712 (regTypeNum): set REG_BIT type if necessary
5713 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
5714 * support/regression/tests/critical.c: check bug 1144613
5716 2005-03-02 Raphael Neider <rneider AT web.de>
5718 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
5720 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5722 * src/avr/ralloc.c (serialRegAssign),
5723 * src/ds390/ralloc.c (serialRegAssign),
5724 * src/hc08/ralloc.c (serialRegAssign),
5725 * src/mcs51/ralloc.c (serialRegAssign),
5726 * src/pic/ralloc.c (serialRegAssign),
5727 * src/pic16/ralloc.c (serialRegAssign),
5728 * src/xa51/ralloc.c (serialRegAssign),
5729 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
5731 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
5733 * src/SDCCast.c (decorateType): fixed bug 1124787
5735 2005-02-20 Hubert Sack <sack AT digiplan.de>
5736 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5738 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
5741 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5743 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
5744 to keep the correct label reference count when adding/removing references
5745 to labels. A peephole file using this is appended to patch #1144962.
5747 2005-02-14 Raphael Neider <rneider AT web.de>
5749 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
5750 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
5751 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
5752 retrievals of result operand's value on assignment
5754 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
5756 * device/include/pic16/string.h: modified prototype for memccpy()
5757 to memccpy(void *, void *, char, size_t)
5758 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
5759 check whether to omit frame pointer or not,
5760 * (genInline): convert all occurences of "\n" to LF in inline
5761 assembler blocks, this helps formatting the inline text,
5762 * (pic16_loadFSR0): modified prototype,
5763 * (genNearPointerGet, genNearPointerSet): reorganization of code,
5764 removed some 8051 legacy code,
5765 * (genPackBits): enabled handling bitfields exceeding one byte in size,
5766 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
5767 before allocating temporary registers in functions,
5769 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5771 * support/regression/tests/bitvars.c: corrected the "fix"
5773 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5775 * support/regression/tests/bitvars.c,
5776 * support/regression/tests/bitwise.c,
5777 * support/regression/tests/rotate.c: "fixed" problems on Alpha
5779 2005-02-10 Raphael Neider <rneider AT web.de>
5781 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
5782 different size for Alpha
5783 * src/pic16/gen.c (genCmpEq) : improved compare with 0
5785 2005-02-09 Raphael Neider <rneider AT web.de>
5787 * src/SDCC.lex(doPragma) : save and restore warning options as well
5788 (also added new stack plus clone- and copyAndFreeSDCCERRG())
5789 * have #pragma less_pedantic set the errorlevel to WARNING
5791 * (cloneOptimize) : fixed wrong malloc's size
5792 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
5793 facilitate correct handling of #pragma (save|restore)
5795 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5797 * src/mcs51/gen.c: removed non-standard C nameless struct/union
5799 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
5801 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
5803 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
5805 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
5807 2005-02-02 Raphael Neider <rneider AT web.de>
5809 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
5810 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
5811 * (pic16_storeForReturn): fixed to allow returning function pointers
5812 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
5813 * device/include/pic16/{stddef.h,stdbool.h}: added
5815 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
5817 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
5819 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
5821 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
5822 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
5823 appeared to be required
5825 2005-01-31 Borut Razem <borut.razem AT siol.net>
5827 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
5828 include/mcs51 and include/z80 directories to the package
5830 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5832 * src/hc08/gen.c (genFunction): fixed bug #1112752
5834 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5836 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
5838 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5840 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
5842 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
5844 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
5846 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
5848 * device/include/c8051fxxx.h: removed these 6 files
5849 * device/include/mcs51/c8051fxxx.h: added these 11 new files
5851 2005-01-26 Raphael Neider <rneider AT web.de>
5853 * src/pic16/gen.c (genAssign): fixed assignment from longs
5854 in codespace (were cut to three bytes)
5855 * (genDummyRead): implemented (except for CODESPACE...),
5857 * src/pic16/glue.c (emitStatistics): beautified
5858 * device/lib/pic16/libm/Makefile: added include path
5860 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5862 * src/z80/gen.c (aopPut): fixed bug #1103902
5864 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5866 * device/lib/expf.c: fixed bug #1095792
5868 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
5870 * device/lib/pic16/libm: added Math library sources
5872 2005-01-24 Raphael Neider <rneider AT web.de>
5874 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
5875 to enable upcast to pCodeOpReg2 (there is no type tag to
5876 differenciate the two and pic16_popGet2p cast into PCOR2)
5877 * src/pic16/main.c (_process_pragma): fixed another malloc bug
5878 (sizeof(sectNames) changed to sizeof(sectName))
5879 Both patches fix segfaults under MinGW.
5881 2005-01-23 Raphael Neider <rneider AT web.de>
5883 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
5884 Safe_[mc]?alloc()'ed variables
5885 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
5886 of (byte sized) temporaries (assign them to WREG for now)
5887 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
5888 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
5889 this might fix SIGSEGVs on MinGW...
5890 * src/SDCCopt.c (killDeadCode): restored original behaviour
5891 (volatile operands might get thrown away though)
5893 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
5895 * src/pic16/gen.c: fixed bug #1106975,
5896 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
5897 pointer update, INTCON is saved, global interrupts are disabled and
5898 restored after updateing TOS.
5899 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
5900 * added function attribute 'shadowregs' to take advantage of shadow
5902 * added function attribute 'wparam' as an alternative to the wparam
5904 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
5905 user declares a non-ISR function as 'shadowregs',
5906 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
5908 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
5910 * .version: bumped version number to 2.4.8
5911 * device/lib/pic16/pics.all: list of PIC18F devices supported by
5913 * device/lib/pic16/libio/i2c/: I2C module support library,
5914 * device/include/pic16/i2c.h: I2C support library header,
5915 * device/lib/pic16/libc/stdio/: standard IO support sources,
5916 * (printf_small.c): printf_small() source, supports float print,
5917 * (printf_tiny.c): printf_tiny() source, does not support floats,
5918 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
5919 enable global optimizations for entire library source, other
5920 Makefiles in the source tree are also modified to reflect this,
5921 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
5923 * doc/sdccman.lyx: updated to reflect new changes,
5924 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
5925 sym->onStack if-case,
5926 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
5927 sbit, idata, _idata, xdata, _xdata,
5928 * added pragma library, to link an external library, (see doc),
5929 * removed command line options, --pomit-config-words, --pomit-ivt,
5930 --pleave-reset-vector,
5931 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
5932 when calling assembler to reflect memory model used, also define
5933 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
5934 reflect stack model used,
5935 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
5936 on stack return NULL,
5938 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5940 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
5941 of the operands is volatile. Fixes #1020220
5943 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5945 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
5946 * (OptimizeRegUsage): make sure that there is really no other flow where
5947 the first pCode is used
5949 2005-01-22 Raphael Neider <rneider AT web.de>
5951 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
5952 to fix #1106967 (pCode->seq are not set up correctly)
5954 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5956 * src/SDCCglue.c (glue): make sure code area is declared before the
5957 static initialization area.
5959 2005-01-21 Raphael Neider <rneider AT web.de>
5961 * device/lib/Makefile.in: fixed test for pic16 install dir
5962 * device/lib/pic16/*/Makefile*: modified compile flags to enable
5964 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
5965 added --optimize-goto compiler switch and pragma wparam documentation
5966 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
5967 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
5968 and PRODH closing bug #1071770 (peephole optimizer)
5970 2005-01-19 Raphael Neider <rneider AT web.de>
5972 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
5973 cmdLine buffers (used when calling sdcpp...) are large enough
5974 (MAX_PATH=256 truncates arguments leading to system halts when
5976 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
5977 * (genUminus): rewritten to for efficiency
5978 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
5979 used uninitialized in some cases)
5980 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
5981 copy the third byte from the int -- now assumes 0x80 (data memory)
5982 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
5983 operands (genAddLit expects the iCode's operands to swapped as
5984 well), fixed leftover bytes (crashed for short left operands)
5985 * (pic16_genMinusDec): performance improvements, removed false
5987 * (pic16_genMinus): fixed to cope with differently sized operands
5988 * src/pic16/glue.c (pic16_glue): added new banksel optimization
5990 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
5991 * src/pic16/graph.[ch]: implementation of directed graphs, used by
5992 new banksel optimization
5993 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
5994 analysis for temporary registers (segfaults...)
5995 * src/pic16/peeph.def: added rule
5997 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
5999 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6000 which converts a float number to its ASCII representation
6001 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6002 functions to convert the fractional and integer part of a float to ASCII,
6003 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6004 realloc.c): added _MALLOC_SPEC to explicit place variables in data
6006 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6008 * device/include/pic16/adc.h: added GPL info,
6009 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6010 a pCodeOp as tested operand,
6011 * (genNearPointerGet): optimized bit testing, does not use
6012 intermediate register for bit value, test directly instead with
6013 BTFSS, BTFSC, works only for single bits,
6014 * (genpic16Code): dump the name of the iCode in the asm,
6015 * src/pic16/ralloc.c (decodeOp): removed static declaration and
6016 renamed to pic16_decodeOp,
6017 * (serialRegAssign): do not allocate a temporary register for iCode
6018 sequences that test a single bit for 1/0
6020 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6022 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6023 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6024 access stack and frame pointers. They are initially assigned to
6025 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6026 accessing SFRs. Updated all occurences of modification of stack or
6027 frame pointer in gen.c and pcode.c,
6028 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6029 assigning of a literal value to pointers,
6030 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6031 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6034 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6036 * doc/sdccman.lyx: update documentation about stack pragma, added
6037 some info for stack memory models
6039 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6041 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6043 2005-01-08 Raphael Neider <rneider AT web.de>
6045 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6046 udata sections to fix bug #1097823
6048 2005-01-05 Raphael Neider <rneider AT web.de>
6050 * src/pic16/gen.c (genGenericShift): added handling of differently
6051 sized left operand and result
6053 2005-01-04 Raphael Neider <rneider AT web.de>
6055 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6056 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6057 to hold the condition bit)
6058 * added new version of genCmp (old code available via #define)
6059 * added new version of genShiftLeft/genShiftRight in a generic
6060 way, now supports shifting by negative values
6061 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6062 shiftCount (expected by genGenericShift)
6063 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6064 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6066 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6067 is an invalid literal too...)
6069 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6071 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6072 from Raphael Neider,
6073 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6074 for 8-bit literals. This fixes some literal operands which are sign
6075 extended to 16-bits ints when instruction needs only 8-bits.
6077 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6079 * device/lib/logf.c: added mcs51 assembly version
6080 * device/lib/expf.c: added mcs51 assembly version
6081 * device/lib/_logexpf.c: new shared asm code for expf and logf
6082 * device/include/math.h: add defines for assembly math library
6083 * device/lib/Makefile.in: build new _logexpf.c
6084 * device/lib/libfloat.lib: use new _logexpf.c
6086 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6089 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6090 device types which have less than 0x7f registers.
6092 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6094 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6096 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6098 * device/lib/printf_fast.c: only build on supported arch.
6099 * device/lib/printf_tiny.c: only build on supported arch.
6100 * device/lib/printf_fast_f.c: only build if asm float lib
6101 * device/lib/_fsget1arg.c: only build if asm float lib
6102 * device/lib/_fsget2args.c: only build if asm float lib
6103 * device/lib/_fsnormalize.c: only build if asm float lib
6104 * device/lib/_fsreturnval.c: only build if asm float lib
6105 * device/lib/_fsrshift.c: only build if asm float lib
6106 * device/lib/_fsswapargs.c: only build if asm float lib
6107 * device/include/stdio.h: don't provide print_fast,
6108 print_fast_f, print_tiny prototypes if --xstack used
6110 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6112 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6113 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6116 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6118 * device/lib/printf_fast_f.c: same as printf_fast, but
6119 with floating point enabled
6120 * device/lib/printf_fast.c: minor tweaks
6121 * device/include/stdio.h: add printf_fast_f
6123 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6125 * src/SDCCmain.c: make --float-reent default for mcs51
6126 * device/lib/_fsadd.c: added mcs51 assembly version
6127 * device/lib/_fssub.c: added mcs51 assembly version
6128 * device/lib/_fsmul.c: added mcs51 assembly version
6129 * device/lib/_fsdiv.c: added mcs51 assembly version
6130 * device/lib/_fseq.c: added mcs51 assembly version
6131 * device/lib/_fsneq.c: added mcs51 assembly version
6132 * device/lib/_fsgt.c: added mcs51 assembly version
6133 * device/lib/_fslt.c: added mcs51 assembly version
6134 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6135 * device/lib/Makefile.in: add _fscmp to build
6136 * device/lib/libfloat.lib: add _fscmp to build
6138 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6140 * device/lib/_fs2slong.c: added mcs51 assembly version
6141 * device/lib/_fs2sint.c: added mcs51 assembly version
6142 * device/lib/_fs2schar.c: added mcs51 assembly version
6143 * device/lib/_fs2ulong.c: added mcs51 assembly version
6144 * device/lib/_fs2uint.c: added mcs51 assembly version
6145 * device/lib/_fs2uchar.c: added mcs51 assembly version
6146 * device/lib/_slong2fs.c: added mcs51 assembly version
6147 * device/lib/_sint2fs.c: added mcs51 assembly version
6148 * device/lib/_schar2fs.c: added mcs51 assembly version
6149 * device/lib/_ulong2fs.c: added mcs51 assembly version
6150 * device/lib/_uint2fs.c: added mcs51 assembly version
6151 * device/lib/_uchar2fs.c: added mcs51 assembly version
6152 * device/include/float.h: added #define to select asm vs c
6154 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6156 * device/lib/printf_fast.c: improvements to float output
6157 * device/include/float.h: add defines for assembly float library
6158 * device/lib/_fsget1arg.c: receive 1 float arg
6159 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6160 * device/lib/_fsnormalize.c: normalize a float
6161 * device/lib/_fsreturnval.c: return float, various helper routines
6162 * device/lib/_fsrshift.c: right shift a float's mantissa
6163 * device/lib/_fsswapargs.c: swap 2 floats
6164 * device/lib/Makefile.in: build these 6 new files for mcs51
6165 * device/lib/libfloat.lib: add these 6 files to the library
6167 2004-12-26 Borut Razem <borut.razem AT siol.net>
6169 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6172 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6174 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6175 and fully reentrant and register bank neutral.
6176 * device/lib/printf_fast.c: added float (not enabled by default),
6177 added compact/slower integer (also not enabled by default),
6178 improved size/speed of fast integer code, other minor changes
6179 * device/include/stdio.h, device/lib/Makefile.in,
6180 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6182 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6184 * src/pic16/pcode.c: declaring variables other than at the start of a
6185 block is not supported in C by VC6.
6187 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6189 * applied a previous patch from Raphael Neider that wasn't included
6190 in the previous commits, which fixes infinite loops within jumptable
6192 * made some fixes that previous patches introduced
6194 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6196 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6197 that fixes an issue with AOP_PCODE asmop's offset,
6198 * (pic16_popCopyReg): update instance field too,
6199 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6200 function of pic port,
6201 * (genCmp, genAnd, genAssign),
6202 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6204 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6206 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6207 variables initial values to idata section,
6208 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6209 variables in some functions. This utilizes parmBytes field of iCode
6210 structure to hold the offset of the variable in stack. (might be
6211 able to use the stack field too?)
6212 * applied patch from Raphael Neider # ### , # ###
6213 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6214 variable initial values in idata section,
6215 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6216 for static variables with initial value
6217 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6218 applied fix in while loop from Raphael Neider.
6220 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6222 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6223 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6224 * src/ds390/ralloc.c (serialRegAssign): spill bits
6225 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6226 * support/Util/SDCCerr.c,
6227 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6228 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6229 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6231 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6233 * device/include/sdcc-lib.h: inserted LGPL, added includes
6234 asm/ds390/features.h and asm/mcs51/features.h
6235 * device/include/asm/default/features.h,
6236 * device/include/asm/gbz80/features.h,
6237 * device/include/asm/z80/features.h: added empty _AUTOMEM
6239 * device/include/asm/ds390/features.h,
6240 * device/include/asm/mcs51/features.h: added files with defines for
6241 _AUTOMEM and _STATMEM indicating automatic and static storage class
6242 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6243 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6244 * src/SDCCicode.c (geniCodeCast),
6245 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6246 * src/SDCCloop.c (loopInduction): removed unused variable lr
6247 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6248 to convertToFcall to include char modulo (RFE 1065037), added check
6249 if left operand is unsigned and use abs of literal value
6250 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6251 as it doesn't work after conversion from peephole.def to peephole.rul
6252 * src/mcs51/gen.c (toBoolean): added check for size,
6253 (genModOneByte): optimized code for signed char modulo a literal
6254 power of 2 (thanks to Hubert Sack),
6255 (genRRC): removed unnecessary "clr c",
6256 (genRLC): replaced "add a,acc" with cheaper "rlc a"
6257 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6259 swapped rules 256.c and 256.d,
6260 extended 256.d by using new multiple checks (thanks Erik),
6261 added rules 256.e and 256.f,
6262 updated rule 261.a and 261.b to new generated code
6263 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6265 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6267 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6268 induction related bugs, including first part of bug #1074377
6270 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6272 * applied patch from bug-report #1076292,
6273 * applied patches for genAnd and Goto-optimizations for Raphael
6275 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6276 dump a less iCode information,
6277 * src/pic16/device.h (pic16_options_t): added field debgen,
6278 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6279 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6280 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6282 * (various functions): added macros FENTRY and FENTRY2 to functions,
6283 to emit function prologue,
6284 * (various functions): fixed indentation,
6285 * (genNearPointerGet): fixed loading of FSR0,
6286 * (genPackBits): applied patch from Raphael Neider to fix updating
6287 of FSR0 and touching only the modified bits,
6288 * src/pic16/genarith.c (various functions): added macros FENTRY to
6289 emit function prologue in comments,
6290 * src/pic16/pcode.h: added functions debugf2, debugf3,
6291 * src/pic16/ralloc.c: partial fix for packForPush caused
6294 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6296 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
6297 <stsp AT users.sourceforge.net> with reversed byte order
6298 * support/regression/tests/rotate.c: added (ds390 skips some tests)
6300 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6302 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
6304 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
6305 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
6307 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6309 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
6311 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6313 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
6315 (setFromConditionArgs): friendly operand parser for peephole rules,
6316 (operandBaseName, operandsNotRelated): new peephole condition
6317 "operandsNotRelated" -- similar to "operandsNotSame", but takes
6318 architecture specific register naming into account, handles n-way
6319 comparisons, and supports quoted literals
6320 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
6322 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6324 * src/mcs51/peeph.def: fixed bug #1076940
6326 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6328 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
6330 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6332 Adding support for replacing ljmps with sjmps in jumptables
6333 generated for switch statements. For now you need to set the
6334 environment variable SDCC_SJMP_JUMPTABLE to enable this.
6335 Now 4 algorithms for mcs51 jumptable generation are used:
6336 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
6337 addresses loaded pc-relative for up to 112 cases and stack-pushing
6338 target addresses loaded with offset from dptr for up to 256 cases.
6340 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
6341 * src/mcs51/main.c: adapted constants for switch table generation
6342 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
6344 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
6346 * device/lib/printf_large.c (_print_format): fixed bug 1073386
6347 * support/regression/tests/bug1057979.c: added test for bug 1073386
6349 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6351 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
6354 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6356 * src/pic16/device.h,
6357 * src/pic16/genarith.c,
6360 * src/pic16/pcode.c: applied patches #1068154 and #1070213
6362 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
6364 Large cummulative patch for pic16 port.
6365 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
6366 to call when a stack overflow occurs,
6367 * (malloc.h): added CVS Id tag,
6368 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
6370 * added libc directory. The current version of LibC contains string
6371 functions, ctype functions and macros and some functions of the
6372 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
6373 be extensively tested in the future. Standard disclaimer here.
6374 Library is not automatically build yet. But one can build it by
6375 invoking 'make' inside the libc directory.
6376 * added ADC library under libio. Preliminary version yet.
6378 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
6379 * src/pic16/gen.c (aopForRemat): asmop size is filled by
6380 aopForRemat() now and not by pic16_aopOp(),
6381 * (pic16_popGetTempReg): removed warning messgae when allocating
6382 temporary registers, its a buggy feature and will be removed,
6383 * (pic16_popGet): set register instance field in AOP_CRY,
6384 * (pic16_outBitC): fixed for results in size greater than 1,
6385 * (genUminusFloat): fixed for pic16, ported code from mcs51,
6386 * (pic16_storeForReturn): optimized return of 0,
6387 * (genCmp): experimental code for new genCmp which uses PIC18's
6388 special compare&skip instructions. Initial tests fail some times
6389 with variables grater than 1 byte in size, so new code is disabled,
6390 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
6392 * (genCast): began a fix to optimize the casting of a bit to another
6393 bit, now assigning a bitfield to another bitfield will fail, sorry,
6394 * src/pic16/main.c: disabled the use of lr-support feature,
6395 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
6396 * added some function prototypes, added function _debugf prototype,
6397 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
6398 bits with offset (case PO_GPR_BIT),
6399 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
6401 * (isBankInstruction): modified to return 0 for no banking instruction,
6402 and 1 for banking instruction,
6403 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
6404 caused stop processing pCodes after a inline assembly block,
6405 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
6406 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
6407 registers when it shouldn't,
6408 * src/pic16/ralloc.c (allocReg): add preliminary support for
6409 supporting a limited set of temporary registers,
6411 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6413 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
6414 genDataPointerSet): ensure assignments always copy in MSB to LSB
6416 (loadRegFromAop): recognize CLRH optimization,
6417 (genFunction): optimize RECEIVE iCodes in reentrant functions
6419 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6421 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
6422 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
6424 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
6425 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
6426 contiguous with data
6428 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6430 * device/lib/_gptrget.c (_gptrget),
6431 * device/lib/_gptrgetc.c (_gptrgetc),
6432 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
6433 instead of sjmp to ret
6434 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
6435 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
6437 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6439 * .version: bumped version to 2.4.7
6440 * device/lib/_gptrget.c (_gptrget): is now _naked
6441 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
6442 * device/lib/_gptrput.c (_gptrput): is now _naked
6443 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
6444 (createFunction): fixed xstack
6445 * src/SDCCglue.c (emitMaps): set allocation required for bit area
6446 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
6448 (geniCodeCritical): store original interrupt state in an iTemp bit
6449 var unless stack-auto
6450 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
6451 * src/SDCCmain.c (setIncludePath): added include/target to search path
6452 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
6453 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
6455 (processFuncArgs): put bit vars in bit area
6456 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
6457 unsaveRBank): fixed xstack,
6458 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
6459 (genFunction, genEndFunction): fixed xstack,
6460 (genAssign): optimization don't walk backwards through mem
6461 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
6462 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
6463 * support/regression/Makefile: also make library (for stack-auto) when
6464 making "all" and added "test-mcs51-xstack-auto"
6465 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
6466 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
6467 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
6468 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
6469 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
6470 make-library by MAKE_LIBRARY
6471 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
6472 regression tests for xstack
6473 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
6474 * support/regression/tests/critical.c: test for critical on mcs51
6476 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6478 * support/regression/ports/ucz80/spec.mk: use include and lib files from
6479 built version of sdcc instead of installed version
6481 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6483 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
6484 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
6486 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
6487 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
6488 WARNING: remove device/lib/build/z80/printf.o by hand when
6489 updating from previous build!
6490 * device/lib/z80/printf.c: updated comment
6491 * support/regression/tests/bug1057979.c: test all ports now
6492 * support/regression/tests/bug1065458.c: file added
6494 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6496 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
6497 *_start and *_end symbols for static functions
6499 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
6501 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
6502 and search crt0.o in all library paths,
6503 (setIncludePath): proper handling of --nostdinc,
6504 (setLibPath): proper handling of --nostdlib
6505 * support/regression/Makefile,
6506 * support/regression/ports/ds390/spec.mk,
6507 * support/regression/ports/gbz80/spec.mk,
6508 * support/regression/ports/hc08/spec.mk,
6509 * support/regression/ports/mcs51/spec.mk,
6510 * support/regression/ports/mcs51-large/spec.mk,
6511 * support/regression/ports/mcs51-stack-auto/spec.mk,
6512 * support/regression/ports/z80/spec.mk: use include and lib files from
6513 built version of sdcc instead of installed version
6514 * doc/sdccman.lyx: fixed typo in --nostdinc
6516 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
6521 * src/pic/gen.c : added support to generate code for struct bit fields.
6523 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6525 * as/xa51/xa_version.h,
6526 * device/include/errno.h,
6527 * device/include/regc515c.h,
6528 * device/lib/_itoa.c,
6529 * device/lib/_ltoa.c,
6530 * device/lib/ser_ir_cts_rts.c,
6531 * sim/ucsim/xa.src/glob.cc,
6532 * sim/ucsim/xa.src/inst_gen.cc,
6533 * sim/ucsim/xa.src/xa_bit.cc,
6534 * sim/ucsim/xa.src/xa_sfr.cc,
6535 * sim/ucsim/z80.src/inst_dd.cc,
6536 * sim/ucsim/z80.src/inst_fdcb.cc,
6537 * support/scripts/keil2sdcc.pl,
6538 * src/pic16/pic16.dsp,
6539 * src/pic16/pic16a.dsp: corrected cvs line endings
6540 * device/lib/printf_large.c: fixed bug 1057979
6541 * src/pic16/gen.c: fixed non-C standard code
6542 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
6543 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
6544 * support/regression/ports/mcs51/support.c: reload T1 asap
6545 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
6546 pdata use and clear idata startup behaviour
6547 * support/regression/tests/bug1057979.c: added
6549 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
6551 * device/examples/ds390/ow390/ad26.h,
6552 * device/examples/ds390/ow390/cnt1d.h,
6553 * device/examples/ds390/ow390/crcutil.c,
6554 * device/examples/ds390/ow390/ownet.h,
6555 * device/examples/ds390/ow390/owsesu.c,
6556 * device/examples/ds390/ow390/swt12.h,
6557 * device/examples/ds390/ow390/swtoper.c,
6558 * device/examples/ds390/ow390/temp10.h,
6559 * device/examples/ds390/ow390/thermodl.c,
6560 * device/examples/ds390/tinitalk/tinitalk.dsp,
6561 * device/examples/ds390/tinitalk/tinitalk.dsw,
6562 * device/examples/mcs51/clock/hw.h,
6563 * device/examples/mcs51/simple2/go.bat,
6564 * device/examples/serialcomm/windows/serial.h,
6565 * device/examples/xa51/dummy.c,
6566 * device/examples/xa51/hello.c,
6567 * device/include/80c51xa.h,
6568 * device/include/at89x051.h: corrected cvs line endings
6570 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
6572 * src/pic16/main.c (options): added command line --gstack, to trace
6573 stack over/under flows,
6574 * added pragma 'wparam' to allow passing first byte of function
6575 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
6576 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
6577 call to __gstack_test function and sets up the symbol as extern,
6578 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
6579 * popaop): added call to pic16_testStackOverflow,
6580 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
6582 * (genCall, genPcall): now all parameters are passed via stack
6583 except in functions that are pass to wparam pragma in which WREG is
6585 * (genPcall): REENTRANT flag is checked to see if variable prototype
6586 contains reentrant keyword, don't call a non-reentrant function, via
6587 a reentrant function pointer or vice versa, functions are never
6589 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
6591 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
6592 SIGSEGV when accessing a NULL register stucture,
6593 * (pic16_printGPointerType): modified to handle UPPER modifier for
6594 function initializers, changed prototype of function to simpler one,
6595 * (pic16_printIvalFuncPtr): check to see if function is already
6596 added in externs list,
6597 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
6598 optimized a move from W to SFR with a move to the same register
6600 * device/lib/pic16/debug: NEW directory, contains debug features
6601 which are enabled when linking with libdebug.lib, currently command
6602 line option --gstack enables stack pointer tracing for over/under
6603 flow, corresponding sources are in debug/gstack
6605 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
6607 * doc/sdccman.lyx: updated SDCC version,
6608 * (PIC16 port): update list of command line options,
6609 * src/pic16/device.h (structure pic16_options_t): added field gstack
6610 to enable stack overflow tracing on push/pops,
6611 * src/pic16/device.c (statistics structure): added statistics
6613 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
6614 pic16_dump_int_registers): increase statistics counters for each
6615 * variable which is encountered
6616 * (pic16_dump_usection): emit each .udata variable to its own udata
6618 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
6619 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
6620 parameters via stack, otherwise use old scheme,
6621 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
6622 assembler output file,
6623 * src/pic16/main.c: added command line options --gstack to enable
6624 push/pop tracing for stack overflow,
6625 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
6626 instructions): added size of each instruction,
6627 * (pic16_countInstruction): estimate size of instructions in
6628 the_pFile list, inline assembly blocks are not counted,
6629 * (pic16_FixRegisterBanking): trace previous register usage, when
6630 banksel optimizations is greater than 0, don't emit a redudant
6633 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
6635 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
6636 * src/pic16/ralloc.c : applied same fix for pic16.
6637 * src/pic/gen.c : tidied it up a little.
6639 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6641 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
6642 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
6644 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6646 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
6648 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6650 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
6651 non-reentrant function __modsint in the interrupt function (thus
6652 corrupting math operations during serial I/O)
6653 * device/lib/ser_ir.c: as above, changed buffersize
6654 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
6656 * doc/Makefile: added option -t for rsync
6658 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6660 * src/SDCCast.h (struct ast),
6661 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
6663 2004-10-20 Borut Razem <borut.razem AT siol.net>
6665 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
6668 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
6670 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
6672 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
6673 support functions to replace long sequences of MOVFF's from access
6674 bank registers to stack and vice versa,
6675 * src/pic16/device.h: added new field opt_flags, where optimization
6676 flags can be set to enable certain features,
6677 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
6678 * pBlock, (genFunction, genEndFunction): surroung loop for
6679 saving/loading used registers in stack with PC_INFO pCodes,
6680 INF_LREGS. Code in between can then be optimized by pCode optimizer
6681 to support function calls,
6682 * (genDataPointerSet): fixed bug which loaded float fields in
6683 structures with corrupt data,
6684 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
6685 in a standard way debug info on stderr. Feature used for developing
6687 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
6688 obsolete chunks of code,
6689 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
6690 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
6691 * pic16/src/pcode.c (pic16_newpCodeInfo,
6692 * (pic16_newpCodeOpLocalRegs),
6693 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
6695 * (pic16_pCodeConstString): printing of the initial value of a
6696 symbol as a comment is inhibited since parsing was already done by
6697 copyStr and output is corrupt,
6698 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
6700 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6702 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
6704 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
6706 * as/mcs51/lkarea.c: removed old K&R style,
6707 (lnksect): changed check on boundary error,
6708 (lnksect2): changed check on boundary error,
6709 (lnksect2): extend XSTK to end of page if size = 1
6710 * as/mcs51/lkmain.c: removed old K&R style,
6711 (Areas51): create l_IRAM symbol
6712 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
6713 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
6714 model-mcs51-stack-auto, added model-mcs51-xstack-auto
6715 * device/lib/_mullong.c: added version to be compiled with xstack
6716 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
6717 * device/lib/mcs51/crtxclear.asm: clear pdata as well
6718 * device/lib/mcs51/crtxstack.asm: fixed comment
6719 * src/SDCCglue.c: maxInterrupts defaults to 0,
6720 (emitMaps): added pdata,
6721 (createInterruptVect): (re)moved default,
6722 (glue): added pdata,
6723 (glue): moved __start__xstack to XSTK with default size 1
6724 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
6725 and options.float_rent when options.stackAuto is set,
6726 (linkEdit): only write XDATA_NAME if provided on command line
6728 * src/SDCCmem.c: added pdata
6729 * src/port.h: added pdata_name to PORT
6730 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
6731 (saveRegisters, unsaveRegisters): removed usage of B,
6732 (genMinus): fixed accumulator clash,
6733 (genJumpTab): added comment, this needs another look
6734 * src/mcs51/gen.c: added check for "B in use" paranoia,
6735 added pushB() and popB()
6736 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
6745 * src/z80/main.c: (reset_regparms) made void parameter explicit and
6746 added PSEG (PAG,XDATA) or NULL to port specifier
6747 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
6748 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
6749 (_mcs51_genInitStartup): removed __start__xstack equ,
6750 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
6751 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
6752 * src/z80/gen.c (_rleAppend): fixed warnings
6753 * support/regression/tests/zeropad.c: added pdata test
6754 * .version: bumped to 2.4.6
6756 2004-10-17 Borut Razem <borut.razem AT siol.net>
6758 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
6759 as a part of nightly build
6761 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
6763 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
6764 WREG holds the first byte function parameters,
6765 * (aopForSym): take special case for symbols which are in FARSPACE
6766 but in CODESPACE too,
6767 * (assignResultValue): modified to take into account _G.useWreg,
6768 * (genCall): don't use wreg for parameter passing when function is
6769 declared as reentrant, too, added optimization INCF to stack
6770 pointer when stack parameter count is 1,
6771 * (genFunction, genEndFunction): refurnished and fixed to not using
6772 wreg for passing parameters when function has varargs or is
6773 reentrant, fixed bug with symbol name compare for generating
6774 functions in absolute address,
6775 * (pic16_storeForReturn): refurnished,
6776 * (genCmp): began writing a new version of the function, not ready
6777 yet, therefore it is disabled,
6778 * (genAssign): do not read code memory when assigning a function to
6780 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
6781 array of characters, not pointer,
6782 * (pic16initialComments): in debug mode emit an .ident directive for
6784 * (_process_pragma): emit a new warning type (internal to pic16)
6785 when setting stack to default length, emit a similar warning when
6786 placing a function at absolute address and address is not word aligned
6787 * (_pic16_parseOptions): added 'return TRUE' statement,
6788 * (_pic16_linkEdit): if compiling a source, then add the source's
6789 file object, first in the list of objects to link,
6791 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
6793 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
6794 * src/pic/main.c : removed VC warning.
6795 * src/pic/gen.c : changed comment.
6797 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
6799 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
6800 reference to a deprecated symbol _GPTRREG was causing failure to
6801 link. Thanks G. M. Gallant for the info.
6803 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
6805 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
6806 comments for Bugs item #954788.
6808 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
6810 * src/pic16/device.c (pic16_dump_gsection,
6811 * pic16_groupRegistersInSection): handle symbols declared to be in
6812 access bank differently,
6813 * src/pic16/gen.c (struct _G): added field resDirect,
6814 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
6815 send values read from stack directly to result and don't allocate
6817 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
6819 * (pic16_sameRegsOfs): NEW,
6820 * (freeAsmop): if _G.resDirect is set then do not mark registers as
6821 free because they were not allocated from temporary pool,
6822 * pic16_popRegFromString): workaround to fix a problem with
6823 allocating variables twice or never,
6824 * (genGenPointerGet): using PRODL instead of FSR0H,
6825 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
6827 * (genAssign): take advantage of the _G.resDirect flag,
6828 * (genCast): around line 11844, use mov2f instead of directly
6829 MOVFF'ing between operands to account for literal values,
6830 * src/pic16/genutils.c: some new debug functions for gpsim have been
6832 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
6833 float with integer part only,
6834 * src/pic16/main.c (_process_pragma): handle pragma udata access to
6835 place variables in access bank
6836 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
6837 updated sources to reflect recent changes in gen.c
6839 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
6841 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
6842 sources that searched for headers in installation path, now the
6843 device/include/pic16 is used,
6844 * src/pic16/glue.c (pic16glue),
6845 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
6846 .line directives if not in debug mode, this suppresses assembler's
6847 warnings for ignored directives
6849 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6851 * src/port.h: made reset_regparms prototype void parameter explicit.
6852 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
6853 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
6854 * doc/sdccman.lyx: documented warning disabling and how to use
6855 printf_large to make it print floats.
6856 * device/include/stdbool.h: NEW
6857 * device/lib/_atof.c,
6858 * device/lib/_divuint.c,
6859 * device/lib/_divulong.c,
6860 * device/lib/expf.c,
6861 * device/lib/printf_large.c,
6862 * device/lib/sincosf.c,
6863 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
6864 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
6865 a completely reentrant lib.
6867 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
6869 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
6870 * device/include/pic16/stdio.h: fixed bug with colon
6872 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
6874 * device/include/pic16/stdio.h,
6875 * device/include/pic16/stdlib.h,
6876 * device/include/pic16/math.h: NEW
6877 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
6878 declared as _naked to reduce overhead
6879 * device/lib/Makefile.in (target port-specific-objects-pic16):
6880 changed * to *.* so to ignore the CVS directory,
6881 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
6882 stacked variables back in stack,
6883 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
6886 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
6888 * .version: bumped version number to 2.4.5
6889 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
6890 * support/Util/SDCCerr.c (messages structure): added entry for
6893 Large cumulative patch for pic16 port and libraries.
6894 * device/include/pic16/sdcc-lib.h,
6895 * device/include/pic16/stdarg.h,
6896 * device/include/asm/pic16/features.h,
6897 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
6898 * device/include/pic16/float.h: changes reentrant keyword with
6899 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
6900 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
6901 updated target build-libraries to include objects from gptr,
6902 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
6903 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
6904 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
6905 all function headings,
6906 * src/SDCCmain.c: added global parameter userIncDirsSet,
6907 * (parseCmdLine): when option -I is encountered add directory to
6909 * src/version.awk: added space between control and long,
6910 * src/pic16/NOTES: added some notes for the port,
6911 * src/pic16/gen.c: added prototype for mov2fp function,
6912 * (fReturnpic16[]): properly named return value registers,
6913 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
6914 * (aopForSym): added code to handle symbols with onStack flag set,
6915 symbols onStack are allocated PTRSIZE bytes,
6916 * (aopFreeAsmop): handles special case where asmops are stack objects,
6917 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
6918 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
6919 added argument lock to trace flaws in allocating temporary registers
6920 when developing port,
6921 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
6922 * (pic16_popRegFromString): reenabled allocating a direct register
6924 * (assignResultValue): various beautifications,
6925 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
6926 referenced function argument,
6927 * (genIpush): reenabled to allow stacked arguments, handles only
6928 ic->parmPush iCodes,
6929 * (genCall, genPcall): major changes to allow for variable argument
6930 functions, fixed a bug with falsely restoring stack pointer after
6931 returning from call,
6932 * (genFunction): pending code for critical function,
6933 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
6934 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
6935 * (genNearPointerGet): fixed bug with indirect reading, was always
6937 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
6939 * (genAddrOf): rewrote code to take address of a stacked function parameter
6940 * (genCast): fixed casting to generic pointer type,
6941 * src/pic16/gen.h: added AOP_STA,
6942 * (struct asmop): added field stk,
6943 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
6944 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
6945 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
6946 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
6947 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
6948 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
6950 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
6952 * (pic16_port structure): generic pointer size is set to 3,
6953 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
6954 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
6956 * src/pic16/ralloc.c (allocReg): prevent allocating register when
6957 operand is an iTemp,
6959 2004-09-24 Martin Helmling <mh AT octo-soft.de>
6961 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
6962 * debugger/mcs51/simi.c: addapt new syntax of s51
6964 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
6966 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
6967 * src/pic16/pcode.c: commented out some calls to free() in order to
6970 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6973 * src/SDCCicode.c (isiCodeInFunctionCall),
6974 * src/avr/ralloc.c (selectSpil),
6975 * src/pic/ralloc.c (selectSpil),
6976 * src/pic16/ralloc.c (selectSpil),
6977 * src/ds390/ralloc.c (selectSpil),
6978 * src/hc08/ralloc.c (selectSpil),
6979 * src/xa51/ralloc.c (selectSpil),
6980 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
6981 stack in the middle of a function call sequence (fixes bug #1020268)
6982 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
6983 costs associated with the minimum switch case.
6985 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6987 * src/SDCC.lex: fixed bug #1030549
6989 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6991 * src/SDCCcse.h (struct cseDef),
6992 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
6993 over a function call if the CSE is derived from a symbol whose
6994 address has been taken (fixes bug #1029883)
6995 * support/regression/tests/bug-1029883: a new regression test for
6998 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7000 * src/hc08/gen.c (emitinline): fixed bug #1029778
7001 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7002 to a cast object is no longer a syntax error ("fixes" bug #1030006,
7003 and starts toward RFE #905167)
7005 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7007 * src/pic16/gen.c (mov2f): New function to move an operand to
7008 another without considering if it is a literal or a register,
7009 * (pic16_sameRegs): don't check if they are both AOP_REG,
7010 * (AccRsh): removed andmask=0 lines,
7011 * (genLeftShift): duplicated to be improved in future versions,
7012 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7013 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7014 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7015 * (pic16initMnemonics): added initialization for POC_INFSNZW,
7016 * (insertBankSwitch): fixed inserting banksel directives algorithm
7017 for instructions that follow a skip instruction, this fixes a report
7018 for broken subtraction code generation,
7019 * src/pic16/ralloc.c (deassignLRs): do not free register if current
7020 iCode is a left op, just in case result and right share the same
7023 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7026 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7028 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7029 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7030 on 2004-09-12; it was buggy
7032 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7034 * src/SDCCsymt.h: removed RESULT_CHECK
7039 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7041 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7043 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7044 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7045 configuration values no more rejected by compiler, they are assigned
7046 to configuration registers with a warning message instead,
7047 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7048 the for-loop so last conf register is emitted too,
7049 * (_pic16_initPaths): link library libsdcc.lib by default,
7050 * (_hasNativeMulFor): modified test for multiplication according to
7051 Raphael Neider's remarks. Integer multiplication is also done with
7053 * device/include/pic16/pic18fregs.h: corrected type error in while
7054 testing and including 18f6720 header file
7056 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7058 * src/pic16/device.h (pic16_options): removed field use_crt,
7059 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7060 until an optimization to handle single bits is added,
7061 * (pic16_loadFSR0): moved before genUnpackBits,
7062 * (genAnd): some white lines removed,
7063 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7064 leave_reset flags in pic16_options when using crt modules,
7066 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7068 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7069 for bugs 898889 & 979599. Also used some safer print instructions.
7071 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7073 * src/pic16/device.h (pic16_options_t): added field use_crt,
7075 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7076 catch a probable future bug,
7077 * src/pic16/gen.c: aopIdx function commented out,
7078 * (genAssign): commented out old code which used aopIdx,
7079 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7080 code, added if conditionals to take into account the --use-crt
7081 command line options,
7082 * src/pic16/main.c (pic16_optionsTable): added new command line
7083 options, --use-crt= and --no-crt,
7084 * (_pic16_linkEdit): now the proper crt object is added in the
7085 linker command line except than when --no-crt is specified,
7086 * src/pic16/pcode.c,
7087 * src/pic16/pcode.h: added some structures and functions for a new
7088 optimization scheme to compansate for instruction overhead between
7089 same iCodes, this scheme is currently under development and is not
7091 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7093 * device/lib/pic16/startup/crt0i.c,
7094 * device/lib/pic16/startup/crt0iz.c: added global char variable
7095 __uflags to force the generation of an idata section
7097 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7100 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7101 * doc/sdccman.lyx: updated sdcc version to 2.4.4
7103 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7105 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7106 Frieder) and clarified the default code optimization mode
7108 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7110 * src/SDCC.lex (doPragma, process_pragma),
7111 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7112 "opt_code_size", and "opt_code_balanced"
7113 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7114 regrouped options by category, added support for category headers
7115 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7116 and "--opt-code-size"
7117 * doc/sdccman.lyx: documented these new options and pragmas
7118 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7119 preference into account
7121 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7123 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7124 geniCodePreDec): Fixed bug 904237 by generating a warning
7126 * src/SDCCerr.c: added warning W_SIZEOF_VOID
7128 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7130 * src/pic/device.c : When no max ram set validate full memory range.
7132 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7134 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7136 * device/lib/_gptrget.c,
7137 * device/lib/_gptrput.c: updated comment
7138 * device/lib/calloc.c,
7139 * device/lib/free.c,
7140 * device/lib/malloc.c,
7141 * device/lib/realloc.c: added LGPL, made them reentrant-safe
7142 * src/SDCCcse.c (cseBBlock),
7143 * src/SDCCicode.c (printOperand, geniCodeArray),
7144 * src/SDCCicode.h (struct operand): fixed bug 868103
7145 * support/regression/tests/bug-868103.c: added
7146 * src/SDCCast.c (searchLitOp),
7147 * src/SDCCcse.h (struct cseDef),
7148 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7149 * src/SDCCicode.h (struct operand),
7150 * src/SDCCsymt.h (struct sym_link),
7151 * src/avr/gen.c (hasInc),
7152 * src/ds390/gen.c (hasInc),
7153 * src/hc08/gen.c (genPlusIncr, hasInc),
7154 * src/mcs51/gen.c (hasInc),
7155 * src/pic16/glue.c (pic16_printIvalChar),
7156 * src/pic16/ralloc.c (regWithIdx),
7157 * src/xa51/gen.c (hasInc) : removed warnings
7158 * src/SDCCast.c (createBlock): added comment ???
7159 * src/hc08/ralloc.c: updated comments
7161 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7163 * doc/sdccman.lyx: updated section on switch statements, added
7164 section about semaphore locking
7165 * doc/Makefile: added option -info for latex2html
7166 * device/lib/_gptrget.c,
7167 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7169 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7173 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7174 maxram is less than 0x100.
7176 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7178 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7180 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7191 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7192 a jump table is the best form for a switch statement, including
7193 automatic insertion of missing cases to make the case range
7194 continuous. Developed in collaboration with Frieder Ferlemann.
7196 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7198 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7199 accumulator result if it needs sign extension
7201 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7203 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7205 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7207 * device/lib/gbz80/printf.c,
7208 * device/lib/z80/printf.c: removed define for NULL
7210 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7212 * as/xa51/xa_link.c,
7213 * device/examples/ds390/ow390/ad26.c,
7214 * device/examples/ds390/ow390/cnt1d.c,
7215 * device/examples/ds390/ow390/counter.c,
7216 * device/examples/ds390/ow390/ds2480.h,
7217 * device/examples/ds390/ow390/ds2480ut.c,
7218 * device/examples/ds390/ow390/findtype.c,
7219 * device/examples/ds390/ow390/gethumd.c,
7220 * device/examples/ds390/ow390/owllu.c,
7221 * device/examples/ds390/ow390/ownetu.c,
7222 * device/examples/ds390/ow390/swt12.c,
7223 * device/examples/ds390/ow390/swtloop.c,
7224 * device/examples/ds390/ow390/temp.c,
7225 * device/examples/ds390/ow390/temp10.c,
7226 * device/examples/ds390/ow390/thermo21.c,
7227 * device/examples/ds390/ow390/tinilnk.c,
7228 * device/examples/ds390/ow390/tstfind.c,
7229 * device/examples/serialcomm/windows/serial.cpp,
7230 * device/examples/serialcomm/windows/test_serialcomm.cpp,
7231 * device/include/reg51.h: fixed line endings for cvs
7233 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7235 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7236 packRegsForAccUse, packRegisters): new accumulator register
7238 * support/regression/ports/hc08/support.c (_putchar): suppress
7239 warning of unused variable
7240 * src/SDCCicode.c: added SWAP entry to codeTable
7242 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7244 * device/lib/sprintf.c: forgot to add this file before previous commit
7246 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7248 * src/pic16/gen.c (genPackBits): added operand right in function
7249 parameters, load result directly if p_type is POINTER (that is
7250 called by genNearPointerSet)
7251 * (genUnPackBits): added operand left in function parameters,
7252 * (genNearPointerGet, genNearPointerSet): prevent the loading of
7253 FSR0 if accessing bitfields,
7255 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7257 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7258 _print_format; updated printf, sprintf, vsprintf
7259 * device/include/asm/default/features.h: corrected comment/define
7260 * device/lib/Makefile.in: added sprintf.c
7261 * device/lib/libsdcc.lib: added sprintf module
7262 * device/lib/printf_large.c,
7263 * device/lib/vprintf.c,
7264 * device/lib/sprintf.c: totally refactored printf_large and vprintf
7266 * support/regression/Makefile: changed ALL_PORTS into a usefull default
7267 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7268 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7270 * support/regression/tests/zeropad.c: define idata as data for hc08
7272 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7274 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7275 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7276 labels are referenced at least once (even if a reference is not found)
7277 * src/hc08/gen.c (emitcode): set isComment flag for comments
7278 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7279 loads), rules 6a..6b (optimize jumps to return)
7281 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7283 * device/lib/acosf.c (acosf),
7284 * device/lib/asinf.c (asinf),
7285 * device/lib/atanf.c (atanf),
7286 * device/lib/ceilf.c (ceilf),
7287 * device/lib/cosf.c (cosf),
7288 * device/lib/coshf.c (coshf),
7289 * device/lib/cotf.c (cotf),
7290 * device/lib/fabsf.c (fabsf),
7291 * device/lib/floorf.c (floorf),
7292 * device/lib/log10f.c (log10f),
7293 * device/lib/logf.c (logf),
7294 * device/lib/sinf.c (sinf),
7295 * device/lib/sinhf.c (sinhf),
7296 * device/lib/sqrtf.c (sqrtf),
7297 * device/lib/tanf.c (tanf),
7298 * device/lib/tanhf.c (tanhf),
7299 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
7300 replaced all instances of "reentrant" in the library functions
7301 defined in math.h with this macro.
7302 * support/regression/tests/float_trans.c: reenabled test for hc08
7304 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7306 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
7309 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7311 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
7312 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
7313 multi-byte volatile operands are used
7314 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
7315 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
7316 initialization to area GSINIT0 so that it would always precede
7317 any static initializers in GSINIT
7318 * support/regression/tests/zeropad.c: fixed idata define for hc08
7319 * support/regression/tests/bug-927659.c,
7320 * support/regression/tests/float_trans.c: disabled tests for hc08
7321 pending missing library routines
7322 * .version: increased version number to 2.4.4 - hc08 port now passes
7326 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
7328 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
7329 * Makefile.common.in,
7331 * as/hc08/Makefile.in,
7332 * as/mcs51/Makefile.in,
7333 * as/z80/Makefile.in,
7334 * debugger/mcs51/Makefile.in,
7335 * device/include/Makefile.in,
7336 * device/lib/Makefile.in,
7339 * link/z80/Makefile.in,
7340 * packihx/Makefile.in,
7341 * sim/ucsim/main_in.mk,
7342 * sim/ucsim/avr.src/Makefile.in,
7343 * sim/ucsim/doc/Makefile.in,
7344 * sim/ucsim/gui.src/serio.src/Makefile.in,
7345 * sim/ucsim/hc08.src/Makefile.in,
7346 * sim/ucsim/s51.src/Makefile.in,
7347 * sim/ucsim/xa.src/Makefile.in,
7348 * sim/ucsim/z80.src/Makefile.in,
7350 * support/cpp2/Makefile.in,
7351 * support/librarian/Makefile,
7352 * support/makebin/Makefile: added DESTDIR to the install path proposed
7353 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
7354 * doc/sdccman.lyx: added DESTDIR documentation
7356 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
7358 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
7359 instruction for interrupt handlers, use fast returns when returning
7360 from high priority interrupts
7362 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7364 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
7366 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
7367 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
7368 bugs, ported much of Bernhard's code from mcs51
7369 * src/mcs51/gen.c (genSend),
7370 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
7371 than one when calling a reentrant function
7372 * device/lib/_mullong.c: defined an alternate struct layout for big
7375 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7377 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
7380 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7382 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
7383 are sane and complete before asking the port its prefered parameter
7384 passing method (fixes bug #1017633)
7385 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
7388 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7390 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
7391 problem in bitfields >= 8 bits.
7393 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7395 * src/SDCCsymt.c: undid changes that were not meant to be committed
7397 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7399 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
7401 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7403 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
7404 copied and wrong bit got inverted
7406 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7408 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
7409 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
7410 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
7411 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
7412 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
7413 assignments to bitfields at known addresses
7414 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
7415 reads from bitfields at known addresses
7416 * src/hc08/ralloc.c (packRegisters),
7417 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
7418 genhc08Code): optimize pointer get values used as conditionals
7419 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
7422 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7424 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
7425 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
7426 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
7429 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7431 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
7433 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7435 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
7438 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
7440 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
7442 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7444 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
7447 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7449 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
7451 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7453 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
7454 cases use more compact code.
7456 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
7458 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
7460 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7462 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
7464 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7467 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
7468 parameter of changePointer() from symbol* to sym_link*
7469 * src/SDCCast.c (decorateType): call changePointer() for CAST op
7470 * src/SDCCsymt.c (compareType): void* type is castable to other
7471 pointers, but not necesarily an exact match.
7472 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
7473 is no longer blindly treated as an exact match.
7474 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
7476 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
7478 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
7480 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
7485 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
7487 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
7491 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
7493 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7495 * src/mcs51/gen.c (emitcode): fixed bug #992819
7497 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
7499 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
7500 there's no need to make it worse
7502 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7504 * src/mcs51/ralloc.c (deassignLR),
7505 * src/ds390/ralloc.c (deassignLR),
7506 * src/hc08/ralloc.c (deassignLR),
7507 * src/z80/ralloc.c (deassignLR),
7508 * src/pic/ralloc.c (deassignLR),
7509 * src/pic16/ralloc.c (deassignLR),
7510 * src/avr/ralloc.c (deassignLR),
7511 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
7512 rlivePoint): fixed another part of bug #971834
7514 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7516 * src/z80/main.c: enabled "critical" keyword
7517 * src/z80/mappings.i,
7518 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
7519 functions (fixes bug #979646)
7520 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
7522 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7524 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
7527 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
7529 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
7530 doesn't disable too much optimizations
7532 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7534 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
7536 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
7538 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
7540 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7542 * src/pic/gen.c tidied up tabs
7543 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
7544 * src/pic/main.c tidied up tabs
7545 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
7546 * src/pic/pcoderegs.c tidied up tabs
7547 * src/pic/ralloc.c tidied up tabs
7549 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
7551 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
7552 to S_FIXED for pic16 port and when symbol is not in level 0,
7553 allocate for S_REGISTER storage class and pic16 port, too,
7554 * src/pic16/device.h: prototype for checkSym,
7555 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
7556 * (pic16_assignConfigWordValue): test the value and the mask to
7557 validate that the value is suitable for the configuration word,
7558 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
7559 collect extern declared symbols, don't emit symbol twice, check
7560 first if symbol is in publics set first,
7561 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
7562 * added command line '--fstack' which enables an experimental
7563 feature for stack access, too buggy to be used yet...
7564 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
7565 * (pic16_allocDirReg): when register has storage class S_REGISTER
7566 allocate in pic16_dynAccessRegs,
7567 * device/include/pic16/pic18f????.h: modified configuration word
7568 naming convention, words started as CONFIG0H but should be CONFIG1H
7570 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7572 * device/include/mcs51reg.h: fixed bug 970993
7574 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
7576 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
7577 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
7578 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
7579 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
7580 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
7581 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
7582 error/warning numbers,
7583 added function setWarningDisabled()
7584 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
7585 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
7586 _memcmp.c _memmove.c calloc.c realloc.c free.c
7587 * support/regression/tests/malloc.c: added tests for new functionality
7588 * support/regression/tests/zeropad.c: added tests for truncated initializers
7589 and initialized char arrays starting with '\x0'
7590 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
7592 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
7594 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
7596 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7598 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
7599 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
7600 peephole 177.e. Thanks to anonymous
7602 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
7604 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
7605 function isn't used in the source but referenced as a
7606 variable initializer then declare it as extern in .asm file
7608 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
7610 * .version: increased version number to 2.4.3
7612 Adding version extension according to ChangeLog CVS revision
7613 * src/Makefile.in (target all): added dependency 'version.h'
7614 * (rule version.h): added rule to create version.h from ChangeLog,
7615 * (rule dep): added dependency version.h,
7616 * src/version.awk: AWK script to create version.h
7617 * src/SDCCdwarf2.c (dwWriteModule),
7618 * src/SDCCglue.c (initialComments),
7619 * src/SDCCmain.c (printVersionInfo): modified to write after
7620 version string the version extension number,
7621 * src/SDCCutil.c: included "version.h"
7622 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
7624 * src/SDCCutil.h: added prototype for getBuildNumber
7626 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
7627 includeDirsSet, too,
7628 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
7629 const char [] is found in function prototype...
7631 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
7632 moving to WREG with source is already in WREG,
7633 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
7634 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
7635 * (aopForSym): stack'ed symbols are partially supported, added
7636 if-clause to support symbols in FARSPACE,
7637 * (sameRegs): added test for AOP_ACC to see if registers are same,
7638 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
7639 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
7640 * (pic16_popRegFromString): will not allocate a new register if it
7641 doesn't find one by name, bug may have introduced...
7642 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
7643 * (genIpush): revived to use pic16 port's stack,
7644 * (genAddrOf): added incomplete case for stack'ed operand,
7645 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
7646 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
7647 can handle multibyte operands,
7648 * src/pic16/glue.c (pic16_printIval*): some debug info added,
7649 * (pic16initialComments): added message for MPLAB compatibility
7651 * src/pic16/main.h: prototype for pic16_mplab_comp,
7652 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
7653 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
7654 * (_pic16_linkEdit): NEW, handles link stage, transferred here
7655 because of increased complexity of procedure,
7656 * (_process_pragma): stack pragma changed to format 'stack pos len',
7657 emit symbol '_stack_end' to conform with gplink,
7658 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
7659 to search for register,
7660 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
7662 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
7663 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
7664 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7665 case for PO_GPR_REGISTER,
7666 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
7667 dies, the new era is ahead !...
7668 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
7669 pic16_dynInternalRegs,
7670 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
7671 * (pic16_allocDirReg): minor optimizations and bug fixes,
7672 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
7674 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
7675 load stack and frame pointer with address of 'stack_end' symbol
7677 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
7679 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
7680 without source code but only variable initializers
7682 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
7684 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
7685 external are not declared as extern to reduce overhead while linking
7687 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
7689 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
7691 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
7693 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
7694 Yee Keat for the patch
7695 * src/SDCCast.c (decorateType): fixed bug #979599
7696 * src/ds390/gen.h: removed local fReturnSizeDS390
7697 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
7698 * src/ds390/gen.c (genAnd, genOr, genXor),
7699 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
7701 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
7703 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
7704 add relFilesSet to $3, manipulate $2 to handle linking of object
7705 files without source files in command line,
7706 * device/include/pic16 (all headers): added ID location macros,
7707 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
7708 entries for ID location bytes,
7709 * (pic16_assignIdByteValue): NEW,
7710 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
7711 added field dumpcalltree to pic16_options_t,
7712 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
7713 is used instead of pic16_Gstack_base_addr, check if (ifx) before
7714 emitting rFalseIfx label after check_carry label,
7715 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
7716 pic16_emitDIRegs), NEW
7717 * (pic16glue): dump .calltree file when option --calltree found,
7718 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
7719 * (_pic16_genAssemblerPreamble): emit ID locations after
7720 configuration registers,
7721 * (pic16_linkCmd): modifications of the link command,
7722 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
7723 * (pic16_pCodeInitRegisters): don't init stack registers,
7724 * (pic16_findPrevInstruction): fixed bug,
7725 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
7726 bug with immediate registers,
7727 * (buildCallTree): traces stack push and pop,
7728 * (pct2): dump also stack usage for each function,
7729 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
7730 * (pic16_allocDirReg): various modifications,
7731 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
7734 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
7736 * src/pic16/pcode.c: removed buggy double colon
7738 2004-07-01 Borut Razem <borut.razem AT siol.net>
7740 * support/scripts/sdcc.nsi: added include/pic16 to setup
7742 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
7744 * device/lib/Makefile.in: fixed bug in target objects-pic16,
7745 * device/lib/pic16/Makefile: prefixed with dash (-) command under
7747 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
7748 specific command line arguments. Also added sample lkr script
7749 for placing a variable at a specific memory bank.
7750 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
7751 at a specific memory bank,
7752 * (pic16_dump_isection): fixed bug which caused string literals to
7753 be omitted when dumping idata section,
7754 * (pic16_groupRegistersInSection): added code to handle registers
7755 in specific memory banks,
7756 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
7757 public, all references are renamed too,
7758 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
7760 * (pic16_storeForReturn): added case to handle when dest is WREG,
7761 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
7762 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
7763 pic16_rel_udata, check to see if that register is marked as being
7764 a member of a specific memory bank,
7765 * (pic16_printIvalCharPtr): added code to add string literals either
7766 to code or the idata sections,
7767 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
7768 also accept the 'udata' pragma,
7769 * src/pic16/main.h: new structure types sectName and sectSym
7770 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
7771 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
7772 * (pic16_findPrevInstruction): fixed, it returned nothing,
7773 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
7774 instruction combinations,
7775 * (pic16_FixRegisterBanking): heavily reorganised,
7776 * (pic16_AnalyzeBanking): if generating banksel directives is
7777 disabled, then don't call FixRegisterBanking at all,
7778 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
7780 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
7782 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
7784 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
7785 Phuah Yee Keat <yk.phuah AT nestac.com>
7787 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7789 * src/pic16/glue.c (pic16createInterruptVect): function now emits
7790 correctly the IVT even if it is relocated to some other location
7792 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7794 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
7795 * device/include/pic16/pic18f2220.h: NEW,
7796 * device/lib/pic16/libdev/pic18f2220.c: NEW,
7797 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
7798 * src/pic16/device.c (struct Pics16): added info for 18f2220,
7799 * src/pic16/device.h (struct pic16_options): added ivt_loc and
7800 nodefaultlibs, ivt_loc is the location of the interrupt vector
7801 table, and nodefaultlibs signs that default libraries should not be
7802 linked in link stage,
7803 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
7804 according to --ivt-loc argument,
7805 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
7806 when pragma stack is found,
7808 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7810 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
7811 256 (range check), 257 (do while), 258.a-f (bit banging
7812 f.e. on 3-wire SPI bus)
7814 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7816 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
7817 variables used exclusively within a loop
7819 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
7821 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
7823 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825 * src/SDCClrange.c (computeClash): fixed bug #971834
7827 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7829 * src/mcs51/gen.c (genCmp): fixed bug #975903
7830 * src/hc08/gen.c (operandsEqu),
7831 * src/ds390/gen.c (operandsEqu),
7832 * src/z80/gen.c (operandsEqu),
7833 * src/pic/gen.c (operandsEqu),
7834 * src/pic16/gen.c (operandsEqu),
7835 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
7836 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
7838 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7840 * src/SDCCcse.c (cseBBlock): fixed bug #966963
7842 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
7844 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
7845 default case in switch statement,
7846 * glue.c (pic16_initPointer): expr is initialised via decoarteType
7847 to eliminate problem with initialisation of pointers, but problem
7849 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
7850 * (emitStaticSegment): removed various lines emitting debug info,
7851 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
7852 added processor registers for utilizing EEPROM,
7853 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
7854 configurable and set 8
7856 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
7858 * .version: increased version number to 2.4.2,
7860 Cumulative patch for pic16 port
7861 * src/pic16/device.c: changed scheme to dump initial values for
7862 variables in idata segment, all print_idata* functions were removed,
7863 now the pic16_printIval* will be called,
7864 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
7865 * _pic16_printPointerType, pic16_printPointerType,
7866 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
7867 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
7868 NEW, similar to the respective functions in SDCCglue.c,
7869 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
7870 way, emitting hex bytes,
7871 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
7873 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7875 * src/avr/ralloc.c (serialRegAssign),
7876 * src/xa51/ralloc.c (serialRegAssign),
7877 * src/pic/ralloc.c (serialRegAssign),
7878 * src/pic16/ralloc.c (serialRegAssign),
7879 * src/hc08/ralloc.c (serialRegAssign),
7880 * src/z80/ralloc.c (serialRegAssign),
7881 * src/ds390/ralloc.c (serialRegAssign),
7882 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
7884 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7886 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
7887 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
7889 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
7891 Cumulative patch for pic16 port:
7892 * src/pic16/device.h (typedef PIC16_device) modified fields for
7893 defining microcontrollers,
7894 * src/pic16/device.c: added new info for all devices in Pics16 array,
7895 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
7896 to be optimised out by the pCode optimiser,
7897 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
7898 specially, bug reported by G.M. Gallant,
7899 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
7900 as force'd so that cannot be optimised out by pCode optimiser,
7901 * src/pic16/pcode.c,
7902 * src/pic16/pcodepeeph.c,
7903 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
7904 they are disabled by default, but can be enabled explicit with
7905 command argument --denable-peeps, for testing,
7906 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
7907 --pomit-ivt in COMPILE_FLAGS
7909 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7911 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
7914 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7916 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
7918 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7920 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
7921 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
7923 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
7925 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
7926 would only assign 0x300001 register.
7928 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
7930 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
7931 in COMPILE_FLAGS. Thanks to G. Gallant for report.
7933 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7935 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
7937 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
7938 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
7939 added peephole 254 (left shift), 255 (jump table)
7941 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
7943 * device/lib/Makefile.in: removed comment line with model-pic16,
7944 * (target port-specific-objects-pic16): the libraries and objects
7945 are copied to the build directory form the device/lib/pic16/bin
7948 Cumulative patch concerning pic16 port:
7949 * library directory has been re-organized,
7950 * added support for PIC18F1220,
7951 * added headers and library sources for chips 18f1220,18f6520,
7952 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
7954 * configuration registers setting has changed, now each supported
7955 device has a complete description of the registers it uses,
7956 * all initialisations are moved to idata sections, these section
7957 can be absolute or relocatable,
7958 * fixed initialisation of codespace variables,
7959 * fixed warning about PCLATU and gpsim,
7960 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
7961 * (genAssign): use table reads when assigning from variables in codespace,
7962 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
7963 char/int variables placed in codespace,
7964 * (pic16_emitConfigRegs): NEW, emits a list with configuration
7965 registers set in .asm file, no need for --pomit-config-words anymore,
7966 * (pic16glue): some 8051 legacy segments are commented out
7967 (to be removed completely),
7968 * added support for alternative assembler and linker with --asm=
7969 and --link= command line arguments,
7970 * peepholes are disabled automatically in the port, no need to
7971 specify on command line,
7972 * port supports natively char/int/long multiplication, but converts
7973 all divisions to support functions,
7974 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
7975 to the file set in variable $2,
7976 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
7977 strings in ASCII format and not in hex,
7978 * ralloc.c (serialRegAssign): added a triplet of conditional calls
7979 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
7980 allocate proper register if iCodes aren't temporary,
7982 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
7984 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
7986 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
7988 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
7991 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7993 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
7994 computed address is reused
7995 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
7996 multi-byte bitfields
7998 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8000 * src/z80/gen.c: (genArrayInit): must check for pointers too
8002 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8004 * support/regression/tests/zeropad.c: never meant to commit the
8005 nestedstruct test: removed, added check for GCC version
8007 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8009 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8010 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8011 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8012 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8013 bugs 928906 and 954082 half-empty initializers
8015 * src/SDCCsymt.c (getAllocSize): added for above fix
8016 * src/z80/gen.c (genArrayInit): fixed bug 741044
8017 * support/regression/tests/zeropad.c: added tests
8019 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8021 * src/pic16/device.c (pic16_dump_section): corrected bug which
8022 caused some symbols of the libraries to be misplaced
8024 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8027 * src/pic16/ralloc.h,
8028 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8029 to fix conflict with pic port
8031 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8033 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8034 externs configuration variables,
8035 * src/pic16/ralloc.h,
8036 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8037 prototype in header, commented out some debug messages
8039 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8043 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8044 for gpasm COFF object generation. Thanks to D. Hawkins for
8047 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8050 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8051 Brock for spotting this)
8052 * src/ds390/gen.c (genEndFunction),
8053 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8054 interrupt handler and critical. Disable push/pop optimizations when
8055 peephole optimizations disabled.
8057 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8059 Updated pic16 library sources and headers.
8060 * device/lib/pic16/pic18f*/ ,
8061 * device/include/pic16/*.h: modified to handle structured SFR
8064 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8066 * src/port.h (PORT structure): added hook initPaths, now each
8067 port can declare its own default search paths,
8068 which can been seen with the --print-search-dirs option,
8069 see pic16 port for example,
8070 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8071 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8072 * (doPrintSearchDirs): NEW, replaces in a central manner the
8073 printing of search dirs which was split in set*Paths functions,
8074 * (main): added call to port->initPaths and doPrintSearchDirs,
8079 * src/izt/tlcs900h.c,
8082 * src/pic16/main.c: modified port structures to reflect addition of
8085 * src/pic16/device.c (regCompare): registers are finally sorted by name,
8086 * (pic16_dump_section): for registers in same address reserve memory once,
8087 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8089 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8090 result is greater in size than right or left,
8091 * (pic16_genUMult8X8_8): there are some cases where the result can
8092 be 16 bits size, so handle these,
8093 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8094 * (pic16_outBitC): modified to emit pcodes,
8095 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8097 * (genDivOneByte): implemented algorithm to divide 8-bits,
8098 * (genCmp): uncommented goto, but issues still exist,
8099 * (genAnd): fixed a bug with variables >8bits,
8100 * (genPackBits): optimization added that uses BCF/BSF to change a
8102 * (genAssign): fixed bug when assigning floating point literals,
8103 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8104 __sdcc_gsinit_startup label,
8105 * src/pic16/main.c (_pic16_init): removed search directory
8107 * (_pic16_initPaths): NEW, used to initialise search directories,
8108 * (_hasNativeMulFor): support functions for all except char/int
8109 multiplication, and char division,
8110 * (PIC16_port struct): modified entry for native mul support,
8111 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8113 * (buildCallTree): call to register_usage is ifdef'ed out,
8115 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8117 * device/include/string.h: applied Stas Sergeev's patch to make this
8118 header file compatible with the preprocessor -Wundef option
8119 * src/SDCCmain.c (main): abort compilation if preprocessor reports
8120 failure (fixes bug #941458)
8122 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8124 * src/SDCCopt.c (killDeadCode): fixed bug #907733
8125 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8126 that the variable, not the function, should be static
8127 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8128 to be consistent with non-literal case
8130 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8132 * src/SDCCast.c (isConformingBody): fixed bug #949967
8133 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8134 convilong): fixed bug #952086
8136 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8138 * src/SDCCmem.c (allocVariables): fixed bug #955321
8140 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8142 * src/hc08/main.c (_hc08_genAssemblerEnd),
8143 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8144 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8145 completely eliminated the use of a temporary file
8146 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8147 when more than one file linked
8148 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8150 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8152 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8153 which fixes bug #543481
8154 * support/regression/tests/bug-751703.c: fixed comments left from a
8156 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8157 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8158 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8160 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8161 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8162 are now changed to underscores in moduleName
8164 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8166 * as/mcs51/lkmem.c: better fix for bug #954173
8168 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8169 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8171 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8172 * device/include/c8051f000.h,
8173 * device/include/c8051f120.h,
8174 * device/include/c8051f300.h,
8175 * device/include/c8051f310.h,
8176 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8179 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8181 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8182 and mailing lists, doc'ed --no-peep-comments, removed reference
8183 to knoppix (newest version has no LyX/LaTeX), other minor changes
8184 * src/SDCCglue.c (glue): save 2 bytes stack space with
8185 option --main-return. The ljmp could probably be avoided too
8187 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8189 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8191 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8193 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8194 * src/SDCCopt.c (isLocalWithoutDef),
8195 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8196 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8197 (credit to Maarten Brock for patch #949363, on which this is based)
8198 * support/regression/tests/bug-751703.c: some test cases of extern used
8199 within inner scopes.
8201 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8203 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8205 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8207 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8208 dwWriteLabel): fix to create valid debugger symbols even when
8209 the module name has non-alphanumeric symbols in it
8210 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8211 when a variable's allocation has been optimized away
8214 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8216 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8218 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8220 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8222 * src/z80/gen.c (z80_emitDebuggerSymbol),
8224 * src/pic/gen.c (pic14_emitDebuggerSymbol),
8226 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8228 * src/avr/gen.c (avr_emitDebuggerSymbol),
8230 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8232 * src/SDCCdebug.c (emitDebuggerSymbol),
8234 * src/port.h: added a debugger struct to the port struct. Added a
8235 callback for defining debugger symbols
8237 * src/SDCCast.c (createLabel),
8238 * src/SDCC.y (labeled_statement): mark all compiler generated labels
8241 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8242 iCode back to the ast for the function
8244 * src/hc08/ralloc.c (hc08_assignRegisters),
8245 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8246 unneeded fields from the regs struct.
8247 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8248 pushReg() & pullReg() functions instead of emitcode()
8250 * src/hc08/gen.c (genLabel, genhc08Code),
8251 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8253 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8256 * src/hc08/gen.c (genEndFunction, genhc08Code),
8258 * src/mcs51/gen.c (genEndFunction, gen51Code),
8260 * src/ds390/gen.c (genEndFunction, gen390Code),
8262 * src/z80/gen.c (genEndFunction, genZ80Code),
8265 * src/pic/gen.c (genEndFunction, genpic14Code),
8267 * src/pic16/gen.c (genEndFunction, genpic16Code),
8269 * src/avr/gen.c (genEndFunction, genAVRCode),
8271 * src/xa51/gen.c (genEndFunction, genXA51Code),
8273 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8274 specific code to cdbFile.c and out of the backend code generators
8276 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8277 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8278 starting address is now 0
8282 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8283 assembler directive for DWARF support
8284 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8288 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
8290 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8292 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
8293 and inappropriate peephole optimization in jump tables
8295 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8298 * src/SDCCglue.c: sdccopt works for the hc08 port now
8300 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
8302 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
8304 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8306 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
8308 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8310 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
8314 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
8315 comments from the peephole optimizer replacement rules
8316 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
8318 * src/SDCCcse.c (updateSpillLocation),
8319 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
8321 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
8322 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
8323 objects far pointers
8325 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8327 * src/SDCCsymt.h: a missing part of my last change
8328 * src/pic/ralloc.c (regTypeNum),
8329 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
8331 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8334 * src/SDCCicode.c (aggrToPtrDclType),
8336 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
8337 ptrPseudoSymConvert),
8338 * src/pic/ralloc.c (regTypeNum),
8339 * src/pic16/ralloc.c (regTypeNum),
8340 * src/hc08/ralloc.c (regTypeNum),
8341 * src/ds390/ralloc.c (regTypeNum),
8342 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
8343 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
8345 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8347 * link/z80/lkmain.c (afile),
8348 * as/hc08/lkmain.c (afile),
8349 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
8350 prevent a pointer problem when a filename has no directory and
8351 no extension specified.
8353 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8355 * link/z80/lkmain.c (afile): allow periods in directory names
8356 * link/z80/lkmain.c (afile),
8357 * as/mcs51/lkmain.c (afile),
8358 * as/hc08/lkmain.c (afile): allow linker script file to have an
8359 extension other than ".lnk"
8360 * link/z80/lklex.c (getfid),
8361 * link/z80/lkmain.c (parse),
8362 * as/mcs51/lklex.c (getfid),
8363 * as/mcs51/lkmain.c (parse),
8364 * as/hc08/lklex.c (getfid),
8365 * as/hc08/lkmain.c (parse): Support comments in the linker script
8366 file on lines by themselves and after filenames
8368 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8370 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
8372 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8374 * src/z80/peeph-z80.def: removed some peephole rules that don't
8375 work with multibyte arithmetic (fixed bug #937126)
8376 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
8377 to registers and not global variables
8378 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
8379 geniCodePreInc, geniCodePostDec, geniCodePreDec,
8380 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
8381 checking for assignments not internally generated (fixed bug #931895)
8382 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
8383 structure member (fixed bug #930072)
8385 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8387 * src/SDCCmain.c (linkEdit),
8388 * src/hc08/main.c (_hc08_parseOptions),
8389 * as/hc08/Makefile.in,
8393 * as/hc08/lkrloc.c (relr, rele),
8394 * as/hc08/lkarea.c (lnkarea)
8395 * as/hc08/lkmain.c (afile, parse),
8396 * as/hc08/lkelf.c: support for ELF output
8397 * as/hc08/lks19.c (s19),
8398 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
8400 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8402 * as/mcs51/lkihx.c: Fixed bug #899105.
8404 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8406 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
8407 .dsp files from Unix to DOS.
8409 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8411 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
8412 function pointers; we have been compliant for several months now.
8413 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
8414 change that was accidently commented out
8415 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
8416 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
8419 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8421 * src/hc08/gen.c: output of all of the internal debugging information
8422 is now controlled by the D() macro; it is disabled by default
8424 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8426 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
8427 harder to keep the same registers during a CAST iCode
8428 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
8429 long via int can be done in a single cast, if the signedness is
8431 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
8432 putchar() in tinibios.c in ds390's library
8434 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8436 * src/SDCCast.c (decorateType): fixed bug #898889,
8437 cast result of a literal complement too
8438 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
8439 fixed check for bitfields
8441 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
8443 * src/SDCCicode.c (geniCodeLogic): made it static,
8444 (geniCodeLogicAndOr): added in order to fix bug #905492,
8445 (ast2iCode): fixed bug #905492
8446 * support/regression/tests/bug-905492.c: added
8447 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
8448 (processParms): fixed bug #927659: don't copy parms, this will clear
8450 * support/regression/tests/bug-927659.c: added
8452 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8454 * src/SDCCast.c (addCast): don't cast float to char
8455 * device/lib/libsdcc.lib: added _memmove
8457 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
8459 * device/lib/large/Makefile: fixed parallel execution by
8460 replacing `make` by `$(MAKE)`
8462 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8464 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
8465 offsets (fixes bug #923936)
8467 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
8469 * device/lib/small/Makefile: fixed parallel execution by
8470 replacing `make` by `$(MAKE)`
8472 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8474 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
8476 2004-03-23 Scott Dattalo <scott AT dattalo.com>
8478 * src/pic/gen.c (genCpl): multi-byte complements were not working.
8479 * src/regression/Makefile: Regression test was not running.
8481 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8483 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
8484 complement if possible
8485 * src/SDCCval.c (valComplement),
8486 * src/SDCCicode.c (operandOperation): fixed complement of literal
8487 * support/regression/tests/onebyte.c (testComplement): added
8489 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
8491 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
8492 return an optimized tree; actually replace actParm with the new tree
8493 * src/SDCCast.h: added some parantheses to remove side effects
8494 * support/regression/tests/bug-920866.c
8496 2004-03-21 Scott Dattalo <scott AT dattalo.com>
8497 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
8498 Bit operands were not being handled properly in the pic14 port.
8499 (now src/regression/add.c passes again).
8501 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8503 * src/SDCC.y (labeled_statement): case and default no longer require
8504 a following statement (RFE #893037)
8506 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8508 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
8509 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
8510 disabled (fixes bug #916294)
8511 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
8512 "mov a,acc"; patch provided by Lenny Story
8513 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
8515 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8517 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
8519 * src/ds390/gen.c (genFunction, genEndFunction),
8520 * src/ds390/ralloc.c (ds390_assignRegisters),
8521 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
8522 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
8523 pushed if there are parameters passed on the stack. Also, a cleaner
8524 way to decide if r0/r1 should be pushed/popped. (Together they fix
8527 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8530 * device/lib/mcs51/crtpagesfr.asm,
8531 * device/lib/mcs51/crtxinit.asm,
8532 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
8533 to avoid confusion with Si Lab's SFRPAGE register.
8535 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8537 * src/SDCCglue.c (emitMaps): allow public sfr variables
8538 * src/SDCCglue.c (initialComments): include compiler build date
8539 with compiler version and put the timestamp of the generated
8540 assembly file on a serperate line to be less confusing.
8541 * src/port.h: added genInitStartup hook
8548 * src/z80/main.c: genInitStartup initialize as NULL (default to
8549 historical behaviour)
8550 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
8551 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
8552 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
8553 library instead of hard coding it into the compiler.
8554 * support/regression/ports/mcs51-stack-auto/spec.mk,
8555 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
8556 * device/lib/mcs51/Makefile,
8557 * device/lib/small/Makefile,
8558 * device/lib/large/Makefile,
8559 * device/lib/mcs51/crtpagesfr.asm,
8560 * device/lib/mcs51/crtstart.asm,
8561 * device/lib/mcs51/crtxclear.asm,
8562 * device/lib/mcs51/crtxinit.asm,
8563 * device/lib/mcs51/crtclear.asm,
8564 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
8565 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
8566 and into user configurable files.
8567 * device/lib/clean.mk: clean mcs51 directory too
8568 * support/regression/tests/longlit.c: added static to T1 declaration
8569 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
8570 accesses in the initialization code
8572 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8574 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
8575 OSCTRIMVAL as noted in bug #916008
8577 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8579 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
8580 in loops with multiple exits (reported as incorrect registers
8581 used by Martin Helmling in Sdcc-user list)
8583 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8585 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
8586 made ds390 register extensions look less like error messages
8588 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8590 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
8591 reported by Adam Wozniak in Sdcc-user list
8593 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8595 * src/SDCCast.c (decorateType): fixed with bug and promotion in
8596 arithmetic optimizations, added debug output
8598 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8600 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
8601 * sdcc.spec: updated and split sdcc into 3 rpms
8602 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
8603 needed for literals of LEFT_OP and '+'
8604 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
8605 introduced RESULT_TYPE_NOPROM
8606 (geniCodeMultiply): fixed logic for decision if mul is optimized to
8608 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
8609 limited promotion to int only for '*'
8610 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
8612 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
8614 * src/pic16/gen.c (genSkip),
8615 (genc16bit2lit), (gencjneshort): commented out
8616 (is_LitOp): new helper function, checks operand type
8617 (genCmpEq): rewritten
8619 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8621 * support/regression/tests/bug-908454.c: added
8623 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
8625 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
8626 * src/SDCCicode.c (usualBinaryConversions): op needs int type
8627 (geniCodeCast): cosmetic, don't preserve bit storage class
8628 (geniCodeLeftShift): added promotion
8629 (geniCodeLogic): fixed regression
8630 * src/SDCCsymt.c (computeTypeOr): accept bits too
8631 (compareType): 2nd part of fix for bug #908454, needed for bitfields
8633 2004-03-07 Borut Razem <borut.razem AT siol.net>
8635 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
8637 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
8639 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
8640 version of pic16_genPackRegisters which does not check if ic is a
8642 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
8643 function cause string1.c regression test fails
8645 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8647 * sim/ucsim/configure.in,
8648 * sim/ucsim/configure,
8649 * sim/ucsim/doc/Makefile.in: use docdir
8650 * src/SDCC.y: fixed sbit atrributes
8651 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
8652 * src/SDCCast.c (decorateType): |^& need special promotion handling
8654 * src/SDCCsymt.h: moved definition of RESULT_TYPE
8655 * src/SDCCsymt.h (computeType),
8656 * src/SDCCicode.c: computeType() needs op
8657 * src/SDCCsymt.c (checkTypeSanity),
8658 * doc/sddman.lyx: "plain" bitfields are unsigned
8659 * src/SDCCsymt.c (computeTypeOr): added
8660 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
8662 * src/SDCCval.c (val*): computeType() needs op
8663 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
8664 * support/regression/tests/onebyte.c: added tests for |^&
8666 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
8668 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
8669 for writing icode into asm output.
8671 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
8673 * src/pic16/device.c: added some debug lines enabled
8674 with macro DEBUG_CHECK,
8675 * src/pic16/genarith.c: more debug in genPlus,
8676 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
8677 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
8678 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
8679 * (aopForSym): onStack symbols are re-placed in data memspace,
8680 and onStack flag is cleared,
8681 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
8682 copy temporary pcodeop,
8683 * (genPcall): added warning for not updating PCLATU,
8684 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
8685 always true for pic16 port,
8686 * (genMultOneWord): NEW, supports integer multiplication,
8687 * (genMult): modified to call genMultOneWord,
8688 * (ifxForOp): added warning when return NULL,
8689 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
8690 flag is set before call to operandFromSymbol for implicit
8692 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
8693 options.intlong_rent are set by default,
8694 * (_hasNativeMulFor): modified to allow port generation of integer
8696 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
8697 set regtype to REG_SFR for all registers, restricting seting the
8698 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
8700 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8702 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
8703 more than 500 times in the regression tests
8705 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8707 * support/Util/SDCCerr.h,
8708 * support/Util/SDCCerr.c,
8709 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8711 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
8712 for symbol conflicts.
8713 * support/valdiags/tests/enum.c,
8714 * support/valdiags/tests/tentdecl.c,
8715 * support/valdiags/tests/struct.c: expect possible error messages
8716 referring to original symbol definitions.
8717 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
8719 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
8721 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
8723 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
8725 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
8727 * src/pic16/ralloc.c (newReg): fixed bug #908929
8729 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8731 * src/ds390/gen.c: added missing #include "main.h"
8733 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
8735 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
8736 checking if symbol is already in set,
8737 * src/pic16/device.h: prototype for checkAddSym,
8738 * src/pic16/gen.c: (_G): added entry interruptvector,
8739 * (assignResultValue): removed some commented out lines,
8740 * (genFunction): check for ISR via sym->type, absolute section for
8741 interrupt code is created via a new pBlock, the goto instruction is
8742 placed now correctly at the interrupt vector position, changed all
8743 references from ivec to _G.interruptvector,
8744 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
8745 is the interrupt is a high priority one, same for return from ISR,
8746 * src/pic16/glue.c: changed all calls of addSetHead for publics and
8747 externs to calls of checkAddSym,
8748 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
8749 pic16_pcode_verbose flag is set,
8750 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
8751 * src/pic16/pcoderegs.c: message about how many registers are saved
8752 will only be emitted if pic16_pcode_verbose flag is set,
8754 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8756 * src/ds390/ralloc.h,
8757 * src/ds390/ralloc.c (ds390_regWithIdx),
8758 * src/ds390/gen.c (emitcode),
8760 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
8761 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8762 ds390operandCompare, getRegsRead, getRegsWritten,
8763 initializeAsmLineNode): customized instruction size calculation for
8764 ds390, started basis for some register optimizations
8765 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
8766 corresponding assembly output
8767 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
8768 missing push/pop of r0/r1. Optimized push/pops
8770 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8772 * src/mcs51/main.c (instructionSize): fixed ACALL size
8773 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
8775 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
8777 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
8778 the sorting of rlist with NULL elements
8779 * (print_idataType, print_idata): NEW to create idata sections
8780 * src/pic16/device.h: idataSymSet new variable
8781 * src/pic16/gen.c (genFunction): fixed some bugs in string
8782 comparing, improved the absolute section creation for ISRs,
8783 added FSR0L/FSR0H in registers that are saved in an ISR,
8784 * (genInline): fixed the processing of inline snippets,
8785 now they undergo no process by the peephole optimizer
8786 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
8787 are placed in idataSymSet,
8788 * (pic16emitStaticSeg): extern symbols are added in externs,
8789 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
8790 switching when aboslute variables are placed in access bank memory
8791 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
8792 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
8793 commented out with #if,
8794 * (pic16_packRegisters): reintroduce the check for CAST because some
8795 symbols are not correctly handled,
8796 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
8797 pCodeInstruction instead of pCode,
8798 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
8799 pCodeAsmDir definition,
8800 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
8801 directive, then the argument directive is emitted without the leading
8802 tab, hack for inline labels which must be in the first column,
8803 * (compareLabel,pic16_findNextInstruction),
8804 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
8805 * (insertBankSwitch): modified for the new pCodeAsmDir,
8807 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8808 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
8810 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
8812 * (pushSide): commented out with #if,
8813 * (assignResultValue): fixed some typos in saving
8815 * (genPcall): FIXED and sync'ed with genCall,
8816 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
8817 * (genNearPointerGet): fixed to handle some more cases,
8818 implementation scheme via table reads,
8819 * (genConstPointerGet): modified to access code memory correct,
8820 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
8821 and improved to handle some cases
8822 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
8823 instead of "RETLW" for init data
8824 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
8825 not IN_DIRSPACE, work around to reduce bank switching when aboslute
8826 variables are placed in access bank memory (<0x80 and >=0xf80),
8827 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
8828 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
8829 TBLWT_POSTDEC,TBLWT_PREINC
8830 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
8831 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
8833 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
8834 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
8835 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
8836 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
8838 2004-02-29 Borut Razem <borut.razem AT siol.net>
8840 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
8841 support/Util/findme.h, support/Util/system.h: enhance binary relative
8842 search for lib and include by using findProgramPath()
8844 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8847 * src/SDCCpeeph.c (pcDistance),
8849 * src/mcs51/ralloc.h,
8850 * src/mcs51/ralloc.c (mcs51_regWithIdx),
8852 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
8853 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8854 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
8855 size calculation port specific, started basis for some register
8857 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
8858 missing push/pop of r0/r1. Optimized push/pops
8859 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
8860 * device/lib/_modsint.c (_modsint),
8861 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
8862 and stack version so regression tests pass
8864 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8866 * src/Makefile.in (dep): include SLIBOBJS in dependency check
8867 * src/SDCCast.c (decorateType): catch another small optimization
8869 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
8870 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
8871 modified to finally use computeType() all over SDCC,
8872 see Feature Request #877103
8873 * src/SDCCval.h: cosmetic
8874 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
8875 valCompare(); regression tested in muldiv.c
8876 * support/regression/tests/muldiv.c (testMod): mod sign follows
8879 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
8881 * src/SDCCast.c (decorateType): fixed bug #902362
8882 * doc/INSTALL.txt: fixed install instructions for win32
8884 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
8886 * device/include/Makefile.in (install): fixed by replacing spaces
8889 * doc/INSTALL.txt: updated for release
8890 * doc/sdccman.lyx: added warning for --xstack being buggy
8892 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
8894 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
8895 to eliminate build warnings.
8896 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
8898 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
8899 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8901 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
8902 removed -penable-stack, added comment for stack pragma, added
8903 warning for not initializing the stack/frame registers, removed
8904 comment at interrupts section
8906 Stack is made permanent, there is no ability to disable stack usage.
8907 * src/pic16/device.h,
8908 * src/pic16/device.c: removed all references to USE_STACK macro,
8909 * src/pic16/device.c (pic16_dump_section): when no elements in
8910 rlist, free rlist before return,
8911 * (pic16_dump_int_registers): NEW, internal registers are a new set
8912 of general purpose registers reused by each function,
8913 * (checkAddReg): returns 1 if registers is added to set,
8914 * (pic16_groupRegistersInSection): when a registers is of type
8915 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
8916 * src/pic16/device.h: memRange and Assigned Memory are deleted,
8917 SRCASECMP macro is moved here from device.c
8918 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
8919 PO_PCLATU, PO_PRODL, PO_PRODH,
8920 * (pic16_pCodeOpType, genMinus,
8921 changed compares to "a" register, with AOP_ACC,
8922 * (pic16_genPlus): fixed some bugs and indented properly,
8923 * (pic16_addSign): changed size to size+offset in the MOVWF
8925 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
8926 multiply 8-bit operand by literal, result is 8-bit,
8927 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
8928 multiply 2 8-bit operand, result is 8-bit,
8929 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
8931 * src/pic16/gen.c: changed accUse to contain WREG only,
8932 * (pic16_emitcomment): renamed to pic16_emitpcomment,
8933 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
8934 true, do not use immediate addressing any more unless sym is a
8935 pointer in codespace,
8936 * (aopForRemat): do not use immediate addressing when symbol not in
8937 codespace and when symbol's address is requested,
8938 * (aopOp): for-loop in if(sym->accUse) is modified for the new
8940 * (aopGet): added case for AOP_ACC and don't return "accumulator
8941 bug" but WREG instead,
8942 * (popGetTempReg): pushes contents of temporary register in stack,
8943 * (popReleaseTempReg): pops contents of temporary register from
8944 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
8945 * (pic16_popGet): separated case AOP_ACC to return register WREG
8946 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
8947 or PO_IMMEDIATE and initializes their instance/offset appropriately,
8948 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
8949 the use of immediate pointers to certain cases only.
8951 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
8952 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
8953 * (assignResultValue, genCall, genRet): modified to use the new
8954 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
8955 genPcall is still broken,
8956 * (genFunction): added code to create 'A' type pBlocks when
8957 interrupt functions are generated, code not extensively tested yet,
8958 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
8959 * (genEndFunction): modified so ISRs pop stored registers from stack,
8960 * (genMultOneByte): cleanup,
8961 * (AccRsh): added flag andmask, to and result with appropriate mask,
8962 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
8963 * (genDataPointerGet): fixed and reenabled its use,
8964 * (genNearDataPointerGet): bugs fixed,
8965 * (genDataPointerSet): bugs fixed,
8966 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
8967 pic16_DumpSymbol, pic16_DumpOp,
8968 * src/pic16/genutils.h: function prototypes for the above functions,
8969 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
8971 * (pic16emitRegularMap): many many many improvements, but needs a
8973 * src/pic16/main.c: enable_stack in pic16_options is removed,
8974 * (_pic16_parseOptions): removed command line options -penable-stack,
8975 * (_process_pragma): emit stack symbol only when stack pragma is
8977 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
8978 redirected to FSR0L/FSR0H pair,
8979 * (pic16_get_op, pic16_get_op2): modifications and improvements,
8980 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8981 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
8983 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
8984 * (dumpPicOptype): NEW,
8985 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
8986 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
8987 with movff instruction,
8988 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
8989 added pic16_int_regs, some packRegsFor* functions are commented out,
8990 because produce errors,
8991 * src/pic16/NOTES: minor modifications
8993 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8995 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
8996 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
8998 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
8999 * as/mcs51/lkaomf51.c: fixed bug #895763
9001 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9003 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9005 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9007 * doc/sdccman.lyx: added details about the HC08 storage classes and
9008 interrupts, fixed the register usage info for z80 & gbz80
9010 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9012 * doc/sdccman.lyx: added more pic16 port documentation
9013 * device/include/pic16/: added header pic18fregs.h
9015 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9017 * doc/sdccman.lyx: added Vangelis' contribution
9019 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9021 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9022 extend to the next CALL or PCALL, not just to the next CALL.
9024 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9026 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9028 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9030 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9031 bug #895752 and a better fix for bug #716790
9033 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9035 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9037 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9039 * doc/sdccman.lyx: minor changes, minor changed
9041 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9043 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9044 which can't handle SDCC_NEWONEBYTEOPS,
9045 (geniCodeMultiply): removed conversion from mult to shift for pic14
9048 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9051 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9052 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9053 thus fixing bug #895406
9055 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9057 * device/lib/_modsint.c,
9058 * device/lib/_modslong.c: sign follows divisor only
9059 * src/hc08/gen.c (genMultOneByte): if result size is 1,
9060 signs or signedness can be ignored
9061 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9062 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9063 added optimization for IFX,
9064 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9066 reenabled optimization for IFX, which was removed on 2004-01-11
9067 * src/SDCCast.h: added return type IFX
9068 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9069 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9070 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9071 SDCC_OLDONEBYTEOPS selects the old behaviour
9072 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9073 changed again and commented promotion rule
9074 * src/SDCCval.c (valDiv): promotion no longer necessary
9075 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9076 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9078 * support/regression/tests/onebyte.c: added
9080 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9082 * gen.c (genInline): reverted to old code for assemnling inline
9083 code because of bug reported James Chadd
9085 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9087 * ralloc.h: missing declarations from previous patch,
9088 seems that patch for ralloc.h was never applied, fixed
9090 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9091 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9095 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9096 indirect addressing. Marked FSR0 as deprecated
9097 * gen.c (pointerCode): commented out, not needed now
9098 (pic16_popGet2p): new MOVFF helper function
9100 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9101 (shiftRLong): removed duplicate debugging info
9103 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9105 * src/ds390/gen.c (genNearPointerGet),
9106 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9107 optimization with bits, but not bitfields.
9108 * src/ds390/ralloc.c (packRegisters),
9109 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9111 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9113 * src/SDCCcse.c (algebraicOpts): copy operands before modification
9115 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9118 * src/SDCCicode.c (operandFromSymbol),
9119 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9120 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9121 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9122 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9123 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9124 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9126 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9127 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9128 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9129 * src/SDCCsymt.c (newSymbol),
9130 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9133 * src/SDCCval.c (newiList): fixed bug #885705
9135 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9137 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9138 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9140 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9142 * device/include/c8051f120.h,
9143 * device/include/c8051f300.h,
9144 * device/include/c8051f310.h: added/updated header files for Silicon
9145 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9146 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9147 in new section Submitting patches
9149 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9151 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9152 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9153 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9155 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9156 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9157 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9159 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9160 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9161 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9163 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9164 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9165 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9166 genGenPointerSet): fixed bug #892400
9167 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9168 to eliminate build warnings.
9169 * src/SDCCast.c (processParms),
9170 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9172 * support/valdiag/valdiag.py: added GCC to the list of defines active
9173 when compiling with gcc
9175 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9177 * support/Util/SDCCerr.h,
9178 * support/Util/SDCCerr.c,
9179 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9180 with an incomplete type (fixed bug #883734)
9181 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9183 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9185 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9187 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9189 * src/SDCCast.c (decorateType),
9190 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9191 function pointer implementation
9192 * support/regression/tests/funptrs.c: added tests to verify both forms
9193 of function pointers work correctly. Added tests to verify parameters
9194 are passed in the correct order.
9196 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
9198 * device.c (regCompare): registers are sorted by ascending
9199 address and increasing size,
9200 * main.c (_pic16_finaliseOptions): removed the declaration
9201 of compiler macro MCU. Now a macro of the format pic18fxxxx
9202 will be defined from the command line
9204 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9205 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9207 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9208 PCOP_RLCF was overwritten!
9209 * gen.c (genSkip): commented out calls to pic16_emitcode,
9210 * (genCmpEQ): fixed "long" compares, only high word did get compared,
9212 * (genRRC): added debugging info,
9213 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9214 overwritten while shifting,
9215 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9216 overwritten while shifting,
9219 * (shiftLLeftOrResult),
9220 * (shiftRLeftOrResult),
9222 * (shiftLLong): Implemented with pic16_emitpcode
9223 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9224 * (genLeftShift): Fixed bug, operand for shift by variable always
9225 was "and"ed with 0x0f,
9226 * (genLeftShiftLiteral),
9228 * (genRightShiftLiteral): added debugging info,
9229 * (genrshFour): added comment,
9230 * (genRightShift): determined signedness from operand "left"
9233 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9235 * src/SDCCicode.c (geniCodeParms),
9236 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9237 function pointers, fixed function pointer bugs #861242 and #861896
9239 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9241 * device/include/c8051f000.h,
9242 * device/include/c8051f120.h,
9243 * device/include/c8051f300.h: added header files for Silicon
9244 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9246 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9248 * src/SDCCast.c (processParams): added new type flow and restructured
9249 (gatherAutoInit): added new type flow
9250 (addCast): cosmetic changes
9251 (getLeftResultType): added new type flow for array indices, patch
9252 provided by Stas, see FR #877103
9253 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9254 array index patch by Stas
9255 * src/SDCCast.h: added prototype getResultTypeFromType()
9257 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9258 * src/pic/glue.c (pic14emitStaticSeg),
9259 * src/pic16/glue.c (pic16emitStaticSeg),
9260 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9261 for initialization of symbols
9262 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9263 * support/Util/SDCCerr.h:
9264 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9265 * .version: bumped version number to 2.3.8
9266 * device/include/Makefile.in (install),
9267 * doc/Makefile (install): changed to 'rm `find ...`' construct to
9270 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9272 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9273 Slade Rich fixed an optimization bug
9274 * src/pic/pcodepeep.c,
9275 * src/pic/pcoderegs.c
9276 * doc/Makefile (install): added test for directory
9278 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9280 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9281 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9282 * src/pic/ralloc.c (getRegPtr, getRegGpr),
9283 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9284 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9285 * as/mcs51/asexpr.c (term),
9286 * as/hc08/asexpr.c (term): fixed bug #887146
9288 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9290 * src/z80/gen.c (genMult): handle single byte result product
9291 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
9292 DUMMY_READ_VOLATILE (fixed bug #886367)
9294 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9296 * support/regression/tests/libmullong.c: fixed logic, on little endian
9297 hosts we ended without a mullong_wrapper()
9299 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9301 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
9302 virus/worm forged address usage.
9304 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9306 Fixed promotion, it should be done on AST level:
9307 * src/SDCCast.c (addCast): added promotion to int
9308 (decorateType): updated call to upCast()
9309 * src/SDCCicode.c (geniCodeLeftShift): removed call to
9310 usualUnaryConversions()
9312 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
9314 * support/regression/tests/literalop.c (mulWrapper): Added a
9315 wrapper to remove integer overflow warnings.
9317 * support/regression/tests/float_trans.c: Made work on host.
9319 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
9322 * support/regression/generate-cases.py (main): Changed from inline
9325 * doc/Makefile (install): Changed to depth first to get rid of
9326 missing directory install warning.
9328 * as/Makefile (install-doc): Made work on Mac.
9330 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
9332 * src/SDCCast.c: added an additional type flow in decorateType() of
9333 opposite direction, see feature request #860006; it's enabled at runtime
9334 by setting the environment variable SDCC_NEWTYPEFLOW
9335 * src/SDCCast.h: changed prototype of decorateType()
9336 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
9337 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
9338 'char' to 'int' can be omitted, if both operands are 'unsigned char';
9339 see feature request #877103
9340 * src/SDCCval.c: updated call of decorateType()
9341 (valBitwise): fixed bug #882876
9342 (valMinus): added promotion
9343 (valLogicAndOr): result is unsigned
9344 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
9345 * src/SDCCsymt.c (computeType),
9346 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
9347 must not cause an unsigned operation
9348 * src/pic/glue (pic14emitRegularMap),
9349 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
9351 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
9353 * src/pic/pcode.c (PCodeID): commented out left over debug code
9355 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
9357 * support/valdiag/tests/overflow.c: added shift tests
9365 * src/pic/pcodepeep.c,
9366 * src/pic/pcoderegs.c,
9368 * src/pic/ralloc.h: applied patch from Slade Rich;
9369 added support for multiple code pages and multiple RAM banks on the
9370 PIC 14 port. The ASM files now no longer simply assume all the
9371 code / RAM are in the same page / bank. This means the linker can
9372 safely allocate code/RAM of separate ASM files to different pages/banks.
9373 * doc/sdccman.lyx: added Slade's tips
9374 * src/mcs51/peeph.def: fixed bug #880768
9376 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9378 * src/hc08/ralloc.c (rematStr): fixed bug #879282
9379 * src/SDCCast.c (decorateType): fixed bug #880197
9381 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
9383 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
9386 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
9387 strtof is not part of C89 and isn't included with Mac OS X.
9389 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9391 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
9392 shiftL2Left2Result): fixed bug #879326
9393 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
9394 (genMultOneByte): fixed bug in signed vs unsigned multiplication
9395 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
9396 address fetch for clr instruction
9397 * device/lib/hc08/_mulint.c: created optimized assembly version
9398 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
9400 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9402 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
9403 proposed in FR #877103
9405 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
9407 * src/SDCCval.c (cheapestVal): added missing checks
9408 * src/SDCCicode.c (usualBinaryConversions): fixed condition
9409 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
9411 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
9413 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
9416 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
9418 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
9419 loaded with the linker search paths (-L arguments) and the libraries
9420 to be linked with the current source (-l arguments). Changes
9421 currently will affect only the pic16 port.
9422 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
9423 include path the port specific paths and port specific libraries,
9424 * gplink command now contains the $3 argument,
9425 * src/pic16/device.h,
9426 * src/pic16/device.c,: structure PIC_device is made public and
9427 renamed to PIC16_device, the same for variable Pics which is renamed
9428 to Pics16. Updated all references to them.
9429 * src/pic16/glue.c (pic16glue): corrected bug with code
9430 initialization which bypassed the variable initializations block.
9432 * device/lib/pic16/Makefile.rules: removed --penable-stack from
9433 COMPILE_FLAGS and added the --nostdinc option
9435 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9437 * device/include/mc68hc908jb8.h: Register defs for another member
9438 of the hc08 family. Contributed by Bjorn Bringert - thanks!
9440 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
9442 Documenting changes from previous commits.
9443 * configure.in (version 1.56),
9444 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
9445 when generating output files to configure the pic16 library,
9446 but now I've commented it out, since gputils aren't installed in the
9447 SF compile farm, so library won't compile
9449 * device/lib/Makefile.in (version 1.56): initially I've added in
9450 target 'all' the prerequestive 'model-pic16' so it compiled the
9451 pic16 library, but now I've commented it out for the same reasons
9453 * added targets 'model-pic16' and 'objects-pic16' to compile the
9455 * added target 'port-specific-objects-pic16' to handle the
9456 generated libraries and copy them into the build/ directory
9457 * added target 'clean-intermediate-pic16' to clean intermediate
9458 files into pic16 directory
9459 * in target 'installdirs' added line to create directory pic16 in
9460 the installation path
9462 * device/include/Makefile.in (version 1.11): in target 'install'
9463 added lines to copy all header files to installation path,
9464 * in target 'installdirs' added line create directory for pic16
9465 headers in the installation path
9467 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
9469 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
9472 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9475 * device/lib/configure.in,
9476 * device/lib/configure: fixed for autoconf 2.57
9478 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9480 * src/z80/main.c (_parseOptions): fixed the portmode= command line
9481 option so that it actually works. Made it specific to the z80, since
9482 the gbz80 doesn't have these kinds of I/O ports.
9484 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9486 * device/include/z180.h,
9487 * device/lib/_memcpy.c,
9488 * device/lib/_memmove.c,
9489 * device/lib/_mulint.c,
9490 * device/lib/ser_ir.c,
9491 * device/lib/ser_ir_cts_rts.c,
9492 * device/lib/_strcmp.c,
9493 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
9494 * src/z80/main.c (_process_pragma): add support for pragmas bank and
9495 portmode; added deprecation warning for bank= and protmode= forms.
9496 Also, guard against buffer overflow.
9497 * src/z80/gen.c (aopGet): generate better code for sfr banked read
9499 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9501 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
9502 changed interrupt vector table generation to only emit declared vectors.
9503 * device/include/Makefile.in: added missing backslash
9504 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
9506 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9508 Mainly changes to support compilation of the device libraries
9509 * src/pic16/device.c: stack is allocated via symbol and not
9510 via literal number. The symbol is placed in the corresponding
9511 position of the data ram
9512 * (pic16_dump_section): relocatable and absolute uninitialized
9513 data are now emitted in sorted order to reduce section naming,
9514 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
9515 weren't marked as being in the access bank,
9517 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9519 Added portion of GNU PIC Library under the directory
9520 device/include/pic16 and device/lib/pic16. These files
9521 contain the declarations of SFRs for the PIC18Fxx2 devices.
9522 The directory is initialized via configure from toplevel.
9524 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
9526 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
9527 the spilllocations to be compared correctly
9529 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9531 * src/SDCCast.c (decorateType): fixed bug introduced today
9533 2004-01-12 Borut Razem <borut.razem AT siol.net>
9535 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
9536 doc/sdccman.lyx: upper case pragmas are deprecated
9538 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9540 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
9541 in simpler and even better code
9543 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9545 * src/SDCCicode.c (operandOperation): fixed bug #874819
9546 * src/SDCCast.c (decorateType): fixed
9547 char foo (unsigned long ul) { return ul > 0; }
9549 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9551 * doc/sdccman.lyx: Moved and added some sections, small changes
9552 all over. Telling LaTeX to be less strict with word spacing
9553 to better keep the right margin. Changed some notes about
9554 maintainance of the ports in section 3.2.1 - is it OK like this?
9556 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9558 SDCC source changes:
9559 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
9560 convilong): modified to inform the pic16 port that builtin functions
9563 PIC16 PORT specific changes:
9564 * src/pic16/device.c pic16_dump_equates() added,
9565 processor registers declared internally by the port are emitted in
9566 the translation as equates,
9567 * src/pic16/gen.c: inline code is passed unprocessed to the
9569 * (pic16_popGetLit2): fnuction modified to take second operand as
9570 pCodeOp pointer and not as literal,
9571 * (popRegFromIdx): prefixed with pic16_,
9572 * (pic16_popCombine2): modified to receive already allocated pCode
9574 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
9575 * (genFunction): initializes local stack frame and pushes on stack
9576 all the registers used by this function,
9577 * (genEndFunction): restores all registers from stack and restores
9579 * src/pic16/glue.c (pic16emitRegularMap): various changes and
9581 * (pic16glue): changed the program startup sequence,
9582 * added new dbName code 'A' for functions placed in absolute section
9583 * src/pic16/main.c: added function attribute _naked,
9584 * added pragma 'code' to place a fnuction at an absolute address,
9585 * added command line arguments --debug-ralloc and --pcode-verbose,
9586 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
9587 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
9588 * (pic16_newpCodeOpLit2): modified to take the second operand as
9590 * (pic16_printpBlock): modified to emit each function in a separate
9592 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
9593 UPPER for immediate operands,
9594 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
9596 * src/pic16/peeph.def: all peepholes with movff are commented out,
9597 because there is a problem in the pcode peep optimizer,
9598 * src/pic16/ralloc.c: the register allocator can now reuse local
9599 function symbols for another function. This saves register usage.
9600 * src/pic16/ralloc.h: added flag isLocal in structure regs,
9602 Added file src/pic16/NOTES with information about program writing on
9603 the current port version.
9605 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9607 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
9608 and peephole 252 (array access)
9610 2004-01-09 Borut Razem <borut.razem AT siol.net>
9612 * src/SDCCmain.c : fixed #872250: -l command line defined library
9613 files are scanned before standard library files
9615 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9617 * src/SDCCast.c (decorateType): fixed bug #874046
9619 2004-01-09 Borut Razem <borut.razem AT siol.net>
9621 * support/scripts/sdcc.nsi: remove previous installation
9623 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9625 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
9626 bytes for last interrupt vector (mcs51)
9627 * sdcc.spec: fixed typo
9629 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9631 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
9632 gen51Code): more efficient parameter receive for --model-large
9635 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9638 * src/z80/main.c: added missed needLinkerScript flags (more than
9639 one port structure defined in these file)
9640 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
9643 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
9645 * src/SDCCmain.c: removed various references to DEFAULT_PORT
9646 * src/port.h: added flag needLinkerScript in port->linker
9647 structure to inform whether to create a .lnk file or not,
9655 * src/z80/main.c: changed appropriately to configure
9656 needLinkerScript flag
9658 * src/pic16/gen.c (genAddrOf): fixed bug #863624
9659 * src/pic/glue.c: added variable udata_section_name to
9660 override default uninitialized data segment definition for
9661 devices only with SHAREBANK memory (reported from Erik Epetrich)
9662 * (pic14emitOverlay): modified to emit a commented overlay segment
9663 directive when no overlay data exist
9664 * (picglue): modified to emit uninitialized data segment
9665 according to udata_section_name
9666 * src/pic/main.c (_pic14_parseOptions): added command line
9667 options --udata-section-name=[name] to override default
9668 udata definition name
9669 * modified _linkCmd and _asmCmd to include compiler passed
9670 arguments via -W option
9671 * src/pic16/main.c: added $l in _asmCmd, changed extension for
9672 object file from '.rel' to '.o' in port->linker structure,
9673 changed size of fptr from 2 to 3 in port structure
9675 2004-01-07 Borut Razem <borut.razem AT siol.net>
9677 * support/scripts/sdcc.nsi: update PATH
9678 * support/scripts/sdcc.ico: craeted
9680 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
9682 * device/include/Makefile.in: fix install
9683 * doc/Makefile: fix install
9685 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9687 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
9689 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
9690 how the function variable allocation summary is displayed; also
9691 include information about variables allocated to the overlay
9694 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9696 * as/mcs51/lkmain.c: Help about -Y option
9697 * as/mcs51/lkarea.c: Fixed gcc warnings
9699 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9701 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
9703 * support/valdiag/tests/overflow.c: added
9704 * src/SDCCast.c (decorateType),
9705 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
9706 LEFT_OP (left shift)
9708 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9710 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
9711 (default behaviour).
9713 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9715 A python script to validate compiler diagnostic messages. It can be
9716 used to verify that sdcc complains about bad c source code and
9717 gives a good location of the error.
9718 * support/valdiag/Makefile,
9719 * support/valdiag/valdiag.py,
9720 * support/valdiag/tests/*
9722 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9724 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
9725 * src/SDCCsymt.c (newEnumType),
9727 * support/Util/SDCCerr.c,
9728 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
9730 * support/regression/tests/enum.c: added test for enum values that
9731 require at least 2 bytes of storage.
9733 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9735 * src/common.h: added ifndef/define/endif macros
9736 around the header file.
9737 Bug reported from Jesus Calvino-Fraga
9739 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9741 * sdcc.spec: updated
9742 * device/include/Makefile.in: don't install CVS directories
9743 * device/lib/Makefile.in: added removal of CVS directories after install
9744 * doc/Makefile: fixed install, added local_icons
9745 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
9746 * src/mcs51/gen.c (genRightShift): fixed bug #870788
9747 * src/ds390/gen.c (genRightShift): fixed bug #870788
9748 * src/SDCCast.c (decorateType): fixed bug #870781
9750 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9752 PIC16 port related changes:
9753 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
9754 added variable stackPos,
9756 * gen.c: genCall, assignResultValue: added support for
9757 pushing/retrieving function parameters to/from stack,
9758 genFunction,genEndFunction: setup stack frame for the
9760 genAddrOf: will be changed according to bug 863624
9762 * added files genutils.c and genutils.h which contain gen*
9763 debugged and optimised functions extracted from gen.c
9765 * glue.c: added variable 'externs' which holds extern symbols,
9766 pic16emitRegularMap: is modified to properly handle relocatable
9767 symbols under the new scheme,
9768 pic16createInterruptVect: is modified
9769 pic16printPublics: is modified to emit 'global' assembler directives,
9770 added pic16_printExterns to print extern symbols,
9771 pic16glue: initializes stack/frame pointer in the beginning of
9772 the assembly output. Temporary hack, will be corrected later,
9773 because gplink yet does not support stack and SDCC does not
9774 yet support a type of crt0.o object to create the final binary.
9776 * Removed many lines that contain 8051 legacy code.
9777 * The code is finally placed under a 'code' directive.
9778 * Added port specific options.
9780 * _process_pragma: simplified since now we do not need *special*
9781 include file to define SFR registers. But a separate header
9782 will be needed. This will be developed later.
9783 * _pic16_parseOptions: added, parses port specific options:
9784 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
9785 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
9786 --preplace-udata-with=
9788 * _pic16_setDefaultOptions: modified to initialize section names,
9789 but hack is temporarly out of order since it needs improvement.
9790 * _pic16_genAssemblerPreamble: configuration words are emitted by
9791 their address instead of their name. This part is incomplete and
9792 supports only the 18Fxx2 devices. Other devices will emit an error
9793 during assembly since they do not contain the same set of config
9795 * _pic16_genIVT: is modified,
9797 * pcode.c: added definitions for some hardware registers that are needed
9799 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
9800 All PCI entries are updated. Now LFSR is supported.
9801 * Removed pic16_pciTRIS is mentioned by mdubuc in source
9802 * added pic16_newpCodeOpLit2 to support instructions with
9803 two literal arguments
9804 * pic16_pCode2str: corrected code that emits assembler instructions
9805 with two literal operands and those that have an access bit modifier
9806 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
9807 this fixes a bug which caused some labels to be lost, when an
9808 assembler directive was added, i.e. banksel,
9809 * pic16_FixRegisterBanking: improved logic that causes the insertion
9811 * InlineFunction: functions that are called once, are not any more
9812 inlined. This can be a port option in the future,
9814 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
9816 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
9817 hold the corresponding uninitialized symbols,
9818 * pic16_allocProcessorRegister: registers have explicit marked the
9820 * pic16_allocInternalRegister: registers are explicit marked as
9822 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
9823 processing list, so bit registers were lost,
9826 * ralloc.h: added field 'accessBank' and original symbol operand
9827 in register definition,
9828 * removed the field isMapped from register definition,
9830 ** Several functions have been removed from various sources:
9831 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
9832 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
9833 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
9834 pic16_assignRelocatableRegisters
9836 ** others have been introduced:
9837 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
9838 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
9840 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
9842 * support/scripts/inc2h.pl: changed definition of BIT_AT
9843 to emit 'sbit at' instead of 'bit at'. This was a request.
9845 PIC16 port related preliminary changes:
9846 * gen.c: prefixed function popRegFromString with
9847 pic16_ and all references to it corrected
9848 * pcode.c: all pic16_pc_* hardware registers prefixed
9849 with underscore (_),
9850 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
9851 * ralloc.c: newReg(): when register is REG_SFR then
9852 set address to rIdx,
9853 pic16_allocProcessorRegister(): marks register wasUsed=0
9854 pic16_writeUsedRegs(): added a call to assign processor
9855 registers via pic16_assignFixedRegisters
9857 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9859 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
9860 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
9861 variables in unused register banks. Also the SSEG is placed
9862 wherever there is enough space for it, and IDATA can be anywhere
9863 in internal RAM. For now compile using -Wl-Y[stack_size].
9864 The mem file is different for this option as well, since it
9865 makes no sense of talking about DSEG lenght.
9867 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
9869 * src/SDCClrange.c: fixed bug 869095 that caused segfault
9870 in certain cases, e.g. when ROM assignment, patch provided
9871 from Albert den Haan.
9873 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
9875 Many signedness and type propagation fixes:
9876 * src/SDCCicode.c: made geniCodeCast() static
9877 replaced SPEC_ by IS_ (cosmetic)
9878 (operandOperation): fixed div and mod operation
9879 (usualBinaryConversions): added support for promotion of char
9880 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
9881 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
9882 (geniCodeAdd): an array index will stay unsigned, even if promoted
9884 (geniCodeArray): ditto
9885 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
9886 * src/SDCCsymt.c (computeType): added more support for char;
9887 promotion of char is selectable by promoteCharToInt, fixed signedness
9889 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9890 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9891 * src/SDCCval (val*): replaced signedness calculation by
9893 rearranged if-branches (cosmetic)
9894 (valShift): added warning W_SHIFT_CHANGED
9895 (valCompare): fixed problem with different types
9896 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
9897 * support/regression/tests/literalop.c: added many cases
9898 * support/regression/tests/ast_constant_folding.c: changed finally to
9900 * .version: new year, new version: 2.3.7
9901 * src/SDCCmain.c (main): applied patch #866468
9902 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
9903 provided by Scott Bronson
9904 * doc/sdccman.lyx: updated documentation for sdcdb
9905 updated and added chapter tips
9907 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9909 * src/SDCCsymt.h: missing from yesterday's commits
9911 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9913 * src/SDCC.y (struct_or_union_specifier),
9914 * support/Util/SDCCerr.c,
9915 * support/Util/SDCCerr.h: verify that struct & union tags are used
9918 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9920 * src/SDCCglobl.h: missing from yesterday's commits
9922 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9924 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
9925 sft_attributes, struct_declaration, parameter_declaration,
9926 type_name, start_block, declaration_list),
9927 * src/SDCC.lex (check_type): support redefinition of typedef names
9929 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9931 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
9932 aligned xdata arrays. Erik helped me with the if clause.
9934 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9936 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
9939 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9942 * src/SDCCast.c (newAst_),
9944 * src/SDCCicode.c (ast2iCode, newiCode),
9946 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
9947 expr, statement, expression_statement, selection_statement,
9948 iteration_statement, expr_opt, jump_statement): foundation for tracking
9950 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
9953 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9955 * support/Util/SDCCerr.c,
9957 * src/SDCCast.c (createCase, createDefault, decorateType),
9958 * src/SDCClabel.c (labelUnreach),
9959 * src/SDCC.y (labeled_statement, jump_statement): More improvements
9961 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
9962 (with thanks to Stas Sergeev)
9963 * device/include/time.h,
9964 * device/lib/time.c (CheckTime): suppress unreachable code warning
9966 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9968 * src/SDCCast.c (createIvalCharPtr),
9969 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
9971 * support/regression/tests/nullstring.c: tests for these two bugs
9973 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9975 * support/Util/SDCCerr.h,
9976 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
9977 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
9978 about storage class and 'at' used inside struct or union
9979 * src/SDCCBBlock.c (iCodeFromeBBlock),
9980 * src/SDCCcse.c (ifxOptimize),
9981 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
9982 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
9983 printIval, emitStaticSeg, emitOverlay),
9984 * src/SDCClabel.c (deleteIfx),
9985 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
9986 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
9987 gatherAutoInit, processParms),
9988 * support/Util/SDCCerr.h,
9989 * support/Util/SDCCerr.c (werrorfl): Support for better error location
9990 reporting for post-parse errors.
9992 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9994 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
9995 implicit casts via union; they don't work on big endian systems
9996 (possible fix for bug #861138)
9998 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10000 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10001 * src/mcs51/main.c: fixed the fix for bug #737001
10003 2003-12-15 Borut Razem <borut.razem AT siol.net>
10005 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10007 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10009 * support/makebin/makebin.c: put output in binary mode
10011 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10013 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10014 xdata and data memory on startup. Set the environment variable
10015 SDCC_NOGENRAMCLEAR to disable this.
10016 * src/mcs51/peephole.def,
10017 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10018 (allows non-interrupt and interrupt code to safely compete for a resource
10019 without the non-interrupt code having to disable interrupts)
10021 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10023 * src/SDCCicode.c (geniCodeAdd),
10024 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10025 with valFromType if type might be a pointer and host is big endian).
10026 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10027 types, not just integer types.
10028 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10029 multiply defined with mismatching "at" address.
10031 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10033 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10034 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10035 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10036 with embedded nulls (fixed bug #753752)
10038 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10040 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10041 Apparently this did not see much testing (endless loop)
10043 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10045 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10047 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10049 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10050 gracefully handle NULL memmap pointers
10052 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10054 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10055 instead of deleting the iCode when an operand is volatile
10056 * src/z80/gen.c (genDummyRead),
10057 * src/mcs51/gen.c (genDummyRead),
10058 * src/ds390/gen.c (genDummyRead),
10059 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10061 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10062 * src/SDCC.y: fixed bug #850420
10064 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10066 Applied z80 i/o port patch from Peter Townson and fixed some operators
10067 to better handle operands in A register.
10068 * device/include/z180.h
10074 * src/z80/peeph-z80.def
10075 * src/z80/peeph.def
10078 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10082 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10084 * device/lib/hc08/_mullong.c: Removed extra #endif
10086 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10088 * sim/ucsim/hc08.src/inst.cc,
10089 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10090 carries from x to h
10091 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10092 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10093 * device/include/stdarg.h: fixed varargs for hc08
10094 * device/lib/Makefile.in,
10095 * device/lib/hc08/Makefile,
10096 * device/lib/hc08/_mulint.c,
10097 * device/lib/hc08/_mullong.c: fixed some endian problems
10099 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10101 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10102 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10103 * device/lib/_gptrget.c,
10104 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10106 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10108 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10109 * src/SDCCast.c (astErrors): fixed bug #846007
10110 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10112 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10114 * src/SDCCast.c (decorateType): disabled a transformation I added in
10115 revision 1.188 (access to fields of a structure at an absolute address);
10116 it breaks with bitfields, extern declarations, and gcse analysis.
10117 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10118 could be assigned through a pointer, so don't complain.
10119 * src/SDCCast.c (astErrors),
10121 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10123 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10125 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10126 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10127 output of __config directives, since gpasm now supports them
10128 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10129 pre-processor macro, i.e. -DMCU=p18f452
10130 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10131 and modified to handle 'cast' icode similarly to '=' icode
10132 * src/pic16/device.h (typedef struct PIC_device): added field
10133 'extMIface' to indicate that chip has external memory interface
10134 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10135 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10138 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10140 * src/SDCC.y (pointer): fixed bug #846006
10141 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10142 * src/SDCCast.c (decorateType): fixed bug #846009
10143 * src/ds390/peeph.def,
10144 * src/ds390/gen.c (genAnd, genOr),
10145 * src/mcs51/peeph.def,
10146 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10148 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10150 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10157 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10161 * src/SDCCbitv.c: added function to free a bitvector
10162 * src/SDCClrange.h,
10163 * src/SDCClrange.c: added function to recompute the liveranges
10164 * src/avr/ralloc.c,
10165 * src/ds390/ralloc.c,
10166 * src/hc08/ralloc.c,
10167 * src/mcs51/ralloc.c,
10168 * src/pic/ralloc.c,
10169 * src/pic16/ralloc.c,
10170 * src/xa51/ralloc.c,
10171 * src/z80/ralloc.c: recompute the liveranges after register packing
10173 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10175 * src/SDCCloop.c (newInduction): fixed bug #845630
10177 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10179 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10180 inadvertantly left behind from my 2003-11-12 change
10182 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10184 Updated headers I neglected to commit yesterday.
10185 * src/SDCClrange.h,
10188 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10190 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10191 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10192 * src/SDCCopt.c (eBBlockFromiCode),
10193 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10194 the creation of the key hash table from the sequencing so it can be used
10195 earlier (for some GCSE bug fixes still pending)
10197 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10199 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10200 * support/regression/tests/addsub.c: testing genPlus shortcut
10202 2003-11-15 Borut Razem <borut.razem AT siol.net>
10204 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10206 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10208 * src/SDCCcse.c (cseBBlock): fixed bug #527779
10209 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10210 ordering is immaterial.
10211 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10213 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10215 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10216 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10217 (SIGSEV) of bug #840381
10218 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10219 unlink new file before rename if new and old filenames are the same)
10221 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10223 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10224 uninitialized variables) for the mcs51. Set environment variable
10225 SDCC_GENRAMCLEAR to test.
10226 xdata initialization slightly shorter
10228 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10231 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10232 #838241 & 780691 (basicly the same bug)
10233 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10234 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10236 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10238 * src/SDCCmain.c (linkEdit): "fix" #834252
10240 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10242 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10244 * src/SDCC.y: fixed bug #819403
10246 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10248 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10249 the reentrant attribute.
10250 * src/hc08/gen.c (genPackBits): added missing stack readjustment
10251 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10253 * src/SDCCast.c (decorateType): fixed bug with storage class not being
10254 updated during pointer dereference; f.e. ~(((char *)1)*) was being
10255 erroneously reduced to a literal.
10256 * src/hc08/ralloc.c (packRegisters, rematStr),
10257 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10260 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10262 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10263 * doc/sdccman.lyx: changed from 'article' to 'book'
10264 * doc/Makefile: readded test_suite_spec and cdbfileformat
10266 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10268 * device/include/stdlib.h: include malloc.h to comply with ANSI
10269 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10271 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10273 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10274 * doc/clean.mk: also remove *.out files
10275 * doc/sdccman.lyx: some additions, larger top/bottom margins
10277 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10279 * src/SDCC.y: fixed bug #837365
10280 * support/regression/tests/bitopcse.c
10281 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10282 a symbol (might be valop instead)
10283 * device/lib/Makefile.in: added errno.c to HC08SOURCES
10284 * device/lib/clean.mk: added hc08 to the cleaning list
10286 2003-11-04 Borut Razem <borut.razem AT siol.net>
10288 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
10290 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10291 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
10292 malloc is declared in standard stdlib.h
10294 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10296 * device/lib/hc08/Makefile: need to clean .rel not .o files
10297 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
10299 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10303 * src/mcs51/main.c,
10304 * src/ds390/main.c,
10308 * src/pic16/main.c,
10309 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
10310 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
10311 tests (which uses the port's oclsExpense function)
10317 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
10319 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10321 * src/SDCCcse.c (ifxOptimize),
10322 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
10323 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
10324 deleting the IFX iCode.
10325 * src/hc08/ralloc.c: reduced unneeded slocs
10326 * src/hc08/gen.c: fixed bug in asmopToBoolean
10328 2003-11-04 Borut Razem <borut.razem AT siol.net>
10330 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
10331 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10332 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
10333 transferred to configure
10335 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
10337 Use headers defined in the C[++] standards:
10338 * sim/ucsim/gui.src/serio.src/fileio.cc
10339 * sim/ucsim/gui.src/serio.src/frontend.cc
10340 * sim/ucsim/gui.src/serio.src/main.cc
10341 * sim/ucsim/gui.src/serio.src/posix_signal.cc
10342 * support/Util/NewAlloc.c
10344 * as/mcs51/lklibr.c
10348 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10350 * Added MSVC projects for hc08 assembler and linker:
10351 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
10352 /as/hc08/link_hc08.dsp
10354 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
10356 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
10358 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
10360 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
10362 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10364 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
10366 2003-10-31 Borut Razem <borut.razem AT siol.net>
10368 * support/cpp2/cpplib.h,
10369 support/cpp2/cpplib.c,
10370 support/cpp2/cpplex.c,
10371 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
10372 to switch _asm block preprocessing on / off. Default is
10373 #pragma preproc_asm +
10375 2003-10-31 Borut Razem <borut.razem AT siol.net>
10377 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
10378 when outputting comment blocks (when executed with -C option) and
10379 _asm (SDCPP specific) blocks
10381 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10383 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
10385 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
10387 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
10389 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
10391 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
10392 * src/SDCCast.c (decorateType): fixed bug #832664
10394 2003-10-31 Borut Razem <borut.razem AT siol.net>
10396 * support/cpp2/cpplex.c: fixed for SDCPP:
10397 comments(when executed with -C option) and _asm blocks
10398 were included even if they where in skipped #if block.
10399 Applied solution from GCC cpp 3.3.2
10401 2003-10-31 Borut Razem <borut.razem AT siol.net>
10403 * src/SDCC.lex: sdcc now understands both formats:
10404 '# <line_number> <file_name>' and
10405 '#line <line_number> <file_name>'
10406 * support/cpp2/cppmain.c: sdcpp now generates the standard
10407 '# <line_number> <file_name>' instead of former
10408 '#line <line_number> <file_name>'
10410 2003-10-30 Borut Razem <borut.razem AT siol.net>
10412 * support/cpp2/cpphash.h,
10413 * support/cpp2/cpplib.h
10414 * support/cpp2/cpplex.c,
10415 * support/cpp2/cppmain.c,
10416 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
10418 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10420 Fixed a number of problems revealed by bug #827883.
10421 * src/SDCCloop.c (loopInvariants): Spill location of the
10422 result operand should be recomputed if extracted from
10423 a loop. Also, don't extract assignments of an iTemp
10425 * src/SDCCast.c (isConformingBody): loop reversal should
10426 not occur if the control variable is involved with a
10427 relational operator.
10429 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
10431 * .version: bumped to 2.3.6 to reflect the big improvements
10432 made by Erik and Klaus. Thanks!
10434 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
10436 Replaced the livrange code.
10437 * src/SDCClrange.c: added new LR code
10439 * src/SDCCBBlock.h: removed remainig parts from old LR code
10440 * src/ds390/ralloc.c,
10441 * src/ds390/gen.c: minor fixes to make it work with new code
10443 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10446 * as/hc08/lkrloc.c,
10448 * src/hc08/ralloc.c: Fix various warnings related to the hc08
10449 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
10450 (tweaked fix for bug #818696)
10452 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10454 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
10456 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10459 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
10460 * src/mcs51/gen.c (gencjneshort),
10461 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
10462 more efficient (per Scott Bronson's suggestion)
10464 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10466 Extended the semantics of the critical keyword to include
10467 individual statements. See RFE #827755 and #799831
10472 * support/Util/SDCCerr.c
10473 * support/Util/SDCCerr.h
10478 2003-10-19 Borut Razem <borut.razem AT siol.net>
10480 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
10482 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10484 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
10486 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
10487 and predecrement operand is displayed
10489 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10491 * src/SDCCval.c (valMinus): fixed bug #826041
10493 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10495 Some hc08 related updates that I missed earlier
10496 * sim/ucsim/stypes.h
10497 * support/regression/ports/hc08/spec.mk
10499 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10501 New target "hc08" for the Motorola 68hc08 family of micros
10509 * sim/ucsim/hc08.src/*
10510 * sim/ucsim/configure.in
10511 * src/ucsim/configure
10512 * sim/ucsim/packages_in.mk
10515 * device/include/mc68hc908qy.h
10516 * device/lib/hc08/*
10517 * device/lib/Makefile.in
10518 * support/regression/ports/hc08/*
10519 * support/regression/Makefile
10521 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10523 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
10525 * src/ds390/gen.c (genCast): fixed bug #821957
10527 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10529 * device/lib/logf.c: "fixed" overlay bug
10530 * support/regression/ports/host/spec.mk: added m library
10531 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
10532 * support/regression/tests/float_trans: added (for Eric)
10534 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
10536 * src/mcs51/gen.c (genCpl): fixed bug
10537 http://sf.net/mailarchive/message.php?msg_id=6263915
10539 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
10541 * src/SDCCast.c (decorateType): added extended constant folding
10542 * src/SDCCsymt.c (computeType): cleanup
10543 * src/SDCCval.c (valShift): minor optimization
10544 * support/regression/tests/ast_constant_folding.c: added
10546 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10548 * src/SDCCmain.c: removed some unintended changes
10550 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10552 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
10553 * src/z80/gen.c: fixed part of bug #817589
10554 * src/SDCCsymt.c (checkFunction): fixed bug #817895
10556 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
10558 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
10569 * src/ds390/ralloc.c
10571 * src/mcs51/ralloc.c
10573 * src/pic16/ralloc.c
10574 * src/xa51/ralloc.c
10576 * src/z80/gen.c: removed unused label "release:"
10578 2003-10-06 Borut Razem <borut.razem AT siol.net>
10580 * src/SDCC.lex: removed definition of unused variables
10581 save_optimize and save_options
10583 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
10585 * clean.mk: removed '=' in "-maxdepth=1"
10586 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
10587 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
10589 2003-10-06 Borut Razem <borut.razem AT siol.net>
10591 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
10592 my_unput() replaced by unput()
10594 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
10596 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
10597 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
10598 type-punned pointer will break strict-aliasing rules"
10599 Old LR behaviour is again default; Klaus' LR can be choosen by
10600 defining the environment variable LRKLAUS
10604 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
10605 * clean.mk: fixed removal of files in bin/CVS/
10606 * device/lib/clean.mk: fixed removal of directories small and large
10607 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
10609 * src/SDCCval.c: removed superflous test for pedantic
10611 2003-10-05 Borut Razem <borut.razem AT siol.net>
10613 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
10614 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
10615 message "unmatched #pragma SAVE and #pragma RESTORE"
10617 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10619 * doc/sdccman.lyx: various additions and updates (interrupts, inline
10620 assembly, critical functions, atomic, nojtbound)
10622 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
10624 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
10630 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10633 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10635 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10637 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10638 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
10639 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
10641 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10643 * src/z80/gen.c (genRet): fixed bug #524753
10644 * src/z80/gen.c (genCast): fixed internal error on cast from
10646 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
10647 fix for bug #477835 to the z80
10648 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
10649 for tracking iCodes in the peephole optimizer for z80
10651 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10653 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
10654 the other part of bug #814548
10655 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
10657 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
10659 * src/SDCCcse.c: fixed part of bug #814548
10661 2003-09-28 Borut Razem <borut.razem AT siol.net>
10663 * src/asm.c: rewrite of printILine() to use temporary file instead
10665 * src/xa51/main.c: commented out declaration of int rewinds
10667 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10669 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
10671 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10673 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
10674 * src/asm.c (printILine): Fixed bug #811015
10676 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10678 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
10681 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10683 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
10684 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
10685 to correctly handle general case of AOP_PAIRPTR
10686 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
10688 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10690 * src/mcs51/ralloc.c (fillGaps),
10691 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
10692 register positioning bug)
10694 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
10696 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
10698 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10700 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
10701 genCodePointerGet, genGenPointerGet, genFarPointerSet,
10702 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
10703 (ralloc doesn't intentionally do this now, but perhaps later)
10704 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
10705 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
10706 register positioning bugs (Fixed bug #762602 and #795325)
10707 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
10708 (Fixed bug #808779)
10709 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
10710 lines that --i-code-in-asm generates
10712 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10714 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
10715 trying to fclose a FILE* that was already closed.
10717 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10719 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
10720 of const struct should be treated as if const themselves)
10722 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
10724 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
10726 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10728 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
10729 Unix (/n) and DOS (/r/n) line terminations.
10731 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10733 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
10736 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10738 * src/mcs51/gen.c (genFunction, genEndFunction),
10739 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
10740 and restore of EA so that stack offsets to parameters are
10741 correct when using both critical and reentrant/stack-auto.
10742 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
10743 size (can be triggered in error if sloc is shared between
10744 different sized objects)
10745 * device/include/float.h: fixed macros to explicitly use
10746 unsigned long where needed
10748 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10750 Feature req. 799831: added code to allow nesting of critical functions
10751 * src/mcs51/gen.c (genFunction, genEndFunction)
10752 * src/ds390/gen.c (genFunction, genEndFunction)
10754 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10756 * src/SDCCsymt.c (sclsFromPtr),
10758 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
10759 support for standard C idiom of memory mapped variables; for
10760 example, *((xdata int*)0x1234) = 1 is now internally equivalent
10761 to xdata int at 0x1234 tempvar = 1.
10762 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
10763 provided by Akiya ISHIDA
10765 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
10767 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
10768 * src/SDCCval.c (constVal): added reduction from int to char
10769 * src/SDCCval.c (valMult, valDiv): fixed sign handling
10770 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
10771 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
10773 * support/regression/tests/shifts.c: fixed
10775 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10777 * src/z80/gen.c (genXor): Fixed bug #805445
10779 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10781 Fixed bug #621531 (const & volatile confusion in the type chain).
10782 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
10783 refer to the const or volatile state of the pointer itself.
10795 * src/pic16/ralloc.c
10796 * support/regression/tests/const.c
10798 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10800 When checking for duplicated modules, use absolute paths
10801 instead of relative paths. Files changed:
10806 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10808 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
10810 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10812 * device/include/string.h: added size_t typedef, changed
10813 prototypes to use size_t, eliminated separate reentrant and
10814 non-reentrant declarations, added _memmove declaration
10815 * device/lib/_memcpy.c: changed to use size_t instead of int,
10816 changed /4 to >>2 to avoid division library call
10817 * device/lib/_memcmp.c,
10818 * device/lib/_memset.c,
10819 * device/lib/_strncat.c,
10820 * device/lib/_strncpy.c,
10821 * device/lib/_strncmp.c: changed to use size_t instead of int
10822 * device/lib/_memmove.c: new file (fixed bug #772294)
10823 * device/lib/Makefile.in: added _memmove.c
10824 * device/lib/z80/asm_strings.s: fixed bug #772290
10825 * support/regression/tests/bitfields.c: attempt to fix host assertion
10826 failure on amd64-unknown-linux2.2
10828 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10830 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
10831 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
10832 * as/z80/asmain.c (main): fixed bug #801766
10834 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
10836 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
10839 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10841 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
10842 reported in bug #800609
10844 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
10846 * Top header beautifications in src/pic16 directory:
10847 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
10848 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
10849 pcoderegs.h, ralloc.c, ralloc.h
10850 * main.c: added top header and GPL license notice
10851 * pcode.c: fixed the if-conditional warning
10853 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
10855 * device/lib/_mullong.c: replaced int by short for gcc
10857 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10859 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
10860 and JUMPTABLE iCodes properly now (worked by accident before)
10861 * src/mcs51/gen.c (leftRightUseAcc),
10862 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
10863 iCode properly now. Use getSize instead of nRegs since a & b
10864 aren't part of the nRegs tally.
10866 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
10868 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
10869 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
10870 before instructions that use the _STATUS register
10872 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
10874 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
10875 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
10876 fetching of the pointer
10877 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
10878 copied from genNearPointerSet()
10879 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
10880 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
10881 If they pop r0/r1 they must be called in the opposite order than aopOp().
10882 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
10883 (resp. --stack-auto), prepared for --xstack
10885 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10887 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
10889 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
10891 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
10892 these ports have their own __sdcc_external_start()
10894 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
10896 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10897 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
10898 type for bits was changed. It resulted in bit variables becoming
10899 global, which is not permitted in PIC 14 assembly output.
10901 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10903 * doc/sdccman.lyx: various additions and updates. Rearranged sections
10905 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10907 Z80 and MCS51 linkers complaint if a public symbol is defined
10908 in more than one library module:
10912 * as/mcs51/Makefile.in
10914 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10916 A few small changes that speed up the peephole optimizer.
10920 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10922 Try to make the peephole optimizer smarter by maintaining
10923 an association between the assembly source code and the
10924 iCodes that originated them. Put this information to use
10925 with a new peephole rule condition "notVolatile" so that
10926 the rules can be aggressive yet still safe.
10931 * src/mcs51/peeph.def
10933 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10937 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
10938 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
10939 if the left or right operand symbols have the accuse flag set.
10941 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10943 Changed the type of the result of the ! (NOT) operator to char;
10944 previously it returned the same type as the source. This allows
10945 us to eliminate all the genFloatNot functions (all of its target
10946 implementations were very buggy) since !float can use the same
10949 * src/SDCCicode.c (ast2iCode): ! returns char
10950 * src/mcs51/gen.c (genNot, genNotFloat),
10951 * src/ds390/gen.c (genNot, genNotFloat),
10952 * src/z80/gen.c (genNot, genNotFloat),
10953 * src/pic/gen.c (genNot, genNotFloat),
10954 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
10956 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
10958 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10959 1. Interrupt would not compile properly. Ensure PCLATH register is saved
10960 during interrupts. Ensure WSAVE is located at a shared bank address.
10961 2. Fixed page selection in some places
10962 3. Fixed BTFSS/C to where necessary use registers directly and not simply
10963 the registers name strings.
10964 4. Fixed "signed / unsigned compare" compiler warnings.
10965 5. The PIC port manages its own allocation of the general purpose
10966 registers, but makes no attempt to reuse them. As a result when
10967 compiling it soon runs out of general purpose registers. Some
10968 additional code was added to the files pcode.c and device.c to walk
10969 through the function call tree and rename the registers so that they
10979 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
10980 genPlus() & genMinus() when the result is the same as left or right
10982 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
10986 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10988 Made bitfield a distinct type from bit so that bitfields
10989 convert as per ANSI C and bits retain their traditional
10990 boolean style behaviour. Implemented bitfield support in
10998 * src/ds390/gen.c: bit v bitfield split
10999 * src/z80/gen.c: New support for bitfields
11000 * support/regression/tests/bitfields.c: reenabled z80,
11003 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11005 Rules 246.x, 247.x relate to bitfields, the others speed up
11006 access to xdata mapped I/O devices.
11008 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11010 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11012 Cleaned up genPackBits and genUnpackBits and added two helper
11013 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11014 for literal assignments in genPackBits (thanks to Frieder for
11020 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11022 Fixed bug #748310 (pointer to function type mishandled when the
11023 function name is omitted). Also fixed a SIGSEGV when a function
11024 attribute (reentrant, etc) is used on a non-function or on a
11025 function but misplaced before the parameter list.
11027 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11029 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11030 * support/Util/SDCCerr.h,
11031 * support/Util/SDCCerr.c: Added func attr misuse error msg
11033 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
11035 Fixed bug #787649 by anonymous
11036 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11037 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11039 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11041 Fixed numerous bitfield problems.
11043 * src/SDCC.y: More bitfield related error checking
11045 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11046 * support/Util/SDCCerr.h,
11047 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11048 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11049 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11050 * support/regression/tests/bitfields.c: tests added
11052 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11054 Made the constant following the "interrupt" keyword optional. If
11055 omitted, the function will not automatically be given an entry
11056 in the interrupt vector table (similar to #pragma NOIV, but
11057 less syntacticly kludgy). The interrupt number is also now
11058 range checked. Also fixed a bug in the high order bit example
11065 * support/Util/SDCCerr.c
11066 * support/Util/SDCCerr.h
11069 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
11071 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11072 * src/SDCCicode.c (operandOperation): rewritten some ops
11073 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11074 * src/SDCCsymt.c (computeType): literals are handled the same way as any
11076 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11077 be re-activated by defining REDUCE_LITERALS)
11078 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11079 unsigned, but are signed by default
11080 * src/SDCCval.c (constVal): rearranged
11081 * src/SDCCval.c (valMod): preliminary fix
11082 * src/SDCCval.c (valCastLiteral): use TYPE_* types
11083 * support/regression/literalop.c: added, work in progress
11085 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11087 Generate warnings for useless declarations like "char data;"
11088 that don't do what new users expect.
11091 * support/Util/SDCCerr.h
11092 * support/Util/SDCCerr.c
11094 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
11096 * src/SDCCval.c (valMult): fix overflow detection of negative int
11098 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11100 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11102 Changes to support big endian targets:
11115 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
11117 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11118 * device/lib/time.c: fixed warning "integer overflow in expression"
11120 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
11122 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11123 * src/SDCCval.c (constVal): changed default to signed; hex and octal
11124 constants are unsigned; added recognition of "u" flag for unsigned
11125 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11126 * src/SDCCval.c (valDiv, valMod): fixed signdness
11127 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11128 signedness of modulo, left and right shift
11129 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11130 * support/Util/SDCCerr.h: added warning W_INT_OVL
11131 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11132 * src/SDCCast.c (ast_print): improved output of constants
11134 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11136 Fixed some warnings when building with MSVC:
11138 * as/mcs51/asdata.c
11142 * link/z80/aslink.h
11143 * link/z80/lkdata.c
11144 * link/z80/lkeval.c
11149 * support/cpp2/cpplib.c
11153 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
11155 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11157 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11159 * support/librarian/clean.mk: Do not remove Makefile.
11160 * support/librarian/Makefile: added.
11162 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11164 Added librarian to MSVC build:
11167 * support/librarian/librarian.dsp
11169 'configure' not needed for librarian, removed:
11170 * support/librarian/configure
11171 * support/librarian/configure.in
11172 * support/librarian/config_in.h
11173 * support/librarian/Makefile.in
11175 Hopefully these ones built the librarian and the rest of sdcc properly:
11177 * Makefile.common.in
11179 Messed up 'configure', so revert to previous version:
11183 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
11185 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11186 there, while the mantissa of a double is "only" 53 bits wide.
11188 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11190 Adding sdcclib to the build. MSVC project coming soon.
11191 Files added/changed:
11193 * support/librarian/clean.mk
11194 * support/librarian/configure
11195 * support/librarian/configure.in
11196 * support/librarian/config_in.h
11197 * support/librarian/Makefile.bcc
11198 * support/librarian/Makefile.in
11199 * support/librarian/sdcclib.c
11202 * Makefile.common.in
11206 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11208 Linker now complaints if linked modules have conflicting options, for
11209 example, one compiled using --model-large and another one compiled with
11210 --model-small. The following files were modified:
11212 * as/mcs51/asdata.c
11213 * as/mcs51/aslink.h
11215 * as/mcs51/asmain.c
11217 * as/mcs51/i51pst.c
11218 * as/mcs51/lkdata.c
11219 * as/mcs51/lklibr.c
11220 * as/mcs51/lkmain.c
11226 * link/z80/aslink.h
11227 * link/z80/lkdata.c
11228 * link/z80/lklibr.c
11229 * link/z80/lkmain.c
11232 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11234 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11235 as/mcs51/lklibr.c: Generate a warning when a library is not found.
11237 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
11239 * src/z80/mappings.i: fix _mul[us][int,long] entries
11241 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11243 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11245 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
11247 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11248 * support/regression/tests/bitopcse.c: added
11256 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11258 added support for new library format to z80, gbz80 linkers:
11264 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
11266 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11267 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11269 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
11271 added DUMMY_READ_VOLATILE:
11280 * src/SDCCcse.c (algebraicOpts): many improvements
11281 * src/SDCCcse.h: removed algebraicOpts()
11282 * src/SDCCicode.c (picDummyRead): added
11284 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11286 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11287 "Insufficient space in data memory".
11289 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11291 * src/mcs51/gen.c: fixed bug #771358
11292 * src/z80/gen.c: fixed bug #759087
11294 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
11296 * src/pic16/glue.c: minor cleanup by Vangelis
11298 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11300 * device/include/regc515c.h: fixed #758477
11301 * device/lib/_gptrget.c: saving some cycles in generic pointer get
11302 * device/lib/_gptrput.c: saved a few bytes
11303 * my tab spacing is 8, yours too?)
11304 * device/lib/_ser.c: process RX bytes earlier than TX bytes
11305 * device/lib/serial.c: process RX bytes earlier than TX bytes
11306 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
11308 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11310 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
11312 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11314 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
11316 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
11318 * device/lib/Makefile.in: bad fix, reverted to 1.43
11320 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
11322 * device/lib/Makefile.in: added missing z80 object files
11324 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
11326 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
11327 pic16 progress by Vangelis:
11330 * src/pic/Makefile:
11337 * pic16/genarith.c:
11342 * pic16/pcodepeep.c:
11345 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11347 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
11349 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11351 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
11352 added gbz80 build to MSVC project.
11353 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
11354 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
11355 from 8051 stuff and setup so it links using a .lnk file.
11357 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11359 * support/librarian/sdcclib.c: sdcc librarian.
11360 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
11363 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11365 * as/mcs51/lkmain.c: properly handle extensions in function afile.
11367 2003-07-02 Borut Razem <borut.razem AT siol.net>
11369 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
11370 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
11371 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
11372 src/xa51/main.c, src/z80/main.c:
11373 virtualization of glue() function: each port has it's own glue function,
11374 which is accessed by do_glue function pointer in PORT.general structure
11376 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
11378 * DS800C400 fun, improved ROM interface and tinibios.
11380 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
11382 * More support for DS80C400. Now includes beginning of interface to ROM.
11384 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
11386 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
11388 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11390 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
11392 2003-06-19 Borut Razem <borut.razem AT siol.net>
11394 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
11396 2003-06-19 Borut Razem <borut.razem AT siol.net>
11398 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
11399 fixed Z80 port - crt0.o: cannot open.
11401 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
11403 * support/Util/MySystem.c (merge_command): revert bad fix
11405 2003-06-18 Borut Razem <borut.razem AT siol.net>
11407 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
11409 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11411 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11412 option --use-stdout sends errors to stdout instead of stderr.
11414 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
11416 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
11418 2003-06-15 Borut Razem <borut.razem AT siol.net>
11420 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
11421 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
11422 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
11423 fixed width array of pointers replaced with sets;
11424 multiple include and lib paths ared transferred to preprocessor and linker
11425 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
11426 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
11427 fixed width array of pointers
11428 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
11429 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
11430 fixupPath(), getPathDifference()
11431 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
11432 fixed width array of pointers
11434 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
11436 * src/pic16/ralloc.c: fix warnings
11437 * src/pic16/pcode.c: fix warning
11439 2003-06-10 Scott Dattalo <scott AT dattalo.com>
11441 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
11442 know all the details, but essentially this set of changes enable
11443 the pic16 port to generate movff instructions and generate assembler
11447 * src/pic16/glue.c:
11448 * src/pic16/pcode.c:
11449 * src/pic16/device.c:
11450 * src/pic16/main.c:
11451 * src/pic16/pcode.h:
11452 * src/pic16/pcoderegs.c:
11453 * src/pic16/ralloc.c:
11454 * src/pic16/ralloc.h:
11456 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11458 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11459 added option --vc, so sdcc errors and warnings are compatible with
11460 Microsoft Visual Studio.
11462 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11464 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
11465 device/lib/libfloat.lib: added atof function.
11467 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
11469 * doc/sdccman.lyx: updated to Lyx 1.3
11470 * doc/cdbfileformat.lyx: updated to Lyx 1.3
11471 * doc/test_suite_spec.lyx: updated to Lyx 1.3
11472 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
11474 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
11476 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
11478 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11480 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
11481 additions to the "related tools/documentation" section
11483 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
11485 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
11487 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
11489 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
11490 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
11492 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
11494 * doc/sdccman.lyx: fix double dash and other minor things
11495 * doc/Makefile: fix double dash
11497 2003-05-28 Karl Bongers(patches from Martin Helmling)
11498 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
11499 condition and ignore commands.
11501 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11503 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
11504 is in parts still quite out of date, I did changes as far as I felt makes sense
11505 for a non-native english speaker.
11506 Please feel free to add to the manual or to correct my changes.
11507 * doc/Makefile: undid touching the date of intermediate tex files.
11509 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11511 * doc/sdccman.lyx: Manual has an index now
11513 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
11515 Finalize muluint/mulsint and mululong/mulslong merging:
11516 * device/lib/_mulint.c
11517 * device/lib/_mullong.c
11518 * device/lib/gbz80/mul.s
11519 * device/lib/gbz80/stubs.s
11520 * device/lib/z80/mul.s
11521 * device/lib/z80/stubs.s
11522 * src/SDCCsymt.c (initCSupport)
11524 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11526 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
11527 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
11528 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
11529 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
11532 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11534 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
11535 the regression tests I'm not brave enough to enable 245.b, 245.c
11536 * doc/sdccman.lyx: added latex preamble for hyperref package.
11537 Using pdflatex this will give you a hyperlinked pdf file with
11538 bookmarks. (prepend '%' before /usepackage if this breaks something)
11540 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11542 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
11544 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
11546 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
11548 2003-05-21 <johan AT balder>
11550 * src/SDCCglue.c (printIval): fixed bug #739934
11552 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
11554 Applied patch from bug 737905 (renamed yylineo to mylineno):
11561 * src/pic16/pcode.c: Cleaned warnings
11562 * src/pic16/pcodeflow.c: Cleaned warnings
11563 * src/pic16/pcoderegs.c: Cleaned warnings
11565 2003-05-19 Scott Dattalo <scott AT dattalo.com>
11567 * src/pic16/pcode.c: Cleaned warnings
11568 * src/pic16/pcodepeep.c: Cleaned warnings
11569 * src/pic16/ralloc.c: Cleaned warnings
11571 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
11573 * doc/sdccman.lyx: fixed bug 739745
11574 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
11576 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
11578 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
11579 it can be defined with CFLAGS when running configure
11580 * src/SDCCmain.c: fixed compiling + linking with object files
11582 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
11584 * configure.in: configure for pic16 port,
11585 added --disable-pic16-port
11586 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
11587 * src/SDCCmain.c: linkOptions is changed to set *,
11588 added if/endif conditional macros to remove options help
11589 messages from optionsTable when a port is not configured, added
11590 support for the PIc16 port in the ports table, when executing
11591 the compiler with no port specified on command line, a default
11592 port is selected with the new macro DEFAULT_PORT which is
11593 defined in port.h, in setDefaultOptions() linkOptions is removed
11594 from initialization assignment, since now it is a set,
11595 parseCmdLine uses setParseWithComma for linkOptions, in
11596 linkEdit() linkOptions are accessed with new function indexSet()
11597 which returns the i'th item of a set variable. See SDCCset.c, in
11598 linkEdit() when calling buildCmdLine(), added linkOptions as
11599 last argument. Now users can pass arguments to gplink via the
11600 -Wl option, main() uses pic16glue() to glue up pic16 programs
11601 * src/SDCCpeeph.c: various changes to support pic16
11602 * src/SDCCset.c: added function void *indexSet(set *, int) to
11603 return the i'th item of the set
11604 * src/SDCCset.h: added function prototype for indexSet()
11605 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
11606 * src/clean.mk: added pic16 in CLEANALLPORTS variable
11607 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
11608 added macro DEFAULT_PORT
11609 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
11610 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
11612 * src/pic16/glue.c: commented out some error producing lines
11613 * src/pic16/main.c: __config directives are commented out to stop
11614 gpasm complaining and test the linkage with gplink, _linkCmd and
11615 _asmCmd changed to be more gplink and gpasm friendly
11616 * src/pic16/peeph.def: peep rule 3 is commented out, since it
11617 produced an error when parsed, peep rule 12 is added to utilize
11618 movff, but it is commented out since the pCode does not support
11619 yet a command with 2 address arguments
11621 2003-05-18 <johan AT balder>
11623 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11624 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11625 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
11627 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
11628 Added feature to script commands from file.
11630 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
11632 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
11633 * src/SDCCutil.c: include ctype.h for win32
11635 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
11637 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
11639 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
11641 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
11642 Fixed so you can set breakpoints prior to run, run does not stop
11643 on entry now. Add tbreak. Other enhancements and fixes for use
11646 2003-05-12 Borut Razem <borut.razem AT siol.net>
11648 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
11650 2003-05-11 Borut Razem <borut.razem AT siol.net>
11652 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
11653 the path of bin directory, so that PATH is the only env. variable, which has to be set
11654 in case of standard installation.
11655 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
11656 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
11657 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
11659 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
11661 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
11662 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
11663 temp files are in the port dir; clean the gen/test directory when
11664 generating new test.c
11665 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
11666 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
11667 * support/regression/tests/zeropad.c: added
11669 2003-05-09 <johan AT balder>
11671 * src/SDCCglue.c: fixed bug #597940
11673 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
11675 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
11676 cache sfr, optimize next,step, fix off by one sourceline,
11677 support ddd list function.
11678 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
11680 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
11682 * support/regression/HTMLgen.py: added compare_s2f()
11683 * support/regression/Makefile: redo 1.27
11684 * support/regression/generate-cases.py: redo 1.5
11686 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
11688 * support/regression/tests/float.c: workaround 33 bit hex constant
11689 * support/regression/tests/simplefloat.c: fix division for host
11691 2003-04-29 Scott Dattalo <scott AT dattalo.com>
11693 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
11694 that tame's the PIC's over-aggressive optimizer.
11696 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11698 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
11701 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
11703 Initial support for DS80C400. "Hello world" runs on TINIm400
11706 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
11708 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
11709 * Some notes on ddd usage added in debugger/README
11710 Martin Helmling adding more features and fixes for ddd GUI debugger.
11711 Code added for nexti, stepi, up, down, and other adjustments.
11713 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
11715 * src/pic/pCodepeep.c non-wildcard asmops are now handled
11716 * src/pic/peeph.def Added two rules to optimize carry manipulation
11717 * src/pic/* removed debug printfs
11719 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
11721 * debugger/mcs51/cmd.c: added header newalloc.h
11723 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
11725 * as/Makefile: new EXEEXT
11726 * as/z80/Makefile: remove trailing slash of BUILDIR
11727 * as/z80/clean.mk: new EXEEXT
11728 * Makefile.common.in: add to CFLAGS (and others), don't replace it
11729 * support/cpp2/Makefile.in: new EXEEXT
11730 * src/pic/glue.c (pic14emitRegularMap): fixed warning
11732 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
11734 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
11735 EXEEXT was introduced to fix all related problems with targets
11736 "clean", "install" and "uninstall"; a couple of further flaws
11737 especially with "clean" have been fixed too
11738 * as/mcs51/Makefile.in
11739 * as/mcs51/clean.mk
11743 * debugger/mcs51/Makefile.in
11744 * debugger/mcs51/clean.mk
11745 * link/z80/Makefile
11746 * link/z80/Makefile.in
11747 * link/z80/clean.mk
11749 * packihx/Makefile.in
11751 * sim/ucsim/Makefile
11752 * sim/ucsim/clean.mk
11753 * sim/ucsim/avr.src/Makefile.in
11754 * sim/ucsim/avr.src/clean.mk
11755 * sim/ucsim/s51.src/Makefile.in
11756 * sim/ucsim/s51.src/clean.mk
11757 * sim/ucsim/xa.src/Makefile.in
11758 * sim/ucsim/xa.src/clean.mk
11759 * sim/ucsim/z80.src/Makefile.in
11760 * sim/ucsim/z80.src/clean.mk
11761 * sim/ucsim/main_in.mk
11762 * sim/ucsim/packages_in.mk
11763 * sim/ucsim/gui.src/Makefile.in
11764 * sim/ucsim/gui.src/serio.src/Makefile.in
11765 * sim/ucsim/gui.src/serio.src/clean.mk
11768 * support/cpp2/Makefile.in
11769 * support/cpp2/clean.mk
11770 * support/makebin/Makefile
11771 * support/makebin/clean.mk
11772 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
11773 * doc/sdccman.lyx: --program-suffix no longer needed
11775 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
11777 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
11778 Martin Helmling added support for ddd GUI debugger.
11779 Code added to display assembly, set variables, and other commands
11780 to interface to ddd.
11782 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
11784 * as/Makefile: fix target clean
11785 * as/clean.mk: fix target clean
11786 * as/z80/clean.mk: fix target clean
11788 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
11790 * Makefile.common.in: added AT EXEEXT AT
11791 * configure.in: removed all mingw32 stuff
11792 * configure: rebuilt from configure.in
11793 * doc/sdccman.lyx: updated section "installation"
11794 * support/scripts/sdcc_mingw32: adapted to configure
11795 * support/scripts/sdcc_cygwin_mingw32: added
11797 2003-04-22 Scott Dattalo <scott AT dattalo.com>
11799 * src/pic Added object file support for the PIC port
11800 * src/pic Applied patch from Craig Franklin (this started the object file support)
11801 * src/regression Updated the PIC regression tests for object files
11803 2003-04-20 Borut Razem <borut.razem AT siol.net>
11805 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
11806 lklex.c: In function `getfid':
11807 lklex.c:203: warning: array subscript has type `char'
11808 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
11809 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
11810 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
11811 stack handling macros
11813 2003-04-19 Borut Razem <borut.razem AT siol.net>
11815 * "handling space characters in file path" task:
11816 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
11817 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
11818 * support/Util/MySystem.h: make it self-sufficient
11819 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
11820 src/z80/main.c, sdcc/as/mcs51/lklex.c:
11821 handling space characters in file path
11822 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
11823 (it will be used by assemblers, which have their own includes, e.g. gpasm)
11824 * support/Util/MySystem.c: handling space characters in executable's path
11826 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
11828 * as/z80/Makefile: fix permanent rebuild of z80
11829 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
11830 * support/regression/tests/bitfields.c: added Johan's bitfields.c
11832 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
11834 * src/SDCCopt.c: add special case optimization to replace modulo by
11835 a power of two with a bitwise AND.
11837 2003-04-18 <johan AT balder>
11839 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
11841 2003-04-17 <johan AT balder>
11843 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
11844 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
11846 2003-04-13 Borut Razem <borut.razem AT siol.net>
11848 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
11849 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
11850 fixed mingw problem in adl_NORMALIZE_PATH
11852 2003-04-12 Borut Razem <borut.razem AT siol.net>
11854 * fixed "#pragma SAVE/RESTORE can not be nested":
11855 * src/SDCC.lex: reworked pragma handling functions
11856 * sdcc/src/SDCCglobl.h: reworked stack handling macros
11857 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
11859 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11861 * src/SDCCutil.c (pathEquivalent): defined but not used
11862 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
11863 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
11864 * configure: rebuilt from configure.in
11865 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11866 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11867 * device/include/Makefile.in: replace sdcc_datadir
11868 * device/lib/Makefile.in: replace sdcc_datadir
11869 * Makefile.common.in: add LDFLAGS from configure
11870 * packihx/Makefile.in: use LDFLAGS
11871 * src/Makefile.in: use LDFLAGS
11872 * support/cpp2/Makefile.in: add LDFLAGS from configure
11873 * support/makebin/Makefile: use LDFLAGS
11874 * .version: bumped version number to 2.3.5
11876 2003-04-12 Borut Razem <borut.razem AT siol.net>
11878 * completed "different paths" task:
11879 * src/SDCCmacro.c: fixed bug in handling quotes
11880 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
11881 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
11883 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11885 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
11887 2003-04-11 kevin Vigor <kevin AT vigor.nu>
11889 * ds390/gen.c ds390/peeph.def: fix bug 706781
11891 2003-04-11 Borut Razem <borut.razem AT siol.net>
11893 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
11895 2003-04-10 Scott Dattalo <scott AT dattalo.com>
11897 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
11898 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
11899 set - this bit used to not be set...).
11900 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
11901 bad code in PIC Port
11902 * src/regression/and2.c added to test bug 609268
11903 * src/regression/Makefile added and2.c to regression test
11906 2003-04-08 <johan AT CP255758-A>
11908 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
11909 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
11910 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
11912 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
11914 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
11916 * support/cpp2/Makefile.in: fix bug #487815
11917 * configure: rebuilt from configure.in
11918 * Makefile.common.in: docdir changed, new path suffixes
11919 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11920 * sdcc_vc_in.h: reflect changes from sdccconf.h
11921 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
11922 * src/SDCCutil.h: remove BINDIR hack
11923 * doc/sdccman.lyx: update new path hierarchy
11925 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11927 * src/SDCCpeeph.c: added okToRemoveSLOC test
11929 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11931 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
11933 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11935 * src/SDCCpeeph.c: added labelIsReturnOnly test
11936 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
11938 2003-04-05 <johan AT balder>
11940 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
11941 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
11942 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
11943 * src/SDCCast.c: fixed a warning
11944 * src/SDCCast.h: fixed a warning
11945 * src/SDCCicode.c (operandFromAst): fixed a warning
11947 2003-04-04 <johan AT balder>
11949 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
11950 * src/SDCCast.c (decorateType): fixed bug #715076
11951 * src/SDCC.y: fixed bug #702907
11953 2003-04-03 <johan AT balder>
11955 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
11956 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
11957 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
11958 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
11959 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
11961 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
11963 * _decdptr.c: fix return values
11964 * _gptrget.c: fix return values
11965 * _gptrgetc.c: fix return values
11966 * _gptrput.c: fix return values
11967 * _mulint.c: fix return values
11968 * as/z80/Makefile: fix 'make -j' problem
11970 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
11972 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
11973 * configure.in: big cleanup, updated to autoconf 2.5x
11974 * configure: rebuilt from configure.in
11975 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11976 * sdcc_vc_in.h: reflect changes from sdccconf.h
11977 * doc/Makefile: fixed a flaw in "make install"
11979 2003-04-02 <johan AT balder>
11981 * src/ds390/gen.c (genCmp): no comments
11982 * src/mcs51/gen.c (genCmp): no comments
11983 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
11984 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
11986 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
11988 * support/regression/generate-cases.py: place generated file in given sub directory
11989 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
11990 * support/regression/Makefile: improvements for 'make -j';
11991 side effect: it's simpler and faster now
11993 2003-03-31 Borut Razem <borut.razem AT siol.net>
11995 * src/z80/main.c: link-{port} and as-{port} defined without path
11996 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
11998 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
12000 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12002 2003-03-30 Borut Razem <borut.razem AT siol.net>
12004 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12005 changed type of list parameter to set
12006 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12007 * src/port.h: changed type of do_assemble() parameter to set
12008 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12009 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12010 definition of "cppoutfilename" macro with NULL value in preProcess()
12011 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12012 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12013 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12014 replaced with set *binPathSet
12015 * shash_add() deallocates the item, if allready exsists, before adding the new one
12016 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12018 2003-03-30 Scott Dattalo <scott AT dattalo.com>
12020 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12021 a nested for loop bug in the PIC port
12022 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12025 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12027 * support/Util/dbuf.h: remove C++ stuff to make it portable
12029 2003-03-28 Borut Razem <borut.razem AT siol.net>
12031 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12032 literal strings in stringLiteral()
12033 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12034 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12037 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
12039 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12041 2003-03-26 <johan AT balder>
12043 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12044 * src/ds390/gen.c (saveRegisters): catched symbol abuse
12045 * src/SDCCast.c (decorateType): fixed " -v < 3"
12047 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12049 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12050 Added Lenny Story's debug infrastructure changes:
12051 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
12052 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12053 * src/cdbFile.c: added
12054 * src/SDCCdebug.c: added
12055 * src/SDCCdebug.h: added
12056 * src/SDCCast.c (createFunction)
12057 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12058 * src/SDCCmain.c (parseCmdLine, main)
12059 * src/SDCCmem.c (redoStackOffsets)
12060 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12063 * src/avr/gen.c (genAVRCode)
12064 * src/ds390/gen.c (gen390Code)
12065 * src/mcs51/gen.c (gen51Code)
12066 * src/pic/gen.c (genpic14Code)
12067 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12068 * src/xa51/gen.c (genXA51Code)
12069 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12071 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12073 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12074 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12076 2003-03-22 <johan AT balder>
12078 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12080 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
12082 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12083 * doc/cdbfileformat.lyx: added, written by Lenny Story
12084 * doc/Makefile: added cdbfileformat.lyx
12085 * doc/clean.mk: added cdbfileformat.lyx
12087 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
12089 * src/mcs51/peeph.def: fix bug #705773
12091 2003-03-20 <johan AT balder>
12093 An sfr/sbit can have an "at #" AND an initializer
12094 * src/SDCCsymt.c (checkSClass):
12095 * src/SDCCmem.c (allocGlobal):
12096 * src/SDCCmem.c (allocLocal):
12097 * src/SDCCast.c (createBlock):
12099 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
12101 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12103 2003-03-16 <johan AT balder>
12105 Undid the hackup of const and volatile, the problem is much bigger
12107 * src/SDCCast.c:1.171
12108 * src/SDCCglue.c:1.138
12109 * src/SDCCicode.c:1.146
12110 * src/SDCCsymt.c:1.150
12111 * src/SDCCval.c:1.65
12113 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
12115 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12116 * src/ds390/gen.c (genAddrOf): fixed bug #704087
12118 2003-03-13 <johan AT balder>
12120 Hackup const and volatile modifiers in type chains a bit:
12122 * src/SDCCast.c:1.169
12123 * src/SDCCglue.c:1.136
12124 * src/SDCCicode.c:1.143
12125 * src/SDCCsymt.c1.146
12126 * src/SDCCsymt.h1.59
12127 * src/SDCCval.c:1.63
12129 2003-03-12 <johan AT balder>
12131 * src/SDCCBBlock.h: more LRH debugging junk
12132 * src/SDCCcflow.h: more LRH debugging junk
12133 * src/SDCCloop.c: more LRH debugging junk
12134 * src/SDCC.y (struct_declaration): fixed bug #697590
12135 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12136 * src/ds390/gen.c (aopForRemat): fixed bug #700031
12137 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12139 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12140 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12141 test function names must now match exactly).
12142 * src/SDCCcse.c: added special case in findCheaperOp to allow
12143 extending a short integer. Makes less awful code for bug 700121 test case.
12145 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12147 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12148 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12150 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12152 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12153 actually called (operandsNotEqual() was called for all
12154 operandsNotEqualX tests).
12156 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12158 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12159 with shorter literals. Fixes bug 700121.
12161 2003-03-11 <johan AT balder>
12163 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12165 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
12167 * src/SDCCloop.c (mergeRegions): an evil beast is dead
12168 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12170 2003-03-10 Borut Razem <borut.razem AT siol.net>
12172 * src/SDCCmain.c: pipe preprocessor's output
12173 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12174 * sdcc_vc_in.h: define pclose as _pclose for WIN32
12175 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12176 which closes all pipes in pipeSet set
12177 * src/SDCCset.c: free deleted item in function deleteSetItem()
12178 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12179 moved from z80 to src subproject
12180 * .version: increased version number to 2.3.4
12182 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12184 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12185 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12186 * support/regression/ports/xa51/spec.mk: fix typo
12188 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12190 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12192 2003-03-09 Borut Razem <borut.razem AT siol.net>
12194 * src/SDCCmain.c: pipe preprocessor's output
12195 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12196 * sdcc_vc_in.h: define pclose as _pclose for WIN32
12197 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12198 which closes all pipes in pipeSet set
12199 * src/SDCCset.c: free deleted item in function deleteSetItem()
12200 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12201 moved from z80 to src subproject
12203 2003-03-09 Borut Razem <borut.razem AT siol.net>
12205 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12206 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12207 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12208 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12209 * src/SDCCglobl.h: unification of WIN32 native definitions
12211 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12213 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12215 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12217 * src/configure.in: check for endianess (even while cross-compiling)
12218 * src/configure: check for endianess (even while cross-compiling)
12219 * src/configure_in.h: check for endianess (even while cross-compiling)
12220 * src/avr/gen.c: remove old endianess stuff
12221 * src/mcs51/gen.c: remove old endianess stuff
12222 * src/ds390/gen.c: remove old endianess stuff
12223 * src/pic/gen.c: remove old endianess stuff
12224 * src/pic/genarith.c: remove old endianess stuff
12225 * src/pic/glue.c: fix endianess check
12226 * src/pic16/gen.c: remove old endianess stuff
12227 * src/pic16/genarith.c: remove old endianess stuff
12228 * src/pic16/glue.c: fix endianess check
12229 * src/xa51/gen.c: remove old endianess stuff
12230 * src/z80/gen.c: fix endianess check
12231 * src/SDCCglue.c: fix endianess check
12232 * src/ds390/peeph.def: fix bug 700036
12234 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12236 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12237 * src/configure: find appropriate data-types on host for SDCC's int and long
12238 * src/configure.in: find appropriate data-types on host for SDCC's int and long
12239 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12240 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12242 2003-03-07 <johan AT balder>
12245 some minor cleanups before the big shot
12246 OP_DEFS and OP_USES now use Kevin's protection
12247 new option --nolabelopt
12249 * src/SDCCBBlock.c:
12258 * src/ds390/ralloc.c:
12259 * src/mcs51/ralloc.c:
12260 * src/pic/ralloc.c:
12261 * src/xa51/ralloc.c:
12262 * src/z80/ralloc.c:
12264 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12266 * src/pic/pcode.c (get_op): fix 64 bit warnings
12267 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12268 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12269 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12270 * support/regression/tests/malloc.c: fix 64 bit warnings
12272 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
12274 * src/mcs51/gen.c (genMinus): fixed bug 696436
12276 2003-03-02 Borut Razem <borut.razem AT siol.net>
12278 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12280 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12282 * configure.in: test for mkstemp
12283 * sdccconf_in.h: add HAVE_MKSTEMP
12285 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
12287 * device/include/ctype.h: removed warning while using --stack-auto
12288 * device/include/malloc.h: removed warning while using --stack-auto
12289 * device/include/string.h: removed warning while using --stack-auto
12291 2003-02-23 Borut Razem <borut.razem AT siol.net>
12293 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
12294 because NDEBUG is defined (see man assert)
12295 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
12297 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12299 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
12300 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
12302 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12304 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
12305 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
12307 2003-02-18 <johan AT balder>
12309 * as/mcs51/asmain.c (asmbl): module can start with a digit
12310 * as/z80/asmain.c (asmbl): module can start with a digit
12312 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12314 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
12315 * src/asm.c: fix pipe() for Mingw32
12317 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
12319 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
12320 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
12321 make -V work again; --c1mode reads now from stdin
12322 * doc/sdccman.lyx: added --c1mode
12323 * support/Util/SDCCerr.c: new messages for c1 mode
12324 * support/Util/SDCCerr.h: new messages for c1 mode
12325 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
12327 2003-02-15 <johan AT balder>
12329 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
12331 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
12333 * doc/sdccman.lyx: Environment variables, -o and other minor things
12335 2003-02-14 <johan AT balder>
12337 * src/xa51/main.c: before anyone really tries to use it :)
12339 * Install doc's in share/sdcc/doc
12340 * removed some obsolete files
12341 * Do a proper make distclean and uninstall
12342 M Makefile.common.in
12345 M device/include/Makefile.in
12346 M device/lib/Makefile.in
12349 M sim/ucsim/doc/Makefile.in
12351 R src/avr/peeph.rul
12352 R src/xa51/peeph.rul
12353 M support/cpp2/Makefile.in
12354 M support/makebin/Makefile
12357 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12359 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
12361 2003-02-10 Borut Razem <borut.razem AT siol.net>
12363 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
12364 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
12365 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
12366 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
12367 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
12368 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
12369 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
12370 src/z80/Makefile.bcc: Borland Makefile cleanup
12371 * as/z80/Makefile.bcc: Added Borland Makefile
12372 * support/cpp2/borland.h: Removed
12374 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
12376 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
12377 * src/SDCC.lex: new pragma NOIV
12378 * src/SDCCglobl.h: new pragma NOIV
12379 * src/SDCCmem.c: new pragma NOIV
12381 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12383 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
12385 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12387 * src/SDCCmain.c: signal handling is switched off by --debug
12388 * doc/Makefile: small fix for install; use clean.mk again
12389 * doc/clean.mk: clean *.pdf and *.html too
12391 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
12393 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
12394 * device/lib/printfl.c: fix a ds390 bug by making it portable
12395 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
12396 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
12397 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
12398 * debugger/mcs51/cmd.c: converted multi-line string literals
12399 * sim/ucsim/globals.cc: converted multi-line string literals
12400 * src/SDCCmain.c: introduced signal handler to remove temp files
12401 * doc/Makefile: small tweaks, implement clean
12402 * doc: removed generated files
12404 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12406 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
12407 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
12408 Address Record is not correctly generated for DS390."
12410 2003-02-02 Borut Razem <borut.razem AT siol.net>
12412 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
12413 * as/mcs51/asm.h: fixed compilation with Borland C
12414 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
12415 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
12416 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
12417 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
12418 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
12419 src/z80/Makefile.bcc: delete $(LIB) only if exist
12420 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
12422 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
12424 * device/include/malloc.h: introduced NULL
12425 * device/include/string.h: introduced NULL
12426 * device/include/stdlib.h: introduced NULL
12427 * device/lib/_memcpy.c: removed NULL
12428 * device/lib/_strcat.c: removed NULL
12429 * device/lib/_strchr.c: removed NULL
12430 * device/lib/_strcmp.c: removed NULL
12431 * device/lib/_strcpy.c: removed NULL
12432 * device/lib/_strcspn.c: removed NULL
12433 * device/lib/_strlen.c: removed NULL
12434 * device/lib/_strncat.c: removed NULL
12435 * device/lib/_strncmp.c: removed NULL
12436 * device/lib/_strncpy.c: removed NULL
12437 * device/lib/_strpbrk.c: removed NULL
12438 * device/lib/_strrchr.c: removed NULL
12439 * device/lib/_strspn.c: removed NULL
12440 * device/lib/_strstr.c: removed NULL
12441 * device/lib/_strtok.c: removed NULL
12442 * device/lib/malloc.c: removed NULL, include own header
12444 2003-02-02 <johan AT balder>
12446 * 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
12447 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
12448 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
12449 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
12450 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
12451 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
12453 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12455 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
12458 2003-02-01 <johan AT balder>
12460 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
12462 2003-01-31 <johan AT CP255758-A>
12464 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
12466 2003-01-30 <johan AT balder>
12468 * src/SDCCBBlock.c: automatic bug detection
12469 * src/SDCCicode.c: automatic bug detection
12471 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12473 * src/SDCCglobl.h: now --xram-size 0 works
12474 * src/SDCCmain.c: now --xram-size 0 works
12476 2003-01-29 <johan AT balder>
12478 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
12480 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12482 * as/mcs51/aslink.h: Added options --xram-size and --code-size
12483 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
12484 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
12485 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
12486 * src/SDCCglobl.h: Added options --xram-size and --code-size
12487 * src/SDCCmain.c: Added options --xram-size and --code-size
12489 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
12491 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
12492 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
12494 2003-01-27 <johan AT balder>
12496 * src/SDCC.y: fixed bug #613764
12498 2003-01-26 <johan AT balder>
12500 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
12501 * src/SDCCsymt.h: fixed bug #673374
12502 * src/SDCCglue.c: fixed bug #661910
12503 * src/SDCCast.c: fixed bug #458099 and 673374
12505 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
12507 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
12508 * as/mcs51/strcmpi.h: added
12509 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
12510 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
12511 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
12512 * as/mcs51/assym.c: strcmpi -> as_strcmpi
12513 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
12514 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
12515 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
12516 * as/mcs51/Makefile.aslink: new module strcmpi
12517 * as/mcs51/Makefile.asx8051: new module strcmpi
12518 * as/mcs51/Makefil.bcc: new module strcmpi
12519 * as/mcs51/Makefile.in: new module strcmpi
12520 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
12522 2003-01-26 <johan AT balder>
12524 * src/SDCCglue.c: reverted back to 1.124
12525 * src/SDCCast.c: reverted back to 1.156
12526 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
12528 2003-01-25 <johan AT balder>
12530 * src/SDCCglue.c: A better fix for bug #661910
12531 * src/SDCCast.c: A better fix for bug #661910
12532 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
12534 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
12536 * src/Makefile.in: remove spawn.o
12537 * src/SDCCmain.c: remove spawn.h
12538 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
12539 * src/spawn.c: removed
12540 * src/spawn.h: removed
12541 * support/regression/ports/ds390/spec.mk: link with -r
12543 2003-01-24 <johan AT CP255758-A>
12545 * src/ds390/gen.c (aopOp): fixed bug #667458
12546 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
12547 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
12548 (createIvalCharPtr): an ival doesn't always have a storage class anymore
12550 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
12552 * src/mcs51/peeph.def: better assembler identation by Frieder
12553 * src/mcs51/gen.c: better assembler identation by Frieder
12555 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
12557 * as/z80/string.h: removed for gcc 3.2
12558 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
12559 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
12561 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12563 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
12564 * src/SDCCpeeph.c (replaceRule): fix bug #663503
12565 * support/regression/Makefile: separate temp files for ports
12566 * support/regression/generate-cases.py: separate temp files for ports
12567 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12568 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12570 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12572 * moved tinitalk to device/examples/ds390
12574 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
12576 * as/mcs51/lkmem.c: rflag is for DS390
12577 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
12578 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
12579 (linkEdit): move mem- and map-files the same way as ihx-files
12580 * src/z80/main.c (_setDefaultOptions): removed --generic
12581 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
12582 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
12583 * src/pic/glue.c (picglue): --c1mode works again
12584 * src/pic16/glue.c (pic16glue): --c1mode works again
12585 * src/asm.c (printCLine): fix #660034
12587 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12589 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
12590 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
12591 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
12592 * as/mcs51/lkmem (summary): better fix for sp problem
12593 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
12594 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
12595 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
12596 remove --stack-after-data
12598 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12600 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
12601 * src/SDCCutil.c (join): ugly bug: missing '\0'
12602 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
12604 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12606 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
12608 * src/pic/main.c (_asmCmd): gpasm supports -o
12609 * src/z80/main.c: more general macros
12610 * device/lib/Makefile.in: remove intermediate files
12612 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12614 * .version: Bumped version number to 2.3.3
12615 * src/SDCCBBlock.c: new option -o
12616 * src/SDCCglobl.h: new option -o
12617 * src/SDCCglue.c: new option -o
12618 * src/SDCCmain.c: new option -o
12619 * src/asm.c: new option -o
12620 * src/ds390/main.c: new option -o
12621 * src/pic/glue.c: new option -o
12622 * src/pic/pcode.c: new option -o
12623 * src/pic/ralloc.c: new option -o
12624 * src/pic16/glue.c: new option -o
12625 * src/pic16/pcode.c: new option -o
12626 * src/pic16/ralloc.c: new option -o
12627 * src/z80/main.c: new option -o
12628 * device/lib/Makefile.in: use -o
12629 * support/regression/ports/ds390/spec.mk: use -o
12630 * support/regression/ports/gbz80/spec.mk: use -o
12631 * support/regression/ports/mcs51/spec.mk: use -o
12632 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
12633 * support/regression/ports/z80/spec.mk: use -o
12634 * support/regression/ports/ucz80/spec.mk: use -o
12635 * support/regression/ports/xa51/spec.mk: use -o
12636 * support/regression/fwk/lib/timeout.c: fix usage string
12638 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
12639 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
12641 2003-01-07 <johan AT balder>
12643 * src/SDCCast.c (decorateType): fixed bug #600035
12645 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12646 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
12647 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
12648 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
12649 * src/pic/pcode.c: outcommented unused variable to remove warnings
12650 * src/pic/ralloc.c: outcommented unused variable to remove warnings
12652 2003-01-06 <karl AT turbobit.com>
12653 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
12656 2003-01-06 <johan AT balder>
12658 * src/SDCCicode.c: fixed array add
12660 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
12661 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
12662 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
12664 2003-01-04 <johan AT balder>
12666 * src/SDCCval.c (getNelements): fixed the initialized array of structures
12668 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12669 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
12671 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
12672 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
12673 * support/regression/tests/bug-524697.c: fit mem usage into 8032
12675 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
12676 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
12678 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
12679 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
12681 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
12682 * src/mcs51/main.c: removed {bindir}{sep} from aslink
12684 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12686 * in /sdcc/as/mcs51/ changed these files in order to create an
12687 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
12688 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
12689 following files to include the previous two files: aslink.dsp,
12690 Makefile.aslink, Makefile.bcc, and Makefile.in.
12692 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
12693 .adb instead of .cdb
12695 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12697 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
12698 value from option --iram-size.
12700 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12702 * /sdcc/as/mcs51/lklist.c: added boundary check before using
12705 2002-09-18 <wiml AT hhhh.org>
12707 * SDCClrange.h: exposed setFromRange() and setToRange()
12708 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
12709 packRegsForAccUse() (bug 542397)
12710 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
12711 multiple times and emitting the fetch operations more than once
12712 added aopGetUsesAcc() function to allow binary operators to
12713 fetch their operands in the correct order; made genMinus() emit
12714 compact code for X = LITERAL - Y
12716 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12717 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
12718 sprintf() in line 1267.
12720 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12721 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
12724 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12725 Changes to aslink (All the changes are marked with 'JCF'):
12727 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
12730 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
12731 area BSEG. Also moves, if possible, the DATA area down into the internal
12732 ram so more space is available.
12734 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
12737 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
12738 not bytes. Function summary() which creates a memory usage summary
12739 file with extension .mem. Reports of overlaping stack and small stack
12740 size. If the space for the stack is less than 16 bytes aslink trows a
12743 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
12744 the 8051. Option 'y' for memory summary output file.
12746 Changes to sdcc (All the changes are marked with 'JCF'):
12748 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
12750 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
12751 overlaying area for it (uses RegBankUsed[4]).
12753 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
12754 bank zero as used by default. By default aslink locates the stack
12755 (equivalent to --stack-after-data). Pass option 'y' to aslink for
12756 the creation of the .mem file. Delegates the allocation of data area
12757 to aslink (it is not longer 0x30 by default). If --stack-loc passes
12758 the begining of the stack area to aslink.
12760 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
12761 glue() in SDCCglue.c creates an area for it.
12763 2002-09-03 Borut Razem <borut.razem AT siol.net>
12764 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
12765 sdcc/src/pic/glue.c:
12766 introduced atexit() handler for teporay files removal in case of
12767 errors, assertions, ...
12769 2002-08-29 Borut Razem <borut.razem AT siol.net>
12770 * sdcc/support/cpp2/auto-host_vc_in.h:
12771 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
12772 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
12773 Maybe there is a similar problem with BORLANDC? It should be checked!
12775 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
12776 corrected improper use of assert: the assignment to clr variable was done inside the assert.
12777 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
12778 was not executed, and the compiler (cl) launched a warning:
12779 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
12781 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
12782 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
12784 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
12785 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
12787 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12788 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
12789 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
12790 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12791 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
12792 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
12793 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
12794 - added Release configuration in VS projects
12795 - review of compiler an linker options
12796 - VC .exe files are generated in bin_vc directory, not to interfere
12797 with binaries generated from other projects (cygwin, mingw, bcc ...)
12799 * sdcc/src/yacc.dsp: added
12801 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
12802 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
12803 and insert the version number definitions from .version
12805 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
12807 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
12808 added - genarate auto-host.h using auto-host_vc_in.h as template
12811 removed from CVS, generated automatically
12813 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
12814 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
12816 2002-08-11 Borut Razem <borut.razem AT siol.net>
12817 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
12819 2002-08-10 Borut Razem <borut.razem AT siol.net>
12820 * src/SDCCmain.c (main):
12821 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
12822 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
12823 The consequence was that some temporary files were not removed.
12826 unification of code in functions tempfilename() and tempfile():
12827 function tempnam() is defined in Visual Studio 6.0 and .NET
12829 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
12831 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12832 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
12833 - removed compiler command line option /WX: Treats all warnings as errors
12834 - update a list of source files, included into the project
12836 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12837 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
12838 changed project type to Generic Project so that can be correcly converted to VS.NET project
12840 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
12842 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
12844 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
12846 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
12847 added return 0 statements after assert() to make compiler happy
12849 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
12850 added newline in the def file to keep MSC compiler satisfied
12852 * sdcc/src/z80/gen.c:
12853 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
12854 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
12855 - solved MSC error in function aopDump()
12857 * sdcc_vc.h: define PREFIX as "\\sdcc"
12859 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
12860 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
12862 2002-06-22 Scott Dattalo <scott AT dattalo.com>
12863 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
12864 - Rewrote the register banking algorithm.
12865 - Added pCode live-range analysis to registers (for now, only non-used and
12866 singly-used registers optimized away)
12868 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
12870 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba AT cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
12872 2002-05-10 Scott Dattalo <scott AT dattalo.com>
12873 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
12875 2002-04-22 Michael Hope <michaelh AT vroom>
12877 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
12879 * configure.in (DD_COPT): Added include support required for gbdk.
12881 * .version: Bumped version number just to increase it.
12883 * src/SDCCmain.c: Added -nostdinc to the default options.
12885 2002-04-15 Michael Hope <michaelh AT vroom>
12887 * device/lib/z80/printf.c (sprintf): Added.
12889 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
12891 * src/z80/peeph.def: Added transpose redundent load rule.
12893 * src/z80/main.c: Added force callee saves for jaune.
12895 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
12897 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
12899 2002-03-28 Johan Knol <johan AT balder>
12901 * src/SDCCval.c: fixed bug #532436
12903 2002-03-14 Scott Dattalo <scott AT dattalo.com>
12905 Added "char *Processor" field to the port structure.
12908 Added -p option. Allows port dependent processor to be specified.
12911 Initialized the new field char *Processor field to NULL in all ports
12914 Compiler generated registers for interrupt context saving
12915 were not getting allocated.
12917 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
12920 Fixed left shift. Will promote the left side of a left shift
12921 if a) left shifting more than size of operand or b) when assigned
12922 to something size > size of left side
12924 2002-03-14 Scott Dattalo <scott AT dattalo.com>
12926 tons of changes. Register allocation has been
12927 rewritten. Added customization for the various PICs. Flow
12928 analysis is restructured. ...
12930 * src/pic/device.h:
12933 * src/pic/device.c:
12934 Added. device.c is a PIC port hack to accomodate variations
12937 2002-03-13 Michael Hope <michaelh AT vroom>
12939 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
12941 2002-03-04 johanknol <johanknol AT manik>
12943 * /src/SDCCval.c: fixed
12945 const unsigned char arr[][2] = { { 0, 1 } };
12946 t18.c:1: error: Initializer element is not constant
12948 2002-03-04 bela <bela AT manik>
12950 * /device/include/mcs51reg.h:
12951 ds89c420 register definition update
12953 2002-03-03 <johan AT FRIJA>
12955 * support/Util/SDCCerr.c: did something, but don't no why anymore
12957 * support/regression/tests/bug-524691.c: made it a little less shy
12959 * src/SDCCast.c (decorateType): fixed bug #524697
12961 * src/SDCCast.c: made some lineno improvements
12963 * src/SDCCval.c (getNelements): changed warning to error
12965 * src/SDCCglue.c (printIvalArray): changed warning to error
12967 * src/SDCCicode.c: fixed a warning for mingw
12969 * src/SDCCast.c (decorateType): fixed the << promotion for ops
12971 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
12973 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
12975 * src/ds390/peeph.def:
12976 Added some more peephole rules
12978 * src/ds390/gen.c: Various fixes & enhancements
12980 * src/SDCClrange.c, src/SDCClrange.h:
12981 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
12983 * src/ds390/ralloc.c:
12984 various fixes & enhancements (ds390) specific
12986 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
12987 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
12990 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
12992 2002-03-02 <johan AT FRIJA>
12994 * src/SDCCast.c (decorateType): fixed bug #524708
12996 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
12998 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13000 2002-03-01 Michael Hope <michaelh AT vroom>
13002 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13004 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13006 2002-03-01 <johan AT FRIJA>
13008 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13010 * src/SDCCast.c (decorateType): fixed bug #524209
13012 * src/SDCCval.c (valNot): fixed bug #524195
13014 2002-02-26 <johan AT balder>
13016 * src/xa51/gen.c: fixed a warning
13018 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13020 * src/SDCCast.c (decorateType): fixed bug #522534
13022 2002-02-23 <johan AT balder>
13024 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13026 2002-02-22 <johan AT balder>
13028 * src/SDCCast.c: fixed bug #514865
13030 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13032 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
13034 * sdcc/src/SDCCloop.c:
13035 Previous fix was not good. basic blocks that have "break" or "return" are
13036 not really partof a loop , but live ranges used in these blocks should
13037 be live thru the entire loop, so set partOfLoop but don't add them to
13040 2002-02-21 <johan AT FRIJA>
13042 * src/SDCCcse.c: fixed bug #514308
13044 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
13047 Fixed BUG #519583. If a conditional block ended in a return/break
13048 statement inside a loop, it was not being considered part of the loop.
13050 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13052 2002-02-10 Karl Bongers <karl AT turbobit.com>
13055 Fixed up SDCDB debugger somewhat. Updated debugger/README
13056 with lots of comments and notes.
13058 * device/examples/test2.c:
13059 Fix bug, "red" variable not being initialized(compiler complained).
13061 * device/examples/Makefile, examples/test3.c:
13062 Add Makefile in device/examples folder, compiles test3.c
13063 for use as a multiple module SDCDB test case.
13065 * sim/ucsim/cmd.src/cmdset.cc:
13066 Took out debug printfs in ucsim "next" command.
13068 * sim/ucsim/xa.src:
13069 Karl and Johan start ucsim XA support. Most dissassembly working,
13070 about 75% emulation done(plenty of work remaining).
13072 * sim/ucsim/z80.src:
13073 Add Z80 support to ucsim, add test-ucz80 regression test,
13074 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13075 Notice z80 compiler fails on examples/test3.c/crc code.
13077 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
13079 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13080 Added support for --parms-in-bank1
13082 * src/ds390/peeph.def:
13083 added a few more peephole optimzations
13085 * src/ds390/main.c:
13086 1) added __builtin_inp & __builtin_outp used to read in data of given length
13087 from a memory mapped port
13088 2) added __builtin_memcmp
13089 3) added __builtin_swapw swap bytes of a short
13091 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13092 1) handle multiple send & receives from register bank1
13093 2) ralloc can now allocate DPTR1 to some liveRanges
13095 * src/SDCCsymt.c, src/SDCCsymt.h:
13096 changes to handle multiple sends & receives
13098 * src/SDCCptropt.h:
13099 added some pointer arithmetic optimization
13101 * src/SDCCptropt.c:
13102 added some pointer arithmetic optimizations but not stable yet so not
13103 called from anywhere (will get this working shortly)
13105 * src/SDCCopt.c: fixed for multiple sends & receives
13108 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13109 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13110 set preprocessor defines (depending on options)
13112 * src/SDCCicode.c, src/SDCCicode.h:
13113 changes made to handle multiple sends & receives
13116 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13118 * src/SDCCcse.c, src/SDCCcse.h:
13119 added function findbackward def (to be used in upcoming optimization)
13121 * src/SDCCcflow.c, src/SDCCcflow.h:
13122 added function returnAtEnd - to determine if a basic block terminates with
13125 * src/SDCCast.c, src/SDCCast.h:
13126 added option parms-in-bank1
13128 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13129 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13130 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13131 adjusted for --parms-in-bank1 option
13133 * device/include/string.h:
13134 donot redefine "reentrant" keyword
13136 * device/include/ds80c390.h: Added some more SFRs
13138 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
13140 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13142 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
13144 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13146 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
13148 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13150 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
13152 * Added --xram-movc option
13154 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13156 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13158 2002-01-11 Johan Knol
13160 * Added math lib of Jesus Calvino-Fraga
13162 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
13164 * src/SDCCmain.c (processFile): fix processing of ../../src.c
13165 * support/regression/Makefile: new target test-mcs51-stack-auto
13166 * support/regression/ports/mcs51-stack-auto/spec.mk: added
13168 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
13170 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13172 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
13174 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13176 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
13178 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13180 * src/SDCCglue.h: add definition for printIvalChar()
13182 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
13184 * src/SDCCast.c: fix #498138 by Johan
13186 * src/SDCCglue.c: fix #498138 by Johan
13188 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
13190 * support/regression/Makefile: fix clean
13192 * support/regression/ports/ds390/support.c: fix transmission of last character
13194 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
13196 * /sdcc/src/ds390/gen.c:
13197 a) improved computing address of stack variable
13198 b) took out some #if 0 code
13199 c) improved parmBytes adjustment
13200 d) improved genPlusIncr & genMinusIncr
13201 e) genCmp could generate bad code (when left assigned to DPTR)
13202 f) Fixed bug in hasInc
13204 * /sdcc/src/ds390/ralloc.c:
13205 a) packRegsForSupport could mess up live information (Fixed)
13206 b) packRegsDPTRuse could be incorrect for left & right shift
13208 * /sdcc/src/mcs51/ralloc.c:
13209 packRegsForSupport could mess up the live information (Fixed)
13211 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13213 * /sdcc/src/SDCCast.c:
13214 can reverse a loop even if function call is present as long
13215 as the loop control variable is local & is not passed as parameter
13217 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
13219 * /sdcc/ChangeLog: *** empty log message ***
13221 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13222 More builtin function additions for TININative
13224 * /sdcc/src/ds390/ralloc.c:
13225 Had broken the regression testsuite
13227 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13229 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13230 Added funcattr hasStackParms will be set for reentrant functions when there
13231 are paramteres on the stack, this helps in minimizing frame pointer generation
13232 typeFromStr can handle function pointers now
13234 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13235 *** empty log message ***
13237 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
13239 * /src/ds390/gen.c, /src/ds390/main.c:
13240 More builtin function additions for TININative
13242 * /src/ds390/ralloc.c:
13243 Had broken the regression testsuite
13245 * /src/SDCCast.c: Fixed a bug in dumptree
13247 * /src/SDCCsymt.c, /src/SDCCsymt.h:
13248 Added funcattr hasStackParms will be set for reentrant functions when there
13249 are paramteres on the stack, this helps in minimizing frame pointer generation
13250 typeFromStr can handle function pointers now
13252 * /doc/builtins.txt, /doc/TININative.txt:
13253 *** empty log message ***
13256 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
13258 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13259 ALPHA version for -mTININative
13261 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13262 updated to reflect changes in the port structure
13265 added function do_assemble (similar to do_link) if non-null this function
13266 will be called to do assembly (-mTININative) requires a multi command
13268 added function genAssemblerEnd will be called to generate assembler Epilogue
13271 added _JavaNative to debug info printing
13273 * /src/SDCCmain.c: added option --tini-libid
13274 added port->do_assemble function (-mTININative) has a multi command assemble
13276 * /src/SDCCglue.c: Disabled "constExpr" check
13277 added port->genAssemblerEnd function
13279 * /src/SDCCglobl.h: Added option --tini-libid value
13282 tookout optimizeCompare from the header (has no external references)
13284 * /src/SDCCast.c: made one more function "static"
13286 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
13288 * src/z80/mappings.i: Added z80asm support.
13290 * src/z80/main.c: Added z80asm support on --asm=z80asm
13292 * src/z80/gen.c: Fixed asm portability issues.
13294 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
13296 * src/SDCCglue.c (printExterns): Added global/extern split.
13298 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
13300 * support/regression/Makefile: added test for mcs51 model large
13302 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
13304 * support/regression/ports/gbz80/spec.mk: added -mgbz80
13306 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
13308 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
13310 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
13312 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
13314 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
13316 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
13318 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
13320 * support/regression/tests/simplefloat.c: Port to mcs51.
13322 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
13323 * support/regression/tests/bug-485362.c: Added.
13325 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
13327 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
13329 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
13331 * src/z80/gen.c (aopDump): Added a dump function.
13333 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
13334 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
13336 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
13338 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
13340 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
13342 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
13344 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
13346 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
13348 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
13350 * support/regression/ports/ds390/support.c: Use tinibios.
13352 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
13354 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
13356 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
13357 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
13359 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
13361 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
13363 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
13365 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
13367 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
13368 (packRegsForIYUse): Created and optimised.
13370 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
13372 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
13373 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
13375 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
13377 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
13379 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
13381 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
13383 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
13385 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
13387 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
13389 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
13391 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
13393 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
13395 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
13397 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
13398 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
13399 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
13401 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
13403 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
13404 (genNotFloat): Added.
13405 (genUminusFloat): Added.
13407 * device/lib/z80/Makefile: Added floating pt stubs.
13409 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
13411 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
13413 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
13415 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
13417 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
13419 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
13421 * sdcc/support/regression/Makefile: Add port ds390.
13423 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
13425 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
13427 * sdcc/support/regression/ports/ds390/spec.mk: Added.
13429 * sdcc/support/regression/ports/ds390/support.c: Added.
13431 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
13433 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
13435 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
13437 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
13439 * device/include/malloc.h: Added z80 and gbz80 support.
13441 * device/lib/gbz80/heap.s: Added.
13443 * device/lib/z80/heap.s: Added.
13445 * device/lib/malloc.c: Added z80 and gbz80 support.
13447 * support/regression/tests/malloc.c (testMalloc): Added.
13449 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
13451 * support/regression/tests/bug-478094.c: Added.
13453 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
13455 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
13457 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
13459 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
13461 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
13463 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
13465 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
13467 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
13469 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
13471 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
13473 * support/regression/tests/bug-477927.c: Added.
13475 * src/z80/peeph.def: Added minor rules.
13477 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
13479 * src/z80/peeph.def: Added jump optimisation modification.
13481 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
13483 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
13485 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
13487 * support/regression/tests/funptrs.c: Added.
13489 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
13491 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
13493 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
13495 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
13497 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
13499 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
13500 (movLeft2ResultLong): Created.
13502 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
13503 (joinPushes): Added. Joins two char pushes into a word push.
13505 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
13507 * support/cpp2/Makefile.in (install): Added creation of dest dir.
13509 * support/makebin/Makefile (install): Added creation of dest dir.
13511 2001-10-24 Karl Bongers <karl AT turbobit.com>
13513 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
13515 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
13517 * src/z80/ralloc.c: Turned off faulty pack for one use.
13519 * src/z80/peeph-gbz80.def: Removed redundent restart options.
13521 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
13523 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
13525 * support/regression/Makefile: Improved clean
13527 * support/regression/ports/gbz80/spec.mk: Added clean
13529 * support/regression/ports/host/spec.mk: Added clean
13531 * support/regression/ports/z80/spec.mk: Added clean
13533 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
13535 * support/regression/ports/mcs51/timeout.c: little improvements
13537 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
13539 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
13541 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
13543 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
13545 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
13547 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
13549 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
13551 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
13552 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
13554 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
13556 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
13558 * src/mcs51/main.c (_linkCmd): Added bin path to command.
13560 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
13562 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
13564 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
13566 * support/regression/tests/longor.c: Added.
13568 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
13570 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
13572 * as/mcs51/aslink.h: define PATH_MAX
13574 * as/mcs51/asm.h: define PATH_MAX
13576 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
13578 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
13580 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
13582 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
13584 * src/SDCCglobl.h: define PATH_MAX
13586 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
13588 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
13590 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
13592 * src/z80/gen.c (gencjneshort): Fixed
13594 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
13596 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
13598 * support/regression/tests/bug-469671.c: Added.
13600 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
13602 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
13604 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
13606 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
13608 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
13610 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
13612 * src/device/lib/_mulint.c : removed hint: nooverlay bug
13614 * src/device/lib/_mullong.c : removed hint: nooverlay bug
13616 * src/device/lib/_divuint.c : removed hint: nooverlay bug
13618 * src/device/lib/_divulong.c: removed hint: nooverlay bug
13620 * src/device/lib/_moduint.c : removed hint: nooverlay bug
13622 * src/device/lib/_modulong.c: removed hint: nooverlay bug
13624 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
13626 * 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.
13628 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
13630 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
13632 2001-10-07 <johan AT FRIJA>
13634 * device/lib/gets.c (gets): fixed the return value.
13636 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
13637 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
13639 * 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.
13641 * 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.
13643 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
13645 * src/pic/gen.c: Removed Safe_strdup.
13647 * configure.in: Added option to enable libgc support.
13649 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
13650 (bitVectUnion): Optimised.
13651 (bitVectIntersect): Optimised.
13652 (bitVectBitsInCommon): Optimised.
13653 (bitVectCplAnd): Optimised.
13655 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
13657 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13659 * src/SDCCmain.c: distinguish between assembler debug and plain options
13661 * src/avr/main.c: remove standard assembler options
13663 * src/ds390/main.c: remove standard assembler options
13665 * src/mcs51/main.c: remove standard assembler options
13667 * src/port.h: removed "PENDING" comment
13669 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13671 * src/device/lib/_mulint.c : new, with assember functions
13673 * src/device/lib/_mullong.c : new, with assember functions
13675 * src/device/lib/_divuint.c : with assember functions
13677 * src/device/lib/_divsint.c : with assember functions
13679 * src/device/lib/_divulong.c: with assember functions
13681 * src/device/lib/_divslong.c: with assember functions
13683 * src/device/lib/_moduint.c : with assember functions
13685 * src/device/lib/_modsint.c : with assember functions
13687 * src/device/lib/_modulong.c: with assember functions
13689 * src/device/lib/_modslong.c: with assember functions
13691 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
13693 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
13695 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
13696 replaced _mululong.c and _mulslong.c by _mullong.c
13698 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13700 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
13702 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
13704 * src/SDCCglue.c: test, if win32api is available for MINGW
13706 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
13708 * src/SDCCsymt.c: no more _modifier in printTypeChain()
13709 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
13710 * support/regression/ports/gbz80/spec.mk: removed GENERIC
13711 * support/regression/ports/host/spec.mk: removed GENERIC
13712 * support/regression/ports/mcs51/spec.mk: removed GENERIC
13713 * support/regression/ports/z80/spec.mk: removed GENERIC
13715 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
13717 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
13719 * support/regression/tests/bug-467035.c: Created.
13721 2001-10-01 <johan AT FRIJA>
13723 * src/SDCC.y: fixed bug #466586 part 1
13725 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
13727 * SDCCicode.c: z80 has no generic pointers
13728 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
13730 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
13732 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
13734 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
13736 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
13738 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
13740 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
13742 * configure.in: Fixed up so that ucsim is only configured once.
13744 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
13746 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
13747 (getPathDifference): As above.
13749 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
13751 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
13753 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
13754 * .version: Updated to 2.3.1
13756 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
13757 Added copyright header.
13759 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
13760 (assemble): Added support for macro based assembler commands.
13761 (linkEdit): Added support for macro based linker commands.
13762 (preProcess): Changed the pre-processor to use macros.
13763 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
13764 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
13766 * device/lib/z80/crt0.s: Added module name for debugging.
13768 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
13770 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13772 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
13774 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
13776 * src/Makefile.in: Added SDCCmacro and SDCCutil
13778 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
13780 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13782 2001-09-16 <johan AT FRIJA>
13784 * 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.
13786 2001-09-15 <johan AT FRIJA>
13788 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
13789 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
13791 2001-09-11 <johan AT FRIJA>
13793 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
13795 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
13797 * support/regression/tests/bug-460444.c: Added test case.
13799 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
13800 (genCast): Added justification for all of the asserts.
13802 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
13804 * support/regression/support.c: _xdata replaced by xdata
13806 * support/regression/spec.mk: removed _generic
13808 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
13810 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
13812 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
13813 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
13815 * src/z80/peeph.def: Added a rule to optimise shift then compare.
13817 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
13819 * support/regression/tests/bug-460010.c: Added test case.
13821 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
13823 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
13825 * support/regression/Makefile: inter-port-clean adjusted for mcs51
13827 * support/regression/testfwk.c: removed workaround for bug #436344
13829 * support/regression/tests/bp.c: use less memory with mcs51
13831 * support/regression/tests/bug-441448.c: use less memory
13833 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
13835 * support/regression/collate-results.py: typo
13837 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
13839 * support/regression/tests/fetchoverlap.c: Added new test case.
13841 * support/regression/tests/bp.c: Added new test case.
13843 * support/regression/tests/bug-448984.c: Added new test case.
13845 * support/regression/tests/pow2shifts.c: Added new test case.
13847 * src/z80/gen.c: Turned off the noise it normally generates for the release.
13848 (genlshTwo): Fixed right shift for count > 8.
13850 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
13852 2001-09-08 <johan AT FRIJA>
13854 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
13856 2001-09-07 <johan AT FRIJA>
13858 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
13860 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
13862 2001-09-06 <johan AT FRIJA>
13864 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
13865 * bernhard noted me at this: "() equals to (void)" (1.38)
13867 2001-09-05 <johan AT FRIJA>
13869 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
13871 2001-09-04 <johan AT FRIJA>
13873 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
13876 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
13878 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
13880 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
13882 * link/z80/aslink.h: Fixed path for PATH_MAX
13884 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
13886 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
13888 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
13890 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
13892 * 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.
13894 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
13896 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
13897 (genCmp): Fixed up genCmp for the GB with longs.
13899 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
13901 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
13903 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
13905 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
13907 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
13909 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
13911 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
13913 * 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.
13915 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
13917 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
13919 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
13921 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
13923 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
13925 * sim/ucsim/configure: little improvement of Cygwin-detection
13926 * sim/ucsim/configure.in: little improvement of Cygwin-detection
13927 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
13928 * support/regression/tests/bug-221100.c: small changes for mcs51
13929 * support/regression/tests/bug-221168.c: small changes for mcs51
13930 * support/regression/tests/bug-227710.c: small changes for mcs51
13931 * support/regression/tests/staticinit.c: small changes for mcs51
13932 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
13933 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
13934 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601