1 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3 * device/include/mcs51/C8051F360.h: new, added
4 * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
6 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8 * src/SDCC.y (declaration_specifiers, function_specifier),
9 * support/Util/SDCCerr.c,
10 * support/Util/SDCCerr.h,
12 * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
14 * src/SDCCmem.c (deallocParms),
15 * src/SDCCast.c: support for function inlining, not quite complete
16 * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
19 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
21 * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
22 (saveRBank, unsaveRBank): don't save bits,
23 (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
24 * support/regression/tests/bug1535242.c: new, added
25 * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
26 thanks Alexey Shamrin <shamrin AT gmail.com>,
27 made assert.h header ANSI compliant (added a check for NDEBUG macro,
30 * sdcc.spec: bumped version to 2.6.5
31 * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
33 2007-03-22 Borut Razem <borut.razem AT siol.net>
35 * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
36 fixed bug #1653671: sdcdb integration into ddd is broken
38 2007-03-22 Raphael Neider <rneider AT web.de>
40 * src/pic/gen.c (popGetExternal): augmented to also create references
41 to external variables (not only labels),
42 (genCall): comment on plan to reduce PAGESEL overhead,
43 (genFunction, genEndFunction): also save/restore FSR around interrupt
44 handling code, removed lots of unused code
45 (genDivOneByte): release acquired temp register
46 * src/pic/glue.c (pic14createInterruptVect): adadt to new signature
48 * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
49 for registers that need to be saved during interrupts (FSR, STATUS,
50 PCLATH; W needs special handling), currently only FSR is used
52 2007-03-22 Raphael Neider <rneider AT web.de>
54 * device/include/pic/pic14devices.txt: 16f688 has only one config word
56 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
58 * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
60 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
62 * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
64 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
66 * as/link/aslink.h: added LKOBJEXT
67 * as/link/hc08/link_hc08.dsp,
68 * as/link/hc08/Makefile.bcc,
69 * as/link/hc08/Makefile.in,
70 * as/link/mcs51/aslink.dsp,
71 * as/link/mcs51/Makefile.bcc,
72 * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
73 * as/link/hc08/lkaomf51.c, as/link/mcs51/lkaomf51.c,
74 * as/link/lkaomf51.c: merged and moved
75 * as/link/hc08/lkdata.c, as/link/mcs51/lkdata.c,
76 * as/link/z80/lkdata.c,
77 * as/link/lkdata.c: merged and moved
78 * as/link/hc08/lkmain.c,
79 * as/link/mcs51/lkmain.c: cosmetic changes
80 * as/link/z80/lkeval.c, as/link/lkeval.c: merged
81 * as/link/lklex.c: use LKOBJEXT
82 * as/link/z80/lklist.c, as/link/lklist.c: merged,
83 ANSI-fied functions, removed bubble-sorts
84 * as/link/z80/lksym.c as/link/lksym.c: merged,
86 * as/link/z80/linkgbz80.dsp,
87 * as/link/z80/linkz80.dsp,
88 * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
89 moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
90 * as/link/z80/lkhead.c,
91 * as/link/z80/lklex.c: deleted
92 * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
93 * as/link/z80/lkmain.c: added copyfile()
95 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
97 * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
99 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
101 * device/lib/_strlen.c: assembler version for mcs51
103 2007-03-13 Raphael Neider <rneider AT web.de>
105 * device/include/pic16/pic18f2221.h,
106 * device/include/pic16/pic18f2321.h,
107 * device/include/pic16/pic18f2331.h,
108 * device/include/pic16/pic18f4221.h,
109 * device/include/pic16/pic18f4321.h,
110 * device/include/pic16/pic18f4331.h: fixed config byte location names
111 * support/scripts/inc2h-pic16.pl: removed debug output, emit
112 consistently named config byte locations
114 2007-03-13 Borut Razem <borut.razem AT siol.net>
116 * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
117 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
118 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
119 as/link/z80/Makefile.in, as/z80/Makefile.in:
122 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
124 * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
125 * device/lib/printf_large.c: pointer was converted to generic
126 pointer for mcs51 models other than model-small (Maarten noticed)
128 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
130 * device/include/mcs51/ADuC84x.h: Added.
132 2007-03-10 Borut Razem <borut.razem AT siol.net>
134 * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
135 fixed RFE #1624219: double backslashes in filenames;
136 functions hexEscape(), octalEscape() and copyStr() moved from
137 SDCCval.c to SDCCutil.c and made them glovbally available
139 2007-03-09 Borut Razem <borut.razem AT siol.net>
141 * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
142 src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
143 1673361: Missaligned comments in output files
145 2007-03-09 Raphael Neider <rneider AT web.de>
147 * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
149 2007-03-09 Raphael Neider <rneider AT web.de>
153 * src/pic/ralloc.c: suppress undesired debug output
154 * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
156 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
158 * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
160 2007-03-07 Borut Razem <borut.razem AT siol.net>
162 * device/lib/pic16/libdev/pic18f[24][34]31.c:
163 search include files in the current directory
165 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
167 * src/SDCCglue.c (emitMaps, glue),
168 * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
170 * support/regression/tests/absolute.c: added xdata test
172 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
174 * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
175 added condition to macro, fixes bug 1666080
177 2007-03-02 Raphael Neider <rneider AT web.de>
179 * src/pic/gen.c (genGenPointerSet): removed bogus assertion
181 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
183 * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
184 be cleared. Unconditionally set __XPAGE
185 * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
187 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
192 * src/mcs51/rtrack.c,
194 * doc/sdccman.lyx: added --no-gen-comments
195 * src/mcs51/peeph.def: added 192.b, disabled 185
197 2007-02-25 Raphael Neider <rneider AT web.de>
199 * src/pic16/gen.c (genCast): fixed typo
200 * device/lib/pic16/Makefile.subdir: only install existing files
201 * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
203 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
205 * device/lib/mcs51/crtcall.asm: new, added for indirect calls
206 * device/lib/mcs51/crtclear.asm,
207 * device/lib/mcs51/crtxclear.asm: renumbered labels
208 * device/lib/mcs51/Makefile.in: added crtcall.asm
209 * doc/sdccman.lyx: documented mcs51 crt* library startup code
210 * src/mcs51/gen.c (movc): removed,
211 (aopGet, genPlusBits): clear a after loading the carry (possibly from
213 (toCarry, genSend, genRet): added function toCarry,
214 (genPcall): use "lcall @a+dptr" for functions w/o parameters,
215 (assignBit, genAssign, genCast): added function assignBit
216 * src/mcs51/Makefile.bcc: added rtrack.c
217 * src/mcs51/ralloc.h: made valueKnown a bitfield
218 * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
219 fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
220 disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
221 * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
222 * src/z80/gen.c: added AOP_IS_PAIRPTR,
223 (_pop): only pop valid pairs, see gencjneshort,
224 (gencjneshort): return pair that still needs to be popped, restructured,
225 (gencjne, genCmpEq): call _pop
227 2007-02-23 Raphael Neider <rneider AT web.de>
229 * device/include/pic/pic14devices.txt: 16f684 has only one config word
231 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
233 * device/include/mcs51/P89LPC925.h: Added.
235 2007-02-18 Raphael Neider <rneider AT web.de>
237 * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
239 2007-02-17 Borut Razem <borut.razem AT siol.net>
241 * support/cpp2/directives.c, support/cpp2/version.c:
242 synchronized with GCC CPP 4.1.2
244 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
246 * src/mcs51/rtrack.h,
247 * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
248 by checking the strings passed by emitcode() to the assembler.
249 Feel free to change. This in part addresses RFE #482179.
250 Set environment variable SDCC_RTRACK to enable.
251 * src/mcs51/gen.c: inserted hooks
252 * src/mcs51/ralloc.h: added two members to struct regs
253 * support/regression/tests/regtrack.c: added
255 2007-02-14 Borut Razem <borut.razem AT siol.net>
257 * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
258 * Makefile.in: applied patch from Makefile related part of
259 #1469393: Compiler does not initialize static data
261 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
263 * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
264 for better fix of bug 1273984, compiles pic16 rand.c
266 2007-02-12 Borut Razem <borut.razem AT siol.net>
268 * src/pic16/main.c: fixed pic16 standard library directory bug
270 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
272 * src/hc08/gen.c (genSwap): fix swap regression test
274 2007-02-10 Borut Razem <borut.razem AT siol.net>
276 * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
278 * support/regression/tests/bug-1654060.c: added regression test for
281 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
283 * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
284 bit moves in return statement
286 2007-02-09 Borut Razem <borut.razem AT siol.net>
288 * src/SDCC.y: fixed bug #1654060 typedef within function causes
291 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
293 * src/mcs51/gen.c (aopPut): use direct name for pushing registers
294 * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
296 2007-02-07 Raphael Neider <rneider AT web.de>
298 * src/pic16/devices.inc,
299 * device/include/pic16/pic18fregs.h,
300 * device/include/pic16/pic18f[24][34]31.h,
301 * device/lib/pic16/libdev/pic18f[24][34]31.c,
302 * device/lib/pic16/pics.all: added 18f[24][34]31 family
303 * device/lib/pic16/libio/i2c.ignore: do not build i2c
305 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
307 * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
308 can this have lived here for so many years?
309 * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
310 fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
311 * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
313 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
315 * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
316 appended by loop induction must be at the very end of the eBBlock
318 2007-02-05 Kevin Vigor
320 * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
322 2007-02-05 Borut Razem <borut.razem AT siol.net>
324 * support/regression/fwk/lib/timeout.c: native WIN32 port,
325 implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
327 2007-02-03 Borut Razem <borut.razem AT siol.net>
329 * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
330 applied patch #1646602 option to set default signedness of char to
331 unsigned, added -funsigned-char command line option,
332 thanks to Gunther Jehle
333 * device/lib/Makefile.in: added the -f option to rm so it doesn't
334 prompt for file deletion a few hundred times (especially the
335 subversion files, which have ro permissions so it asks for
336 confirmation), thanks to Simon McAuliffe;
337 added {} + option to find in order to remove multiple files from a
340 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
342 * device/include/mcs51/SST89x5xRDx.h: Added.
344 2007-02-02 Raphael Neider <rneider AT web.de>
346 * src/pic/glue.c (emitSymbolSet): check sym->etype before use
347 * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
349 2007-02-01 Raphael Neider <rneider AT web.de>
351 * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
354 2007-01-31 Borut Razem <borut.razem AT siol.net>
356 * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
357 if compiled with GCC. Thanks to Raphael Neider
359 2007-01-31 Raphael Neider <rneider AT web.de>
361 * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
362 operand names, handles name and (name + n) for all n,
363 (sameBank): restructured, also check bank allocation policy,
364 * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
365 (pic14_operandsAllocatedInSameBank): check whether to operands
366 will be allocated into the same bank (i.e., section) to reduce
367 BANKSEL overhead, queried from pcode.c:sameBank,
368 (pic14printLocals): reintroduced clustering registers into a single
369 section: all compiler generated symbols will now reside in one
370 bank (per file), reducing BANKSEL overhead and code size,
371 (showAllMemmaps): use local dbuf where possible
373 2007-01-29 Raphael Neider <rneider AT web.de>
375 * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
376 (call_libraryfunc): retrieve/create symbol and mark as used,
377 (genFunction): mark defined functions as non-extern and add again
378 to code memmap for later output
379 * src/pic/glue.c (emitPseudoStack): put into own subroutine,
380 (pic14printLocals): reworked for new symbol emission,
381 (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
382 showAllMemmaps): reworked symbol output using dbufs, added handling
383 of string literals (still incomplete),
384 (picglue): removed symbol emission, moved into showAllMemmaps,
385 (emitSymbolSet): new workhorse for symbol output,
386 (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
388 2007-01-29 Borut Razem <borut.razem AT siol.net>
390 * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
391 component contains the extension separator.
393 2007-01-28 Borut Razem <borut.razem AT siol.net>
395 * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
397 * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
398 src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
399 src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
400 src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
401 src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
402 src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
403 src/z80/gen.c, support/Util/MySystem.c:
404 accept slash and backslash as directory separator on WIN32 and
407 2007-01-28 Raphael Neider <rneider AT web.de>
409 * src/pic16/devices.inc,
410 * device/include/pic16/pic18f[24][23]21.h,
411 * device/include/pic16/pic18fregs.h,
412 * device/lib/pic16/libdev/pic18f[24][23]21.c,
413 * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
414 * device/lib/pic16/libio/adc.ignore,
415 * device/lib/pic16/libio/i2c.ignore,
416 * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
417 family, as gputils do not yet support the devices
418 * device/lib/pic16/Makefile.subdir: ignore errors on install
419 * support/scripts/inc2h-pic16.pl: script to generate pic16 device
420 headers and libraries from gputils .inc files
422 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
424 * doc/sdccman.lyx: add printf_fast_f precision limitation note
426 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
428 * doc/sdccman.lyx: add printf benchmarks
430 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
432 * device/lib/printf_fast.c: fix %c, char promoted to int
433 * device/lib/printf_tiny.c: fix %c, char promoted to int
435 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
437 * device/lib/printf_fast.c: fix float overflow check, bug #1525093
439 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
441 * support/regression/tests/swap.c: 64 bit hosts failed
442 * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
444 2007-01-25 Raphael Neider <rneider AT web.de>
446 * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
447 based on absolute register address, patch by Alex Blond
449 2007-01-22 Raphael Neider <rneider AT web.de>
451 * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
452 emitted, do not emit them again...
454 2007-01-22 Raphael Neider <rneider AT web.de>
456 * src/regression/bank1.c, src/regression/compare6.c,
457 src/regression/add.c: cosmetic changes
458 * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
459 * src/pic/gen.c: fixed global zero and one,
460 (aopForSym): removed unued code,
461 (aopGet): assert aop is defined, check and use `index' of
462 pCodeImmd operands (fixes #1630908),
463 * src/pic/pcode.c (get_op): added output of generic pointer tag,
464 (register_reassign): prevent accidental register unification,
465 (ReuseReg): cosmetic changes (also above)
466 * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
467 pic14emitStaticSeg): do not emit initialized data,
468 (printIval*): replaced with working versions,
469 (pic14createInterruptVect,picglue): use idata for initialized data,
470 now init data should work in all modules (not only main()),
471 * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
473 2007-01-21 Borut Razem <borut.razem AT siol.net>
475 * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
476 use -fPIC or -fpic if they are supported and not ignored
477 * src/SDCCval.c: fixed bug introduced by me in rev. #4577
478 * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
480 2007-01-20 Borut Razem <borut.razem AT siol.net>
482 * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
483 implemented RFE #1470316: allow "$" in variable names
485 2007-01-20 Raphael Neider <rneider AT web.de>
487 * device/include/pic/pic14regs.h: reverted accidental wipe of the file
489 2007-01-20 Raphael Neider <rneider AT web.de>
491 * device/lib/pic/libdev/devices.txt: device list for mkall.sh
492 * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
493 * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
494 * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
495 applied patch from Robert Tate (#1629249) to add PORTs and TRISs
496 * device/lib/pic/libdev/pic*.c,
497 * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
498 * device/lib/pic/libdev/Makefile.in: show progress
500 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
502 * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
503 * support/scripts/sdcc_cygwin_mingw32,
504 * support/scripts/sdcc_mingw32,
505 * support/scripts/build.mak: replaced --datadir by --datarootdir for
506 conformance with autoconf 2.6
508 2007-01-19 Raphael Neider <rneider AT web.de>
510 * src/pic/device.c (register_map): fixed list construction
511 * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
512 (genMod): removed case for genModbits,
513 (genModbits): removed as now unused/unimplemented
514 * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
516 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
518 * support/regression/tests/swap.c: added in response to #1638622
519 * doc/sdccman.lyx: synced version, minor changes
521 2007-01-18 Borut Razem <borut.razem AT siol.net>
523 * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
524 thanks to Gunther Jehle
525 * src/asm.c: don't die if the file drfined in #line couldn't be opened
526 * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
527 src/SDCCval.c: removed redundant definitions of currFname and mylineno;
528 use filename in lineno instead.
529 * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
530 print the file name in ast_print()
532 2007-01-18 Borut Razem <borut.razem AT siol.net>
534 * support/Util/dbuf_string.c: removed (PTR) cast since it is not
536 * src/SDCC.lex: stringLiteral() returns const char pointer,
537 EOF detection in stringLiteral(), fixed asmbuf memory leak,
538 fixed column counting
539 * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
540 accept const char pointer as parameter
541 * src/SDCCdwarf2.c: corrected buffer size
543 2007-01-17 Borut Razem <borut.razem AT siol.net>
545 * support/Util/dbuf_string.c: fixed for amd64
547 2007-01-15 Borut Razem <borut.razem AT siol.net>
549 * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
550 removed terminal symbol ELIPSIS, since it was never generated by the
551 lexer and it was wrongly used in parameter_identifier_list rule
553 2007-01-15 Raphael Neider <rneider AT web.de>
555 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
556 code page and data banking description
557 * src/pic/genarith.c,
558 * src/pic/gen.h: removed bit arithmetic functions,
559 updated exit(1) to exit(EXIT_FAILURE)
560 * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
561 * device/include/pic16/pic18f2455.h,
562 * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
563 TRISD and TRISE, fixed/added some bit names
564 * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
565 * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
566 updated pic18f2455.{c,h} instead of duplicating them
568 2007-01-14 Borut Razem <borut.razem AT siol.net>
570 * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
571 Cannot debug files that contain spaces in the path name
572 by converting spaces in asm file name to underscores
574 2007-01-13 Borut Razem <borut.razem AT siol.net>
576 * doc/sdccman.lyx: fixed format errors
578 2007-01-10 Borut Razem <borut.razem AT siol.net>
580 * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
581 codeseg/constseg #pragma fail
582 * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
583 * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
584 suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
585 suppoprt/cpp2/sdcpp.[ch]: house cleaning
587 2007-01-09 Borut Razem <borut.razem AT siol.net>
589 * get rid of diagnistic.[ch], pretty-print.[ch],
590 c-pretty-print.[ch], ... used just for error, warning, ...
592 * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
593 suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
594 suppoprt/cpp2/pretty-print.[ch]:
596 * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
597 suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
598 suppoprt/cpp2/sdcpp.dsp:
601 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
603 * device/lib/printf_large.c (output_float): removed recursion,
604 use smaller buffer on stack for mcs51,
605 fixed bug printing 1.96
606 * support/regression/tests/snprintf.c: added test
608 2007-01-07 Borut Razem <borut.razem AT siol.net>
610 * use dynamic memory buffers instead temporary files
611 * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
613 * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
614 src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
615 src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
616 src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
617 src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
618 src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
619 src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
620 src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
621 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
622 src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
623 src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
624 support/Util/dbuf.c, support/Util/dbuf.h:
626 * .version, sdcc.spec: bumped version to 2.6.4
628 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
630 * src/port.h: added TARGET_Z80_LIKE macro
631 * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
632 output PSEG location if --xram-loc or --xstack-loc was used
633 * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
635 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
637 * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
638 * as/as_z80.dsp, as/z80/as_z80.dsp,
639 * as/asx8051.dsp, as/mcs51/asx8051.dsp,
640 * sdcc.dsw: moved project files into subdir
641 * as/hc08/as_hc08.dsp,
642 * as/hc08/Makefile.bcc,
643 * as/hc08/Makefile.in,
644 * as/mcs51/Makefile.bcc,
645 * as/mcs51/Makefile.in,
646 * as/z80/Makefile.bcc,
647 * as/z80/Makefile.in,
648 * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
651 * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
656 * as/z80/assym.c: removed include "strcmpi.h"
659 * as/mcs51/strcmpi.c,
660 * as/mcs51/strcmpi.h,
661 * support/Util/strcmpi.c,
662 * support/Util/strcmpi.h: removed files
663 * as/strcmpi.c: added as_strncmpi()
665 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
667 * sdcc.dsw: Added some dependencies on project config.dsp
669 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
671 * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
672 with [di]ram_start to fix a regresion
674 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
676 * configure.in: added missing mcs51 in status output
677 * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
679 * debugger/mcs51/clean.mk (distclean): remove config.h
680 * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
681 * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
682 options.h, s-options-h and options.c
683 * support/cpp2/clean.mk: unused, removed
684 * Makefile.common.in,
687 * as/hc08/Makefile.in,
689 * as/mcs51/Makefile.in,
693 * as/z80/Makefile.in,
695 * as/link/Makefile.in,
696 * as/link/hc08/Makefile.in,
697 * as/link/hc08/clean.mk,
698 * as/link/mcs51/Makefile.in,
699 * as/link/mcs51/clean.mk,
700 * as/link/z80/Makefile.in,
701 * as/link/z80/clean.mk,
702 * as/link/z80/conf.mk,
703 * debugger/mcs51/Makefile.in,
704 * debugger/mcs51/clean.mk,
705 * device/include/Makefile.in,
706 * device/lib/Makefile.in,
707 * device/lib/mcs51/Makefile.in,
708 * device/lib/pic/Makefile.in,
709 * device/lib/pic/Makefile.common.in,
710 * device/lib/pic/Makefile.subdir,
711 * device/lib/pic/Makefile.rules,
712 * device/lib/pic16/libio/Makefile.in,
713 * device/lib/pic16/Makefile.subdir,
714 * device/lib/pic16/libdev/Makefile.in,
715 * device/lib/pic16/Makefile.rules,
716 * device/lib/pic16/Makefile.common.in,
717 * sim/ucsim/avr.src/Makefile.in,
718 * sim/ucsim/main_in.mk,
719 * sim/ucsim/cmd.src/Makefile.in,
720 * sim/ucsim/doc/Makefile.in,
721 * sim/ucsim/gui.src/Makefile.in,
722 * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
723 * sim/ucsim/gui.src/serio.src/Makefile.in,
724 * sim/ucsim/hc08.src/Makefile.in,
725 * sim/ucsim/libltdl/Makefile.in,
726 * sim/ucsim/s51.src/Makefile.in,
727 * sim/ucsim/sim.src/Makefile.in,
728 * sim/ucsim/sim.src/conf.mk,
729 * sim/ucsim/xa.src/Makefile.in,
730 * sim/ucsim/z80.src/Makefile.in,
734 * support/cpp2/Makefile.in,
735 * support/librarian/Makefile.in,
736 * support/librarian/clean.mk,
737 * support/makebin/Makefile.in,
738 * support/makebin/clean.mk,
739 * support/packihx/Makefile.in,
740 * support/regression/Makefile.in,
741 * support/regression/ports/ds390/spec.mk,
742 * support/regression/ports/gbz80/spec.mk,
743 * support/regression/ports/hc08/spec.mk,
744 * support/regression/ports/mcs51/spec.mk,
745 * support/regression/ports/mcs51-large/spec.mk,
746 * support/regression/ports/mcs51-medium/spec.mk,
747 * support/regression/ports/mcs51-xstack-auto/spec.mk,
748 * support/regression/ports/pic14/spec.mk,
749 * support/regression/ports/pic16/spec.mk,
750 * support/regression/ports/mcs51-stack-auto/spec.mk,
751 * support/regression/ports/ucz80/spec.mk,
752 * support/regression/ports/xa51/spec.mk,
753 * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
754 adding a slash after $(top_builddir) and/or adding @datarootdir@
756 * debugger/mcs51/configure.in,
757 * device/lib/pic/configure.in,
758 * device/lib/pic16/configure.in,
759 * sim/ucsim/configure.in,
760 * support/cpp2/configure.in,
761 * support/packihx/configure.in: changed AC_PREREQ to 2.60
763 * debugger/mcs51/configure,
764 * device/lib/pic/configure,
765 * device/lib/pic16/configure,
766 * sim/ucsim/configure,
767 * support/cpp2/configure,
768 * support/packihx/configure: generated with autoconf 2.60
770 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
772 * as/link/hc08/lkihx.c (newArea),
773 * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
775 2007-01-02 Borut Razem <borut.razem AT siol.net>
777 * doc/sdccman.lyx: documented #pragma sdcc_hash
778 * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
780 * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
782 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
784 * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
785 empty 'while'-loop to work correctly, see regression test 'while.c'
786 * support/regression/tests/while.c: added
788 2007-01-01 Borut Razem <borut.razem AT siol.net>
790 * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
791 support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
792 support/cpp2/libcpp/sdcpp.c:
793 sdcpp specific pragma/directive/option handling moved to sdcpp.c
794 * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
795 * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
797 2006-12-31 Borut Razem <borut.razem AT siol.net>
799 * SDCPP synchronized with GCC CPP release version 4.1.1,
800 currently the latest release:
801 * support/cpp2/libcpp, support/cpp2/libcpp/include,
802 support/cpp2/libcpp/include/cpp-id-data.h
803 support/cpp2/libiberty/fopen_unlocked.c
804 support/cpp2/libiberty/md5.c
806 support/cpp2/opt-functions.awk
807 support/cpp2/opt-gather.awk
808 support/cpp2/optc-gen.awk
809 support/cpp2/opth-gen.awk:
811 * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
812 support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
813 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
814 support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
815 support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
816 support/cpp2/diagnostic.h, support/cpp2/except.h,
817 support/cpp2/hwint.h, support/cpp2/input.h,
818 support/cpp2/intl.h, support/cpp2/move-if-change,
819 support/cpp2/opts.c, support/cpp2/opts.h,
820 support/cpp2/output.h, support/cpp2/prefix.c,
821 support/cpp2/prefix.h, support/cpp2/pretty-print.c,
822 support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
823 support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
824 support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
825 support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
826 support/cpp2/version.c:
828 * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
829 support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
830 support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
831 support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
832 support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
833 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
834 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
835 support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
836 support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
837 support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
838 support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
840 * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
841 support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
842 support/cpp2/cpphash.c, support/cpp2/cpphash.h,
843 support/cpp2/cppinit.c, support/cpp2/cpplex.c,
844 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
845 support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
846 support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
847 support/cpp2/hashtab.h, support/cpp2/hashtable.c,
848 support/cpp2/hashtable.h, support/cpp2/line-map.c,
849 support/cpp2/line-map.h, support/cpp2/mkdeps.c,
850 support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
851 support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
852 support/cpp2/system.h:
855 2006-12-31 Borut Razem <borut.razem AT siol.net>
857 * configure.in, configure: fixed bug #1538756: configure dies if bison
858 and flex are not installed, 2nd try
860 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
862 * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
863 400.x for better code in RFE 899102
865 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
867 * src/SDCCpeeph.c (deadMove),
869 * src/mcs51/peep.h: renamed 'op' by 'reg'
870 * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
871 (scan4op): small change for removeDeadMove(), added support for
872 'callee saves' and/or PACLL function calls,
873 (removeDeadMove): added, removes superflous 'mov r%1,%2',
874 (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
875 left in new dispatcher mcs51DeadMove()
876 (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
878 * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
880 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
882 * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
883 support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
885 2006-12-30 Borut Razem <borut.razem AT siol.net>
887 * support/cpp2/spacs.h: deleted from svn
888 * configure.in, configure: fixed bug #1538756: configure dies if bison
889 and flex are not installed
891 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
893 * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
894 with this z80 passes printf float test when enabled
895 * support/regression/tests/bug1057979.c: typo disabled ds390 float test
897 2006-12-28 Borut Razem <borut.razem AT siol.net>
899 * support/cpp2/config.in, support/cpp2/configure.in,
900 support/cpp2/configure, support/cpp2/Makefile.in:
901 fix for the solaris build
903 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
905 * src/SDCC.y (type_specifier2, pointer),
907 * src/SDCCsymt.c (mergeSpec, checkSClass),
908 * support/Util/SDCCerr.c,
909 * support/Util/SDCCerr.h: Parse and validate the restrict keyword
910 * support/valdiag/valdiag.py: Allow test cases to specify
911 required language standard
912 * support/valdiag/tests/restrict.c: New file to test restrict keyword
913 * support/valdiag/tests/tentdecl.c: Supress empty source file error
915 2006-12-27 Borut Razem <borut.razem AT siol.net>
917 * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
918 * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
920 * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
922 * support/cpp2/libiberty/Makefile.bcc: updated
923 * src/pic16/main.c: fixed #pragma udata handling
924 * src/mcs51/mcs51.dsp: added peep.[ch] to the project
926 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
928 * src/SDCCpeeph.c: made labelHashEntry global,
929 made pcDistance, FBYNAME static,
930 (pcDistance): made static, use isComment and isLabel,
932 (getLabelRef): added, extracted from labelRefCount(),
933 (labelRefCount): use new getLabelRef(),
934 (callFuncByName): made static, added deadMove,
935 use isComment and isLabel,
936 (newPeepRule): made static, set isLabel,
937 (isLabelDefinition): added parameter isPeepRule to allow '%' in
938 labels from peephole rules,
939 (buildLabelRefCountHash): speed up by running isLabelDefinition() only
940 when isComment or isLabel is set
941 * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
942 added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
944 * src/mcs51/peep.h: added
945 * src/mcs51/peep.c: added, implements mcs51DeadMove()
946 * src/port.h: added peep->deadMove to port structure
947 * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
948 * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
949 deadMove, finally removed no. 1 and 2
956 * src/hc08/gen.c: mark lines with isComment or isLabel
957 * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
959 * sdcc.spec: bumped version to 2.6.3
961 2006-12-26 Borut Razem <borut.razem AT siol.net>
963 * support/cpp2/Makefile.in: added dependency on options.h
964 * configure: regenerated
965 * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
966 * support/cpp2/Makefile.in: added vasprintf.c
968 2006-12-25 Borut Razem <borut.razem AT siol.net>
970 * SDCPP synchronized with GCC CPP release version 3.4.6,
971 the latest release before 4.x:
972 * support/cpp2/Makefile.in, support/cpp2/config.h,
973 support/cpp2/configure, support/cpp2/configure.in,
974 support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
975 support/cpp2/cpperror.c, support/cpp2/cppexp.c,
976 support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
977 support/cpp2/cpphash.h, support/cpp2/cppinit.c,
978 support/cpp2/cpplex.c, support/cpp2/cpplib.c,
979 support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
980 support/cpp2/cpptrad.c, support/cpp2/except.h,
981 support/cpp2/hashtable.c, support/cpp2/hashtable.h,
982 support/cpp2/hwint.h, support/cpp2/intl.h,
983 support/cpp2/line-map.c, support/cpp2/line-map.h,
984 support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
985 support/cpp2/output.h, support/cpp2/prefix.c,
986 support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
987 support/cpp2/system.h, support/cpp2/version.c:
989 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
990 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
991 support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
992 support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
993 support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
994 support/cpp2/hashtab.c, support/cpp2/hashtab.h,
995 support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
996 support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
997 support/cpp2/move-if-change, support/cpp2/opts.c,
998 support/cpp2/opts.h, support/cpp2/opts.sh,
999 support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1000 support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1001 support/cpp2/win32, support/cpp2/win32/dirent.c,
1002 support/cpp2/win32/dirent.h:
1004 * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1005 * support/cpp2/sdcpp.h: renamed from sdcc.h
1006 * sdcppinit.c: deleted
1008 2006-12-23 Borut Razem <borut.razem AT siol.net>
1010 * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1011 support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1012 preproc.c: an other try to fix bug #982435: introduced
1013 -pedantic-parse-number command line option and pedantic_parse_number
1016 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1018 * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1020 (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1021 corrected overlayed areax addresses, warn about memory overlaps
1022 * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1031 * src/port.h: added xabs_name and iabs_name
1032 * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1033 (glue, emitMaps): create and emit maps d_abs and i_abs
1034 * src/SDCCglue.h: cosmetic changes
1035 * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1037 * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1038 (allocDefault): put absolute, initialized globals in them
1039 * support/regression/tests/absolute.c: added absolute bdata test
1040 * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1042 2006-12-20 Borut Razem <borut.razem AT siol.net>
1044 * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1045 * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1046 added regression test for bug #982435
1048 2006-12-18 Borut Razem <borut.razem AT siol.net>
1050 * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1051 * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1052 small cosmetic changes
1053 * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1054 * support/regression/tests/bug-1351710.c: added regression test
1056 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1058 * doc/sdccman.lyx: added the long missed iCode table
1059 "<where is figure II?>", added links to wiki
1061 2006-12-17 Borut Razem <borut.razem AT siol.net>
1063 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1064 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1065 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1066 unified table driven pragma handling, pragma argument type checking
1067 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1068 current one - version 1.1.3
1069 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1071 2006-12-13 Raphael Neider <rneider AT web.de>
1073 * src/pic/device.h: removed AssignedMemory structure and macros
1074 * src/pic/device.c: removed global finalMapping (linker assigns
1076 (register_map): add SFRs to remembered memRanges
1077 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1078 assignFixedRegisters,assignRelocatableRegisters): removed,
1079 (setMaxRAM,validAddress): adapted accordingly,
1080 (pic14_hasSharebank,pic14_getSharedStack): only report and use
1081 reasonably sized sharebanks,
1082 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1083 (allDefsOutOfRange): removed unused code,
1084 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1086 * src/pic/pcode.c (register_reassign): removed recursion warning,
1087 fired far too often,
1088 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1089 to use existing pic14_stringInSet() to avoid duplicate symbols,
1090 tidied up the code a bit,
1091 (pic14printLocals): added in symmetry to printExterns, replaces
1092 writeUsedRegs more or less,
1093 (picglue): call new pic14_printLocals(),
1094 * device/include/pic/pic*.h: removed #pragma memmap directives,
1095 information gathered from include/pic/pic14devices.txt
1096 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1098 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1100 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1102 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1104 * device/include/mcs51/cc2430.h: fixed missing ';'
1106 2006-12-10 Raphael Neider <rneider AT web.de>
1108 * device/lib/pic16/libc/stdio/vfprintf.c,
1109 * device/lib/pic16/libc/stdio/printf_small.c,
1110 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1111 char arguments, as char varargs are cast to int by the caller,
1112 hopefully fixes #1604915 (other device libraries are still affected)
1114 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1116 * src/mcs51/ralloc.c (packRegsForAssign),
1117 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1119 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1121 * device/include/malloc.h: removed init_dynamic_memory
1122 * device/lib/malloc.c: made init_dynamic_memory static and automatically
1123 call it once from malloc. Also use _sdcc_heap[] from _heap.c
1124 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1125 * device/lib/libsdcc.lib,
1126 * device/lib/Makefile.in,
1127 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1128 * doc/sdccman.lyx: documented use of new _heap.c
1129 * support/regression/tests/malloc.c: removed init_dynamic_memory
1130 * src/cdbFile.c(spacesToUnderscores): new function,
1131 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1133 * device/include/tinibios.h: removed defines for putchar and getchar
1134 * device/lib/ds390/Makefile.in: added putchar.c
1135 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1137 2006-12-09 Borut Razem <borut.razem AT siol.net>
1139 * support/cpp2/sdcc.h: prevent multiple inclusion
1140 * support/cpp2/options.h: deleted
1142 2006-12-08 Borut Razem <borut.razem AT siol.net>
1144 * support/cpp2/sdcc.h: removed x*alloc() macros
1145 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1146 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1147 support/cpp2/sdcpp.sdc: x*alloc files added to the project
1148 * support/cpp2/system.h: moved #include "sdcc.h"
1149 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1150 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1152 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1153 -funsigned-char options
1154 * support/cpp2/sdcppmain.c: fixed bug 1611411
1156 2006-12-07 Borut Razem <borut.razem AT siol.net>
1158 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1161 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1163 * src/SDCCsymt.c (addDecl): fixed bug 1609244
1164 * src/SDCCmain.c (linkEdit): fixed bug 1609279
1166 * .version: bumped to 2.6.2 because a) it's been a while
1167 b) the linker sources have moved c) the preprocessor is upgraded
1169 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1171 * support/regression/tests/snprintf.c: some checks
1172 * lib/src/printf_large.c: %bc: read char instead of int from stack
1174 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1176 * device/include/mcs51/cc2430.h: inserted _XPAGE
1178 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1180 * device/include/mcs51/cc2430.h: added
1182 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1184 * device/include/asm/default/features.h,
1185 * device/include/asm/ds390/features.h,
1186 * device/include/mcs51/at89s53.h,
1187 * device/include/ser.h,
1188 * device/include/ser_ir.h,
1189 * device/include/serial.h: changed keywords to double underscore variants,
1190 fixes bug 1590261 some more, thanks Steven Borley
1192 2006-12-01 Raphael Neider <rneider AT web.de>
1194 * src/pic/pcode.c (register_reassign): do not crash on recursive code
1195 but emit warning (recursion is not supported for pic14)
1197 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1199 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1200 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1202 2006-11-30 Raphael Neider <rneider AT web.de>
1204 * src/pic/device.c (dump_sfr): always emit symbols
1205 * src/pic/glue.c (pic14printPublics): fixed typo
1207 2006-11-30 Raphael Neider <rneider AT web.de>
1209 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1210 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1211 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1212 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1213 a sharebank, use a non-shared bank for the stack if none available
1214 * src/pic/device.h (struct memRange): added linked list next field,
1215 added prototypes for above functions
1216 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1217 (typeRegWithIdx): accept fixed and unfixed stack registers
1218 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1219 the stack, handle shared and banked stack (except for WSAVE),
1220 (insertBankSel): removed useless optimization (will never fire),
1221 (FixRegisterBanking): added optimization for devices with only one
1222 possibly aliased bank of memory, like 16f84
1223 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1224 devices have no SHAREBANK in the linker script
1225 * device/include/pic/pic14devices.txt: documented memmap
1226 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1228 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1230 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1231 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1232 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1233 genhc08Code): switched most of the D (debug) macros to DD (detailed
1234 debug) macros to better control clutter in the generated .asm file.
1235 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1236 genRightShift): fixed bug with non-constant bit shift stored to
1237 a volatile result (SF Open Discussion forum thread #1616749).
1238 Single byte case is not yet optimized.
1240 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1242 * device/include/asm/mcs51/features.h,
1243 * device/include/malloc.h,
1244 * device/include/stdio.h: changed keywords to double underscore variants,
1247 2006-11-27 Borut Razem <borut.razem AT siol.net>
1249 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1250 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1251 support/cpp2/output.h, support/cpp2/cppinit.c,
1252 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1253 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1254 support/cpp2/cppdefault.c, support/cpp2/system.h,
1255 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1256 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1257 support/cpp2/prefix.c, support/cpp2/except.h,
1258 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1259 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1260 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1261 support/cpp2/version.c, support/cpp2/cppmain.c,
1262 support/cpp2/version.h, support/cpp2/hashtable.c,
1263 support/cpp2/cpperror.c:
1264 synchronized with GCC CPP release version 3.3.6,
1265 the latest where cppmain.c still exists.
1266 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1267 support/cpp2/sdcppinit.c: added
1269 2006-11-27 Borut Razem <borut.razem AT siol.net>
1271 * support/cpp2/cpplex.c:
1272 fixed _asm ... _endasm handling bug, introduce with GCC CPP
1274 * support/cpp2/cpplib.c: removed definitions of unused variables
1276 2006-11-26 Borut Razem <borut.razem AT siol.net>
1278 * support/cpp2/libiberty.h: commented out x*alloc() declarations
1279 since they are redefined by macros in support/cpp2/sdcc.h
1280 * support/cpp2/sdcc.h: x*alloc macro redefinition
1282 2006-11-25 Borut Razem <borut.razem AT siol.net>
1284 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1285 support/cpp2/configure, support/cpp2/Makefile.in,
1286 support/cpp2/cppfiles.c, support/cpp2/output.h,
1287 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1288 support/cpp2/config.h, support/cpp2/cpplib.h,
1289 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1290 support/cpp2/cppdefault.c, support/cpp2/config.in,
1291 support/cpp2/system.h, support/cpp2/cpplex.c,
1292 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1293 support/cpp2/cppdefault.h, support/cpp2/prefix.c
1294 support/cpp2/hwint.h, support/cpp2/mbchar.h,
1295 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1296 support/cpp2/configure.in, support/cpp2/intl.h,
1297 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1298 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1299 support/cpp2/version.c, support/cpp2/cppmain.c,
1300 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1301 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1302 support/cpp2/cpperror.c,
1303 support/cpp2/libiberty/safe-ctype.c,
1304 support/cpp2/libiberty/safe-ctype.h,
1305 support/cpp2/libiberty/splay-tree.c,
1306 support/cpp2/libiberty/obstack.c,
1307 support/cpp2/libiberty/lbasename.c,
1308 support/cpp2/libiberty/splay-tree.h,
1309 support/cpp2/libiberty/obstack.h:
1310 synchronized with GCC CPP release version 3.2.3,
1311 the latest before integration of cpp into gcc
1312 * support/cpp2/except.h, support/cpp2/line-map.c,
1313 support/cpp2/line-map.h,
1314 support/cpp2/libiberty/hex.c,
1315 support/cpp2/libiberty/concat.c,
1316 support/cpp2/libiberty/filenames.h: added
1317 * support/cpp2/intl.c: deleted
1319 2006-11-24 Borut Razem <borut.razem AT siol.net>
1321 * src/SDCC.y: enabled compilation of empty source file
1322 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1323 "ISO C forbids an empty source file"
1324 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1325 if all the code is ifdefed out.
1327 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1329 * src/hc08/gen.c (genPcall): fix for bug #1601032
1331 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1333 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1334 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1335 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1336 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1337 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1338 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1339 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1340 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1341 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1342 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1343 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1344 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1345 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1346 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1347 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1348 Renamed to all upper case as per the standard set by SiLabs
1350 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1352 * device/include/mcs51/C8051F520.h: new, added
1353 * device/include/mcs51/compiler.h: added link about predefined macros
1355 2006-11-23 Raphael Neider <rneider AT web.de>
1357 * src/regression/Makefile: add -L path to fresh library
1358 * src/regression/simulate: emphasize FAILED output
1359 * src/regression/create_stc: output _failures from gpsim
1360 * src/regression/compare4.c,
1361 * src/regression/rotate6.c: fixed char literals,
1362 all compile, all run =8-D
1364 * src/pic/pcode.h: added isPCASMDIR macro
1365 * src/pic/gen.c (genAnd): fixed bit offset
1366 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1367 packBits): unified register numbering schemes,
1368 (newReg): do not insert stack registers into hash table,
1369 (initStack): unpinned pseudo stack, simplified,
1370 (typeRegWithIdx): fixed retrieval of stack registers,
1371 * src/pic/pcode.c (addpCodeComment,sameBank): added,
1372 (pCodeReplace): removed invalid assertion,
1373 (insertPCodeInstruction): fixed newly added labels,
1374 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1375 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1376 DumpFlow): removed unsed (broken?) code,
1377 (insertBankSel): prevent STATUS from being BANKSELed,
1378 (FixRegisterBanking): rewritten from scratch, implemented generic
1379 optimizations (suppress BANKSELs to same register and to registers
1380 present in all banks),
1381 (AnalyzeBanking): update flow after BANKSELection
1383 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1384 sharebank, let linker place it, mark STKxx symbols as emitted
1386 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1388 * src/regression/arrays.c,
1389 * src/regression/bank1.c,
1390 * src/regression/bool2.c,
1391 * src/regression/compare7.c,
1392 * src/regression/compare8.c,
1393 * src/regression/compare9.c,
1394 * src/regression/compare10.c,
1395 * src/regression/configword.c,
1396 * src/regression/for.c,
1397 * src/regression/mult1.c,
1398 * src/regression/pointer1.c,
1399 * src/regression/rotate6.c,
1400 * src/regression/string1.c,
1401 * src/regression/struct1.c,
1402 * src/regression/Makefile: make PIC14 regression tests run again
1403 (3 fail, 6 won't compile)
1405 2006-11-21 Raphael Neider <rneider AT web.de>
1407 * device/include/pic16/pic18f4550.h,
1408 * device/include/pic16/pic18f4455.h,
1409 * device/lib/pic16/libdev/pic18f4550.c,
1410 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1411 * configure.in: removed superfluous closing bracket
1413 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1415 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1418 2006-11-21 Raphael Neider <rneider AT web.de>
1420 * src/pic/device.{c,h}: added pic14_getPIC()
1421 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1422 (genAnd): added PIC code for one case, fixes #1597044
1423 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1424 SFRs that are present in all banks (e.g., STATUS)
1426 2006-11-20 Raphael Neider <rneider AT web.de>
1428 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1429 INCFSZ/INCFSZW and declared them as changing Z bit,
1430 (insertPCodeInstruction): correctly invert the above instructions,
1432 (DoBankSelect): don't panic on po_immediates
1434 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1437 * as/link/mcs51/lkihx.c (newArea),
1438 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1439 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1441 2006-11-11 Raphael Neider <rneider AT web.de>
1443 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1444 bitfield symbols, fixes #1579535 (once more...).
1446 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1448 * support/regression/generate-cases.py,
1449 * support/regression/fwk/include/testfwk.h,
1450 * support/regression/fwk/lib/testfwk.c: used code pointers,
1451 (about 50kByte less code generated for mcs51)
1453 2006-11-06 Borut Razem <borut.razem AT siol.net>
1455 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1456 debugger/mcs51/configure: fixed failed check because the function
1457 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1458 who submitted the patch for gpsim.
1459 * debugger/mcs51/configure.in: removed the result message
1460 * debugger/mcs51/Makefile.in: fixed the config.status warning
1461 "... seems to ignore the --datarootdir setting"
1463 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1465 * device/include/mcs51/c8051f020.h,
1466 * device/include/mcs51/c8051f040.h,
1467 * device/include/mcs51/c8051f060.h,
1468 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1469 * src/z80/gen.c (gencjneshort),
1470 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1472 2006-10-31 Borut Razem <borut.razem AT siol.net>
1474 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1475 debugger/mcs51/configure: get readline version
1477 2006-10-30 Borut Razem <borut.razem AT siol.net>
1479 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1480 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1481 debugger/mcs51/configure: locate readline even when cross compiling
1482 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1484 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1486 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1489 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1491 * device/include/malloc.h,
1492 * device/lib/calloc.c,
1493 * device/lib/free.c,
1494 * device/lib/malloc.c,
1495 * device/lib/realloc.c: moved definition of struct into sources
1496 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1498 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1500 * as/asx8051.dsp: corrected output directories
1501 * as/link/hc08: new directory for hc08 linker
1502 * as/hc08/aslink.h, as/link/aslink.h,
1503 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
1504 * as/hc08/clean.mk, as/link/hc08/clean.mk,
1505 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
1506 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
1507 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
1508 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
1509 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
1510 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
1511 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
1512 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
1513 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
1514 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
1515 * as/hc08/lks19.c, as/link/hc08/lks19.c,
1516 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
1517 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
1518 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
1519 * as/link/hc08/conf.mk,
1523 * sdcc.dsw: moved hc08 linker to as/link/hc08
1524 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
1525 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
1526 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
1527 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
1528 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
1529 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
1530 * as/link/mcs51/aslink.dsp,
1531 * as/link/mcs51/Makefile.in: factored out the common files
1532 * as/hc08/lkstore.c: deleted, use the one already in as/link/
1533 * as/clean.mk: extra cleaning common files
1534 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
1535 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1536 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1538 2006-10-29 Raphael Neider <rneider AT web.de>
1540 * src/pic/ralloc.c (newReg): create aliases for registers with
1541 multiple names to fix #1579535 and #1584001,
1542 (regWithIdx,dirregWithName): resolve aliases on lookup
1543 * src/pic/pcode.c (DoBankSelect): die with error message on failing
1545 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1546 to prevent build errors on small devices
1548 2006-10-28 Raphael Neider <rneider AT web.de>
1550 * src/pic/gen.c (genFunction,genCall): drop "same code page"
1551 assumption within interrupt handlers, fixes #1584940
1552 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1553 "emitted" to avoid emitting them again in udata
1555 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1557 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1560 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1562 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1563 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
1564 on/off CR to CRLF conversion.
1566 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1568 * doc/sdccman.lyx: updated IRQ section
1570 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1572 * device/lib/serial_io.c: removed
1573 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1574 replacements for serial_io.c
1576 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1578 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1580 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1582 * device/lib/serial_io.c: Default putchar() and getchar() for
1583 mcs51 uses serial port.
1585 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1587 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1589 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1591 * support/regression/ports/mcs51/support.c: smaller
1592 _sdcc_external_startup()
1593 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1595 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1597 * device/lib/gbz80/crt0.s,
1598 * device/lib/gbz80/crt0_rle.s,
1599 * device/lib/gbz80/div.s,
1600 * device/lib/gbz80/fstubs.s,
1601 * device/lib/gbz80/heap.s,
1602 * device/lib/gbz80/mul.s,
1603 * device/lib/gbz80/putchar.s,
1604 * device/lib/gbz80/stubs.s,
1605 * device/lib/z80/crt0.s,
1606 * device/lib/z80/crt0_rle.s,
1607 * device/lib/z80/div.s,
1608 * device/lib/z80/fstubs.s,
1609 * device/lib/z80/heap.s,
1610 * device/lib/z80/mul.s,
1611 * device/lib/z80/putchar.s,
1612 * device/lib/z80/stubs.s: reverted, I was mistaken
1614 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1616 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1617 * support/regression/ports/mcs51/support.c: removed race
1618 condition on TI in _putchar allowing to use serial port mode 0
1620 2006-10-20 Borut Razem <borut.razem AT siol.net>
1622 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
1624 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1626 * device/lib/gbz80/crt0.s,
1627 * device/lib/gbz80/crt0_rle.s,
1628 * device/lib/gbz80/div.s,
1629 * device/lib/gbz80/fstubs.s,
1630 * device/lib/gbz80/heap.s,
1631 * device/lib/gbz80/mul.s,
1632 * device/lib/gbz80/putchar.s,
1633 * device/lib/gbz80/stubs.s,
1634 * device/lib/z80/crt0.s,
1635 * device/lib/z80/crt0_rle.s,
1636 * device/lib/z80/div.s,
1637 * device/lib/z80/fstubs.s,
1638 * device/lib/z80/heap.s,
1639 * device/lib/z80/mul.s,
1640 * device/lib/z80/putchar.s,
1641 * device/lib/z80/stubs.s: removed all leading underscores from area names
1643 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
1645 * support/regression/ports/mcs51/support.c: use highest baudrate so the
1646 regression tests are not waiting in the simulator for simulated
1647 transmission of debug output
1649 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1651 * device/lib/printf_large.c: slightly smaller
1652 * doc/sdccman.lyx: do not use spaces within html links
1654 2006-10-16 Borut Razem <borut.razem AT siol.net>
1656 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
1657 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
1658 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
1659 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
1660 debugger/mcs51/configure:
1661 [ 1185668 ] add gnu readline support to sdcdb - enabled
1663 2006-10-16 Raphael Neider <rneider AT web.de>
1665 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
1666 fixes #1577882, removes close to all banking optimizations
1668 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
1670 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
1671 variables in code memory
1672 * support/regression/tests/absolute.c: added test for this
1674 2006-10-15 Raphael Neider <rneider AT web.de>
1676 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
1678 (BankSelect): emit BANKSEL before touching linker-placed regs,
1681 2006-10-10 Raphael Neider <rneider AT web.de>
1683 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
1684 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
1685 * src/pic/main.c (_pic14_parseOptions),
1686 * src/pic/main.h: mostly reverted to previous state, now use results
1687 from SDCCmain.c's argument parsing
1689 2006-10-10 Borut Razem <borut.razem AT siol.net>
1691 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
1692 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
1693 [ 1185668 ] add gnu readline support to sdcdb -
1694 prepared for READLINE, not enabled yet,
1695 thanks to <tal.bav AT gmail.com>
1697 2006-10-10 Raphael Neider <rneider AT web.de>
1699 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
1700 * src/pic16/devices.inc,
1701 * device/include/pic16 (pic18f[24]620.h),
1702 * device/include/pic18fregs.h,
1703 * device/lib/pic16/pics.all,
1704 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
1705 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
1706 Gary Plumbridge and Anton Strobl
1708 2006-10-10 Raphael Neider <rneider AT web.de>
1710 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
1711 --stack-siz=NUM options to configure the argument passing stack
1712 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
1713 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
1714 (pic14_getSharebankSize): obey --stack-siz=NUM,
1715 (pic14_getSharebankAddress): obey --stack-loc=NUM
1717 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1719 * doc/sdccman.lyx: added to the manual
1720 * doc/figures/ddd_example.png: added (neither pdflatex nor
1721 most browsers seem to like the .eps file)
1723 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1725 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
1726 to /tmp and /var/tmp acc. LSB
1727 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
1729 * support/regression/tests/onebyte.c: added test
1731 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1733 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
1735 2006-10-05 Borut Razem <borut.razem AT siol.net>
1737 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
1739 - sdcc.dsw: changed property eol-style to CRLF
1740 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
1742 2006-10-04 Raphael Neider <rneider AT web.de>
1744 * device/include/pic/{pic16f84.h,pic16f84a.h},
1745 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
1746 from patch #1522504, thanks to Robas Teodor
1748 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
1750 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
1753 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
1755 * src/pic16/glue.c (pic16emitMaps),
1756 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
1757 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
1758 * device/lib/pic16/libc/string/memcpypgm2ram.c,
1759 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
1761 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
1762 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
1764 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1766 * support/librarian/sdcclib.c: Added option -l.
1767 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
1769 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
1770 using Windows command prompt.
1772 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1774 * device/lib/libsdcc.lib: added module rand
1775 * src/ds390/ralloc.c (rematStr),
1776 * src/hc08/ralloc.c (rematStr),
1777 * src/mcs51/ralloc.c (rematStr),
1778 * src/z80/ralloc.c (rematStr): made output more consistent
1779 * src/mcs51/gen.c: cosmetic changes
1781 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1783 * src/port.h: added mem.cabs_name to PORT
1790 * src/z80/main.c: added cabs_name initializers
1791 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
1793 (emitMaps): emit absolutes in code memory into cabs_name
1795 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
1796 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
1797 * support/regression/fwk/include/testfwk.h: added define for at
1798 * support/regression/tests/absolute.c: added, new
1800 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
1802 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
1803 optimizations, see also patch 887161 by Stas Sergeev
1804 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
1805 to be necessary anymore,
1806 (102, 103, 104, 127): renamed all occurances of bp to _bp
1808 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
1810 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
1811 thanks Weston T. Schmidt for patch 1555221
1812 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
1813 * src/SDCCicode.c(geniCodeMultiply): small optimization
1815 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1817 * device/include/stdlib.h: added rand prototypes
1818 * device/lib/rand.c: new, added
1819 * device/lib/Makefile.in: added rand.c
1820 * src/z80/peeph.def,
1821 * src/z80/peeph-gbz80.def,
1822 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
1824 2006-09-20 Raphael Neider <rneider AT web.de>
1826 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
1828 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
1830 * as/link/aslink.h: cosmetic changes
1831 * as/link/mcs51/Makefile.in,
1832 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
1834 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
1837 * as/link/mcs51/aslink.h,
1838 * as/link/z80/aslink.h: merged and moved to as/link/
1839 * as/link/lkstore.c,
1840 * as/link/mcs51/lkstore.c: moved to as/link/
1841 * as/link/clean.mk: remove *.o
1842 * as/link/mcs51/alloc.h: deleted
1843 * as/link/mcs51/lkarea.c: added lnksect prototype
1844 * as/link/mcs51/lkdata.c,
1845 * as/link/mcs51/lklex.c,
1846 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
1847 * as/link/mcs51/lkmem.c,
1848 * as/link/mcs51/lknoice.c: removed include strcmpi.h
1849 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
1850 * as/link/mcs51/aslink.dsp,
1851 * as/link/mcs51/Makefile.aslink,
1852 * as/link/mcs51/Makefile.bcc,
1853 * as/link/mcs51/Makefile.in: updated for moved files
1854 * as/link/z80/lkarea.c,
1855 * as/link/z80/lkhead.c,
1856 * as/link/z80/lklex.c,
1857 * as/link/z80/lklibr.c,
1858 * as/link/z80/lklist.c,
1859 * as/link/z80/lkmain.c,
1860 * as/link/z80/lkrloc.c,
1861 * as/link/z80/lksym.c: synced with mcs51
1862 * as/link/z80/lkdata.c,
1863 * as/link/z80/lkeval.c,
1864 * as/link/z80/lkihx.c,
1865 * as/link/z80/lks19.c: cosmetic changes
1866 * as/link/z80/Makefile.in,
1867 * as/link/z80/linkgbz80.dsp,
1868 * as/link/z80/linkz80.dsp: updated for moved files
1870 2006-09-16 Borut Razem <borut.razem AT siol.net>
1872 * debugger/mcs51/sdcdb.c: partially fixed
1873 [ 1203664 ] sdcdb fails to open files w. two "." periods
1874 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
1875 debugger/mcs51/symtab.h: fixed indenting
1876 * configure.in, configure: up to date with latest Maarten's changes
1878 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
1881 as/aslink.dsp, as/link/mcs51/aslink.dsp,
1882 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
1883 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
1884 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
1885 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
1886 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
1887 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
1888 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
1889 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
1890 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
1891 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
1892 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
1893 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
1894 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
1895 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
1896 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
1897 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
1898 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
1899 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
1900 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
1901 as/link/mcs51/alloc.h,
1902 as/link/mcs51/clean.mk,
1903 as/link/mcs51/conf.mk,
1904 as/link/mcs51/Makefile.bcc,
1905 as/link/mcs51/Makefile.in,
1906 as/link/mcs51/readme.390,
1907 as/link/mcs51/strcmpi.c,
1908 as/link/mcs51/strcmpi.h,
1910 as/mcs51/Makefile.bcc,
1911 as/mcs51/Makefile.in,
1914 sdcc.dsw: moved mcs51 linker to as/link/mcs51
1916 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
1919 * as/link/Makefile.in,
1920 * as/link/z80/linkgbz80.dsp,
1921 * as/link/z80/linkz80.dsp,
1928 * link/z80/aslink.h,
1929 * link/z80/clean.mk,
1931 * link/z80/linkgbz80.dsp,
1932 * link/z80/linkz80.dsp,
1933 * link/z80/lkarea.c,
1934 * link/z80/lkdata.c,
1935 * link/z80/lkeval.c,
1938 * link/z80/lkhead.c,
1941 * link/z80/lklibr.c,
1942 * link/z80/lklist.c,
1943 * link/z80/lkmain.c,
1944 * link/z80/lkrloc.c,
1947 * link/z80/Makefile.in,
1949 * sdcc.dsw: moved link/ to as/link/
1951 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
1953 * as/mcs51/i51mch.c (machine): fixed warning
1955 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1957 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
1959 2006-09-09 Borut Razem <borut.razem AT siol.net>
1961 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
1962 sdcdb WIN32 native port
1963 * src/clean.mk: fixed
1965 2006-09-08 Borut Razem <borut.razem AT siol.net>
1967 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
1969 2006-09-08 Raphael Neider <rneider AT web.de>
1971 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
1972 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
1973 to gplink to disable processor mismatch warning and to allow
1974 the use of devices with only aliased (shared) memory banks,
1975 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
1977 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1979 * doc/sdccman.lyx: Some re-formating plus example on using
1980 #pragma preproc_asm +/-
1982 2006-09-07 Borut Razem <borut.razem AT siol.net>
1984 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
1987 2006-09-06 Borut Razem <borut.razem AT siol.net>
1989 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
1990 line at sdcc.nsi:153
1991 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
1993 2006-09-05 Borut Razem <borut.razem AT siol.net>
1995 * configure.in, configure: support for winsock2
1996 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
1997 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
1998 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
1999 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2000 debugger/mcs51/symtab.h: sdcdb WIN32 native port
2002 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2004 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2006 * support/regression/tests/bug1551947.c: new, added
2007 * src/SDCCsymt.h: strings are char* not byte*
2009 2006-09-05 Raphael Neider <rneider AT web.de>
2011 * device/lib/pic16/libdev/pic18f4550.c,
2012 device/include/pic16/pic18f4550.h: added PORTD/TRISD
2013 declarations/definitions from patch #1520949
2015 2006-09-05 Raphael Neider <rneider AT web.de>
2017 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2018 byte-aligned bitfields, fixes #1539278
2020 2006-09-05 Raphael Neider <rneider AT web.de>
2022 * src/pic/gen.c (genReceive): skip unreferenced arguments,
2025 2006-09-04 Borut Razem <borut.razem AT siol.net>
2027 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2028 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2029 -mno-cygwin is a part of the compiler name
2030 * support/scripts/sdcc_mingw32: don't disable ucsim
2032 2006-09-03 Borut Razem <borut.razem AT siol.net>
2034 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2035 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2037 2006-09-03 Raphael Neider <rneider AT web.de>
2040 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2041 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2044 2006-09-01 Borut Razem <borut.razem AT siol.net>
2046 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2047 to make ppc-osx happy
2049 2006-08-31 Borut Razem <borut.razem AT siol.net>
2051 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2052 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2053 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2054 * support/regression/ports/ds390/spec.mk,
2055 support/regression/ports/mcs51/spec.mk,
2056 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2057 To run regression tests in mingw environment:
2058 make DEV_NULL=NUL CC=gcc
2060 2006-08-30 Borut Razem <borut.razem AT siol.net>
2062 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2063 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2064 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2065 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2066 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2067 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2068 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2069 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2070 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2071 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2072 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2073 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2074 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2075 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2076 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2077 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2078 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2079 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2080 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2081 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2082 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2083 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2084 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2085 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2086 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2087 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2088 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2089 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2090 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2091 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2092 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2093 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2094 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2095 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2096 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2097 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2098 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2099 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2100 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2101 ucsim WIN32 native port
2103 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2105 * doc/sdccman.lyx: added note on dynamic memory heap initialization
2107 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2109 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2110 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2112 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2114 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2115 * support/regression/tests/bug1546986.c: new, added
2116 * as/mcs51/.cvsignore,
2117 * debugger/mcs51/.cvsignore,
2118 * src/.cvsignore: deleted
2120 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2122 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2125 2006-08-20 Borut Razem <borut.razem AT siol.net>
2127 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2128 removed cl_listen_console::match(), cl_console::match(),
2129 restructured cl_commander::proc_input()
2131 2006-08-16 Borut Razem <borut.razem AT siol.net>
2133 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2134 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2135 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2137 2006-08-14 Borut Razem <borut.razem AT siol.net>
2139 * support/regression/Makefile.in,
2140 support/regression/ports/pic14/gpsim.cmd,
2141 support/regression/ports/pic14/spec.mk,
2142 support/regression/ports/pic14/support.c:
2143 added pic14 regression test
2145 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2147 * as/doc/asxhtm.html: documented changed ABS behaviour
2148 * as/doc/README: fixed some typos
2150 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2152 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2155 2006-08-12 Borut Razem <borut.razem AT siol.net>
2157 * support/regression/fwk/include/testfwk.h,
2158 support/regression/fwk/lib/testfwk.c,
2159 support/regression/generate-cases.py,
2160 support/regression/Makefile.in:
2161 regression test framework does not depend on function pointers and
2164 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2166 * device/include/stddef.h: c temporary hack to fix bug 1518273
2168 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2170 * device/include/mcs51/cc2510fx.h: added
2171 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2174 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2176 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2177 * as/z80/Makefile.in: added strcmpi.c
2178 * as/z80/z80adr.c: added upper case registers and lower case conditionals
2179 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2181 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2183 * device/lib/gbz80/asm_strings.s,
2184 * device/lib/gbz80/crt0_rle.s,
2185 * device/lib/gbz80/div.s,
2186 * device/lib/gbz80/mul.s,
2187 * device/lib/gbz80/shift.s,
2188 * device/lib/z80/asm_strings.s,
2189 * device/lib/z80/crt0_rle.s,
2190 * device/lib/z80/div.s,
2191 * device/lib/z80/mul.s,
2192 * device/lib/z80/shift.s: changed to all lower case menmonics except the
2193 flags which are all upper case
2195 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2197 * as/z80/asm.h: made CASE_SENSITIVE 1
2198 * link/z80/aslink.h: made CASE_SENSITIVE 1
2199 * src/z80/gen.c (throughout): made all conditionals upper case
2200 * support/regression/tests/bug1503067.c: new
2202 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2204 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2205 (shiftIntoPair): added case 2 for PAIR_IY,
2206 (setupToPreserveCarry): replaced parameters with iCode and check if
2207 PAIR_DE is in use to fix bug 1399290,
2208 (genPlus, genMinus): updated call to setupToPreserveCarry
2209 * support/regression/tests/bug1399290.c: new
2211 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2213 * device/lib/Makefile.in (Z80SOURCES): enabled float support
2214 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2215 * src/ds390/gen.c (shiftRLong),
2216 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2217 * src/mcs51/gen.c (sameReg): changed to sameByte,
2218 (xch_a_aopGet): new,
2219 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2220 shiftRLong): fixed bug 1533966
2221 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2222 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2223 * support/regression/Makefile.in: disabled z80, enabled ucz80
2224 * support/regression/tests/float_trans.c: enabled test for z80 and host
2225 * support/regression/tests/shifts2.c: new, for testing bug 1533966
2227 2006-08-01 Borut Razem <borut.razem AT siol.net>
2229 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2230 comparison is always false due to limited range of data type
2231 on PPC64 machine (openpower-linux1) where "char = unsigned char"
2233 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2235 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2236 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2237 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2238 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2240 2006-07-31 Borut Razem <borut.razem AT siol.net>
2242 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2243 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2244 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2245 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2246 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2247 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2248 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2249 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2250 enable ucsim mingw compilation. Serial port is disabled,
2251 since it uses termios.h API, which is not available on native
2254 2006-07-31 Borut Razem <borut.razem AT siol.net>
2256 * Small Device C Compiler 2.6.0 released
2257 * support/scripts/sdcc.nsi: added FULL_DOC option
2258 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2260 2006-07-28 Borut Razem <borut.razem AT siol.net>
2262 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2263 * doc/INSTALL.txt: updated
2265 2006-07-27 Borut Razem <borut.razem AT siol.net>
2267 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2268 device/lib/pic/libdev/Makefile.in: fixed bug
2269 [ 1438354 ] pic libsdcc: distclean doesn't work
2270 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2271 device/lib/pic16/libio/Makefile.in: fixed bug
2272 [ 1438344 ] pic16 lib: clean doesn't work properly
2273 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2275 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2277 * device/lib/pic/libsdcc/fsdiv.c,
2278 * device/lib/pic/libsdcc/fsmul.c,
2279 * device/lib/pic16/libsdcc/float/fsdiv.c,
2280 * device/lib/pic16/libsdcc/float/fsmul.c,
2281 * device/lib/_fsdiv.c,
2282 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2283 * support/regression/tests/bug1520966.c: added
2284 * doc/knownbugs.html: removed [ 1520966 ] from the list
2286 2006-07-25 Borut Razem <borut.razem AT siol.net>
2288 * configure.in, configure, sdccconf_in.h: fixed bug
2289 [ 1519095 ] regression test onebyte.c fails on ppc64 host
2290 * doc/knownbugs.html: removed [ 1519095 ] from the list
2292 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2294 * doc/knownbugs.html: added, contains list of known bugs at release
2295 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2297 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2299 * device/include/mcs51/compiler.h: added SFRX for xdata based special
2300 function registers and corrected defaults with additional warning
2301 * device/lib/malloc.c: cosmetic changes
2302 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2303 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2304 (fillGaps): and used it
2306 2006-07-20 Raphael Neider <rneider AT web.de>
2308 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2309 output unless SDCCPICDEBUG is set
2310 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2311 output if SILENT is set
2313 2006-07-11 Borut Razem <borut.razem AT siol.net>
2315 * doc/README.txt: updated
2317 2006-07-10 Borut Razem <borut.razem AT siol.net>
2319 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2320 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2321 in WIN32 installation
2322 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2325 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2327 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2328 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2330 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2332 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2334 2006-07-06 Borut Razem <borut.razem AT siol.net>
2336 * support/regression/tests/bitfields.c:
2337 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2338 * support/regression/tests/constantRange.c:
2339 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2341 2006-07-04 Borut Razem <borut.razem AT siol.net>
2343 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2345 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2346 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2347 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2348 reverted changes from 2006-07-03
2349 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2350 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2351 added CPPFLAGS, used by the host port
2353 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2355 * support/regression/valdiag/tests/switch.c,
2356 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2357 * support/regression/tests/libmullong.c: fixed for host
2358 * support/regression/ports/host/spec.mk: disable all warnings for host,
2359 SDCC runs with --less-pedantic too
2361 2006-07-03 Borut Razem <borut.razem AT siol.net>
2363 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2365 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2366 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2367 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2368 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2370 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2371 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2372 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2373 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2375 2006-07-02 Raphael Neider <rneider AT web.de>
2377 * src/pic16/devices.inc,
2378 * device/include/pic16/pic18fregs.h,
2379 * device/include/pic16/pic18f4550.h,
2380 * device/lib/pic16/pics.all,
2381 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2383 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2385 * as/hc08/lkaomf51.c (OutputName),
2386 * as/mcs51/lkaomf51.c (OutputName),
2387 * as/z80/asmain.c (asmbl),
2388 * src/ds390/main.c (asmLineNodeFromLineNode),
2389 * src/hc08/ralloc.c (hc08_assignRegisters),
2390 * src/mcs51/main.c (asmLineNodeFromLineNode),
2391 * src/xa51/ralloc.c (checkRegMask),
2392 * src/xa51/gen.c (emitcode),
2393 * src/z80/gen.c (_emit2),
2394 * src/SDCCast.c (searchLitOp),
2396 * support/packihx/packihx.c,
2397 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2398 * src/ds390/gen.c (aopPutUsesAcc),
2399 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2400 * support/regression/tests/libmullong.c (mullong_wrapper),
2401 * src/SDCCsymt.c (powof2),
2403 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2404 * src/SDCCsymt.h: added TYPE_TARGET_*
2405 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2406 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2407 SDCCast because 1) header problems 2) this is the right place
2408 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2409 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2412 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2414 * src/SDCCicode.h: removed buggy semicolon in unused macro
2415 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2416 search for previous definiton of auto symbols too,
2417 (findPrevUse): fixed logic of emitWarnings
2419 2006-06-26 Raphael Neider <rneider AT web.de>
2421 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2422 PCLATH and PCLATU on interrupts, potentially fixes #1505141
2424 2006-06-25 Raphael Neider <rneider AT web.de>
2426 * device/lib/pic/libm: NEW, added math library functions
2427 * device/lib/pic/libsdcc: NEW; added float support functions
2428 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2429 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2430 NEW, added math related headers
2431 * device/include/asm/pic/features.h: NEW
2432 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2433 (popGet): allow larger offsets for AOP_PCODE,
2434 (genDataPointerSet): handle literals explicitly, more debug output,
2435 (genAssign): fixed for float using aopLiteral ;-)
2436 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2437 GOTO initialisation routine
2438 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2439 flag on registers, fixes #1469043 (local variables do not work)
2440 * src/pic/main.c (_pic14_do_link),
2441 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2444 2006-06-25 Borut Razem <borut.razem AT siol.net>
2446 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2447 characters printed (not including the trailing '\0' used to end
2448 output to strings). Problem detected in regression test bug-927659.c.
2449 NOTE: printf() family functions should return int instead
2451 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2452 specifier are printed as themselves
2453 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2454 support flags, width and precision specifiers
2456 2006-06-24 Borut Razem <borut.razem AT siol.net>
2458 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2459 to the list of sdcc tagrets not supporting bit type
2460 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2461 testfor pic16 due to bug:
2462 [ 1511794 ] pic16: regression test bug-895992.c fails
2464 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2466 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2467 * src/SDCCglue.c (initPointer), fixed bug 1496419
2468 * support/regression/tests/bug1496419.c: new, added
2470 2006-06-22 Borut Razem <borut.razem AT siol.net>
2472 * support/regression/ports/pic16/support.c: use gpsim usart module from
2473 libgpsim_modules library
2475 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2477 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2480 2006-06-19 Raphael Neider <rneider AT web.de>
2482 * src/pic/glue.h,src/pic16/glue.h: added prototypes
2483 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2484 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2485 (pic14printExterns,pic14printPublics,pic16printPublics,
2486 pic16_printExterns): use new functions to emit symbols
2487 (picglue,pic16glue): emit publics before emitting externs
2488 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2489 locally defined functions to avoid bug #1443651
2490 * support/regression/tests/bug-716242.c: removed pic16 workaround
2491 * support/regression/ports/pic16/spec.mk: ignore errors during build
2493 2006-06-19 Raphael Neider <rneider AT web.de>
2495 * src/pic/glue.h: added pic14aopLiteral prototype
2496 * src/pic/glue.c (pic14aopLiteral): return unsigned int
2497 * src/pic/gen.c: removed stdint.h dependency
2498 (aopGet): use Safe_strdup()
2499 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2500 (genDataPointerSet): use pic14aopLiteral()
2501 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2502 for pic16; thanks to Bernhard and Maarten
2504 2006-06-18 Borut Razem <borut.razem AT siol.net>
2506 * support/regression/tests/structflexarray.c: flexible array members
2507 not supported by gcc < 3
2508 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2510 * src/pic/gen.c: don't include [p]strdin.h on solaris
2511 * support/Util/pstdint.h: addad svn attributes
2512 * support/regression/tests/constantRange.c,
2513 support/regression/tests/rotate.c: include inttypes.h instead
2514 stdint.h on solaris, addad svn attributes
2516 2006-06-18 Raphael Neider <rneider AT web.de>
2518 * src/SDCCsymt.c (initCSupport): change return type of divschar to
2520 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2521 (pic16_genMinusBits): simplified sign-extension
2522 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2523 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2524 adjusted to correctly handle mixed-signed operands, disabled
2525 now unused multiplciation routines
2526 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2527 (assignResultValue): added argument denoting the size of the result
2528 as returned by the function (fixes upcasts in assigning from
2529 function calls: char foo(); int i = foo();)
2530 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2531 function result to assignResultValue
2532 (genMult): disabled inlined multiplication code
2533 (genDiv): augmented to also handle the modulus operator, fixed to
2534 handle mixed-signed operands correctly
2535 (genMod): simply call genDiv, disabled unused code
2536 (genAssign): fixed missing (sign-)extension on result
2537 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2538 valid char operands, allow signed operands for native code, added
2539 division and modulo operator handling
2540 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2542 As a consequence, onebyte.c (if split into two files) and muldiv.c
2543 pass regression tests.
2545 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2547 * doc/Makefile.in: two runs of makeindex seem needed to get
2548 correct page references in the index of sdccman.pdf
2549 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2551 2006-06-17 Borut Razem <borut.razem AT siol.net>
2553 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2555 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2557 * doc/sdccman.lyx: updated, added (porting source code, debugging),
2558 mentioned ec2drv and paulmon
2560 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2562 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2563 consecutive abs areas
2564 (find_empty_space, allocate_space): added map to handle codemap or
2566 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2567 absolute idata and xdata
2568 * as/mcs51/lkmem.c (summary2): updated legend
2570 2006-06-16 Raphael Neider <rneider AT web.de>
2572 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2574 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2576 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2578 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2580 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2582 * src/port.h (struct PORT): added field gp_tags, to hold the tag
2583 value of generic pointers,
2593 src/z80/main.c: PORT structure, added elements for gp_tags field,
2594 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2595 fields in the PORT structure of each port,
2596 * src/SDCCast.c (decorateType): allow processing of generic pointers
2597 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2600 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2606 * src/pic16/pcode.c,
2608 * src/pic/pcoderegs.c,
2611 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2612 bug 1504689 on minGW
2614 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2616 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2618 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2620 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
2622 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2624 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
2627 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
2629 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
2630 to a char variable. Fixed bug #1504211
2631 * device/include/pic16/adc.h,
2632 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
2633 and fixed bug #1364390
2635 2006-06-10 Borut Razem <borut.razem AT siol.net>
2637 * CVSROOT: removed the CVS left-over
2639 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2641 * as/hc08/asmain.c (asexit),
2642 * as/hc08/lkmain.c (lkexit),
2643 * as/mcs51/asmain.c (asexit),
2644 * as/mcs51/lkmain.c (lkexit),
2645 * src/SDCCglue.c (DEFSETFUNC),
2646 * src/SDCCmain.c (linkEdit, assemble),
2647 * support/librarian/sdcclib.c (AddRel),
2648 replaced unlink() by standard C remove()
2649 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
2650 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
2651 gatherImplicitVariables): new, added to fix bug 608752,
2652 (createFunction): added gatherImplicitVariables()
2653 * src/SDCCast.h: added createRMW prototype
2654 * src/SDCCsymt.h (struct symbol): added infertype
2655 * support/regression/tests/bug608752.c: new, added
2657 2006-06-10 Raphael Neider <rneider AT web.de>
2659 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
2660 multibyte dummy reads (fixes #1503234)
2662 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2664 * device/include/mcs51/compiler.h: new, added header file to enable
2665 creating common sfr definition header files for different compilers
2667 2006-06-05 Raphael Neider <rneider AT web.de>
2669 * src/pic16/{pcode.h,genarith.c}:
2670 introduced pCodeOp combining any two pCodeOps (previously only
2671 two register operands could be combined), removed pcop2 from
2672 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
2673 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
2674 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
2675 rewritten to use new PO_TWO_OPS
2676 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
2677 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
2678 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
2679 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
2680 (pic16_get_op): embraced return arg to allow #define return(x),
2681 added new case for combined opcodes
2682 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
2683 (pic16_pCode2str,pic16_getRegFrompCodeOp,
2684 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
2686 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2688 * src/SDCCval.c (checkConstantRange): added
2689 * src/SDCCval.h: added checkConstantRange
2690 * support/Util/SDCCerr.c,
2691 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
2692 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
2693 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
2694 * src/SDCCast.c (decorateType): added checkConstantRange,
2695 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
2696 can be emitted with the correct always true/false warning,
2697 added optimization for double '!';
2698 result of decorateType() must be assigned back to the tree, because
2699 decorateType() can change the tree
2700 * src/SDCCicode.c (geniCodeLogic),
2701 (geniCodeAssign): replaced new checkConstantRange, added warnings,
2702 (checkConstantRange): removed, it was only a fragment which never
2704 * src/SDCCsymt.c (computeType): fixed promotion for
2705 "-1 < (unsigned bit) b"
2706 * src/pic/ralloc.c (packRegsForAssign),
2707 * src/pic16/ralloc.c (packRegsForAssign),
2708 * src/hc08/ralloc.c (packRegsForAssign),
2709 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
2711 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
2712 * support/regression/tests/constantRange.c: added
2713 * support/valdiag/tests/constantRange.c: added
2714 * support/valdiag/valdiag.py: added -DPORT_HOST=1
2716 2006-06-02 Borut Razem <borut.razem AT siol.net>
2718 * support/regression/ports/pic16/support.c: increase stack size
2720 * support/regression/Makefile.in: sort tests by name so that the
2721 resutlts can be compared on different machines / platforms
2723 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2725 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
2726 * src/ds390/gen.c (emitLabel): new, added,
2727 (genDjnz): fixed stack overflow bug,
2728 (throughout): cosmetic changes to sync with mcs51/gen.c,
2729 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
2730 * src/mcs51/gen.c (genEndFunction): small optimization,
2731 (throughout): cosmetic changes to sync with ds390/gen.c
2733 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2735 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
2736 (_print_format): fixed printing pointers
2737 * src/mcs51/gen.c (emitLabel, movb): new, added,
2738 (genAssign): small optimization,
2739 (genDjnz): fixed stack overflow bug,
2740 (throughout): replaced sprintf with SNPRINTF,
2741 replaced mcs51_regWithIdx with REG_WITH_INDEX,
2742 replaced emitcode("mov", "b,...") with MOVB(...),
2743 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
2744 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2745 * src/mcs51/peeph.def: added rules 140 and 264
2746 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
2747 so they may get optimized into registers
2749 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
2751 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
2752 immediately when encountered,
2753 (printUsage): always use stderr even on windows
2755 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
2757 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
2758 (processParms): fixed bug #1247551
2759 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
2760 parseCmdLine, main): print '--version' to stdout,
2761 print 'help' to stdout if --help is given,
2762 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
2763 arguments are given; fixed --help
2765 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
2767 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
2768 * support/regression/tests/bug-1493710.c: added
2770 2006-05-27 Borut Razem <borut.razem AT siol.net>
2772 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
2774 * support/regression/ports/pic16/support.c: increase stack size
2775 from default 64 bytes to 128 bytes
2776 * support/regression/tests/staticinit.c,
2777 support/regression/tests/float.c: regression tests fully enabled
2778 for pic16 port by putting the initialized data arrays into the code
2780 * support/regression/ports/pic16/spec.mk: don't link default libraries.
2781 This was changed by mistake in the previous version.
2783 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
2785 * src/pic16/gen.c (genFunction, genEndFunction): some
2786 beautifications, fixed bug with falsely restoring FSR2 in large
2787 stack model, thanks to Beau E. Cox for reporting the bug
2789 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2791 * debugger/mcs51/break.c,
2792 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
2793 use %p to print pointers, made address variables unsigned
2794 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
2795 * debugger/mcs51/symtab.c (parseSymbol): must return something
2796 * src/mcs51/gen.c (aopForSym): small optimization,
2797 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
2798 (freeAsmop): added missing break,
2799 (aopPut): removed parameter bvolatile, determine it inside the function,
2800 (saveRegisters, unsaveRegisters): small optimization,
2801 (genIpush): removed pointless check,
2802 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
2803 replaced sprintf with SNPRINTF,
2804 replaced strcpy with strncpyz,
2805 updated aopPut calls,
2806 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2807 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
2809 2006-05-24 Borut Razem <borut.razem AT siol.net>
2811 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
2812 modification of test for the pic16 port, put the array to the code
2813 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
2815 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2817 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
2818 * support/Util/pstdint.h: added
2820 2006-05-22 Borut Razem <borut.razem AT siol.net>
2822 * src/regression/Makefile: removed bool2.c test, added -q linker option
2823 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
2824 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
2825 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
2826 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
2827 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
2828 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
2829 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
2830 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
2831 define SUPPORT_BIT_TYPES 0, removed unused bit variables
2833 2006-05-22 Raphael Neider <rneider AT web.de>
2835 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
2836 bug #1492360 (problematic due to generic pointers, see code)
2838 2006-05-22 Borut Razem <borut.razem AT siol.net>
2840 * support/regression/ports/pic16/specs.mk: removed stack size linker
2842 * support/regression/tests/array.c,
2843 support/regression/tests/bitopcse.c,
2844 support/regression/tests/bug-908454.c,
2845 support/regression/tests/malloc.c: modified for pic16 regression test
2846 * support/regression/tests/bitfields.c:
2847 pic16 - excluded bitfileds of size > 8
2848 * support/regression/tests/bp.c: pic16 - reduced data size
2849 * support/regression/tests/bug-221100.c: pic16 - reduced data size
2850 * support/regression/tests/bug-460010.c:
2851 pic16 - used the absolute address the fits in memory
2852 * support/regression/tests/bug-716242.c:
2853 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
2854 * support/regression/tests/float.c:
2855 pic16 - excluded - data size too big
2856 * support/regression/tests/onebyte.c:
2857 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
2858 * support/regression/tests/shifts.c:
2859 pic16 - function names probably have to differ in first X characters
2861 * support/regression/tests/staticinit.c:
2862 pic16 - excluded some tests due error: no target memory available for
2865 2006-05-22 Borut Razem <borut.razem AT siol.net>
2867 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2868 second try. Thanks Stas Sergeev once more.
2870 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2872 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
2873 (genLeftShift, genRightShift): fixed bug 1491627
2874 * src/hc08/peeph.def (rules 7, 8.x): added
2875 * support/regression/tests/shifts.c (ShiftLeftByParam,
2876 ShiftRightByParam, testShiftByParam): added to test variable shifting
2878 2006-05-20 Raphael Neider <rneider AT web.de>
2880 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
2881 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
2882 (allocReg): add only new registers to dynAllocRegs,
2883 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
2884 #1489055, #1445850, and probably #1483693
2886 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
2888 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
2889 bug in for-loop that didn't emit the last of CONFIG and ID registers
2891 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
2893 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
2895 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
2896 1489016, 1434401 and 1490124
2897 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
2898 1489016, 1434401 and 1490124
2900 2006-05-17 Borut Razem <borut.razem AT siol.net>
2902 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2905 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2907 * device/include/mcs51/P89c51RD2.h,
2908 * device/include/mcs51/P89LPC901.h,
2909 * device/include/mcs51/P89LPC922.h,
2910 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
2912 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2914 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
2915 to fix missing stack pragma in compiled binary object file,
2917 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2919 * support/packihx/configure.in,
2920 * support/packihx/configure: removed warning, autoconf >= 2.5x can
2921 determine sizeof basic types even while cross compiling
2923 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2925 * src/avr/gen.c (aopop),
2926 * src/ds390/gen.c (aopOp),
2927 * src/hc08/gen.c (aopOp),
2928 * src/mcs51/gen.c (aopop),
2929 * src/pic16/gen.c (pic16_aopOp),
2930 * src/pic/gen.c (aopOp),
2931 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
2932 if size of operand is smaller than spill location
2934 2006-05-12 Borut Razem <borut.razem AT siol.net>
2936 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
2937 have to have CR/LF line endings even if they are checked out on *nix
2938 or on WIN32 in cygwin binmode
2940 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
2942 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
2943 * device/include/ds80c390.h: added sfr16 definitions
2947 * src/ds390/ralloc.c,
2948 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
2949 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
2950 bit returning functions
2951 * support/regression/tests/sfr16.c: enabled test on ds390
2953 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2955 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
2956 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
2958 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2960 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
2961 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
2962 (cl_address_space constructor): removed expensive initialization,
2963 (cl_address_space::get_cell): extended for late initialization,
2964 (cl_address_space::*): use late initialization,
2965 (cl_address_decoder::activate): removed expensive initialization,
2966 This reduced regression test running time by 25%
2968 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
2976 * support/packihx/Makefile.in,
2977 * support/packihx/clean.mk,
2978 * support/packihx/Makefile.bcc,
2979 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
2981 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2983 * src/SDCCval.c (valNot): fix for regression test failure
2984 of not.c on big endian hosts
2986 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2988 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
2990 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2992 * device/lib/mcs51/Makefile.in: changed string comparison operator
2993 to = for POSIX compliance; == is bash extension
2995 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
2997 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3000 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3002 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3003 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3004 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3005 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3006 bug report #1478657,
3008 2006-05-05 Borut Razem <borut.razem AT siol.net>
3010 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3013 2006-05-02 Borut Razem <borut.razem AT siol.net>
3015 * doc/Makefile.in: removed *.ind dependency since there is no rule to
3016 create *.ind, which made make to fail if invoked with -j 2
3018 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3020 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3021 Hubert Sack for patch 1479782
3023 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3025 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3027 2006-05-01 Raphael Neider <rneider AT web.de>
3029 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3030 (create_pic): store only prefix-free device name,
3031 (init_pic): check for device names with "16" prefix,
3033 * src/pic/device.h (struct PIC_device),
3034 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3036 * device/include/pic/pic12f{635,675,629,683}.h,
3037 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3038 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3039 * device/include/pic/pic16f505.h,
3040 * device/lib/pic/libdev/pic16f505.c: removed
3041 * device/include/pic/pic14devices.txt: added support for pic12f
3042 devices, removed unsupported non 16-bit devices
3043 [above changes provided by patch from Zik Saleeba]
3044 * src/pic/*, src/pic16/*, device/include/pic16/*,
3045 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3047 2006-05-01 Borut Razem <borut.razem AT siol.net>
3049 * configure.in, configure, doc/Makefile.in:
3050 sync with nightly build makefile - latex, dvipdf and dvips
3053 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3055 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3056 in the library source
3058 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3060 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3062 2006-04-28 Raphael Neider <rneider AT web.de>
3064 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3065 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3066 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3067 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3069 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3071 * device/lib/pic/libdev/Makefile.in,
3072 * device/lib/hc08/Makefile.in,
3073 * device/lib/gbz80/Makefile.in,
3074 * device/lib/z80/Makefile.in,
3075 * device/lib/ds390/Makefile.in,
3076 * device/lib/ds400/Makefile.in: added srcdir to include search path,
3077 thanks to Borut for the bug report
3079 * configure: always create doc/Makefile independent from --enable-doc
3080 * Makefile.in: always install from directory doc independent from
3082 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3084 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3085 * doc/Makefile.in: install *.txt if present
3086 * device/include/Makefile.in (install): added installation of pic/*.inc
3087 and pic/*.txt files again, they were erroneously removed
3089 2006-04-28 Raphael Neider <rneider AT web.de>
3091 * src/pic/{gen.c,main.h,pcode.c},
3092 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3093 concerning signedness with casts
3095 2006-04-28 Raphael Neider <rneider AT web.de>
3097 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3098 definition of an interrupt handler,
3099 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3100 interrupt handler stuff from picglue() to separate routine,
3101 (picglue): enabled definition of intr handlers in files w/o main()
3103 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3105 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3106 compilation with MSVC 2005 Express Edition (VC8)
3108 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3110 * device/lib/Makefile: fixed build of gbz80 lib
3112 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3114 * support/regression/tests/bug-460010.c,
3115 * support/regression/tests/bug-524691.c,
3116 * support/regression/tests/bug-716242.c: removed conditional defines
3117 that are already in testfwk.h
3119 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3121 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3122 (AccAXRsh1): added, shift right by 1,
3123 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3125 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3127 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3129 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3130 remove cast to same type
3131 * src/SDCCast.c (decorateType): fix for RFE 1475742,
3132 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3134 * link/z80/Makefile: removed, they have moved to
3137 * configure.in: replaced duplicate message about ucsim by missing sdcpp
3138 * install-sh: fix bug #1204398 by setting umask 0022
3139 * device/lib/Makefile: separate build of z80 and gbz80 lib
3141 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3143 Enabled VPATH feature: changed nearly all Makefiles (149 files).
3144 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3146 One basic decision: e.g. src/clean.mk includes further files. In order
3147 to make this work there are two solutions:
3148 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3149 run configure on them. This way they can use
3150 'include $(srcdir)/port-clean.mk'
3151 - always include clean.mk by the Makefile at the same level. To avoid
3152 that `make clean` tries to include and build Makefile.dep the
3153 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3154 implemented, because now even `make uninstall` doesn't create
3155 Makefile.in. clean.mk could be eliminated by pasting it in
3158 * debugger/mcs51/Makefile.in: build own objects from library sources
3159 (SLIB, SDCC) in current directory
3161 * configure, configure.in: renamed --disable-device-lib-build in
3162 --disable-device-lib; added --enable-doc, the required tools are
3163 searched by configure; added result message; the toolchain for the
3164 belonging ports are now only built, if the port is enabled.
3166 * support/regression/*: all output is written in directory gen, because
3167 the fwk and ports directories don't livet in the build tree using vpath
3169 * doc/sdccman.lyx: renamed --disable-device-lib-build to
3170 --disable-device-lib, added --enable-doc, added section VPATH
3172 * sim/ucsim/configure.in,
3173 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3174 z80 are enabled by default
3176 2006-04-24 Raphael Neider <rneider AT web.de>
3178 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3179 to config word, "pic14_"-prefixed some extern functions
3180 (pic14_emitConfigWord): emit __config directive(s) if assignment to
3181 config word has been found
3182 * src/pic/device.h: added prototypes
3183 * src/pic/pcode.c: added "pic14_"-prefix where needed
3184 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3186 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3188 (pic14emitRegularMap): ignore config words,
3189 (pic14createInterruptVect): moved generating __config directives away
3190 (picglue): have __config directives emitted
3192 2006-04-24 Borut Razem <borut.razem AT siol.net>
3194 * doc/Makefile: sync with nightly build makefile
3196 2006-04-24 Raphael Neider <rneider AT web.de>
3198 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3199 registers that have not been assigned proper liveranges,
3200 fixes #1469504 and #1474602,
3201 (pCodeRegOptimizeRegUsage): fixed typo in comment
3203 2006-04-24 Borut Razem <borut.razem AT siol.net>
3205 * device/examples/main8051.c: deleted - it was removed from CVS
3206 24.mar.2000 and after that modified 18.feb.2001, so it reappered
3207 after the transition to Subversion
3208 * src/SDCCalloc.h: deleted - it was removed from CVS
3209 3.feb.2001 and after that modified 18.feb.2001, so it reappered
3210 after the transition to Subversion
3211 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3212 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3213 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3214 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3216 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3218 * as/asx8051.dsp: added mcs51/strcmpi.h
3219 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3220 * as/hc08/aslink.h: updated lnksect prototype
3222 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3224 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3225 (newdot): handle A_ABS
3227 * as/mcs51/asout.c (outarea): output address
3228 * as/hc08/lkaomf51.c,
3229 * as/mcs51/lkaomf51.c: disabled unused array UsageType
3231 * as/mcs51/i51pst.c,
3232 * as/z80/z80pst.c: "ABS" is not A_OVR
3233 * as/hc08/lkarea.c (newarea): read a_addr,
3234 (lnkarea): added codemap array, sort absolute areas to the front,
3235 combine all GSINITx/GSFINAL,
3236 (find_empty_space, allocate_space): new functions,
3237 (lnksect): return next address, handle absolute sections
3238 * as/mcs51/lkarea.c (newarea): read a_addr,
3239 lnksect2 prototype changed,
3240 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3241 (find_empty_space, allocate_space): new, factored out of lnksect2,
3242 (lnksect2): return next address, handle absolute sections
3244 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3245 * as/hc08/lklibr.c (addfile, fndsym),
3246 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3247 index out of range and detect both '\' and '/'
3248 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3249 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3250 regression tests (ds390 cannot return bool yet)
3251 * doc/sdccman.lyx: changed version number, document changed --no-peep,
3252 document critical interrupts on z80, document changed SDCC define
3253 * src/asm.c (_asxxxx_mapping): fixed .org directive,
3254 (_a390_mapping): added .org directive
3255 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3256 (genMultOneByte): fixed warnings
3257 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3259 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3260 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3261 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3262 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3263 * src/pic16/main.c: removed newReg prototype
3264 * src/pic16/pcode.c,
3265 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3267 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3269 * src/pic16/ralloc.c
3270 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3272 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3273 from short to PIC_OPTYPE
3274 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3275 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3276 optype from short to PIC_OPTYPE
3277 * src/port.h: made int_size unsigned to fix warnings
3278 * src/SDCC.y: fixed warning on MSVC
3279 * src/SDCCicode.c (getArraySizePtr): return unsigned int
3280 * src/SDCCopt.c (convertToFcall): fixed warnings
3281 * src/SDCCsymt.h: removed double prototype for genSymName
3282 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3283 offset int to fix warnings
3285 2006-04-22 Borut Razem <borut.razem AT siol.net>
3287 * doc/sdccman.lyx, */Makefile, */Makefile.in:
3288 references to CVS replaced with Subversion
3290 2006-04-21 Borut Razem <borut.razem AT siol.net>
3292 * doc/sdccman.lyx, */Makefile, */Makefile.in:
3293 references to CVS replaced with Subversion
3295 2006-04-19 Borut Razem <borut.razem AT siol.net>
3297 * src/version.awk: adapted for svn
3298 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3299 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3300 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3301 /binutils-avr/etc/*.vi, *.jin: removed all properties
3302 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3304 2006-04-19 Borut Razem <borut.razem AT siol.net>
3306 * CVS to Subversion migration completed
3308 2006-04-18 Borut Razem <borut.razem AT siol.net>
3310 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3311 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3313 2006-04-17 Borut Razem <borut.razem AT siol.net>
3315 * device/include/Makefile.in: added pic/*.inc to the installation
3317 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3319 * support/regression/collate-results.py: fixed output in case of
3321 * support/regression/generate-cases.py: fixed splitting of pathnames
3323 * as/hc08/lklibr.c (addfile),
3324 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3326 2006-04-11 Raphael Neider <rneider AT web.de>
3328 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3329 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3330 * src/pic16/pcode.c (assignValnums): fixed #1460578
3332 2006-04-11 Raphael Neider <rneider AT web.de>
3334 * device/lib/pic/libdev/*.c,
3335 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3336 fixes #1468739, enables compilation in --std-c99 mode
3337 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3339 2006-04-11 Raphael Neider <rneider AT web.de>
3341 * src/pic/device.c (find_device): removed debug output
3342 (list_valid_pics): enabled verbose listing of supported devices
3343 * device/include/stdbool.h: define bool as char for pic14/16 as well
3345 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3347 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3349 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3351 * .version: bumped version to 2.5.6
3352 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3354 2006-04-06 Raphael Neider <rneider AT web.de>
3356 * .version: bumped version to 2.5.6 (pic14 ABI changed)
3357 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3358 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3359 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3360 pic14_constructAbsMap
3361 (pic14printPublics): declare absolute global symbols as global
3362 (pic14createInterruptVect),
3363 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3364 (newReg): assume new registers unused, use correct name in
3365 hashtable (reg->name instead of name), more debugLog output
3366 * src/pic/device.h (PIC_device): added fields for verbose output
3367 * src/pic/device.c: moved device definition to pic14devices.txt,
3368 added routines for runtime parsing of pic14devices.txt,
3369 added support for second config word
3370 * src/pic/main.c (_process_pragma): removed #pragma maxram,
3371 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3372 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3373 (_pic14_parseOptions): moved pCodeInitRegisters here
3374 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3375 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3376 (pCodeInitRegisters): rewrapped comments, perpared new approach to
3377 handling the pseudo stack
3378 * device/lib/Makefile.in: ignore failures in objects-pic16,
3379 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3380 * device/lib/pic/NEWS: document new dependency on picXXX.lib
3381 * device/lib/pic/Makefile.subdir,
3382 * device/lib/pic16/Makefile.subdir: improved clean rules
3383 * device/lib/pic/libdev/: NEW, pic14 device libraries
3384 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3385 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3386 * device/include/Makefile.in: create subdir and install pic14 headers
3387 * device/include/pic/p16f_common.inc: removed unused declarations
3388 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3389 PICs from inc2h.pl v1.6,
3390 replaced BIT_AT macros with struct declarations
3391 * device/include/pic/pic14devices.txt: definition of supported devices,
3392 all above improvements contributed by Zik Saleeba, thanks
3393 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3394 * support/scripts/sdcc.nsi: also install pic14 device libraries and
3397 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3399 * device/include/mcs51/c8051f410.h: added interrupt numbers,
3400 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3401 thanks to Charles Olds
3403 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3405 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3407 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3409 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3410 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3411 * support/regression/bug1464657.c: added, new test
3413 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3415 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3418 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3420 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3421 --no-peep and --peep-file <file> are used don't use default rules but
3424 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3426 * src/mcs51/gen.c (genCall): fixed bug 1457608
3428 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3430 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3431 changes seem to cause (trigger?) problems with the build system.
3433 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3435 * src/SDCCpeeph.c (operandsLiteral): new, added,
3436 (callFuncByName): inserted operandsLiteral
3437 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3439 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3441 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3442 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3444 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3446 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3447 implemented patch 1120823 Thanks to Willy De la Court (normal
3448 interrupts need an interrupt number now if they are made critical),
3449 and enabled nesting of critical functions though not for gbz80
3450 (genCritical, genEndCritical): added functions
3451 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3452 * src/z80/mappings.i: added "ei" to all mappings
3454 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3456 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3457 submitted by the Debian SDCC maintainer Aurelien Jarno:
3458 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3459 archive with gcc 4.1 on mips and wrote the patch"
3461 2006-03-16 Raphael Neider <rneider AT web.de>
3463 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3464 the left operand is shorter than the result (c* = lit-c* + int),
3466 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3469 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3471 * src/.version: increased version number to 2.5.5
3472 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3473 linking is done manually in pic16 port's _linkEdit,
3474 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3475 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3476 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3477 allocate asmop as AOP_ACC,
3478 (aopForRemat): added parameter 'bool result' in function declaration,
3479 (pic16_aopGet): return AOP_ACC when accessing WREG,
3480 (pic16_popGetTempReg): minor modification,
3481 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3482 'pic16_allocWithIdx',
3483 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3484 calling function in absolute addresses,
3485 (genAssign): take into account AOP_ACC asmop,
3486 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3487 * src/pic16/pcoderegs.c: some debug functions and lines added,
3488 * src/pic16/ralloc.c (decodeRegType): added but commented out,
3489 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3491 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3492 call to allocReg, not by manually allocating a new one,
3493 (pic16_assignRegisters): now before going through the register
3494 allocating functions mark all registers as free. This eliminates some
3495 side effects resulting from peephole parser done earlier in the backbone
3497 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3499 * src/SDCCicode.c (geniCodeLogic),
3500 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3502 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3504 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3505 (genSend): bugfix, do not allocate and free twice,
3506 (shiftRLong): handle partially overlapping aops
3507 * support/regression/tests/bitopcse.c: fixed warning redefined idata
3509 2006-03-08 Borut Razem <borut.razem AT siol.net>
3511 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3514 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3516 * support/regression/tests/bug1409955.c: new, added
3517 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3518 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3519 (aopForSym, aopOp): increment asmop.allocated if reused,
3520 (freeAsmop): decrement asmop.allocated and check for zero instead of
3522 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3523 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3524 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3525 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3526 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3527 genSignedRightShift, genRightShift, genDataPointerGet,
3528 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3529 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3530 in reverse order from allocation,
3531 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3532 added swappedLR to keep track
3533 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3534 pdata & code for GCC, z80, gbz80 & hc08
3535 * support/regression/tests/zeropad.c: moved defines to testfwk.h
3537 2006-03-08 Raphael Neider <rneider AT web.de>
3539 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3541 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3543 * device/include/mcs51/c8051f410.h: new SiLabs mcu
3544 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3545 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3547 2006-03-06 Borut Razem <borut.razem AT siol.net>
3549 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3550 made the linker quiet
3552 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3554 * src/pic16/gen.c (genPcall): fixed bug #1443644
3555 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3556 which dumps before the function entry point a data byte which represents
3557 the number of the local variables used by the specified function, added
3558 'xinst' for initial support for Extended Instruction Support,
3559 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3560 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3561 port->fun_prefix anymore (may change later),
3562 (genFunction, genEndFunction): do not store/restore local registers for
3563 _main (this should take care the --main-return command line option in
3565 (genOr): removed some legacy pic-port instructions,
3566 * src/pic16/genarith.c (genAddLit): re-enabled old code because
3567 performing operations with SFR's causes data to be written more than
3568 once to each SFR. Perhaps SFRs should be handled in special cases...
3569 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3571 * src/pic16/main.c (_process_pragma): stack bound checking did not take
3572 into account for stack starting position,
3573 (struct OPTIONS pic16_optionsTable): added command line argument
3574 --extended or -y for Extended Instruction Support,
3575 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3576 (deassignLRs): *** perhaps the most important change, old 'for' code
3577 (commented out for reference), didn't account for some registers which
3578 were left marked 'not free' after a pointer operation. The change
3579 reduces register usage a lot in some cases
3581 2006-03-04 Borut Razem <borut.razem AT siol.net>
3583 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3585 * support/regression/tests/bug-524697.c: decreased array size for
3586 mcs51 to fit into the internal RAM
3587 * support/regression/Makefile.in: a little bit more verbose
3589 2006-03-03 Borut Razem <borut.razem AT siol.net>
3591 * support/regression/fwk/lib/testfwk.c,
3592 support/regression/fwk/include/testfwk.h: introduced function
3593 _prints(), nonrecursive _printn(), call _initEmu() from main()
3594 * support/regression/ports/gbz80/support.asm,
3595 support/regression/ports/ucz80/support.asm,
3596 support/regression/ports/z80/support.asm,
3597 support/regression/ports/ds390/support.c,
3598 support/regression/ports/hc08/support.c,
3599 support/regression/ports/host/support.c,
3600 support/regression/ports/mcs51/support.c,
3601 support/regression/ports/xa51/support.c: added empty _initEmu()
3603 * support/regression/ports/pic16/gpsim.cmd,
3604 support/regression/ports/pic16/spec.mk,
3605 support/regression/ports/pic16/support.c,
3606 support/regression/Makefile.in: added pic16 regression test
3608 2006-03-01 Raphael Neider <rneider AT web.de>
3610 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3611 genConstPointerGet): use safe way of generating MOVFF to cover
3612 literals as well as registers, fixes bug #1440527
3613 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3615 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3616 more correctly, fixes bug #1232186
3617 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3618 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3619 gplink guess the correct processor in more cases, applied patch
3620 from Till Riedel attached to and fixing bug #1436552
3622 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3624 * support/regression/tests/array.c: added, contains check for #1434401
3625 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
3627 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3629 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
3630 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
3631 * device/include/mcs51/c8051f326.h,
3632 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
3633 * device/include/mcs51/c8051f000.h,
3634 * device/include/mcs51/c8051f018.h,
3635 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
3636 PCON_IDLE,PCON_STOP and added sfr16 definitions
3638 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3640 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
3641 genGetWord): fixed bug 1409955
3643 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3645 * device/include/hc08/mc68hc908gp32.h,
3646 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
3648 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
3650 * src/SDCCast.c (constExprValue): return NULL if not a value
3651 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
3652 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
3653 * support/regression/tests/bitfields.c: enabled signed bitfield for all
3655 2006-02-13 Borut Razem <borut.razem AT siol.net>
3657 * src/regression/ptrarg.c: added, fails due to bug #1430967
3658 * src/regression/Makefile: ptrarg.c added, ...
3660 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3662 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
3663 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
3665 2006-02-11 Borut Razem <borut.razem AT siol.net>
3667 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
3668 print "Processor: xxx" message to stdout only if --verbose
3670 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3672 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
3673 * support/regression/tests/bug1426356.c: added
3674 * support/regression/tests/bitfields.c: removed 2 tests
3676 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3678 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
3679 * device/include/mcs51/c8051f330.h,
3680 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
3681 PCON_IDLE,PCON_STOP and added sfr16 definitions
3682 * device/lib/_divsint.c,
3683 * device/lib/_divuint.c,
3684 * device/lib/_divulong.c,
3685 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
3686 register bank bug for small stackauto
3688 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3690 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
3692 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
3694 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
3695 * all.dsp: corrected several bin paths
3696 * device/include/mcs51/c8051f120.h,
3697 * device/include/mcs51/c8051f300.h,
3698 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
3699 to PCON_IDLE,PCON_STOP
3700 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
3701 * device/lib/printf_large.c (output_float): fixed bug 1388703
3702 * support/regression/tests/bug1057979.c: added test for bug 1388703
3704 2006-02-08 Raphael Neider <rneider AT web.de>
3706 * src/pic/pcode.c (pciTRIS): fixed typo,
3707 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
3708 (LinkFlow): fixed handling of flows that end in a call,
3709 (ReuseReg): perform safety check earlier
3710 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
3711 to work with flows at the beginning of a pBlock,
3712 fixes #1426557 (Symbol not previously defined),
3713 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
3715 (RemoveUnusedRegisters): update register usage info
3716 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
3717 created, reuse existing ones instead
3718 * src/pic/gen.c (genPcall): fixed #1424719
3720 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
3722 * link/z80/lkmain.c,
3724 * link/z80/lkdata.c,
3725 * link/z80/aslink.h: fixed build on current cygwin:
3726 replaced getline() by lk_getline()
3728 2006-02-01 Borut Razem <borut.razem AT siol.net>
3730 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
3731 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
3732 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
3733 src/regression/bool1.c, src/regression/bool2.c,
3734 src/regression/bool3.c, src/regression/call1.c,
3735 src/regression/compare.c, src/regression/compare10.c,
3736 src/regression/compare2.c, src/regression/compare3.c,
3737 src/regression/compare4.c, src/regression/compare5.c,
3738 src/regression/compare6.c, src/regression/compare7.c,
3739 src/regression/compare8.c, src/regression/compare9.c,
3740 src/regression/configword.c, src/regression/for.c,
3741 src/regression/inline.c, src/regression/mult1.c,
3742 src/regression/nestfor.c, src/regression/or1.c,
3743 src/regression/pointer1.c, src/regression/ptrfunc.c,
3744 src/regression/rotate1.c, src/regression/rotate2.c,
3745 src/regression/rotate3.c, src/regression/rotate4.c,
3746 src/regression/rotate5.c, src/regression/rotate6.c,
3747 src/regression/rotate7.c, src/regression/string1.c,
3748 src/regression/struct1.c, src/regression/sub.c,
3749 src/regression/sub2.c, src/regression/switch1.c,
3750 src/regression/while.c, src/regression/xor.c,
3751 src/regression/create_stc, src/regression/simulate,
3752 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
3754 * src/regression/gpsim_assert.h: added
3756 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3758 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
3759 ((void (code *) (void)) 0) ();
3768 * as/mcs51/aslink.h,
3770 * as/mcs51/asmain.c,
3771 * as/mcs51/lkdata.c,
3773 * as/mcs51/lkmain.c,
3776 * as/z80/asmain.c: fixed build on current cygwin:
3777 replaced getline() by as_getline()
3779 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3781 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
3782 declarator in the symbol chain
3784 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
3785 parameter list for function pointers
3786 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
3787 * support/regression/tests/bug-716242.c: added
3789 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
3791 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
3793 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
3795 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
3797 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
3798 inifinitely recurseable, added static
3799 * support/regression/tests/bug-1408066.c: added
3801 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
3804 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
3805 renamed, added possibility to create "postLoopLbl"-labels
3806 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
3807 newiTempLoopHeaderLabel
3808 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
3809 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
3810 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
3811 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
3812 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
3813 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
3814 (basicInduction): fixed bug #136564, made static,
3815 (loopInduction): changed parameter of basicInduction, made static,
3816 (addPostLoopBlock): added
3817 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
3818 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
3820 * support/regression/tests/bug-136564.c: added
3821 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
3822 --std-sdcc99 to LIBSDCCFLAGS
3824 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
3826 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
3828 * support/regression/tests/bug-1406131.c: added
3830 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
3832 * src/SDCCast.c (decorateType): fix promotion of unary minus
3833 * src/SDCCsymt.c (computeType): beautified
3834 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
3835 (valUnaryPM, valComplement): fix sign and promotion,
3836 (valNot): ANSI: result type is int (SDCC: unsigned char)
3837 * support/regression/tests/uminus.c: speedup by removing superflous
3839 * support/regression/tests/onebyte.c: added promotion and signedness
3840 tests for unary minus
3841 * support/regressions/tests/bug-477927.c: disable warning about
3842 uninitialized variables
3843 * support/regression/tests/not.c: added
3845 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3847 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
3848 * src/mcs51/gen.c (gen51Code): show final register usage after
3849 fillGaps in asm with --i-code-in-asm
3850 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
3851 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
3852 incUsed, rliveClear, adjustIChain): made static,
3853 (setFromRange): excluded because it's unused,
3854 (findPrevUseSym, markWholeLoop): added,
3855 (findPrevUse): rewritten; fixes bug 895992; now a complete search
3856 through all branches of predecessors enables sdcc to emit the warning
3857 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
3858 (rlivePoint): made static, added parameter emitWarnings which is only
3859 true during the first run out of two,
3860 (findRecursiveSucc, findRecursivePred): removed,
3861 (computeLiveRanges): made static, added parameter emitWarnings,
3862 (dumpIcRlive): added for debugging only
3863 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
3864 removed prototype of setFromRange()
3865 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
3866 in call of computeLiveRanges()
3867 * support/regression/tests/bug-895992.c: added
3868 * support/regression/tests/bug-971834.c: added
3869 * support/valdiag/tests/bug-895992.c: added
3870 * support/valdiag/tests/bug-971834.c: added
3872 2005-12-18 Raphael Neider <rneider AT web.de>
3874 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
3875 (genUnpackBits): improved code for direct operands,
3876 (genPackBits): improved code for literal assignment to bitfields
3877 and for direct destination operands (no FSR indirection),
3878 prevented redundant AND, fixes #1362800,
3879 (AccLsh): added parameter to disable masking of the result
3880 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
3881 skip instructions with side-effects (like incfsz),
3882 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
3883 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
3884 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
3887 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
3889 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
3890 volatile variables as spill location
3892 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
3894 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
3896 * support/regression/tests/bug-1376320.c: added
3898 2005-12-08 Raphael Neider <rneider AT web.de>
3900 * src/pic/device.c: renamed is_shared to pic14_is_shared
3901 * src/pic/gen.c (genIfx): re-enabled handling of sbits
3902 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
3903 (is_valid_identifier): added for above workaround
3905 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
3907 * device/lib/Makefile.in: fixed to enable port-specific-objects
3908 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
3909 char, thanks Hubert Sack
3910 * doc/sdccman.lyx: documented --xstack-loc,
3911 elaborated a bit more on interrupts and pitfalls,
3912 removed "setjmp/longjmp unsupported",
3913 documented some unsupported C99 features
3914 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
3915 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
3916 if, thanks Hubert Sack
3917 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
3918 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
3920 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
3921 regression tests can report resource usage (rfe 700441)
3922 * support/regression/collate-results.py: report resource usage
3923 * support/regression/ports/ds390/spec.mk,
3924 * support/regression/ports/hc08/spec.mk,
3925 * support/regression/ports/mcs51/spec.mk,
3926 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
3927 * support/regression/ports/ds390/uCsim.cmd,
3928 * support/regression/ports/hc08/uCsim.cmd,
3929 * support/regression/ports/mcs51/uCsim.cmd,
3930 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
3931 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
3932 library, use the default one
3933 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
3934 building the library
3936 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3938 * config.dsp: added dependency on .version and configure_vc.awk
3939 * device/include/setjmp.h: updated for --stack-auto and --xstack
3940 * device/include/mcs51/at89c51snd1c.h: corrected line endings
3941 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
3942 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
3943 * device/lib/libsdcc.lib: added _setjmp
3944 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
3945 (decorateType): fixed bug 1372851,
3946 (optimizeGetHbit): fixed warning
3947 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
3948 array initialisation
3949 * support/regression/tests/bug1057979.c: added test for bug 1358192
3950 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
3952 2005-12-03 Borut Razem <borut.razem AT siol.net>
3954 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
3955 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
3957 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3959 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
3960 createIval): implement symbol independant "flexible array member",
3961 (createIvalCharPtr): implemented flexible array initialisation with a
3963 * src/SDCCsymt.c (copyStruct): removed,
3964 (getSize): fixed misleading comment,
3965 (getAllocSize): removed, the additional allocation size is now in
3966 sym->flexArrayLength,
3967 (checkStructFlexArray): new, syntax checks for flexible array members,
3968 (compStructSize): added syntax checks for "flexible array members"
3969 (copyStruct): removed,
3970 (copyLinkChain): removed inefficient fix for bug 770487
3971 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
3972 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
3973 symbol->flexArrayLength
3975 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
3976 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
3977 * support/regression/tests/structflexarray.c: added
3978 * support/valdiag/tests/structflexiblearray.c: added
3980 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3982 * src/SDCCast.c (decorateType): fixed bug 1368489
3983 * support/Util/SDCCerr.c,
3984 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
3986 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3988 * device/include/mcs51/at89c51snd1c.h: added file submitted by
3989 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
3991 2005-11-27 Borut Razem <borut.razem AT siol.net>
3993 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
3994 support/cpp2/mkdeps.h: added command line option
3995 -obj-ext=<extension> to SDCPP to define object file externion, used
3996 for generation of make dependencies (-M)
3997 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
3999 2005-11-26 Borut Razem <borut.razem AT siol.net>
4001 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4002 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4003 added pic and pic16 libraries
4005 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4007 * device/include/float.h: Corrected typo in prototype of __fsgt
4009 2005-11-25 Borut Razem <borut.razem AT siol.net>
4011 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4012 added creation of model-mcs51-stack-auto libraries
4014 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4016 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4018 * src/SDCCast.c (createIvalArray): removed obsolete comment
4020 2005-11-24 Borut Razem <borut.razem AT siol.net>
4022 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4023 added missing device/lib/mcs51/crt*.asm sources
4025 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4027 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4029 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4031 * device/lib/_fs2schar.c,
4032 * device/lib/_fs2sint.c,
4033 * device/lib/_fs2slong.c: optimized inline asm
4035 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4037 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4038 Better handling of floats between -1.0 and 0.0.
4040 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4042 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4043 (the missing "if"s prohibited removal of redundant labels)
4045 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4047 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4048 Properly convert floats between -1.0 and 0.0 to long, int, and char
4049 types (max integer value of negative floats tends to zero).
4050 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4051 Removed changes made so to work properly with floats between
4052 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4055 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4057 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4058 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4059 (genCast) cosmetic change
4060 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4061 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4063 * support/regression/tests/bitfields (testSignedBitfields): added
4065 2005-11-18 Borut Razem <borut.razem AT siol.net>
4067 * sdcc/device/lib/Makefile.in: remove all unnecessary files
4068 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4069 introduced SILENT option to make building of pic16 libraries less
4071 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4073 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4074 Now they work properly with floats between -1.0 and 0.0
4075 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4077 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4079 * src/SDCCicode.c (printOperand): added missing else
4081 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4083 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4084 reformatted for better readability
4085 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4088 2005-11-17 Borut Razem <borut.razem AT siol.net>
4090 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4091 introduced SILENT option to make building of pic16 libraries less
4092 verbose - used for nightly snapshot build
4093 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4094 available on Win32 platforms.
4095 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4096 medium, large, pic and pic16
4098 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4100 * device/lib/printf_large.c: Temporary patch for bug 1358192:
4101 printf("%f"...) sets fraction to zero.
4103 2005-11-16 Raphael Neider <rneider AT web.de>
4105 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4107 * src/pic/gen.c (genIfx): implemented for CARRY bit
4108 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4109 to generic pointers, fixes #1357332,
4110 (pic16_movLit2f): NEW,
4111 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4113 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4115 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4117 2005-11-11 Raphael Neider <rneider AT web.de>
4119 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4120 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4121 compute pointer's type from operand,
4122 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4123 improved single bit reads, fixes bug #1353379
4125 2005-11-09 Borut Razem <borut.razem AT siol.net>
4127 * support/scripts/sdcc.nsi: added lib/pic to the package
4129 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4131 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4133 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4135 * support/regression/tests/bug1348008.c: added
4136 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4137 * support/regression/tests/bug1337835.c: updated comment
4139 2005-11-06 Borut Razem <borut.razem AT siol.net>
4141 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4142 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4143 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4144 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4145 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4146 dynamic construction of cl_error_class and derivates - 2.nd try
4148 2005-11-05 Borut Razem <borut.razem AT siol.net>
4150 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4151 bug, which caused Bus Errors on sparc solaris
4153 2005-11-04 Borut Razem <borut.razem AT siol.net>
4155 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4156 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4157 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4158 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4159 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4160 and derivates to resolve the initialization problem on OSX
4162 2005-11-02 Borut Razem <borut.razem AT siol.net>
4164 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4165 corrected typo - #include <winsock2.h>
4167 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4169 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4170 (_asxxxx_mapping): added org directive for future enhancements
4172 2005-11-01 Borut Razem <borut.razem AT siol.net>
4174 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4175 enabled sockets on WIN32
4176 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4178 2005-10-31 Borut Razem <borut.razem AT siol.net>
4180 * support/regression/generate-cases.py: escape backslashes in {testcase}:
4181 WIN32 backslash path delimiters should be escaped when used in C strings
4182 * support/regression/tests/bitfields.c: exclude failing assertions for
4183 __CYGWIN32__ and __MINGW32__ hosts
4185 2005-10-30 Borut Razem <borut.razem AT siol.net>
4187 * src/SDCCutil.c: corrected double comparison typo
4189 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4191 * device/lib/medium/Makefile: added for new memory model medium
4192 * device/include/asm/mcs51/features.h: updated for medium/pdata
4193 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4194 added Multiply & Accumulate sbit's and MAC0_PAGE define
4195 * device/include/mcs51/c8051f300.h: added sfr16 definitions
4196 * device/include/mcs51/c8051f310.h: added sfr16 definitions
4197 * device/lib/_mullong.c: update for medium model
4198 * device/lib/incl.mk: added medium model
4199 * doc/sdccman.lyx: documented medium model
4200 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4201 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4202 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4203 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4204 (allocParms): set SCLS and OCLS to pdata for medium model
4205 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4207 (powof2): return <0 if not power of 2
4208 * src/avr/gen.c (genBitWise): use updated powof2
4209 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4210 (shiftR2Left2Result): small optimization in setup, save acc when storing,
4211 (shiftLLeftOrResult): use B if necessary
4212 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4213 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4214 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4215 * support/regression/Makefile.in: added test-mcs51-medium
4216 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4218 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4220 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4222 * device/lib/time.c (mktime): fixed bug 1334315
4224 2005-10-28 Raphael Neider <rneider AT web.de>
4226 * device/include/pic/p16f_common.inc: added common declarations
4227 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4229 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4231 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4232 (aopPutUsesAcc): added to predict accumulator use,
4233 (assignResultValue): save acc if necessary,
4234 (genMinusDec): store result if indirectly addressed,
4235 (genDivOneByte): save acc if necessary,
4236 (movLeft2Result): bugfix if left already in acc,
4237 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4238 attention to accumulator use (esp. pdata),
4239 (genReceive): receive pdata correctly
4240 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4241 * src/SDCCicode.h: added isOperandInPagedSpace prototype
4243 2005-10-27 Raphael Neider <rneider AT web.de>
4245 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4247 2005-10-27 Raphael Neider <rneider AT web.de>
4249 * .version: changed version to 2.5.4
4250 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4251 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4252 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4253 arithmetics support routines
4254 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4255 * device/lib/Makefile.in: also create installdir for pic
4257 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4259 * src/pic/device.c (dump_sfr): rewritten to delegate register
4260 placement to the linker (use `extern sym' rather than sym EQU addr),
4261 (validAddress): fixed to check last specified address
4262 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4263 (popGetLit): truncate literal value to 8 bit,
4264 (popGet): moved assert to more appropriate place
4265 (popGetExternal): create pCode operand from and mark the according
4266 symbol as being `extern'
4267 (popGetAddr): added sanity check on immediate's offset, provide
4268 GPOINTER tag on demand
4269 (aopPut): fixed for immediates,
4270 (mov2w_op): move operand's address or contents to WREG (depending on
4271 operand type), safer variant of mov2w,
4272 (movwf,call_libraryfunc): NEW, handy abbreviations,
4273 (get_argument_pcop,get_return_val_pcop,pass_argument,
4274 get_returnvalue): interface for accessing function parameters and
4276 (assignResultValuei,genRet): use new parameter/return value interface
4277 (pic14_getDataSize): back to old version handling generic pointers,
4278 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4279 provided implementation and/or fixed old one,
4280 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4281 calls, removed legacy 8051 reference code
4282 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4283 (loadSignToC): NEW, move the operands sign bit to CARRY,
4284 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4285 genRightShiftSigned, accepts negative shift counts,
4286 (setup_fsr): load FSR and adjust IRP (indirect memory access),
4287 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4288 generic pointers, __data pointers and __code pointers,
4289 (genUnpackBits,genPackBits): rewritten to work with generic pointers
4290 and signed bitfields, limit bitfields to 8 bit,
4291 (genDataPointerGet): fixed number of bytes read,
4292 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4293 (genPointerGet,genPointerSet): fixed handling of __code pointers,
4294 pointers to constant data are no longer assumed to point to __code
4295 space, removed invalid pointer types,
4296 (bitpatternFromVal): retrieve the PICs representation of an integer
4298 (genDataPointerSet): fixed assigning to po_immediate operands,
4299 (genGenPointerSet): implemented as library call,
4300 (genIfx): fixed incorrect condition,
4301 (genAddrOf): limit generic pointers' addresses to 2 bytes,
4302 provide GPOINTER tag according to destination's storage class,
4303 (genCast): added code to handle casting to generic pointers, added
4304 sign-/zero extension of the result
4305 (aop_isLitLike,op_isLitLike): fixed handling of immediates
4306 * src/pic/gen.h: added macros to access IRP bit in STATUS register
4307 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4309 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4310 address/register resides in the shared banks
4311 (emitSymbolToFile): improved to handle global and `pinned' symbols,
4312 put all variables into separate sections (have the linker arrange
4314 (picglue): put init code and interrupt handlers in separate sections
4315 * src/pic/main.c: added port specific options table, modified to PORT
4316 structure to make GPOINTERs 3 byte, added pic14_options
4317 (_pic14_do_link): private linking routine (update paths to libraries,
4318 add libsdcc.lib by default)
4319 * src/pic/main.h: declare pic14_options
4320 * src/pic/pcode.c: fixed instructions i/o relations,
4321 (RegCond): reverted to correct version,
4322 (newpCodeOpLit): truncate literals to 8 bit,
4323 (genericPrint): added debug output,
4324 (getRegFromInstruction): fixed for various operand types, simplified
4325 (BuildFlow): fixed broken handling of isntructions with labels
4326 (LinkFlow): start at last instruction in flow (skip trailing comments),
4327 pass the flow on to the next instruction after CALL
4328 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4329 (insertPCodeInstruction): fixed inserting after a skip instruction,
4330 (DoBankSelect): fixed for labeled instructions
4331 (OptimizepBlock): honor --nopeep switch
4332 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4333 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4334 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4335 (pCodeOptime2pCodes): allow disabling this optimization via
4336 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4337 but is still buggy), started implementation of a dataflow based
4338 pCode optimization (CSE + dead code elimination)
4339 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4340 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4341 names are independant of the stack location and therefore portable across
4344 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4346 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4347 (selectSpil): fixed bug 1337835 by not spilling bit variables
4348 * support/regression/tests/bug1337835.c: added test for this bug
4349 * src/mcs51/peeph.def: restart after rule 3.c,
4350 addded rules 263.x to optimize loading constants
4352 2005-10-26 Raphael Neider <rneider AT web.de>
4354 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4355 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4356 (genAssign): emit warning when casting literals to generic pointer
4357 type, also applies when taking the address of a fixed variable,
4358 (genCast): improved casting to generic pointers
4359 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4360 extern variables, added verbose error message
4361 * device/include/pic16/{string.h,errno.h}: added #pragma library c
4363 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4365 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4366 carry must be complemented too
4367 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4368 could be emitted by genMinus
4369 * src/SDCCval.c (constVal): fixed bug 1305065
4371 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4373 * src/SDCCast.c (addCast): added promotion for bit variables
4374 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4375 promotion casts + optimisation
4376 (optimizeGetWord): fix warning 'i' might be used uninitialized
4377 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4378 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4380 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4382 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4383 all chars are promoted to int; promotion should be handled in SDCCast.c
4385 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4387 * device/lib/_strcmp.c: Fixed bug 1326457
4389 2005-10-11 Raphael Neider <rneider AT web.de>
4391 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4392 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4394 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4396 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4397 * support/regression/tests/sfr16.c: added test for the sfr32 bug
4399 2005-10-04 Raphael Neider <rneider AT web.de>
4401 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4402 device/lib/pic16/pics.all: added pic18f1320
4403 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4405 2005-09-30 Raphael Neider <rneider AT web.de>
4407 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4408 * src/pic16/devices.inc: NEW, provides device descriptions
4409 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4411 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4413 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4416 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4418 * doc/sdccman.lyx: updated Highest Order Bit documentation,
4419 documented Any Order Bit, Higher Order Byte and Higher Order Word
4420 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4421 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4422 (optimizeGetAbit): new, to get any bit, not only the high bit,
4423 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4424 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4425 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4426 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4427 RIGHT_OP: also try GETBYTE, GETWORD optimization,
4428 GETABIT, GETBYTE, GETWORD: decorate them,
4429 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4430 (ast_print): added GETABIT, GETBYTE, GETWORD
4431 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4432 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4433 (geniCodeBinary): new generic binary icode,
4434 (ast2iCode): added GETABIT, GETBYTE, GETWORD
4435 * src/port.h: updated comment for PORT.hasExtBitOp
4436 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4437 (genGetByte): new, to get a single byte,
4438 (genGetWord): new, to get a word from a long,
4439 (gen51Code): added GETABIT, GETBYTE, GETWORD
4440 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4442 2005-09-23 Raphael Neider <rneider AT web.de>
4444 * configure.in, configure: have device/lib/pic configured
4445 * device/lib/Makefile.in: added model-pic14
4446 * device/lib/clean.mk: added pic/ to clean rule
4447 * device/lib/pic: added rudimentary pic14 library providing support
4448 functions for multiplication/division/generic pointer access
4449 * src/SDCCopt.c (convilong): mark support functions as extern
4450 for pic14 port as well
4451 * src/pic/gen.c (genMult): added assertions,
4452 (genpic14Code): emit warning on unhandled iCodes
4453 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4454 * src/pic/pcode.c (pCodeOpCopy),
4455 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4456 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4457 SFR_REGISTER}), made safe for future extensions
4458 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4459 instructions even if preceeded by SKIP instructions (also remove
4460 them); removed unused code
4461 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4462 prevents leaving parts of the structure uninitialized after copying
4464 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4466 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4468 * support/regression/tests/addsub.c: added test for the bug
4470 2005-09-21 Raphael Neider <rneider AT web.de>
4472 * device/include/pic16/pic18f1220.h,
4473 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4474 * device/lib/pic16/Makefile.rules: added missing opening paren
4475 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4476 are provided in genutils.c,
4477 (genUminusFloat,genUminus,genCmpEq): added asserts on different
4478 operand/result sizes,
4479 (genCmp): assert on NULL pointers first, then check deref'ed values
4480 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4483 2005-09-18 Raphael Neider <rneider AT web.de>
4485 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4486 as these are now unused,
4487 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4488 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4489 local, avoids uninitialized pointer dereference on r->name
4490 * src/pic16/ralloc.c (newReg): fixed indentation
4492 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4494 * src/SDCCval.c (constVal): fixed bug 730366
4495 * support/Util/SDCCerr.c,
4496 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4498 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4500 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4502 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4504 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4506 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4508 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4509 (hex2dec): made hex_digit unsigned char, removed ascii dependance
4510 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4511 (hex2dec): made hex_digit unsigned char, removed ascii dependance
4512 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4513 * packihx/packihx.c (hexDigit): made c unsigned char
4514 * as/mcs51/lklibr.c (fndsym),
4515 * link/z80/lkgb.c (gb),
4516 * link/z80/lklibr.c (fndsym),
4517 * link/z80/lkrloc.c (relr),
4518 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4519 * src/SDCC.lex (checkCurrFile, process_pragma),
4520 * src/SDCCglue.c (spacesToUnderscores),
4521 * src/SDCCmain.c (setParseWithComma, processFile),
4522 * src/asm.c (tvsprintf, printCLine),
4523 * src/avr/gen.c (emitcode, aopPut),
4524 * src/ds390/gen.c (emitcode),
4525 * src/hc08/gen.c (emitcode, emitinline),
4526 * src/mcs51/gen.c (emitcode, genInline),
4527 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4529 * src/pic/ralloc.c (debugLog),
4530 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4532 * src/pic16/ralloc.c (debugLog),
4533 * src/z80/main.c (_process_pragma):
4534 made all ctype.h function calls safe
4535 * src/SDCCopt.c: include math.h for fabs
4536 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4537 and used them throughout the code to make ctype.h function calls safe
4538 * src/ds390/main.c (asmLineNodeFromLineNode),
4539 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4540 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4542 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4543 (newpCodeAsmDir): made ctype.h function calls safe
4544 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4545 pic16_emitcode): made lbp unsigned char*
4546 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4547 (pic16_newpCodeAsmDir): made ctype.h function calls safe
4548 * src/xa51/gen.c (emitcode),
4549 * src/z80/gen.c (_emit2): made lbp unsigned char*
4550 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4553 2005-09-05 Raphael Neider <rneider AT web.de>
4555 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4556 access bank splitpoint
4558 2005-09-05 Raphael Neider <rneider AT web.de>
4560 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4562 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4564 * .version: changed to version 2.5.3
4565 * doc/sdccman.lyx: changed version to 2.5.3,
4566 documented --codeseg and --constseg and pragma codeseg and constseg,
4567 documented bit parameters (reentrant) and bit returning
4568 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4569 currFunc->recvSize, but is this ok for all ports?
4570 (ast2iCode): result of ~ on unsigned char must be cast to int for
4572 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4573 function pointers in bit space
4574 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4575 (processFuncArgs): call port.reg_parm() with reentrancy info
4583 * src/z80/main.c: port.reg_parm prototype extended with
4584 "bool reentrant" parameter
4585 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4586 options.stackAuto for allocating bit register parameters
4587 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4588 (genSend): set BitBankUsed if it is,
4589 (selectRegBank): factored out of genCall for use in genPcall,
4590 (genCall): removed redundant dtype assignmen, use selectRegBank,
4591 (genPcall): handle returning in Carry properly, save in F0 if needed,
4592 (genReceive): handle bit register parameters
4593 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4594 (mcs51_assignRegisters): enable bit registers for all reentrant
4595 functions and don't set BitBankUsed unconditionally
4596 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4597 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4598 * support/regression/tests/funptrs.c: added tests for BOOL and for return
4600 2005-08-27 Borut Razem <borut.razem AT siol.net>
4602 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4603 ppc-osx (Darwin) does not support -u option. It seems that it is
4604 supported only on Linux - GNU cp
4606 2005-08-25 Borut Razem <borut.razem AT siol.net>
4608 * sim/ucsim/gui.src/serio.src/Makefile.in,
4609 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4610 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4611 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4612 install and strip, since the strip at /usr/ccs/bin should be used
4615 2005-08-24 Borut Razem <borut.razem AT siol.net>
4617 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4619 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4621 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
4624 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
4626 * as/mcs51/aslink.h: completed lkrloc.c prototypes
4627 * as/mcs51/lkmain.c (link_main): fixed warning
4628 * device/include/stdbool.h: ds390 has no advanced bit support yet
4629 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
4630 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
4631 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
4632 and updated their macros
4633 * src/SDCCval.c (constVal): updated comment for renamed b_long
4635 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
4637 * as/mcs51/asdata.c: changed ctype['['] to BINOP
4638 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
4639 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
4640 (oprio): set priority for '['
4641 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
4643 * as/mcs51/asm.h: added defines R_BIT and S_BIT
4644 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
4645 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
4646 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
4647 added overlayable BIT_BANK area
4648 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
4649 (summary2): explain 'T' in legenda
4650 * as/mcs51/lkrloc.c: replaced old K&R style,
4651 (relr): added R_BIT processing,
4652 (errmsg): added "Bit-addressable relocation error",
4653 (adb_bit): added for converting from byte- to bit-addressable space,
4654 (adb_24_bit): added for converting from byte- to bit-addressable space
4655 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
4656 used in reentrant functions now even as return value
4657 * device/lib/_gptrput.c (_gptrput): removed obsolete code
4658 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
4659 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
4660 * src/SDCCglobl.h: added indicator BitBankUsed
4661 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
4662 the bit registers b0-b7
4663 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
4664 (geniCodeCast): fixed bug 1263853,
4665 (geniCodeLogicAndOr): put result in bool or char,
4666 (geniCodeReceive): added parameter func for accessing the return type,
4667 (geniCodeFunctionBody): pass func to geniCodeReceive
4668 * src/SDCCmain.c: added indicator BitBankUsed
4669 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
4670 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
4671 (checkSClass): don't put automatic bool/bit on stack,
4672 (checkFunction): removed check on function cannot return bit
4673 * src/SDCCsymt.h: added newBoolLink prototype
4674 * src/mcs51/gen.c (rb1regs): added bit registers,
4675 (movc): created for assigning to carry,
4676 (pushReg, popReg): created for pushing registers,
4677 (sameRegs): check both AOP_REG and AOP_CRY types,
4678 (aopOp): handle bit registers,
4679 (aopPut): optimization no self-assign,
4680 (saveRegisters): push reg->base (bits) only once for bit registers,
4682 (unsaveRegisters): pop reg->base only once and use popReg,
4683 (assignResultValue): added parameter func and return in carry for bits,
4684 (genIpush): optimization no reload in A if not changed,
4685 (genSend): bit parameters in reentrant functions are passed in bit
4686 registers by first assigning to bits in B, then save registers and
4688 (genCall): handle returning in Carry properly, save it in F0 if needed,
4689 (genPcall): updated assignResultValue call, this is not safe yet for bit
4690 returning function !!!
4691 (genFunction): don't generate equ's for bit registers and use pushReg,
4692 (genEndFunction): take care of bit returning functions and use popReg,
4693 (genRet): return bit in Carry,
4694 (genIfx): optimize bit registers and other directly addressable bits,
4695 (genReceive): updated assignResultValue call
4696 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
4697 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
4698 registers when using stack-auto
4699 * src/mcs51/ralloc.c (_G): added allBitregs,
4700 (regs8051): added the bit registers,
4701 (createStackSpil): use macro IS_BIT,
4702 (getRegBit): added to allocate a bit register, else spill,
4703 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
4704 (updateRegUsage): factored out to ease stepping while debugging,
4705 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
4706 also allocate bit registers,
4707 (fillGaps): handle bit registers,
4708 (findAllBitregs): added to create bit vector with all bit registers,
4709 (mcs51_allBitregs): returns this bit vector,
4710 (mcs51_assignRegisters): when using stack-auto use bit registers for
4711 passing parameters and creating local variables
4712 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
4714 2005-08-22 Borut Razem <borut.razem AT siol.net>
4716 * device/lib/Makefile.in: replaced find option -or with -o
4717 to make it run on solaris
4719 2005-08-22 Raphael Neider <rneider AT web.de>
4721 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
4722 fixes #1265442 (crash on Solaris)
4724 2005-08-20 Borut Razem <borut.razem AT siol.net>
4726 * configure, configure.in: added tests for libsocket and libnsl libraries,
4727 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
4728 from support/regression/Makefile.in
4729 * support/regression/Makefile.in: added
4730 * device/lib/pic16/Makefile.common.in: force make to use bash shell
4731 * sim/ucsim/libtool: regenerated on sparc-solaris
4732 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4733 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
4734 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
4735 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
4736 sparc-solaris, which doesn't use GNU ld linker
4737 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
4738 * as/Makefile: find on sparc-solaris does not support -maxdepth option
4740 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
4742 * src/mcs51/peeph.def: updated comments
4744 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4746 * device/lib/_gptrget.c,
4747 * device/lib/_gptrput.c: slightly shorter
4748 * doc/sdccman.lyx: incremented version
4749 * src/mcs51/peeph.def: moved peephole comments to the line of first
4750 change to better keep line correlation, reanimated 186.e
4751 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
4753 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4755 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
4756 David Saxton with quotes around file name.
4758 2005-08-15 Borut Razem <borut.razem AT siol.net>
4760 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
4761 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
4762 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
4763 make tests run on x86_64 platform
4765 2005-08-13 Raphael Neider <rneider AT web.de>
4767 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
4768 as it might be executed DURING a build (parallel make is wonderful)
4770 2005-08-13 Raphael Neider <rneider AT web.de>
4772 * device/lib/Makefile.in (port-specific-objects-pic16):
4773 revert to cp $(PORT)/bin/*.* $(PORTDIR)
4774 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
4776 * device/lib/pic16/Makefile.rules: build subdirs before creating
4777 the library, removed builddir rule, create $(builddir) early in
4778 recurse rule, use empty recurse rule for leaf directories
4779 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
4780 mkdir errors (race condition), removed duplicate suffix "hex"
4782 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
4783 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
4784 prevents mkdir -p from aborting on Alpha
4786 2005-08-12 Raphael Neider <rneider AT web.de>
4788 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
4789 db-statements in order to allow for arrays of pointers in code
4790 sections to be placed without interspersed 0-padding, fixes
4792 * (emitStatistics): fixed division by zero for pic18f1220
4793 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
4794 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
4795 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
4796 * (pic16_pCodeConstString): keep track of already emitted string
4797 literals to prevent "duplicate definitions of symbol _str_NR"
4798 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
4800 * device/lib/Makefile.in: ignore failing PIC16 library builds
4801 * device/lib/pic16/Makefile: do not build if gputils are missing
4802 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
4804 2005-08-10 Raphael Neider <rneider AT web.de>
4806 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
4809 2005-08-10 Raphael Neider <rneider AT web.de>
4811 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
4812 Rokas' patch to add the new fixed point type "__fixed16x16"
4813 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
4814 functions for __fixed16x16 arithmetics
4815 * device/lib/pic16: reimplemented the build system to support
4816 a separate build directory, better handling of libio (create
4817 the library in a separate subdir for each architecture) and
4818 easier configuration (centralized in Makefile.common)
4820 2005-08-07 Raphael Neider <rneider AT web.de>
4822 * src/pic16/gen.c (genrshTwo): fixed sign extension
4823 * src/pic16/device.c: added pic18f2320, 4220 and 4320
4824 * device/include/pic16/pic18f2220.h: changed some bit definitions,
4826 * device/include/pic16/pic18f4220.h: NEW, header for
4827 pic18f4220 and pic18f4320
4828 * device/include/pic16/pic18fregs.h: added new devices,
4829 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
4830 * device/include/pic16/signal.h: resolved name clashes
4831 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
4832 to also allow testing for interrupt enable bits, added
4833 comments on how to use the macros
4834 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
4835 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
4836 register definitions for the devices
4837 * device/lib/pic16/pics.all: added new devices
4838 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
4840 * device/lib/pic16/libc/stdlib/memfree: do not count
4841 the block header as free memory
4842 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
4843 simplified and added missing end-of-blocklist-marker
4844 (reported by Peter Onion, fixes #1252814)
4845 * (_mergeHeapBlock): fixed loop condition
4846 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
4847 len==0, restructured code
4848 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
4849 up a bit, reduced bitfield accesses, prevent endless loops
4850 in case of heap corruption
4851 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
4852 "unreferenced arguments/must return a value" warnings
4853 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
4854 replaced BAUDREG with SPBRG
4855 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
4856 device/lib/pic16/debug/gstack/gstack.c: replaced
4857 _naked, _asm, _endasm with __naked, __asm, __endasm
4859 2005-08-05 Raphael Neider <rneider AT web.de>
4861 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
4862 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
4864 2005-08-05 Borut Razem <borut.razem AT siol.net>
4866 * device/lib/Makefile.in: added missing ';'
4867 * configure: removed ^M characters
4869 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4871 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
4872 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
4875 2005-08-04 Borut Razem <borut.razem AT siol.net>
4877 * configure.in: pic16 libraries build 2nd try - enable running
4878 configure in device/lib/pic16
4879 * configure: regenerated from configure.in
4880 * device/lib/Makefile.in: create $(PORT)/bin directory
4882 2005-08-03 Raphael Neider <rneider AT web.de>
4884 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
4885 to get/set values via pointers
4886 * (genUnpackBits,genPackBits): changed detection of
4887 ptr->bitfield vs. sym.bitfield, fixed access via generic
4888 pointers, removed dead (wrong) code for multibyte bitfields
4889 * (genNearPointerGet, genGenPointerGet): removed useless code,
4890 fixed bitfield detection, fixes #1250594
4891 * (genNearPointerSet): removed useless code
4892 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
4893 and introduced macro pic16_emitpcode that conditionally emits
4894 the origin of the following pCode (useful for debugging SDCC)
4895 * src/pic16/pcode.c: changed (and disabled) some debug outputs
4896 * (createDefmap): fixed handling of LFSR for --optimize-df
4898 2005-08-02 Borut Razem <borut.razem AT siol.net>
4900 * device/lib/Makefile.in: pic16 libraries build enabled since
4901 gputils-0.13.2 are now localy installed at sourceforge's compile farm
4903 2005-08-02 Raphael Neider <rneider AT web.de>
4905 * src/pic16/gen.c (genPackBits): removed deprecated warning
4906 * (genGenPointerSet): fixed bitfield detection
4908 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4910 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
4912 2005-07-31 Raphael Neider <rneider AT web.de>
4914 * device/lib/pic16/libdev/pic18f458.c,
4915 device/include/pic16/pic18f458.h: added missing T0CONbits
4917 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4919 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
4921 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
4923 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
4925 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4927 * device/include/mcs51/at89c51ed2.h: added.
4929 2005-07-23 Raphael Neider <rneider AT web.de>
4931 * src/pic/gen.h: added emitpcode macro for debugging
4932 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
4933 and replace by macro adding debug information on demand
4934 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
4935 * (gencjne): tried to fix; replaced with correct (slower) code
4936 * (gen{Unp,P}ackBits): fixed single bit access
4937 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
4938 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
4939 previous instruction
4940 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
4941 register has to be handled with care (forbidding movement
4942 of assignments/uses, removing assignments completely, ...)
4943 * (pCodeOptime2pCodes): make use of regIsSpecial
4944 * added lots of debugging output (commented out)
4945 * src/pic/rallloc.c (deassignLRs): prevent operand registers
4946 from being reused as result UNLESS it is known to work
4948 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4950 * support/Util/dbuf.h: include <stddef.h> for size_t
4951 * .version: changed to version 2.5.2
4953 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4955 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
4957 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4959 * src/hc08/gen.c (genMinus): fixed bug #1241835,
4960 (genModOneByte): removed needless psha/pula
4962 2005-07-22 Raphael Neider <rneider AT web.de>
4964 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
4965 have PIC14 handled like PIC16, fixes broken pic14 linker calls
4966 * src/pic/gen.c (resolveIfx): do not "invent" labels
4967 * (genSkipc): changed to positive logic
4968 * (genSkipCond): removed as no longer needed
4969 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
4971 * (genLeftShift): check operands are in different registers
4972 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
4973 INCF does not update CARRY...
4974 * src/pic/main.c: fixed _linkCmd
4975 * src/pic/pcode.c (unlinkpCode): added inactive code
4976 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
4977 alive (do not assign result and operand overlapping registers)
4979 2005-07-22 Raphael Neider <rneider AT web.de>
4981 * src/pic/device.c (dump_sfr): replaced register declaration with
4982 call to emitSymbolToFile() to avoid duplicate symbols
4983 * (assignRelocatableRegisters): do not declare external symbols
4984 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
4985 right (take size of type, not etype)
4986 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
4987 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
4988 * (packRegsForAccUse): disabled assignment of WREG as
4989 the result reg to prevent occurence of just fixed #1235003,
4991 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
4992 symbols (avoids duplicate symbols in .asm file)
4993 * (pic14emitRegularMap): use emitSymbolToFile()
4994 * src/pic/gen.c (aopOp): fixed spillLocation handling
4995 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
4996 * (genDataPointerSet): removed unneccessary variables/output
4998 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5000 * as/mcs51/lkarea.c: enlarged codemap for banked memory
5001 * device/lib/mcs51/crtbank.asm: added # to 0x0F
5003 2005-07-21 Raphael Neider <rneider AT web.de>
5005 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5006 architecture cannot handle them efficiently, fixes bug #1235003
5007 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5008 check for empty sets before using them (fixes bug #1232190)
5010 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5012 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5013 (lnksect2): generate warnings for memory overlap
5014 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5015 constseg to set the name of these segments so you can instruct the linker
5016 to place them in banks
5017 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5018 * src/SDCCglobl.h: added MODEL_HUGE to enum,
5019 added code_seg and const_seg to options
5020 * src/SDCCglue.c (emitMaps): use options.const_seg,
5021 (createInterruptVect): put interrupt vectors in segment HOME,
5022 (glue): put HOME before static segment and put the main glue in HOME,
5023 (glue): use options.code_seg
5024 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5025 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5026 these segments so you can instruct the linker to place them in banks
5027 (linkEdit): use code_loc for HOME segment which should be the first
5028 segment in code memory now
5029 * src/SDCCmem.c: fixed more stuff like bug 1238386
5030 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5031 (changePointer): don't change function pointers to code pointers for
5033 (compareType): added exceptional check for banked function pointers
5034 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5035 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5036 after static in code memory
5037 * src/mcs51/gen.c: added aopLiteralLong prototype,
5038 (aopForSym): use getSize for functions,
5039 (genCall): generate banked calls over one trampoline __sdcc_banked_call
5040 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5041 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5043 (genPcall): use call for literal function pointers and generate banked
5044 calls over the one trampoline so there's only one place for the user to
5045 modify according to his/hers hardware,
5046 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5047 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5048 * src/mcs51/main.c: added keyword banked,
5049 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5050 * support/Util/SDCCerr.c,
5051 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5052 needed for passing the bank and address to the trampoline
5053 * device/lib/mcs51/crtbank.asm: added for bankswitching
5054 * device/lib/mcs51/Makefile: added crtbank
5056 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5058 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5059 for fields at offset 0 of a struct or union as reported
5060 on 2005-07-07 in the developer mailing list.
5062 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5064 * src/SDCCmem.c: fixed bug 1238386
5066 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5068 * src/mcs51/peeph.def: added labelrefcounting for peepholes
5069 (patch #1144962), added peephole 300, enabled 259.x
5070 * doc/sdccman.lyx: removed screenshot and provided link instead
5072 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5074 * doc/sdccman.lyx: added section about debugging with ddd
5075 * doc/figures/ddd_example.eps: screenshot of debugging session
5077 2005-07-04 Raphael Neider <rneider AT web.de>
5079 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5080 like CODE pointers, fixes #1115683
5081 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5082 call, fixes bugs #1232211, #1228110,
5083 fixed wrong casts to pCodeFlow from pCodeInstructions
5085 2005-07-04 Raphael Neider <rneider AT web.de>
5087 * src/pic/gen.c (popGet): changed assert to allow for
5089 * (popGetAddr): changed signature to provide
5090 an additional index, patched all call sites
5091 * (genCmpEq): handle literal-like operands correctly
5092 * (genAddrOf): added sanity checks on __code/__data pointers
5093 * (genAssign): added handling of symbols from __code section
5094 * (gencjne): do not generate code for comparisons whose result
5095 is neither stored nor used, fixes bug #1171114
5096 * (AccLsh, AccRsh): operate on operand instead of WREG
5097 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5098 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5100 * rewrote complete shift-by-literal logic, commented unused
5102 * (genConstPointerGet): get multiple bytes (if result size > 1),
5103 fixed handling of non-immediate addresses
5104 * (genPointerGet): handle CODE pointers like CONST pointers
5105 * (genpic14Code): insert C-SRC lines as Cource-pCodes
5106 * ({aop,op}_isLitLike): NEW, single place to decide whether an
5107 operand is to be treated as a literal or not
5108 * (mov2w,genPcall,genCmpEq),
5109 src/pic/genarith.c: use aop_isLitLike() to decide between
5110 literal/register contents
5111 * (addSign): added missing offset
5112 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5113 only emit comment in debug-mode,
5114 use {aop,op}_isLitLike throughout the file
5115 * src/pic/glue.c: fix initializers for pointers (work in progress)
5116 * src/pic/pcode.c (get_op): honor index on _const symbols
5117 * ({reset,dump}pCodeStatistics): NEW, estimate code size
5118 * (dumppBlock): added pCode size estimation
5119 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5120 check for IS_SYMOP before OP_SYMBOL'ing
5121 * fixed indentation, compacted switch-statements
5122 * (allocReg): find free register and allocate it instead of
5123 allocating new registers all the time
5124 * (deassignLRs): prevent POINTER_GET's from being assigned the same
5125 registers as its operands (necessary only for multibyte GETs)
5127 2005-07-01 Raphael Neider <rneider AT web.de>
5129 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5130 debugging .asm-output macros FENTRY + FEXIT
5131 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5133 * (emitpComment): NEW, printf to pCode
5134 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5136 * (popGetAddr): NEW, variant of popGet to access an immediates
5137 high(er) bytes instead of the n'th byte of memory they reference,
5138 replaced popGet with popGetAddr where neccessary
5139 * (genDataPointerGet): reactivated and fixed implementation
5140 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5142 * (genDataPointerSet): fixed multibyte assignments
5143 * (genpic14Code): fixed --i-code-in-asm handling
5144 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5145 * (genPlus): fixed index-out-of-bounds error
5146 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5147 * src/pic/ralloc.c: added debugging output macro FENTRY2
5148 * (spillThis): fixed indentation, enbraced for-body for clarity
5149 * (rematStr): commented out as now unused
5150 * (regTypeNum): commented out special spill case (overwrites
5152 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5154 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5156 * doc/sdccman.lyx: documented sfr16/sfr32,
5157 added example for using storage class with function pointers
5158 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5160 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5162 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5163 * device/lib/_itoa.c,
5164 * device/lib/_ltoa.c: optimized codesize
5165 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5166 but don't know how to suppress the double warning.
5167 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5168 * support/Util/SDCCerr.c,
5169 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5171 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5173 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5174 fixed old K&R prototypes
5175 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5176 * device/lib/_gptrget.c,
5177 * device/lib/_gptrgetc.c,
5178 * device/lib/_gptrput.c: changed versions for new memory indicator values,
5179 also new versions for small generic pointers and banked generic pointers
5180 * src/port.h: added const_name
5181 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5182 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5183 * src/SDCCcse.c (findPrevIc): check all associative operators
5184 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5185 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5186 * src/SDCCmem.c: updated comments,
5187 set far-space to 0 for pdata, results in optimized code
5188 * src/SDCCmem.h: added macro CONST_NAME
5189 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5190 moving the info into the highest bits, see also gptrget/gptrput
5191 * src/src.dsp: added sdcc.ico to project files
5192 * src/avr/gen.c (genCast): fixed bug 0x%d
5193 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5194 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5195 relation between ptr_type and DCL_TYPE,
5196 (genCast): fixed bug 0x%d
5197 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5198 (CODE)" for const_name
5199 * src/hc08/gen.c (genCast): fixed bug 0x%d
5200 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5201 (hc08_port): added "CONST (CODE)" for const_name
5202 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5203 (aopForRemat, adjustArithmeticResult): disconnected direct relation
5204 between ptr_type and DCL_TYPE,
5205 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5206 operand* and took AOP() inside function so sfr-ness can be checked,
5207 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5209 (genFunction, genEndFunction): optimized stack setup,
5210 (genMinus): optimized for literals with ending zeroes (in bytes),
5211 (genCast): fixed bug 0x%d
5212 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5213 (mcs51_port): added "CONST (CODE)" for const_name
5214 * src/mcs51/peeph.def: made rule 226 more generic
5215 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5216 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5217 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5218 * src/z80/main.c (z80_port): added NULL for const_name,
5219 (gbz80_port): added NULL for const_name
5220 * support/regression/tests/bug663539.c,
5221 * support/regression/tests/sfr16.c: new tests
5223 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5225 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5227 2005-06-24 Raphael Neider <rneider AT web.de>
5229 * device/lib/pic16/libdev/pic18f[68][567]20.c:
5231 * device/include/pic16/signal.h: added USBIF
5234 2005-06-24 Raphael Neider <rneider AT web.de>
5236 * device/lib/pic16/libdev/pic18f2455.c,
5237 device/include/pic16/pic18f2455.h: NEW
5238 * device/include/pic16/pic18fregs.h,
5239 device/lib/pic16/pics.all,
5240 src/pic16/device.c: added 18f2455
5241 * device/lib/pic16/libdev/pic18f[68][567]20.c,
5242 device/include/pic16/{pic18f[68][567].h,usart.h}:
5243 replaced MULTIPLE_USARTS define with more relaible
5244 compatibility sfrs (for USART access)
5246 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5248 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5249 and the output asm file line is printed on two lines.
5251 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5253 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5254 BGT, BLE, BHI, and BLS instructions
5255 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5257 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5258 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5260 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5262 2005-06-15 Raphael Neider <rneider AT web.de>
5264 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5265 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5266 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5267 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5268 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5270 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5272 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5273 Marcel Telka in bug #1215704
5275 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5277 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5278 located in shared memory bank.
5280 2005-05-31 Raphael Neider <rneider AT web.de>
5282 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5283 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5284 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5286 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5288 * device/lib/_strncpy.c: fixed the fix
5290 2005-05-26 Raphael Neider <rneider AT web.de>
5292 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5293 initializers with \0, bug #1208187
5294 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5295 intializers with \0, bug #1208187
5297 2005-05-26 Raphael Neider <rneider AT web.de>
5299 * src/pic16/glue.c (pic16_printIvalChar): fixed string
5300 initializers with \0, bug #1208187
5301 * src/pic16/main.c (_process_pragma): added sanity checks
5302 for stack position and size, emit warnings when appropriate
5304 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5306 * device/lib/_strncpy.c: fixed not filling with \0
5308 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5310 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5312 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5313 compound_statement),
5315 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5317 2005-05-24 Raphael Neider <rneider AT web.de>
5319 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5321 2005-05-24 Raphael Neider <rneider AT web.de>
5323 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5324 TRISE definitions, closes bug #1162453
5326 2005-05-22 Raphael Neider <rneider AT web.de>
5328 * src/pic16/main.c (_process_pragma): check for missing
5329 arguments to pragmas code and udata
5330 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5331 consistency fixes to match other headers (thanks to Jim Paris)
5332 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5334 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5336 * src/SDCCicode.c (isOperandEqual): fixed missing ;
5338 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5340 * support/regression/tests/bug1198642.c: new test
5341 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5342 * src/SDCCcse.c (findPrevIc): added comment, please have a look
5343 * support/scripts/resource.h,
5344 * support/scripts/resource.rc,
5345 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5346 * support/scripts/sdcc.ico: added 32x32 icon
5348 2005-05-18 Raphael Neider <rneider AT web.de>
5350 * device/lib/pic16/libdev/pic18f*.c,
5351 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5352 keywords to "__sfr" and "__at (X)"
5353 * device/include/pic16/pic18fregs.h: added pic18f4520
5354 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5355 #1203088 (MPLAB compatibility)
5357 2005-05-17 Raphael Neider <rneider AT web.de>
5359 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5360 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5361 * device/lib/pic16/pics.all: added new devices
5362 * src/pic16/device.c: added support for pic18f4520
5364 2005-05-16 Raphael Neider <rneider AT web.de>
5365 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5366 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5367 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5368 convenience function for bit access
5370 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5372 * device/lib/printf_large.c: fixed bug 1193299
5373 * support/regression/tests/bug1057979.c: added test %3.3s
5375 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5377 * device/include/mcs51/8051.h,
5378 * device/include/mcs51/8052.h: made parseable with lint
5379 * device/include/mcs51/lint.h: added include file for (sp)lint
5380 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5381 * doc/cdbfileformat.lyx,
5382 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5384 2005-05-14 Raphael Neider <rneider AT web.de>
5386 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5387 * device/lib/pic16/libc/stdlib/itoa.c (new)
5388 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5389 * device/lib/pic16/libio/Makefile: exclude subdir according to
5390 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5391 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5392 * src/pic16/gen.c (genFunction): prevent annoying warning
5393 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5395 * support/cpp2/cppmain.c (cpp_output_string): new
5396 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5399 2005-05-13 Borut Razem <borut.razem AT siol.net>
5401 * src/SDCCmain.c (linkEdit): fixed bug 1195202
5403 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5405 * .version: changed to version 2.5.1; back to bleeding edge development
5407 2005-05-11 Borut Razem <borut.razem AT siol.net>
5409 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5410 generate PDF version 1.3 documents
5412 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5414 * .version: changed to version 2.5.0
5416 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5418 * doc/sdccman.lyx: updated weblinks, index and smaller updates
5420 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5422 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5423 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5424 well as many smaller updates.
5425 * .version: changed to version 2.5.0-pre1
5427 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5429 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5431 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5433 * support/regression/tests/bug1185672.c: added
5434 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5436 * src/mcs51/gen.c (genCall): added comments, made it look safer
5437 * src/mcs51/gen.c (genEndFunction): simplified
5439 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5441 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5443 2005-04-14 Borut Razem <borut.razem AT siol.net>
5445 * fixed bug 1045046 - SIGSEGV with really simple code?:
5446 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5447 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5449 2005-04-14 Borut Razem <borut.razem AT siol.net>
5451 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5452 src/pic16/device.h: temporarily disabled experimental #inline pragma
5455 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5457 * device/include/z80/stdio.h,
5458 * device/include/z80/string.h: removed these highly incomplete files so
5459 SDCC can use the default ones in device/include/
5461 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5463 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5465 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5468 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5470 * device/include/malloc.h: removed redundant __reentrant prototypes
5471 * device/lib/_mullong.c: added working xstack variant in asm (C version
5472 doesn't pass regression tests)
5473 * device/lib/bpx.c: used __data and made bpx char for mcs51
5474 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5475 (createFunction): fixed bug with xstackPtr
5476 * src/SDCCcse.c: corrected comments
5477 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5478 (killDeadCode, eBBlockFromiCode): removed unused code
5479 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5481 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5482 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5483 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5484 (genModOneByte): fixed warning in MSVC
5485 * src/mcs51/main.c (): added comments
5486 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5488 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5490 * src/SDCCmain.c (linkEdit): oops, changed one line too many
5492 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5494 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5496 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5498 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5499 characters arrays of larger size than the declared one.
5501 2005-04-10 Borut Razem <borut.razem AT siol.net>
5503 * src/pic/gen.c (genInline),
5504 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5505 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5506 (findNextInstruction), (findPrevInstruction),
5507 (findInstructionUsingLabel),
5508 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5509 * src/pic/pcode.c (findLabel): added missing '\n'
5510 * src/src.dsp: added SDCCdwarf2.c to the project
5512 2005-04-09 Borut Razem <borut.razem AT siol.net>
5514 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5516 2005-04-08 Raphael Neider <rneider AT web.de>
5518 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5519 into the chain after a given one) and mergeDefmapSymbols (combine
5520 defmap entries for each symbol per pcode)
5521 * (createDefmap): have defmap entries merged in the end
5522 * (defmapReplaceSymRef): split defmap entries covering two accesses to
5523 a symbol before replacing one access type's symbol, merge symbols in
5524 the end (replacement symbol might already have an entry)
5525 * (assignValnums): keep reference to written WREG intact
5527 2005-04-08 Raphael Neider <rneider AT web.de>
5529 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5532 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5534 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5537 2005-04-07 Raphael Neider <rneider AT web.de>
5539 * device/include/pic16/usart.h: added compatibility defines for
5540 devices with more than one USART
5541 * device/include/pic16/pic18f[68][567]20.h: activated above defines
5543 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5545 * device/lib/Makefile.in: updated for port specific include
5547 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5549 * support/regression/ports/mcs51/spec.mk: added mcs51 include
5551 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5553 * device/include/8051.h,
5554 * device/include/8052.h,
5555 * device/include/at89S8252.h,
5556 * device/include/at89c55.h,
5557 * device/include/at89x051.h,
5558 * device/include/at89x51.h,
5559 * device/include/at89x52.h,
5560 * device/include/mcs51reg.h,
5561 * device/include/reg51.h,
5562 * device/include/reg764.h,
5563 * device/include/regc515c.h,
5564 * device/include/sab80515.h: (re)moved these 12 files
5565 * device/include/mcs51/8051.h,
5566 * device/include/mcs51/8052.h,
5567 * device/include/mcs51/at89S8252.h,
5568 * device/include/mcs51/at89c55.h,
5569 * device/include/mcs51/at89x051.h,
5570 * device/include/mcs51/at89x51.h,
5571 * device/include/mcs51/at89x52.h,
5572 * device/include/mcs51/mcs51reg.h,
5573 * device/include/mcs51/reg51.h,
5574 * device/include/mcs51/reg764.h,
5575 * device/include/mcs51/regc515c.h,
5576 * device/include/mcs51/sab80515.h: and added them here
5578 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5580 * device/include/stdarg.h: changed SDCC specific keywords to double
5582 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5584 * device/include/hc08/mc68hc908gp32.h,
5585 * device/include/hc08/mc68hc908jb8.h,
5586 * device/include/hc08/mc68hc908jkjl.h,
5587 * device/include/hc08/mc68hc908qy.h: fixed comments
5588 * device/include/mcs51/README: updated
5589 * device/include/mcs51/c8051f120.h: added PINRSF
5590 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5591 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5592 amidst code. Also inline is not supported.
5594 2005-04-06 Raphael Neider <rneider AT web.de>
5596 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5597 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5598 callers stack/frame pointers
5600 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5602 * device/include/pic16/usart.h: added, missing in previous commit,
5603 * device/include/pic16/adc.h: fixed typo,
5604 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5606 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5608 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5609 uninitialized because a bug appears with gplink
5610 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5611 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5612 complains for unrecognised option
5614 2005-04-05 Raphael Neider <rneider AT web.de>
5616 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5617 structs as well (using memcpy)
5618 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5619 on ISRs (GOTO has no label)
5620 * src/pic16/device.h: added OF_OPTIMIZE_DF
5621 * src/pic16/main.c: added compiler switch --optimize-df to enable the
5622 new data flow analysis/optimization
5623 * src/pic16/pcode.c: added (prototypes for and implementation of)
5624 dataflow analysis functions, fixed pCodeInstructions' inCond and
5625 outCond values, made RCALL a branch instruction
5626 * (pic16_unlinkpCode): keep C line if possible
5627 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
5628 C line moved if possible
5629 * (pic16_getRegFrompCodeOp): NEW, improved version of...
5630 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
5631 to use new pic16_getRegFrompCodeOp (works for more SFRs)
5632 * (pic16_BuildFlow): fixed skip instructions with label (did not start
5634 * (pic16_getJumptabpCode): NEW, needed in...
5635 * (LinkFlow): fixed handling of jumptables, calls and conditional
5637 * (pic16_InsertCommentAfter): NEW
5638 * (pic16_pCodeReplace): made verbose and flow preserving
5639 * (AnalyzeFlow): added call to data flow analysis
5640 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
5641 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
5642 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
5644 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5646 * src/SDCCast.c (decorateType): fixed bug #1105626
5648 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
5650 * device/include/asm/pic16/features.h,
5651 * pic18f*.h headers,
5652 * device/include/pic16/adc.h,
5653 * device/include/pic16/delay.h,
5654 * device/include/pic16/i2c.h,
5655 * device/include/pic16/malloc.h,
5656 * device/include/pic16/stdio.h,
5657 * device/include/pic16/stdlib.h,
5658 * device/include/pic16/string.h,
5659 * device/lib/pic16/libc/stdio/printf_tiny.c,
5660 * device/lib/pic16/libc/stdio/printf_small.c,
5661 * device/lib/pic16/libc/stdio/strmgpsim.c,
5662 * device/lib/pic16/libc/stdio/strmmssp.c,
5663 * device/lib/pic16/libc/stdio/strmusart.c,
5664 * device/lib/pic16/libc/stdio/vfprintf.c,
5665 * device/lib/pic16/libc/stdlib/ltoa.c,
5666 * device/lib/pic16/libc/stdlib/putchar.c,
5667 * device/lib/pic16/libc/stdlib/x_ftoa.c,
5668 * device/lib/pic16/libc/stdlib/memchrpgm.c,
5669 * device/lib/pic16/libc/stdlib/memchrram.c,
5670 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
5671 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
5672 * device/lib/pic16/libio/adc/adcbusy.c,
5673 * device/lib/pic16/libio/adc/adcread.c,
5674 * device/lib/pic16/libio/adc/adcsetch.c,
5675 * device/lib/pic16/libio/usart/ubaud.c,
5676 * device/lib/pic16/libio/usart/ubusy.c,
5677 * device/lib/pic16/libio/usart/udrdy.c,
5678 * device/lib/pic16/libio/usart/uopen.c,
5679 * device/lib/pic16/libio/usart/uputc.c,
5680 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
5681 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
5682 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
5683 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
5684 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
5685 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
5686 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
5687 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
5688 specific keywords to double underlined form,
5689 * device/lib/pic16/libc/Makefile.rules,
5690 * device/lib/pic16/libsdcc/Makefile.rules,
5691 * device/lib/pic16/libm/Makefile,
5692 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
5693 to compile with C standard set in Makefile.common
5694 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
5695 rand.c and crc.c in compilation process,
5696 * device/lib/pic16/libsdcc/int/divuint.c,
5697 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
5698 `c' from signed to unsigned,
5699 * device/lib/pic16/startup/crt0.c,
5700 * device/lib/pic16/startup/crt0i.c,
5701 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
5702 keywords to double underlined form, bug fixes in _do_cinit function
5703 which prevented the correct initialization of the .idata segment,
5704 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
5705 core to enter a infinite loop
5706 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
5708 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5710 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
5712 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5714 * device/include/Makefile.in: add support for hc08 subdirectory
5715 * device/include/hc08/: new subdirectory
5716 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
5717 Lucas Loizaga, thanks!
5718 * device/include/hc08/mc68hc908qy.h,
5719 * device/include/hc08/mc68hc908gp32.h,
5720 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
5721 their own directory. Changed internal macro names to use the compiler
5722 reserved namespace. Changed SDCC specific keywords to double
5724 * device/include/math.h,
5725 * device/include/malloc.h,
5726 * device/include/stdarg.h,
5727 * device/include/stdbool.h
5728 * device/include/string.h,
5729 * device/include/tinibios.h,
5730 * device/include/ds400rom.h,
5731 * device/include/8051.h,
5732 * device/include/8052.h,
5733 * device/include/80c51xa.h,
5734 * device/include/at89c55.h,
5735 * device/include/at89S8252.h,
5736 * device/include/at89x51.h,
5737 * device/include/at89x52.h,
5738 * device/include/ds80c390.h,
5739 * device/include/reg764.h,
5740 * device/include/regc515c.h,
5741 * device/include/sab80515.h,
5742 * device/include/mcs51/c8051f000.h,
5743 * device/include/mcs51/c8051f018.h,
5744 * device/include/mcs51/c8051f020.h,
5745 * device/include/mcs51/c8051f040.h,
5746 * device/include/mcs51/c8051f060.h,
5747 * device/include/mcs51/c8051f120.h,
5748 * device/include/mcs51/c8051f300.h,
5749 * device/include/mcs51/c8051f310.h,
5750 * device/include/mcs51/c8051f320.h,
5751 * device/include/mcs51/c8051f330.h,
5752 * device/include/mcs51/c8051f350.h,
5753 * device/include/z180.h: Changed SDCC specific keywords to double
5756 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
5758 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
5760 * (pic16_assignConfigWordValue): disable testing of configuration
5761 register value with config mask,
5762 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
5763 function with port->fun_prefix,
5764 * (genFunction): when generating a naked interrupt function never
5765 create an absolute segment placed in interrupt vector address, place
5766 the actual interrupt function at IVA instead, when an interrupt
5767 function is generated with unspecified interrupt then do not create
5768 the absolute section,
5769 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
5770 code for generating a call to generic pointer get/put function with
5771 a call to function pic16_callGenericPointer(),
5772 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
5773 the call to the generic pointer get/put functions with prefixing the
5774 function name with port->fun_prefix,
5775 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
5776 * src/pic16/main.c (_process_pragma): prefix function with
5778 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
5779 calling assembler, old 18Fxxxx macro is deprecated,
5780 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
5781 PC_ASMDIR in while condition,
5782 * (findInstruction): add PC_ASMDIR in while condition,
5783 * (buildCallTree): prefix main with port->fun_prefix,
5784 * (pic16_pCode2str): fixed bug that didn't emit the memory access
5785 identifier for variable with banked access in instructions BTFSS,
5786 BTFSC, BCF, BSF, BTG
5787 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
5788 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
5789 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
5790 perform optimization when enviroment variable NO_REG_OPT is set,
5791 * (insideLRBlock): NEW, return 1 if register is inside an
5792 INF_LOCALREGS block,
5793 * (RemoveRegFromLRBlock): remove a register that is completely
5794 eliminated by register optimization, but it is still left in local
5795 register store/restore in/from stack block,
5796 * (Remove2pcodes): after removing register, check to see if it
5797 should be removed from local register store/restore in/from stack
5799 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
5800 DUMMY_READ_VOLATILE,
5802 * device/include/pic16/adc.h: minor prototype modifications and
5804 * device/include/pic16/malloc.h: added GPL notice various
5806 * device/include/pic16/stdint.h: NEW, standard header for ints
5807 * device/include/pic16/delay.h: NEW, header for delay functions,
5808 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
5810 * device/include/pic16/signal.h: NEW, header providing helper macros
5811 for implementing signal handlers,
5812 * device/include/pic16/stdio.h: added prototypes for functions,
5813 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
5814 prototypes for stdin and stdout, added macro PUTCHAR to
5815 automatically implement putchar function prototype,
5816 * device/include/pic16/usart.h: modified and updated USART library,
5817 * device/lib/pic16/libio/adc/,
5818 * device/lib/pic16/libio/i2c: some modifications to improve library
5820 * device/lib/pic16/libc/stdio/: modifications for the new printf*
5821 family of functions,
5822 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
5823 family of functions and other sources,
5824 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
5825 of the PIC18Fxx[28] devices,
5826 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
5827 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
5828 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
5829 _do_cinit function, because the previous failed when local variables
5830 where not placed in the same memory bank,
5831 * device/lib/pic16/libsdcc/char/: various modifications to improve
5832 library performance,
5833 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
5834 information on the new functions of the c library and more...
5836 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5838 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
5840 2005-03-26 Raphael Neider <rneider AT web.de>
5842 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
5843 if condition == CARRY)
5844 * (genCmp): adapted to new genSkipc semantics
5845 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
5846 on rIfx (genCmp was broken)
5848 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5850 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
5851 * src/z80/main.c (_keywords[]),
5852 * src/SDCCglobal.h (struct options),
5854 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
5855 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
5856 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
5857 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
5858 always available in leading double underscore form. The C99 support is
5859 mostly missing, but it's a start.
5860 * support/regression/tests/bug-227710.c: fixed nonconforming use of
5861 reserved identifier "__data".
5863 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5865 * src/mcs51/peeph.def: fixed bug 1170013
5867 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
5869 * device/include/mcs51reg.h: fixed bug 842007
5871 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5873 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
5876 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5878 * src/port.h (struct PORT),
5879 * src/avr/ralloc.c (avr_assignRegisters),
5881 * src/ds390/ralloc.c (ds390_assignRegisters),
5883 * src/hc08/ralloc.c (hc08_assignRegisters),
5885 * src/mcs51/ralloc.c (mcs51_assignRegisters),
5887 * src/pic/ralloc.c (pic14_assignRegisters),
5889 * src/pic16/ralloc.c (pic16_assignRegisters),
5891 * src/xa51/ralloc.c (xa51_assignRegisters),
5893 * src/z80/ralloc.c (z80_assignRegisters),
5895 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
5896 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
5898 * src/SDCCdflow.c (computeDataFlow),
5900 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
5902 * src/SDCCcflow.c (*),
5904 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
5905 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
5906 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
5907 immedDom() returning wrong block; probably fixes bug #1160833)
5909 2005-03-20 Borut Razem <borut.razem AT siol.net>
5911 * support/scripts/inc2h.pl: WIN32 port
5913 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
5915 * device/lib/makefile.in: added abs.c and labs.c
5917 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
5919 * device/include/stdint.h: added
5920 * device/lib/abs.c: added
5921 * device/lib/labs.c: added
5922 * device/include/stdlib.h: added abs() and labs() prototypes
5923 * device/lib/libsdcc.lib: added abs and labs
5924 * device/include/float.h,
5925 * device/lib/_fsmul.c,
5926 * device/lib/printf_fast.c,
5927 * device/lib/printf_tiny.c: updated comments
5929 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5931 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
5934 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5936 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
5937 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
5939 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
5941 * device/lib/printf_large.c: removed inline assembly for portability and
5942 readability. Use printf_fast if speed or size are more important.
5943 * src/pic16/gen.c: removed conditions around use of DEBUGpc
5944 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
5946 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
5948 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
5949 prevent compiler warning
5951 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5953 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
5954 moved to level 0 and declared as static. Also they are explicit
5955 placed in access bank. This was necessery because some times they
5956 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
5957 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
5958 optimizations. Currently only compare to unsigned char is implemented,
5959 * src/pic16/gen.c: added fReturnIdx array,
5960 * (struct resolvedIfx) is moved to gen.h and made public,
5961 * (struct _G): added sregsAlloc and sregsAllocSet fields,
5962 * (aopForSym): added an optimization to directly store in stack of
5963 the operand of a SEND iCode,
5964 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
5965 but as registers instead (AOP_REG) using the fReturnIdx array,
5966 * (pic16_freeAsmop): remove the freed register from the
5967 _G.sregsAlloc field,
5968 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
5969 a compare of 'WREG',
5970 * (pic16_popGetTempRegCond): changed function prototype, now
5971 function takes also a bitVector argument v which holds the current
5972 set of registers that are allocated for stack access by aopForSym,
5973 registers allocated in aopForSym for accessing stack symbols are not
5974 any more part of the functions usedRegs field,
5975 * (genCall): some times aopOp is called for a stack variable to be
5976 send, aopForSym might perform the push, if this is true make sure
5977 that genCall doesn't push the variable twice by testing _G.resDirect,
5978 * (genFunction): changed testing for unspecified interrupt number
5979 from 256 to INTNO_UNSPEC,
5980 * modified selection scheme of frame pointer generation. Previously
5981 if function did use local registers a frame pointer was generated,
5982 now a frame pointer is generated only if function has arguments
5983 (that need PLUSW2 register access), or has stack arguments, or the
5984 compiler is not instructed to omit the frame pointer,
5985 * (genEndFunction): before restoring local registers that were saved
5986 in the function preamble, also restore the registers that *might*
5987 have been allocated for stack access,
5988 * (genRet): removed some old comments,
5989 * (genCmp, the active (RN's) version): added a call to the
5990 pic16_genCmp_special function to perform the compare with a more
5991 robust and optimized way,
5992 * (genInline): a feature has been added in inline code generation,
5993 which allows a wildcard variable substitution when writing inline
5994 assembly. Code is incomplete and experimental therefore undocumented,
5995 * (genCast): changed order of aopOp for result and right to allow
5996 aopForSym to directly load the result if possible,
5997 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
5998 perform an optimized compare on some selected special occasions,
5999 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6000 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6001 generate an IVT any more,
6002 * src/pic16/main.c (pic16_optionsTable): added command line option
6004 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6005 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6007 * src/pic16/NOTES: Raphael Neider added in list of active developers
6008 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6009 jumptable_end to prevent bug #,
6010 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6011 inCond and outCond fields,
6012 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6013 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6014 turn off register spilling,
6015 * (packRegsForOneUse): synced with other ports' versions although it
6016 is not used currently,
6017 * (pic16_packRegisters): added an optimization while reading
6018 structure bitfields, some registers may be saved (malloc code is
6019 decreased by 80 bytes)
6021 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6023 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6024 left is a bitfield, if yes, then don't optimize assignment. Perhaps
6025 this can be optimized more?
6027 2005-03-10 Raphael Neider <rneider AT web.de>
6029 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6030 genNearPointerGet): (hopefully) fixed access to bitfields via
6031 pointers (p->bitN = x; and x = p->bitN; failed)
6033 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6035 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6037 2005-03-09 Raphael Neider <rneider AT web.de>
6039 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6041 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6043 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6044 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6045 (regTypeNum): set REG_BIT type if necessary
6046 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6047 * support/regression/tests/critical.c: check bug 1144613
6049 2005-03-02 Raphael Neider <rneider AT web.de>
6051 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6053 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6055 * src/avr/ralloc.c (serialRegAssign),
6056 * src/ds390/ralloc.c (serialRegAssign),
6057 * src/hc08/ralloc.c (serialRegAssign),
6058 * src/mcs51/ralloc.c (serialRegAssign),
6059 * src/pic/ralloc.c (serialRegAssign),
6060 * src/pic16/ralloc.c (serialRegAssign),
6061 * src/xa51/ralloc.c (serialRegAssign),
6062 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6064 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6066 * src/SDCCast.c (decorateType): fixed bug 1124787
6068 2005-02-20 Hubert Sack <sack AT digiplan.de>
6069 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6071 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6074 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6076 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6077 to keep the correct label reference count when adding/removing references
6078 to labels. A peephole file using this is appended to patch #1144962.
6080 2005-02-14 Raphael Neider <rneider AT web.de>
6082 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6083 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6084 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6085 retrievals of result operand's value on assignment
6087 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6089 * device/include/pic16/string.h: modified prototype for memccpy()
6090 to memccpy(void *, void *, char, size_t)
6091 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6092 check whether to omit frame pointer or not,
6093 * (genInline): convert all occurences of "\n" to LF in inline
6094 assembler blocks, this helps formatting the inline text,
6095 * (pic16_loadFSR0): modified prototype,
6096 * (genNearPointerGet, genNearPointerSet): reorganization of code,
6097 removed some 8051 legacy code,
6098 * (genPackBits): enabled handling bitfields exceeding one byte in size,
6099 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6100 before allocating temporary registers in functions,
6102 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6104 * support/regression/tests/bitvars.c: corrected the "fix"
6106 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6108 * support/regression/tests/bitvars.c,
6109 * support/regression/tests/bitwise.c,
6110 * support/regression/tests/rotate.c: "fixed" problems on Alpha
6112 2005-02-10 Raphael Neider <rneider AT web.de>
6114 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6115 different size for Alpha
6116 * src/pic16/gen.c (genCmpEq) : improved compare with 0
6118 2005-02-09 Raphael Neider <rneider AT web.de>
6120 * src/SDCC.lex(doPragma) : save and restore warning options as well
6121 (also added new stack plus clone- and copyAndFreeSDCCERRG())
6122 * have #pragma less_pedantic set the errorlevel to WARNING
6124 * (cloneOptimize) : fixed wrong malloc's size
6125 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6126 facilitate correct handling of #pragma (save|restore)
6128 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6130 * src/mcs51/gen.c: removed non-standard C nameless struct/union
6132 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6134 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6136 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6138 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6140 2005-02-02 Raphael Neider <rneider AT web.de>
6142 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6143 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6144 * (pic16_storeForReturn): fixed to allow returning function pointers
6145 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6146 * device/include/pic16/{stddef.h,stdbool.h}: added
6148 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6150 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6152 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6154 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6155 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6156 appeared to be required
6158 2005-01-31 Borut Razem <borut.razem AT siol.net>
6160 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6161 include/mcs51 and include/z80 directories to the package
6163 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6165 * src/hc08/gen.c (genFunction): fixed bug #1112752
6167 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6169 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6171 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6173 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6175 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6177 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6179 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6181 * device/include/c8051fxxx.h: removed these 6 files
6182 * device/include/mcs51/c8051fxxx.h: added these 11 new files
6184 2005-01-26 Raphael Neider <rneider AT web.de>
6186 * src/pic16/gen.c (genAssign): fixed assignment from longs
6187 in codespace (were cut to three bytes)
6188 * (genDummyRead): implemented (except for CODESPACE...),
6190 * src/pic16/glue.c (emitStatistics): beautified
6191 * device/lib/pic16/libm/Makefile: added include path
6193 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6195 * src/z80/gen.c (aopPut): fixed bug #1103902
6197 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6199 * device/lib/expf.c: fixed bug #1095792
6201 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6203 * device/lib/pic16/libm: added Math library sources
6205 2005-01-24 Raphael Neider <rneider AT web.de>
6207 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6208 to enable upcast to pCodeOpReg2 (there is no type tag to
6209 differenciate the two and pic16_popGet2p cast into PCOR2)
6210 * src/pic16/main.c (_process_pragma): fixed another malloc bug
6211 (sizeof(sectNames) changed to sizeof(sectName))
6212 Both patches fix segfaults under MinGW.
6214 2005-01-23 Raphael Neider <rneider AT web.de>
6216 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6217 Safe_[mc]?alloc()'ed variables
6218 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6219 of (byte sized) temporaries (assign them to WREG for now)
6220 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6221 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6222 this might fix SIGSEGVs on MinGW...
6223 * src/SDCCopt.c (killDeadCode): restored original behaviour
6224 (volatile operands might get thrown away though)
6226 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6228 * src/pic16/gen.c: fixed bug #1106975,
6229 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6230 pointer update, INTCON is saved, global interrupts are disabled and
6231 restored after updateing TOS.
6232 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6233 * added function attribute 'shadowregs' to take advantage of shadow
6235 * added function attribute 'wparam' as an alternative to the wparam
6237 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6238 user declares a non-ISR function as 'shadowregs',
6239 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6241 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6243 * .version: bumped version number to 2.4.8
6244 * device/lib/pic16/pics.all: list of PIC18F devices supported by
6246 * device/lib/pic16/libio/i2c/: I2C module support library,
6247 * device/include/pic16/i2c.h: I2C support library header,
6248 * device/lib/pic16/libc/stdio/: standard IO support sources,
6249 * (printf_small.c): printf_small() source, supports float print,
6250 * (printf_tiny.c): printf_tiny() source, does not support floats,
6251 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6252 enable global optimizations for entire library source, other
6253 Makefiles in the source tree are also modified to reflect this,
6254 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6256 * doc/sdccman.lyx: updated to reflect new changes,
6257 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6258 sym->onStack if-case,
6259 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6260 sbit, idata, _idata, xdata, _xdata,
6261 * added pragma library, to link an external library, (see doc),
6262 * removed command line options, --pomit-config-words, --pomit-ivt,
6263 --pleave-reset-vector,
6264 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6265 when calling assembler to reflect memory model used, also define
6266 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6267 reflect stack model used,
6268 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6269 on stack return NULL,
6271 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6273 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6274 of the operands is volatile. Fixes #1020220
6276 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6278 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6279 * (OptimizeRegUsage): make sure that there is really no other flow where
6280 the first pCode is used
6282 2005-01-22 Raphael Neider <rneider AT web.de>
6284 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6285 to fix #1106967 (pCode->seq are not set up correctly)
6287 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6289 * src/SDCCglue.c (glue): make sure code area is declared before the
6290 static initialization area.
6292 2005-01-21 Raphael Neider <rneider AT web.de>
6294 * device/lib/Makefile.in: fixed test for pic16 install dir
6295 * device/lib/pic16/*/Makefile*: modified compile flags to enable
6297 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6298 added --optimize-goto compiler switch and pragma wparam documentation
6299 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6300 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6301 and PRODH closing bug #1071770 (peephole optimizer)
6303 2005-01-19 Raphael Neider <rneider AT web.de>
6305 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6306 cmdLine buffers (used when calling sdcpp...) are large enough
6307 (MAX_PATH=256 truncates arguments leading to system halts when
6309 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6310 * (genUminus): rewritten to for efficiency
6311 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6312 used uninitialized in some cases)
6313 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6314 copy the third byte from the int -- now assumes 0x80 (data memory)
6315 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6316 operands (genAddLit expects the iCode's operands to swapped as
6317 well), fixed leftover bytes (crashed for short left operands)
6318 * (pic16_genMinusDec): performance improvements, removed false
6320 * (pic16_genMinus): fixed to cope with differently sized operands
6321 * src/pic16/glue.c (pic16_glue): added new banksel optimization
6323 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6324 * src/pic16/graph.[ch]: implementation of directed graphs, used by
6325 new banksel optimization
6326 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6327 analysis for temporary registers (segfaults...)
6328 * src/pic16/peeph.def: added rule
6330 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6332 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6333 which converts a float number to its ASCII representation
6334 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6335 functions to convert the fractional and integer part of a float to ASCII,
6336 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6337 realloc.c): added _MALLOC_SPEC to explicit place variables in data
6339 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6341 * device/include/pic16/adc.h: added GPL info,
6342 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6343 a pCodeOp as tested operand,
6344 * (genNearPointerGet): optimized bit testing, does not use
6345 intermediate register for bit value, test directly instead with
6346 BTFSS, BTFSC, works only for single bits,
6347 * (genpic16Code): dump the name of the iCode in the asm,
6348 * src/pic16/ralloc.c (decodeOp): removed static declaration and
6349 renamed to pic16_decodeOp,
6350 * (serialRegAssign): do not allocate a temporary register for iCode
6351 sequences that test a single bit for 1/0
6353 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6355 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6356 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6357 access stack and frame pointers. They are initially assigned to
6358 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6359 accessing SFRs. Updated all occurences of modification of stack or
6360 frame pointer in gen.c and pcode.c,
6361 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6362 assigning of a literal value to pointers,
6363 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6364 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6367 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6369 * doc/sdccman.lyx: update documentation about stack pragma, added
6370 some info for stack memory models
6372 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6374 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6376 2005-01-08 Raphael Neider <rneider AT web.de>
6378 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6379 udata sections to fix bug #1097823
6381 2005-01-05 Raphael Neider <rneider AT web.de>
6383 * src/pic16/gen.c (genGenericShift): added handling of differently
6384 sized left operand and result
6386 2005-01-04 Raphael Neider <rneider AT web.de>
6388 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6389 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6390 to hold the condition bit)
6391 * added new version of genCmp (old code available via #define)
6392 * added new version of genShiftLeft/genShiftRight in a generic
6393 way, now supports shifting by negative values
6394 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6395 shiftCount (expected by genGenericShift)
6396 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6397 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6399 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6400 is an invalid literal too...)
6402 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6404 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6405 from Raphael Neider,
6406 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6407 for 8-bit literals. This fixes some literal operands which are sign
6408 extended to 16-bits ints when instruction needs only 8-bits.
6410 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6412 * device/lib/logf.c: added mcs51 assembly version
6413 * device/lib/expf.c: added mcs51 assembly version
6414 * device/lib/_logexpf.c: new shared asm code for expf and logf
6415 * device/include/math.h: add defines for assembly math library
6416 * device/lib/Makefile.in: build new _logexpf.c
6417 * device/lib/libfloat.lib: use new _logexpf.c
6419 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6422 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6423 device types which have less than 0x7f registers.
6425 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6427 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6429 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6431 * device/lib/printf_fast.c: only build on supported arch.
6432 * device/lib/printf_tiny.c: only build on supported arch.
6433 * device/lib/printf_fast_f.c: only build if asm float lib
6434 * device/lib/_fsget1arg.c: only build if asm float lib
6435 * device/lib/_fsget2args.c: only build if asm float lib
6436 * device/lib/_fsnormalize.c: only build if asm float lib
6437 * device/lib/_fsreturnval.c: only build if asm float lib
6438 * device/lib/_fsrshift.c: only build if asm float lib
6439 * device/lib/_fsswapargs.c: only build if asm float lib
6440 * device/include/stdio.h: don't provide print_fast,
6441 print_fast_f, print_tiny prototypes if --xstack used
6443 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6445 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6446 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6449 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6451 * device/lib/printf_fast_f.c: same as printf_fast, but
6452 with floating point enabled
6453 * device/lib/printf_fast.c: minor tweaks
6454 * device/include/stdio.h: add printf_fast_f
6456 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6458 * src/SDCCmain.c: make --float-reent default for mcs51
6459 * device/lib/_fsadd.c: added mcs51 assembly version
6460 * device/lib/_fssub.c: added mcs51 assembly version
6461 * device/lib/_fsmul.c: added mcs51 assembly version
6462 * device/lib/_fsdiv.c: added mcs51 assembly version
6463 * device/lib/_fseq.c: added mcs51 assembly version
6464 * device/lib/_fsneq.c: added mcs51 assembly version
6465 * device/lib/_fsgt.c: added mcs51 assembly version
6466 * device/lib/_fslt.c: added mcs51 assembly version
6467 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6468 * device/lib/Makefile.in: add _fscmp to build
6469 * device/lib/libfloat.lib: add _fscmp to build
6471 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6473 * device/lib/_fs2slong.c: added mcs51 assembly version
6474 * device/lib/_fs2sint.c: added mcs51 assembly version
6475 * device/lib/_fs2schar.c: added mcs51 assembly version
6476 * device/lib/_fs2ulong.c: added mcs51 assembly version
6477 * device/lib/_fs2uint.c: added mcs51 assembly version
6478 * device/lib/_fs2uchar.c: added mcs51 assembly version
6479 * device/lib/_slong2fs.c: added mcs51 assembly version
6480 * device/lib/_sint2fs.c: added mcs51 assembly version
6481 * device/lib/_schar2fs.c: added mcs51 assembly version
6482 * device/lib/_ulong2fs.c: added mcs51 assembly version
6483 * device/lib/_uint2fs.c: added mcs51 assembly version
6484 * device/lib/_uchar2fs.c: added mcs51 assembly version
6485 * device/include/float.h: added #define to select asm vs c
6487 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6489 * device/lib/printf_fast.c: improvements to float output
6490 * device/include/float.h: add defines for assembly float library
6491 * device/lib/_fsget1arg.c: receive 1 float arg
6492 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6493 * device/lib/_fsnormalize.c: normalize a float
6494 * device/lib/_fsreturnval.c: return float, various helper routines
6495 * device/lib/_fsrshift.c: right shift a float's mantissa
6496 * device/lib/_fsswapargs.c: swap 2 floats
6497 * device/lib/Makefile.in: build these 6 new files for mcs51
6498 * device/lib/libfloat.lib: add these 6 files to the library
6500 2004-12-26 Borut Razem <borut.razem AT siol.net>
6502 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6505 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6507 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6508 and fully reentrant and register bank neutral.
6509 * device/lib/printf_fast.c: added float (not enabled by default),
6510 added compact/slower integer (also not enabled by default),
6511 improved size/speed of fast integer code, other minor changes
6512 * device/include/stdio.h, device/lib/Makefile.in,
6513 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6515 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6517 * src/pic16/pcode.c: declaring variables other than at the start of a
6518 block is not supported in C by VC6.
6520 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6522 * applied a previous patch from Raphael Neider that wasn't included
6523 in the previous commits, which fixes infinite loops within jumptable
6525 * made some fixes that previous patches introduced
6527 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6529 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6530 that fixes an issue with AOP_PCODE asmop's offset,
6531 * (pic16_popCopyReg): update instance field too,
6532 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6533 function of pic port,
6534 * (genCmp, genAnd, genAssign),
6535 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6537 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6539 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6540 variables initial values to idata section,
6541 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6542 variables in some functions. This utilizes parmBytes field of iCode
6543 structure to hold the offset of the variable in stack. (might be
6544 able to use the stack field too?)
6545 * applied patch from Raphael Neider # ### , # ###
6546 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6547 variable initial values in idata section,
6548 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6549 for static variables with initial value
6550 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6551 applied fix in while loop from Raphael Neider.
6553 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6555 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6556 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6557 * src/ds390/ralloc.c (serialRegAssign): spill bits
6558 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6559 * support/Util/SDCCerr.c,
6560 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6561 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6562 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6564 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6566 * device/include/sdcc-lib.h: inserted LGPL, added includes
6567 asm/ds390/features.h and asm/mcs51/features.h
6568 * device/include/asm/default/features.h,
6569 * device/include/asm/gbz80/features.h,
6570 * device/include/asm/z80/features.h: added empty _AUTOMEM
6572 * device/include/asm/ds390/features.h,
6573 * device/include/asm/mcs51/features.h: added files with defines for
6574 _AUTOMEM and _STATMEM indicating automatic and static storage class
6575 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6576 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6577 * src/SDCCicode.c (geniCodeCast),
6578 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6579 * src/SDCCloop.c (loopInduction): removed unused variable lr
6580 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6581 to convertToFcall to include char modulo (RFE 1065037), added check
6582 if left operand is unsigned and use abs of literal value
6583 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6584 as it doesn't work after conversion from peephole.def to peephole.rul
6585 * src/mcs51/gen.c (toBoolean): added check for size,
6586 (genModOneByte): optimized code for signed char modulo a literal
6587 power of 2 (thanks to Hubert Sack),
6588 (genRRC): removed unnecessary "clr c",
6589 (genRLC): replaced "add a,acc" with cheaper "rlc a"
6590 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6592 swapped rules 256.c and 256.d,
6593 extended 256.d by using new multiple checks (thanks Erik),
6594 added rules 256.e and 256.f,
6595 updated rule 261.a and 261.b to new generated code
6596 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6598 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6600 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6601 induction related bugs, including first part of bug #1074377
6603 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6605 * applied patch from bug-report #1076292,
6606 * applied patches for genAnd and Goto-optimizations for Raphael
6608 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6609 dump a less iCode information,
6610 * src/pic16/device.h (pic16_options_t): added field debgen,
6611 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6612 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6613 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6615 * (various functions): added macros FENTRY and FENTRY2 to functions,
6616 to emit function prologue,
6617 * (various functions): fixed indentation,
6618 * (genNearPointerGet): fixed loading of FSR0,
6619 * (genPackBits): applied patch from Raphael Neider to fix updating
6620 of FSR0 and touching only the modified bits,
6621 * src/pic16/genarith.c (various functions): added macros FENTRY to
6622 emit function prologue in comments,
6623 * src/pic16/pcode.h: added functions debugf2, debugf3,
6624 * src/pic16/ralloc.c: partial fix for packForPush caused
6627 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6629 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
6630 <stsp AT users.sourceforge.net> with reversed byte order
6631 * support/regression/tests/rotate.c: added (ds390 skips some tests)
6633 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6635 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
6637 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
6638 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
6640 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6642 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
6644 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6646 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
6648 (setFromConditionArgs): friendly operand parser for peephole rules,
6649 (operandBaseName, operandsNotRelated): new peephole condition
6650 "operandsNotRelated" -- similar to "operandsNotSame", but takes
6651 architecture specific register naming into account, handles n-way
6652 comparisons, and supports quoted literals
6653 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
6655 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6657 * src/mcs51/peeph.def: fixed bug #1076940
6659 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6661 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
6663 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6665 Adding support for replacing ljmps with sjmps in jumptables
6666 generated for switch statements. For now you need to set the
6667 environment variable SDCC_SJMP_JUMPTABLE to enable this.
6668 Now 4 algorithms for mcs51 jumptable generation are used:
6669 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
6670 addresses loaded pc-relative for up to 112 cases and stack-pushing
6671 target addresses loaded with offset from dptr for up to 256 cases.
6673 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
6674 * src/mcs51/main.c: adapted constants for switch table generation
6675 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
6677 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
6679 * device/lib/printf_large.c (_print_format): fixed bug 1073386
6680 * support/regression/tests/bug1057979.c: added test for bug 1073386
6682 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6684 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
6687 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6689 * src/pic16/device.h,
6690 * src/pic16/genarith.c,
6693 * src/pic16/pcode.c: applied patches #1068154 and #1070213
6695 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
6697 Large cummulative patch for pic16 port.
6698 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
6699 to call when a stack overflow occurs,
6700 * (malloc.h): added CVS Id tag,
6701 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
6703 * added libc directory. The current version of LibC contains string
6704 functions, ctype functions and macros and some functions of the
6705 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
6706 be extensively tested in the future. Standard disclaimer here.
6707 Library is not automatically build yet. But one can build it by
6708 invoking 'make' inside the libc directory.
6709 * added ADC library under libio. Preliminary version yet.
6711 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
6712 * src/pic16/gen.c (aopForRemat): asmop size is filled by
6713 aopForRemat() now and not by pic16_aopOp(),
6714 * (pic16_popGetTempReg): removed warning messgae when allocating
6715 temporary registers, its a buggy feature and will be removed,
6716 * (pic16_popGet): set register instance field in AOP_CRY,
6717 * (pic16_outBitC): fixed for results in size greater than 1,
6718 * (genUminusFloat): fixed for pic16, ported code from mcs51,
6719 * (pic16_storeForReturn): optimized return of 0,
6720 * (genCmp): experimental code for new genCmp which uses PIC18's
6721 special compare&skip instructions. Initial tests fail some times
6722 with variables grater than 1 byte in size, so new code is disabled,
6723 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
6725 * (genCast): began a fix to optimize the casting of a bit to another
6726 bit, now assigning a bitfield to another bitfield will fail, sorry,
6727 * src/pic16/main.c: disabled the use of lr-support feature,
6728 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
6729 * added some function prototypes, added function _debugf prototype,
6730 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
6731 bits with offset (case PO_GPR_BIT),
6732 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
6734 * (isBankInstruction): modified to return 0 for no banking instruction,
6735 and 1 for banking instruction,
6736 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
6737 caused stop processing pCodes after a inline assembly block,
6738 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
6739 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
6740 registers when it shouldn't,
6741 * src/pic16/ralloc.c (allocReg): add preliminary support for
6742 supporting a limited set of temporary registers,
6744 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6746 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
6747 genDataPointerSet): ensure assignments always copy in MSB to LSB
6749 (loadRegFromAop): recognize CLRH optimization,
6750 (genFunction): optimize RECEIVE iCodes in reentrant functions
6752 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6754 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
6755 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
6757 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
6758 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
6759 contiguous with data
6761 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6763 * device/lib/_gptrget.c (_gptrget),
6764 * device/lib/_gptrgetc.c (_gptrgetc),
6765 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
6766 instead of sjmp to ret
6767 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
6768 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
6770 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6772 * .version: bumped version to 2.4.7
6773 * device/lib/_gptrget.c (_gptrget): is now _naked
6774 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
6775 * device/lib/_gptrput.c (_gptrput): is now _naked
6776 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
6777 (createFunction): fixed xstack
6778 * src/SDCCglue.c (emitMaps): set allocation required for bit area
6779 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
6781 (geniCodeCritical): store original interrupt state in an iTemp bit
6782 var unless stack-auto
6783 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
6784 * src/SDCCmain.c (setIncludePath): added include/target to search path
6785 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
6786 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
6788 (processFuncArgs): put bit vars in bit area
6789 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
6790 unsaveRBank): fixed xstack,
6791 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
6792 (genFunction, genEndFunction): fixed xstack,
6793 (genAssign): optimization don't walk backwards through mem
6794 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
6795 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
6796 * support/regression/Makefile: also make library (for stack-auto) when
6797 making "all" and added "test-mcs51-xstack-auto"
6798 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
6799 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
6800 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
6801 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
6802 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
6803 make-library by MAKE_LIBRARY
6804 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
6805 regression tests for xstack
6806 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
6807 * support/regression/tests/critical.c: test for critical on mcs51
6809 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6811 * support/regression/ports/ucz80/spec.mk: use include and lib files from
6812 built version of sdcc instead of installed version
6814 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6816 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
6817 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
6819 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
6820 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
6821 WARNING: remove device/lib/build/z80/printf.o by hand when
6822 updating from previous build!
6823 * device/lib/z80/printf.c: updated comment
6824 * support/regression/tests/bug1057979.c: test all ports now
6825 * support/regression/tests/bug1065458.c: file added
6827 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6829 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
6830 *_start and *_end symbols for static functions
6832 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
6834 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
6835 and search crt0.o in all library paths,
6836 (setIncludePath): proper handling of --nostdinc,
6837 (setLibPath): proper handling of --nostdlib
6838 * support/regression/Makefile,
6839 * support/regression/ports/ds390/spec.mk,
6840 * support/regression/ports/gbz80/spec.mk,
6841 * support/regression/ports/hc08/spec.mk,
6842 * support/regression/ports/mcs51/spec.mk,
6843 * support/regression/ports/mcs51-large/spec.mk,
6844 * support/regression/ports/mcs51-stack-auto/spec.mk,
6845 * support/regression/ports/z80/spec.mk: use include and lib files from
6846 built version of sdcc instead of installed version
6847 * doc/sdccman.lyx: fixed typo in --nostdinc
6849 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
6854 * src/pic/gen.c : added support to generate code for struct bit fields.
6856 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6858 * as/xa51/xa_version.h,
6859 * device/include/errno.h,
6860 * device/include/regc515c.h,
6861 * device/lib/_itoa.c,
6862 * device/lib/_ltoa.c,
6863 * device/lib/ser_ir_cts_rts.c,
6864 * sim/ucsim/xa.src/glob.cc,
6865 * sim/ucsim/xa.src/inst_gen.cc,
6866 * sim/ucsim/xa.src/xa_bit.cc,
6867 * sim/ucsim/xa.src/xa_sfr.cc,
6868 * sim/ucsim/z80.src/inst_dd.cc,
6869 * sim/ucsim/z80.src/inst_fdcb.cc,
6870 * support/scripts/keil2sdcc.pl,
6871 * src/pic16/pic16.dsp,
6872 * src/pic16/pic16a.dsp: corrected cvs line endings
6873 * device/lib/printf_large.c: fixed bug 1057979
6874 * src/pic16/gen.c: fixed non-C standard code
6875 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
6876 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
6877 * support/regression/ports/mcs51/support.c: reload T1 asap
6878 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
6879 pdata use and clear idata startup behaviour
6880 * support/regression/tests/bug1057979.c: added
6882 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
6884 * device/examples/ds390/ow390/ad26.h,
6885 * device/examples/ds390/ow390/cnt1d.h,
6886 * device/examples/ds390/ow390/crcutil.c,
6887 * device/examples/ds390/ow390/ownet.h,
6888 * device/examples/ds390/ow390/owsesu.c,
6889 * device/examples/ds390/ow390/swt12.h,
6890 * device/examples/ds390/ow390/swtoper.c,
6891 * device/examples/ds390/ow390/temp10.h,
6892 * device/examples/ds390/ow390/thermodl.c,
6893 * device/examples/ds390/tinitalk/tinitalk.dsp,
6894 * device/examples/ds390/tinitalk/tinitalk.dsw,
6895 * device/examples/mcs51/clock/hw.h,
6896 * device/examples/mcs51/simple2/go.bat,
6897 * device/examples/serialcomm/windows/serial.h,
6898 * device/examples/xa51/dummy.c,
6899 * device/examples/xa51/hello.c,
6900 * device/include/80c51xa.h,
6901 * device/include/at89x051.h: corrected cvs line endings
6903 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
6905 * src/pic16/main.c (options): added command line --gstack, to trace
6906 stack over/under flows,
6907 * added pragma 'wparam' to allow passing first byte of function
6908 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
6909 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
6910 call to __gstack_test function and sets up the symbol as extern,
6911 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
6912 * popaop): added call to pic16_testStackOverflow,
6913 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
6915 * (genCall, genPcall): now all parameters are passed via stack
6916 except in functions that are pass to wparam pragma in which WREG is
6918 * (genPcall): REENTRANT flag is checked to see if variable prototype
6919 contains reentrant keyword, don't call a non-reentrant function, via
6920 a reentrant function pointer or vice versa, functions are never
6922 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
6924 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
6925 SIGSEGV when accessing a NULL register stucture,
6926 * (pic16_printGPointerType): modified to handle UPPER modifier for
6927 function initializers, changed prototype of function to simpler one,
6928 * (pic16_printIvalFuncPtr): check to see if function is already
6929 added in externs list,
6930 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
6931 optimized a move from W to SFR with a move to the same register
6933 * device/lib/pic16/debug: NEW directory, contains debug features
6934 which are enabled when linking with libdebug.lib, currently command
6935 line option --gstack enables stack pointer tracing for over/under
6936 flow, corresponding sources are in debug/gstack
6938 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
6940 * doc/sdccman.lyx: updated SDCC version,
6941 * (PIC16 port): update list of command line options,
6942 * src/pic16/device.h (structure pic16_options_t): added field gstack
6943 to enable stack overflow tracing on push/pops,
6944 * src/pic16/device.c (statistics structure): added statistics
6946 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
6947 pic16_dump_int_registers): increase statistics counters for each
6948 * variable which is encountered
6949 * (pic16_dump_usection): emit each .udata variable to its own udata
6951 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
6952 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
6953 parameters via stack, otherwise use old scheme,
6954 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
6955 assembler output file,
6956 * src/pic16/main.c: added command line options --gstack to enable
6957 push/pop tracing for stack overflow,
6958 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
6959 instructions): added size of each instruction,
6960 * (pic16_countInstruction): estimate size of instructions in
6961 the_pFile list, inline assembly blocks are not counted,
6962 * (pic16_FixRegisterBanking): trace previous register usage, when
6963 banksel optimizations is greater than 0, don't emit a redudant
6966 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
6968 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
6969 * src/pic16/ralloc.c : applied same fix for pic16.
6970 * src/pic/gen.c : tidied it up a little.
6972 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6974 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
6975 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
6977 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6979 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
6981 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6983 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
6984 non-reentrant function __modsint in the interrupt function (thus
6985 corrupting math operations during serial I/O)
6986 * device/lib/ser_ir.c: as above, changed buffersize
6987 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
6989 * doc/Makefile: added option -t for rsync
6991 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6993 * src/SDCCast.h (struct ast),
6994 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
6996 2004-10-20 Borut Razem <borut.razem AT siol.net>
6998 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7001 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7003 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7005 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7006 support functions to replace long sequences of MOVFF's from access
7007 bank registers to stack and vice versa,
7008 * src/pic16/device.h: added new field opt_flags, where optimization
7009 flags can be set to enable certain features,
7010 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7011 * pBlock, (genFunction, genEndFunction): surroung loop for
7012 saving/loading used registers in stack with PC_INFO pCodes,
7013 INF_LREGS. Code in between can then be optimized by pCode optimizer
7014 to support function calls,
7015 * (genDataPointerSet): fixed bug which loaded float fields in
7016 structures with corrupt data,
7017 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7018 in a standard way debug info on stderr. Feature used for developing
7020 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7021 obsolete chunks of code,
7022 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7023 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7024 * pic16/src/pcode.c (pic16_newpCodeInfo,
7025 * (pic16_newpCodeOpLocalRegs),
7026 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7028 * (pic16_pCodeConstString): printing of the initial value of a
7029 symbol as a comment is inhibited since parsing was already done by
7030 copyStr and output is corrupt,
7031 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7033 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7035 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7037 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7039 * as/mcs51/lkarea.c: removed old K&R style,
7040 (lnksect): changed check on boundary error,
7041 (lnksect2): changed check on boundary error,
7042 (lnksect2): extend XSTK to end of page if size = 1
7043 * as/mcs51/lkmain.c: removed old K&R style,
7044 (Areas51): create l_IRAM symbol
7045 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7046 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7047 model-mcs51-stack-auto, added model-mcs51-xstack-auto
7048 * device/lib/_mullong.c: added version to be compiled with xstack
7049 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7050 * device/lib/mcs51/crtxclear.asm: clear pdata as well
7051 * device/lib/mcs51/crtxstack.asm: fixed comment
7052 * src/SDCCglue.c: maxInterrupts defaults to 0,
7053 (emitMaps): added pdata,
7054 (createInterruptVect): (re)moved default,
7055 (glue): added pdata,
7056 (glue): moved __start__xstack to XSTK with default size 1
7057 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7058 and options.float_rent when options.stackAuto is set,
7059 (linkEdit): only write XDATA_NAME if provided on command line
7061 * src/SDCCmem.c: added pdata
7062 * src/port.h: added pdata_name to PORT
7063 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7064 (saveRegisters, unsaveRegisters): removed usage of B,
7065 (genMinus): fixed accumulator clash,
7066 (genJumpTab): added comment, this needs another look
7067 * src/mcs51/gen.c: added check for "B in use" paranoia,
7068 added pushB() and popB()
7069 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7078 * src/z80/main.c: (reset_regparms) made void parameter explicit and
7079 added PSEG (PAG,XDATA) or NULL to port specifier
7080 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7081 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7082 (_mcs51_genInitStartup): removed __start__xstack equ,
7083 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7084 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7085 * src/z80/gen.c (_rleAppend): fixed warnings
7086 * support/regression/tests/zeropad.c: added pdata test
7087 * .version: bumped to 2.4.6
7089 2004-10-17 Borut Razem <borut.razem AT siol.net>
7091 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7092 as a part of nightly build
7094 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7096 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7097 WREG holds the first byte function parameters,
7098 * (aopForSym): take special case for symbols which are in FARSPACE
7099 but in CODESPACE too,
7100 * (assignResultValue): modified to take into account _G.useWreg,
7101 * (genCall): don't use wreg for parameter passing when function is
7102 declared as reentrant, too, added optimization INCF to stack
7103 pointer when stack parameter count is 1,
7104 * (genFunction, genEndFunction): refurnished and fixed to not using
7105 wreg for passing parameters when function has varargs or is
7106 reentrant, fixed bug with symbol name compare for generating
7107 functions in absolute address,
7108 * (pic16_storeForReturn): refurnished,
7109 * (genCmp): began writing a new version of the function, not ready
7110 yet, therefore it is disabled,
7111 * (genAssign): do not read code memory when assigning a function to
7113 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7114 array of characters, not pointer,
7115 * (pic16initialComments): in debug mode emit an .ident directive for
7117 * (_process_pragma): emit a new warning type (internal to pic16)
7118 when setting stack to default length, emit a similar warning when
7119 placing a function at absolute address and address is not word aligned
7120 * (_pic16_parseOptions): added 'return TRUE' statement,
7121 * (_pic16_linkEdit): if compiling a source, then add the source's
7122 file object, first in the list of objects to link,
7124 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7126 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7127 * src/pic/main.c : removed VC warning.
7128 * src/pic/gen.c : changed comment.
7130 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7132 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7133 reference to a deprecated symbol _GPTRREG was causing failure to
7134 link. Thanks G. M. Gallant for the info.
7136 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7138 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7139 comments for Bugs item #954788.
7141 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7143 * src/pic16/device.c (pic16_dump_gsection,
7144 * pic16_groupRegistersInSection): handle symbols declared to be in
7145 access bank differently,
7146 * src/pic16/gen.c (struct _G): added field resDirect,
7147 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7148 send values read from stack directly to result and don't allocate
7150 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7152 * (pic16_sameRegsOfs): NEW,
7153 * (freeAsmop): if _G.resDirect is set then do not mark registers as
7154 free because they were not allocated from temporary pool,
7155 * pic16_popRegFromString): workaround to fix a problem with
7156 allocating variables twice or never,
7157 * (genGenPointerGet): using PRODL instead of FSR0H,
7158 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7160 * (genAssign): take advantage of the _G.resDirect flag,
7161 * (genCast): around line 11844, use mov2f instead of directly
7162 MOVFF'ing between operands to account for literal values,
7163 * src/pic16/genutils.c: some new debug functions for gpsim have been
7165 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7166 float with integer part only,
7167 * src/pic16/main.c (_process_pragma): handle pragma udata access to
7168 place variables in access bank
7169 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7170 updated sources to reflect recent changes in gen.c
7172 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7174 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7175 sources that searched for headers in installation path, now the
7176 device/include/pic16 is used,
7177 * src/pic16/glue.c (pic16glue),
7178 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7179 .line directives if not in debug mode, this suppresses assembler's
7180 warnings for ignored directives
7182 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7184 * src/port.h: made reset_regparms prototype void parameter explicit.
7185 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7186 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7187 * doc/sdccman.lyx: documented warning disabling and how to use
7188 printf_large to make it print floats.
7189 * device/include/stdbool.h: NEW
7190 * device/lib/_atof.c,
7191 * device/lib/_divuint.c,
7192 * device/lib/_divulong.c,
7193 * device/lib/expf.c,
7194 * device/lib/printf_large.c,
7195 * device/lib/sincosf.c,
7196 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7197 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7198 a completely reentrant lib.
7200 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7202 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7203 * device/include/pic16/stdio.h: fixed bug with colon
7205 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7207 * device/include/pic16/stdio.h,
7208 * device/include/pic16/stdlib.h,
7209 * device/include/pic16/math.h: NEW
7210 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7211 declared as _naked to reduce overhead
7212 * device/lib/Makefile.in (target port-specific-objects-pic16):
7213 changed * to *.* so to ignore the CVS directory,
7214 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7215 stacked variables back in stack,
7216 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7219 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7221 * .version: bumped version number to 2.4.5
7222 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7223 * support/Util/SDCCerr.c (messages structure): added entry for
7226 Large cumulative patch for pic16 port and libraries.
7227 * device/include/pic16/sdcc-lib.h,
7228 * device/include/pic16/stdarg.h,
7229 * device/include/asm/pic16/features.h,
7230 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7231 * device/include/pic16/float.h: changes reentrant keyword with
7232 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7233 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7234 updated target build-libraries to include objects from gptr,
7235 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7236 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7237 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7238 all function headings,
7239 * src/SDCCmain.c: added global parameter userIncDirsSet,
7240 * (parseCmdLine): when option -I is encountered add directory to
7242 * src/version.awk: added space between control and long,
7243 * src/pic16/NOTES: added some notes for the port,
7244 * src/pic16/gen.c: added prototype for mov2fp function,
7245 * (fReturnpic16[]): properly named return value registers,
7246 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7247 * (aopForSym): added code to handle symbols with onStack flag set,
7248 symbols onStack are allocated PTRSIZE bytes,
7249 * (aopFreeAsmop): handles special case where asmops are stack objects,
7250 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7251 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7252 added argument lock to trace flaws in allocating temporary registers
7253 when developing port,
7254 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7255 * (pic16_popRegFromString): reenabled allocating a direct register
7257 * (assignResultValue): various beautifications,
7258 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7259 referenced function argument,
7260 * (genIpush): reenabled to allow stacked arguments, handles only
7261 ic->parmPush iCodes,
7262 * (genCall, genPcall): major changes to allow for variable argument
7263 functions, fixed a bug with falsely restoring stack pointer after
7264 returning from call,
7265 * (genFunction): pending code for critical function,
7266 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7267 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7268 * (genNearPointerGet): fixed bug with indirect reading, was always
7270 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7272 * (genAddrOf): rewrote code to take address of a stacked function parameter
7273 * (genCast): fixed casting to generic pointer type,
7274 * src/pic16/gen.h: added AOP_STA,
7275 * (struct asmop): added field stk,
7276 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7277 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7278 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7279 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7280 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7281 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7283 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7285 * (pic16_port structure): generic pointer size is set to 3,
7286 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7287 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7289 * src/pic16/ralloc.c (allocReg): prevent allocating register when
7290 operand is an iTemp,
7292 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7294 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7295 * debugger/mcs51/simi.c: addapt new syntax of s51
7297 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7299 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7300 * src/pic16/pcode.c: commented out some calls to free() in order to
7303 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7306 * src/SDCCicode.c (isiCodeInFunctionCall),
7307 * src/avr/ralloc.c (selectSpil),
7308 * src/pic/ralloc.c (selectSpil),
7309 * src/pic16/ralloc.c (selectSpil),
7310 * src/ds390/ralloc.c (selectSpil),
7311 * src/hc08/ralloc.c (selectSpil),
7312 * src/xa51/ralloc.c (selectSpil),
7313 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7314 stack in the middle of a function call sequence (fixes bug #1020268)
7315 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7316 costs associated with the minimum switch case.
7318 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7320 * src/SDCC.lex: fixed bug #1030549
7322 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7324 * src/SDCCcse.h (struct cseDef),
7325 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7326 over a function call if the CSE is derived from a symbol whose
7327 address has been taken (fixes bug #1029883)
7328 * support/regression/tests/bug-1029883: a new regression test for
7331 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7333 * src/hc08/gen.c (emitinline): fixed bug #1029778
7334 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7335 to a cast object is no longer a syntax error ("fixes" bug #1030006,
7336 and starts toward RFE #905167)
7338 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7340 * src/pic16/gen.c (mov2f): New function to move an operand to
7341 another without considering if it is a literal or a register,
7342 * (pic16_sameRegs): don't check if they are both AOP_REG,
7343 * (AccRsh): removed andmask=0 lines,
7344 * (genLeftShift): duplicated to be improved in future versions,
7345 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7346 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7347 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7348 * (pic16initMnemonics): added initialization for POC_INFSNZW,
7349 * (insertBankSwitch): fixed inserting banksel directives algorithm
7350 for instructions that follow a skip instruction, this fixes a report
7351 for broken subtraction code generation,
7352 * src/pic16/ralloc.c (deassignLRs): do not free register if current
7353 iCode is a left op, just in case result and right share the same
7356 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7359 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7361 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7362 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7363 on 2004-09-12; it was buggy
7365 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7367 * src/SDCCsymt.h: removed RESULT_CHECK
7372 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7374 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7376 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7377 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7378 configuration values no more rejected by compiler, they are assigned
7379 to configuration registers with a warning message instead,
7380 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7381 the for-loop so last conf register is emitted too,
7382 * (_pic16_initPaths): link library libsdcc.lib by default,
7383 * (_hasNativeMulFor): modified test for multiplication according to
7384 Raphael Neider's remarks. Integer multiplication is also done with
7386 * device/include/pic16/pic18fregs.h: corrected type error in while
7387 testing and including 18f6720 header file
7389 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7391 * src/pic16/device.h (pic16_options): removed field use_crt,
7392 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7393 until an optimization to handle single bits is added,
7394 * (pic16_loadFSR0): moved before genUnpackBits,
7395 * (genAnd): some white lines removed,
7396 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7397 leave_reset flags in pic16_options when using crt modules,
7399 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7401 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7402 for bugs 898889 & 979599. Also used some safer print instructions.
7404 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7406 * src/pic16/device.h (pic16_options_t): added field use_crt,
7408 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7409 catch a probable future bug,
7410 * src/pic16/gen.c: aopIdx function commented out,
7411 * (genAssign): commented out old code which used aopIdx,
7412 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7413 code, added if conditionals to take into account the --use-crt
7414 command line options,
7415 * src/pic16/main.c (pic16_optionsTable): added new command line
7416 options, --use-crt= and --no-crt,
7417 * (_pic16_linkEdit): now the proper crt object is added in the
7418 linker command line except than when --no-crt is specified,
7419 * src/pic16/pcode.c,
7420 * src/pic16/pcode.h: added some structures and functions for a new
7421 optimization scheme to compansate for instruction overhead between
7422 same iCodes, this scheme is currently under development and is not
7424 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7426 * device/lib/pic16/startup/crt0i.c,
7427 * device/lib/pic16/startup/crt0iz.c: added global char variable
7428 __uflags to force the generation of an idata section
7430 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7433 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7434 * doc/sdccman.lyx: updated sdcc version to 2.4.4
7436 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7438 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7439 Frieder) and clarified the default code optimization mode
7441 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7443 * src/SDCC.lex (doPragma, process_pragma),
7444 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7445 "opt_code_size", and "opt_code_balanced"
7446 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7447 regrouped options by category, added support for category headers
7448 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7449 and "--opt-code-size"
7450 * doc/sdccman.lyx: documented these new options and pragmas
7451 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7452 preference into account
7454 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7456 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7457 geniCodePreDec): Fixed bug 904237 by generating a warning
7459 * src/SDCCerr.c: added warning W_SIZEOF_VOID
7461 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7463 * src/pic/device.c : When no max ram set validate full memory range.
7465 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7467 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7469 * device/lib/_gptrget.c,
7470 * device/lib/_gptrput.c: updated comment
7471 * device/lib/calloc.c,
7472 * device/lib/free.c,
7473 * device/lib/malloc.c,
7474 * device/lib/realloc.c: added LGPL, made them reentrant-safe
7475 * src/SDCCcse.c (cseBBlock),
7476 * src/SDCCicode.c (printOperand, geniCodeArray),
7477 * src/SDCCicode.h (struct operand): fixed bug 868103
7478 * support/regression/tests/bug-868103.c: added
7479 * src/SDCCast.c (searchLitOp),
7480 * src/SDCCcse.h (struct cseDef),
7481 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7482 * src/SDCCicode.h (struct operand),
7483 * src/SDCCsymt.h (struct sym_link),
7484 * src/avr/gen.c (hasInc),
7485 * src/ds390/gen.c (hasInc),
7486 * src/hc08/gen.c (genPlusIncr, hasInc),
7487 * src/mcs51/gen.c (hasInc),
7488 * src/pic16/glue.c (pic16_printIvalChar),
7489 * src/pic16/ralloc.c (regWithIdx),
7490 * src/xa51/gen.c (hasInc) : removed warnings
7491 * src/SDCCast.c (createBlock): added comment ???
7492 * src/hc08/ralloc.c: updated comments
7494 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7496 * doc/sdccman.lyx: updated section on switch statements, added
7497 section about semaphore locking
7498 * doc/Makefile: added option -info for latex2html
7499 * device/lib/_gptrget.c,
7500 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7502 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7506 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7507 maxram is less than 0x100.
7509 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7511 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7513 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7524 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7525 a jump table is the best form for a switch statement, including
7526 automatic insertion of missing cases to make the case range
7527 continuous. Developed in collaboration with Frieder Ferlemann.
7529 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7531 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7532 accumulator result if it needs sign extension
7534 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7536 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7538 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7540 * device/lib/gbz80/printf.c,
7541 * device/lib/z80/printf.c: removed define for NULL
7543 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7545 * as/xa51/xa_link.c,
7546 * device/examples/ds390/ow390/ad26.c,
7547 * device/examples/ds390/ow390/cnt1d.c,
7548 * device/examples/ds390/ow390/counter.c,
7549 * device/examples/ds390/ow390/ds2480.h,
7550 * device/examples/ds390/ow390/ds2480ut.c,
7551 * device/examples/ds390/ow390/findtype.c,
7552 * device/examples/ds390/ow390/gethumd.c,
7553 * device/examples/ds390/ow390/owllu.c,
7554 * device/examples/ds390/ow390/ownetu.c,
7555 * device/examples/ds390/ow390/swt12.c,
7556 * device/examples/ds390/ow390/swtloop.c,
7557 * device/examples/ds390/ow390/temp.c,
7558 * device/examples/ds390/ow390/temp10.c,
7559 * device/examples/ds390/ow390/thermo21.c,
7560 * device/examples/ds390/ow390/tinilnk.c,
7561 * device/examples/ds390/ow390/tstfind.c,
7562 * device/examples/serialcomm/windows/serial.cpp,
7563 * device/examples/serialcomm/windows/test_serialcomm.cpp,
7564 * device/include/reg51.h: fixed line endings for cvs
7566 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7568 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7569 packRegsForAccUse, packRegisters): new accumulator register
7571 * support/regression/ports/hc08/support.c (_putchar): suppress
7572 warning of unused variable
7573 * src/SDCCicode.c: added SWAP entry to codeTable
7575 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7577 * device/lib/sprintf.c: forgot to add this file before previous commit
7579 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7581 * src/pic16/gen.c (genPackBits): added operand right in function
7582 parameters, load result directly if p_type is POINTER (that is
7583 called by genNearPointerSet)
7584 * (genUnPackBits): added operand left in function parameters,
7585 * (genNearPointerGet, genNearPointerSet): prevent the loading of
7586 FSR0 if accessing bitfields,
7588 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7590 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7591 _print_format; updated printf, sprintf, vsprintf
7592 * device/include/asm/default/features.h: corrected comment/define
7593 * device/lib/Makefile.in: added sprintf.c
7594 * device/lib/libsdcc.lib: added sprintf module
7595 * device/lib/printf_large.c,
7596 * device/lib/vprintf.c,
7597 * device/lib/sprintf.c: totally refactored printf_large and vprintf
7599 * support/regression/Makefile: changed ALL_PORTS into a usefull default
7600 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7601 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7603 * support/regression/tests/zeropad.c: define idata as data for hc08
7605 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7607 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7608 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7609 labels are referenced at least once (even if a reference is not found)
7610 * src/hc08/gen.c (emitcode): set isComment flag for comments
7611 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7612 loads), rules 6a..6b (optimize jumps to return)
7614 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7616 * device/lib/acosf.c (acosf),
7617 * device/lib/asinf.c (asinf),
7618 * device/lib/atanf.c (atanf),
7619 * device/lib/ceilf.c (ceilf),
7620 * device/lib/cosf.c (cosf),
7621 * device/lib/coshf.c (coshf),
7622 * device/lib/cotf.c (cotf),
7623 * device/lib/fabsf.c (fabsf),
7624 * device/lib/floorf.c (floorf),
7625 * device/lib/log10f.c (log10f),
7626 * device/lib/logf.c (logf),
7627 * device/lib/sinf.c (sinf),
7628 * device/lib/sinhf.c (sinhf),
7629 * device/lib/sqrtf.c (sqrtf),
7630 * device/lib/tanf.c (tanf),
7631 * device/lib/tanhf.c (tanhf),
7632 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
7633 replaced all instances of "reentrant" in the library functions
7634 defined in math.h with this macro.
7635 * support/regression/tests/float_trans.c: reenabled test for hc08
7637 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7639 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
7642 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7644 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
7645 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
7646 multi-byte volatile operands are used
7647 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
7648 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
7649 initialization to area GSINIT0 so that it would always precede
7650 any static initializers in GSINIT
7651 * support/regression/tests/zeropad.c: fixed idata define for hc08
7652 * support/regression/tests/bug-927659.c,
7653 * support/regression/tests/float_trans.c: disabled tests for hc08
7654 pending missing library routines
7655 * .version: increased version number to 2.4.4 - hc08 port now passes
7659 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
7661 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
7662 * Makefile.common.in,
7664 * as/hc08/Makefile.in,
7665 * as/mcs51/Makefile.in,
7666 * as/z80/Makefile.in,
7667 * debugger/mcs51/Makefile.in,
7668 * device/include/Makefile.in,
7669 * device/lib/Makefile.in,
7672 * link/z80/Makefile.in,
7673 * packihx/Makefile.in,
7674 * sim/ucsim/main_in.mk,
7675 * sim/ucsim/avr.src/Makefile.in,
7676 * sim/ucsim/doc/Makefile.in,
7677 * sim/ucsim/gui.src/serio.src/Makefile.in,
7678 * sim/ucsim/hc08.src/Makefile.in,
7679 * sim/ucsim/s51.src/Makefile.in,
7680 * sim/ucsim/xa.src/Makefile.in,
7681 * sim/ucsim/z80.src/Makefile.in,
7683 * support/cpp2/Makefile.in,
7684 * support/librarian/Makefile,
7685 * support/makebin/Makefile: added DESTDIR to the install path proposed
7686 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
7687 * doc/sdccman.lyx: added DESTDIR documentation
7689 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
7691 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
7692 instruction for interrupt handlers, use fast returns when returning
7693 from high priority interrupts
7695 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7697 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
7699 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
7700 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
7701 bugs, ported much of Bernhard's code from mcs51
7702 * src/mcs51/gen.c (genSend),
7703 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
7704 than one when calling a reentrant function
7705 * device/lib/_mullong.c: defined an alternate struct layout for big
7708 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7710 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
7713 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7715 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
7716 are sane and complete before asking the port its prefered parameter
7717 passing method (fixes bug #1017633)
7718 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
7721 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7723 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
7724 problem in bitfields >= 8 bits.
7726 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7728 * src/SDCCsymt.c: undid changes that were not meant to be committed
7730 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7732 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
7734 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7736 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
7737 copied and wrong bit got inverted
7739 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7741 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
7742 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
7743 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
7744 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
7745 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
7746 assignments to bitfields at known addresses
7747 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
7748 reads from bitfields at known addresses
7749 * src/hc08/ralloc.c (packRegisters),
7750 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
7751 genhc08Code): optimize pointer get values used as conditionals
7752 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
7755 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7757 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
7758 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
7759 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
7762 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7764 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
7766 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7768 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
7771 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
7773 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
7775 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7777 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
7780 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7782 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
7784 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7786 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
7787 cases use more compact code.
7789 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
7791 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
7793 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7795 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
7797 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7800 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
7801 parameter of changePointer() from symbol* to sym_link*
7802 * src/SDCCast.c (decorateType): call changePointer() for CAST op
7803 * src/SDCCsymt.c (compareType): void* type is castable to other
7804 pointers, but not necesarily an exact match.
7805 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
7806 is no longer blindly treated as an exact match.
7807 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
7809 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
7811 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
7813 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
7818 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
7820 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
7824 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
7826 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7828 * src/mcs51/gen.c (emitcode): fixed bug #992819
7830 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
7832 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
7833 there's no need to make it worse
7835 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7837 * src/mcs51/ralloc.c (deassignLR),
7838 * src/ds390/ralloc.c (deassignLR),
7839 * src/hc08/ralloc.c (deassignLR),
7840 * src/z80/ralloc.c (deassignLR),
7841 * src/pic/ralloc.c (deassignLR),
7842 * src/pic16/ralloc.c (deassignLR),
7843 * src/avr/ralloc.c (deassignLR),
7844 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
7845 rlivePoint): fixed another part of bug #971834
7847 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7849 * src/z80/main.c: enabled "critical" keyword
7850 * src/z80/mappings.i,
7851 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
7852 functions (fixes bug #979646)
7853 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
7855 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7857 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
7860 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
7862 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
7863 doesn't disable too much optimizations
7865 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7867 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
7869 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
7871 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
7873 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7875 * src/pic/gen.c tidied up tabs
7876 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
7877 * src/pic/main.c tidied up tabs
7878 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
7879 * src/pic/pcoderegs.c tidied up tabs
7880 * src/pic/ralloc.c tidied up tabs
7882 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
7884 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
7885 to S_FIXED for pic16 port and when symbol is not in level 0,
7886 allocate for S_REGISTER storage class and pic16 port, too,
7887 * src/pic16/device.h: prototype for checkSym,
7888 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
7889 * (pic16_assignConfigWordValue): test the value and the mask to
7890 validate that the value is suitable for the configuration word,
7891 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
7892 collect extern declared symbols, don't emit symbol twice, check
7893 first if symbol is in publics set first,
7894 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
7895 * added command line '--fstack' which enables an experimental
7896 feature for stack access, too buggy to be used yet...
7897 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
7898 * (pic16_allocDirReg): when register has storage class S_REGISTER
7899 allocate in pic16_dynAccessRegs,
7900 * device/include/pic16/pic18f????.h: modified configuration word
7901 naming convention, words started as CONFIG0H but should be CONFIG1H
7903 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7905 * device/include/mcs51reg.h: fixed bug 970993
7907 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
7909 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
7910 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
7911 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
7912 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
7913 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
7914 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
7915 error/warning numbers,
7916 added function setWarningDisabled()
7917 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
7918 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
7919 _memcmp.c _memmove.c calloc.c realloc.c free.c
7920 * support/regression/tests/malloc.c: added tests for new functionality
7921 * support/regression/tests/zeropad.c: added tests for truncated initializers
7922 and initialized char arrays starting with '\x0'
7923 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
7925 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
7927 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
7929 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7931 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
7932 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
7933 peephole 177.e. Thanks to anonymous
7935 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
7937 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
7938 function isn't used in the source but referenced as a
7939 variable initializer then declare it as extern in .asm file
7941 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
7943 * .version: increased version number to 2.4.3
7945 Adding version extension according to ChangeLog CVS revision
7946 * src/Makefile.in (target all): added dependency 'version.h'
7947 * (rule version.h): added rule to create version.h from ChangeLog,
7948 * (rule dep): added dependency version.h,
7949 * src/version.awk: AWK script to create version.h
7950 * src/SDCCdwarf2.c (dwWriteModule),
7951 * src/SDCCglue.c (initialComments),
7952 * src/SDCCmain.c (printVersionInfo): modified to write after
7953 version string the version extension number,
7954 * src/SDCCutil.c: included "version.h"
7955 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
7957 * src/SDCCutil.h: added prototype for getBuildNumber
7959 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
7960 includeDirsSet, too,
7961 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
7962 const char [] is found in function prototype...
7964 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
7965 moving to WREG with source is already in WREG,
7966 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
7967 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
7968 * (aopForSym): stack'ed symbols are partially supported, added
7969 if-clause to support symbols in FARSPACE,
7970 * (sameRegs): added test for AOP_ACC to see if registers are same,
7971 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
7972 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
7973 * (pic16_popRegFromString): will not allocate a new register if it
7974 doesn't find one by name, bug may have introduced...
7975 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
7976 * (genIpush): revived to use pic16 port's stack,
7977 * (genAddrOf): added incomplete case for stack'ed operand,
7978 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
7979 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
7980 can handle multibyte operands,
7981 * src/pic16/glue.c (pic16_printIval*): some debug info added,
7982 * (pic16initialComments): added message for MPLAB compatibility
7984 * src/pic16/main.h: prototype for pic16_mplab_comp,
7985 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
7986 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
7987 * (_pic16_linkEdit): NEW, handles link stage, transferred here
7988 because of increased complexity of procedure,
7989 * (_process_pragma): stack pragma changed to format 'stack pos len',
7990 emit symbol '_stack_end' to conform with gplink,
7991 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
7992 to search for register,
7993 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
7995 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
7996 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
7997 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7998 case for PO_GPR_REGISTER,
7999 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8000 dies, the new era is ahead !...
8001 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8002 pic16_dynInternalRegs,
8003 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8004 * (pic16_allocDirReg): minor optimizations and bug fixes,
8005 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8007 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8008 load stack and frame pointer with address of 'stack_end' symbol
8010 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8012 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8013 without source code but only variable initializers
8015 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8017 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8018 external are not declared as extern to reduce overhead while linking
8020 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8022 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8024 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8026 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8027 Yee Keat for the patch
8028 * src/SDCCast.c (decorateType): fixed bug #979599
8029 * src/ds390/gen.h: removed local fReturnSizeDS390
8030 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8031 * src/ds390/gen.c (genAnd, genOr, genXor),
8032 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8034 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8036 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8037 add relFilesSet to $3, manipulate $2 to handle linking of object
8038 files without source files in command line,
8039 * device/include/pic16 (all headers): added ID location macros,
8040 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8041 entries for ID location bytes,
8042 * (pic16_assignIdByteValue): NEW,
8043 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8044 added field dumpcalltree to pic16_options_t,
8045 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8046 is used instead of pic16_Gstack_base_addr, check if (ifx) before
8047 emitting rFalseIfx label after check_carry label,
8048 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8049 pic16_emitDIRegs), NEW
8050 * (pic16glue): dump .calltree file when option --calltree found,
8051 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8052 * (_pic16_genAssemblerPreamble): emit ID locations after
8053 configuration registers,
8054 * (pic16_linkCmd): modifications of the link command,
8055 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8056 * (pic16_pCodeInitRegisters): don't init stack registers,
8057 * (pic16_findPrevInstruction): fixed bug,
8058 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8059 bug with immediate registers,
8060 * (buildCallTree): traces stack push and pop,
8061 * (pct2): dump also stack usage for each function,
8062 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8063 * (pic16_allocDirReg): various modifications,
8064 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8067 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8069 * src/pic16/pcode.c: removed buggy double colon
8071 2004-07-01 Borut Razem <borut.razem AT siol.net>
8073 * support/scripts/sdcc.nsi: added include/pic16 to setup
8075 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8077 * device/lib/Makefile.in: fixed bug in target objects-pic16,
8078 * device/lib/pic16/Makefile: prefixed with dash (-) command under
8080 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8081 specific command line arguments. Also added sample lkr script
8082 for placing a variable at a specific memory bank.
8083 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8084 at a specific memory bank,
8085 * (pic16_dump_isection): fixed bug which caused string literals to
8086 be omitted when dumping idata section,
8087 * (pic16_groupRegistersInSection): added code to handle registers
8088 in specific memory banks,
8089 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8090 public, all references are renamed too,
8091 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8093 * (pic16_storeForReturn): added case to handle when dest is WREG,
8094 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8095 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8096 pic16_rel_udata, check to see if that register is marked as being
8097 a member of a specific memory bank,
8098 * (pic16_printIvalCharPtr): added code to add string literals either
8099 to code or the idata sections,
8100 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8101 also accept the 'udata' pragma,
8102 * src/pic16/main.h: new structure types sectName and sectSym
8103 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8104 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8105 * (pic16_findPrevInstruction): fixed, it returned nothing,
8106 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8107 instruction combinations,
8108 * (pic16_FixRegisterBanking): heavily reorganised,
8109 * (pic16_AnalyzeBanking): if generating banksel directives is
8110 disabled, then don't call FixRegisterBanking at all,
8111 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8113 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8115 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8117 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8118 Phuah Yee Keat <yk.phuah AT nestac.com>
8120 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8122 * src/pic16/glue.c (pic16createInterruptVect): function now emits
8123 correctly the IVT even if it is relocated to some other location
8125 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8127 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8128 * device/include/pic16/pic18f2220.h: NEW,
8129 * device/lib/pic16/libdev/pic18f2220.c: NEW,
8130 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8131 * src/pic16/device.c (struct Pics16): added info for 18f2220,
8132 * src/pic16/device.h (struct pic16_options): added ivt_loc and
8133 nodefaultlibs, ivt_loc is the location of the interrupt vector
8134 table, and nodefaultlibs signs that default libraries should not be
8135 linked in link stage,
8136 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8137 according to --ivt-loc argument,
8138 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8139 when pragma stack is found,
8141 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8143 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8144 256 (range check), 257 (do while), 258.a-f (bit banging
8145 f.e. on 3-wire SPI bus)
8147 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8149 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8150 variables used exclusively within a loop
8152 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8154 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8156 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8158 * src/SDCClrange.c (computeClash): fixed bug #971834
8160 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8162 * src/mcs51/gen.c (genCmp): fixed bug #975903
8163 * src/hc08/gen.c (operandsEqu),
8164 * src/ds390/gen.c (operandsEqu),
8165 * src/z80/gen.c (operandsEqu),
8166 * src/pic/gen.c (operandsEqu),
8167 * src/pic16/gen.c (operandsEqu),
8168 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8169 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8171 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8173 * src/SDCCcse.c (cseBBlock): fixed bug #966963
8175 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8177 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8178 default case in switch statement,
8179 * glue.c (pic16_initPointer): expr is initialised via decoarteType
8180 to eliminate problem with initialisation of pointers, but problem
8182 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8183 * (emitStaticSegment): removed various lines emitting debug info,
8184 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8185 added processor registers for utilizing EEPROM,
8186 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8187 configurable and set 8
8189 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8191 * .version: increased version number to 2.4.2,
8193 Cumulative patch for pic16 port
8194 * src/pic16/device.c: changed scheme to dump initial values for
8195 variables in idata segment, all print_idata* functions were removed,
8196 now the pic16_printIval* will be called,
8197 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8198 * _pic16_printPointerType, pic16_printPointerType,
8199 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8200 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8201 NEW, similar to the respective functions in SDCCglue.c,
8202 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8203 way, emitting hex bytes,
8204 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8206 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8208 * src/avr/ralloc.c (serialRegAssign),
8209 * src/xa51/ralloc.c (serialRegAssign),
8210 * src/pic/ralloc.c (serialRegAssign),
8211 * src/pic16/ralloc.c (serialRegAssign),
8212 * src/hc08/ralloc.c (serialRegAssign),
8213 * src/z80/ralloc.c (serialRegAssign),
8214 * src/ds390/ralloc.c (serialRegAssign),
8215 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8217 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8219 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8220 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8222 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8224 Cumulative patch for pic16 port:
8225 * src/pic16/device.h (typedef PIC16_device) modified fields for
8226 defining microcontrollers,
8227 * src/pic16/device.c: added new info for all devices in Pics16 array,
8228 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8229 to be optimised out by the pCode optimiser,
8230 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8231 specially, bug reported by G.M. Gallant,
8232 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8233 as force'd so that cannot be optimised out by pCode optimiser,
8234 * src/pic16/pcode.c,
8235 * src/pic16/pcodepeeph.c,
8236 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8237 they are disabled by default, but can be enabled explicit with
8238 command argument --denable-peeps, for testing,
8239 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8240 --pomit-ivt in COMPILE_FLAGS
8242 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8244 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8247 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8249 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8251 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8253 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8254 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8256 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8258 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8259 would only assign 0x300001 register.
8261 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8263 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8264 in COMPILE_FLAGS. Thanks to G. Gallant for report.
8266 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8268 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8270 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8271 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8272 added peephole 254 (left shift), 255 (jump table)
8274 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8276 * device/lib/Makefile.in: removed comment line with model-pic16,
8277 * (target port-specific-objects-pic16): the libraries and objects
8278 are copied to the build directory form the device/lib/pic16/bin
8281 Cumulative patch concerning pic16 port:
8282 * library directory has been re-organized,
8283 * added support for PIC18F1220,
8284 * added headers and library sources for chips 18f1220,18f6520,
8285 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8287 * configuration registers setting has changed, now each supported
8288 device has a complete description of the registers it uses,
8289 * all initialisations are moved to idata sections, these section
8290 can be absolute or relocatable,
8291 * fixed initialisation of codespace variables,
8292 * fixed warning about PCLATU and gpsim,
8293 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8294 * (genAssign): use table reads when assigning from variables in codespace,
8295 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8296 char/int variables placed in codespace,
8297 * (pic16_emitConfigRegs): NEW, emits a list with configuration
8298 registers set in .asm file, no need for --pomit-config-words anymore,
8299 * (pic16glue): some 8051 legacy segments are commented out
8300 (to be removed completely),
8301 * added support for alternative assembler and linker with --asm=
8302 and --link= command line arguments,
8303 * peepholes are disabled automatically in the port, no need to
8304 specify on command line,
8305 * port supports natively char/int/long multiplication, but converts
8306 all divisions to support functions,
8307 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8308 to the file set in variable $2,
8309 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8310 strings in ASCII format and not in hex,
8311 * ralloc.c (serialRegAssign): added a triplet of conditional calls
8312 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8313 allocate proper register if iCodes aren't temporary,
8315 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8317 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8319 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8321 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8324 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8326 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8327 computed address is reused
8328 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8329 multi-byte bitfields
8331 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8333 * src/z80/gen.c: (genArrayInit): must check for pointers too
8335 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8337 * support/regression/tests/zeropad.c: never meant to commit the
8338 nestedstruct test: removed, added check for GCC version
8340 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8342 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8343 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8344 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8345 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8346 bugs 928906 and 954082 half-empty initializers
8348 * src/SDCCsymt.c (getAllocSize): added for above fix
8349 * src/z80/gen.c (genArrayInit): fixed bug 741044
8350 * support/regression/tests/zeropad.c: added tests
8352 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8354 * src/pic16/device.c (pic16_dump_section): corrected bug which
8355 caused some symbols of the libraries to be misplaced
8357 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8360 * src/pic16/ralloc.h,
8361 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8362 to fix conflict with pic port
8364 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8366 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8367 externs configuration variables,
8368 * src/pic16/ralloc.h,
8369 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8370 prototype in header, commented out some debug messages
8372 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8376 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8377 for gpasm COFF object generation. Thanks to D. Hawkins for
8380 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8383 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8384 Brock for spotting this)
8385 * src/ds390/gen.c (genEndFunction),
8386 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8387 interrupt handler and critical. Disable push/pop optimizations when
8388 peephole optimizations disabled.
8390 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8392 Updated pic16 library sources and headers.
8393 * device/lib/pic16/pic18f*/ ,
8394 * device/include/pic16/*.h: modified to handle structured SFR
8397 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8399 * src/port.h (PORT structure): added hook initPaths, now each
8400 port can declare its own default search paths,
8401 which can been seen with the --print-search-dirs option,
8402 see pic16 port for example,
8403 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8404 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8405 * (doPrintSearchDirs): NEW, replaces in a central manner the
8406 printing of search dirs which was split in set*Paths functions,
8407 * (main): added call to port->initPaths and doPrintSearchDirs,
8412 * src/izt/tlcs900h.c,
8415 * src/pic16/main.c: modified port structures to reflect addition of
8418 * src/pic16/device.c (regCompare): registers are finally sorted by name,
8419 * (pic16_dump_section): for registers in same address reserve memory once,
8420 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8422 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8423 result is greater in size than right or left,
8424 * (pic16_genUMult8X8_8): there are some cases where the result can
8425 be 16 bits size, so handle these,
8426 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8427 * (pic16_outBitC): modified to emit pcodes,
8428 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8430 * (genDivOneByte): implemented algorithm to divide 8-bits,
8431 * (genCmp): uncommented goto, but issues still exist,
8432 * (genAnd): fixed a bug with variables >8bits,
8433 * (genPackBits): optimization added that uses BCF/BSF to change a
8435 * (genAssign): fixed bug when assigning floating point literals,
8436 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8437 __sdcc_gsinit_startup label,
8438 * src/pic16/main.c (_pic16_init): removed search directory
8440 * (_pic16_initPaths): NEW, used to initialise search directories,
8441 * (_hasNativeMulFor): support functions for all except char/int
8442 multiplication, and char division,
8443 * (PIC16_port struct): modified entry for native mul support,
8444 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8446 * (buildCallTree): call to register_usage is ifdef'ed out,
8448 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8450 * device/include/string.h: applied Stas Sergeev's patch to make this
8451 header file compatible with the preprocessor -Wundef option
8452 * src/SDCCmain.c (main): abort compilation if preprocessor reports
8453 failure (fixes bug #941458)
8455 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8457 * src/SDCCopt.c (killDeadCode): fixed bug #907733
8458 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8459 that the variable, not the function, should be static
8460 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8461 to be consistent with non-literal case
8463 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8465 * src/SDCCast.c (isConformingBody): fixed bug #949967
8466 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8467 convilong): fixed bug #952086
8469 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8471 * src/SDCCmem.c (allocVariables): fixed bug #955321
8473 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8475 * src/hc08/main.c (_hc08_genAssemblerEnd),
8476 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8477 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8478 completely eliminated the use of a temporary file
8479 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8480 when more than one file linked
8481 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8483 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8485 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8486 which fixes bug #543481
8487 * support/regression/tests/bug-751703.c: fixed comments left from a
8489 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8490 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8491 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8493 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8494 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8495 are now changed to underscores in moduleName
8497 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8499 * as/mcs51/lkmem.c: better fix for bug #954173
8501 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8502 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8504 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8505 * device/include/c8051f000.h,
8506 * device/include/c8051f120.h,
8507 * device/include/c8051f300.h,
8508 * device/include/c8051f310.h,
8509 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8512 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8514 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8515 and mailing lists, doc'ed --no-peep-comments, removed reference
8516 to knoppix (newest version has no LyX/LaTeX), other minor changes
8517 * src/SDCCglue.c (glue): save 2 bytes stack space with
8518 option --main-return. The ljmp could probably be avoided too
8520 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8522 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8524 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8526 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8527 * src/SDCCopt.c (isLocalWithoutDef),
8528 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8529 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8530 (credit to Maarten Brock for patch #949363, on which this is based)
8531 * support/regression/tests/bug-751703.c: some test cases of extern used
8532 within inner scopes.
8534 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8536 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8538 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8540 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8541 dwWriteLabel): fix to create valid debugger symbols even when
8542 the module name has non-alphanumeric symbols in it
8543 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8544 when a variable's allocation has been optimized away
8547 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8549 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8551 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8553 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8555 * src/z80/gen.c (z80_emitDebuggerSymbol),
8557 * src/pic/gen.c (pic14_emitDebuggerSymbol),
8559 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8561 * src/avr/gen.c (avr_emitDebuggerSymbol),
8563 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8565 * src/SDCCdebug.c (emitDebuggerSymbol),
8567 * src/port.h: added a debugger struct to the port struct. Added a
8568 callback for defining debugger symbols
8570 * src/SDCCast.c (createLabel),
8571 * src/SDCC.y (labeled_statement): mark all compiler generated labels
8574 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8575 iCode back to the ast for the function
8577 * src/hc08/ralloc.c (hc08_assignRegisters),
8578 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8579 unneeded fields from the regs struct.
8580 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8581 pushReg() & pullReg() functions instead of emitcode()
8583 * src/hc08/gen.c (genLabel, genhc08Code),
8584 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8586 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8589 * src/hc08/gen.c (genEndFunction, genhc08Code),
8591 * src/mcs51/gen.c (genEndFunction, gen51Code),
8593 * src/ds390/gen.c (genEndFunction, gen390Code),
8595 * src/z80/gen.c (genEndFunction, genZ80Code),
8598 * src/pic/gen.c (genEndFunction, genpic14Code),
8600 * src/pic16/gen.c (genEndFunction, genpic16Code),
8602 * src/avr/gen.c (genEndFunction, genAVRCode),
8604 * src/xa51/gen.c (genEndFunction, genXA51Code),
8606 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8607 specific code to cdbFile.c and out of the backend code generators
8609 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8610 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8611 starting address is now 0
8615 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8616 assembler directive for DWARF support
8617 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8621 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
8623 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8625 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
8626 and inappropriate peephole optimization in jump tables
8628 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8631 * src/SDCCglue.c: sdccopt works for the hc08 port now
8633 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
8635 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
8637 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8639 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
8641 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8643 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
8647 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
8648 comments from the peephole optimizer replacement rules
8649 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
8651 * src/SDCCcse.c (updateSpillLocation),
8652 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
8654 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
8655 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
8656 objects far pointers
8658 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8660 * src/SDCCsymt.h: a missing part of my last change
8661 * src/pic/ralloc.c (regTypeNum),
8662 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
8664 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8667 * src/SDCCicode.c (aggrToPtrDclType),
8669 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
8670 ptrPseudoSymConvert),
8671 * src/pic/ralloc.c (regTypeNum),
8672 * src/pic16/ralloc.c (regTypeNum),
8673 * src/hc08/ralloc.c (regTypeNum),
8674 * src/ds390/ralloc.c (regTypeNum),
8675 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
8676 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
8678 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8680 * link/z80/lkmain.c (afile),
8681 * as/hc08/lkmain.c (afile),
8682 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
8683 prevent a pointer problem when a filename has no directory and
8684 no extension specified.
8686 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8688 * link/z80/lkmain.c (afile): allow periods in directory names
8689 * link/z80/lkmain.c (afile),
8690 * as/mcs51/lkmain.c (afile),
8691 * as/hc08/lkmain.c (afile): allow linker script file to have an
8692 extension other than ".lnk"
8693 * link/z80/lklex.c (getfid),
8694 * link/z80/lkmain.c (parse),
8695 * as/mcs51/lklex.c (getfid),
8696 * as/mcs51/lkmain.c (parse),
8697 * as/hc08/lklex.c (getfid),
8698 * as/hc08/lkmain.c (parse): Support comments in the linker script
8699 file on lines by themselves and after filenames
8701 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8703 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
8705 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8707 * src/z80/peeph-z80.def: removed some peephole rules that don't
8708 work with multibyte arithmetic (fixed bug #937126)
8709 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
8710 to registers and not global variables
8711 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
8712 geniCodePreInc, geniCodePostDec, geniCodePreDec,
8713 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
8714 checking for assignments not internally generated (fixed bug #931895)
8715 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
8716 structure member (fixed bug #930072)
8718 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8720 * src/SDCCmain.c (linkEdit),
8721 * src/hc08/main.c (_hc08_parseOptions),
8722 * as/hc08/Makefile.in,
8726 * as/hc08/lkrloc.c (relr, rele),
8727 * as/hc08/lkarea.c (lnkarea)
8728 * as/hc08/lkmain.c (afile, parse),
8729 * as/hc08/lkelf.c: support for ELF output
8730 * as/hc08/lks19.c (s19),
8731 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
8733 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8735 * as/mcs51/lkihx.c: Fixed bug #899105.
8737 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8739 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
8740 .dsp files from Unix to DOS.
8742 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8744 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
8745 function pointers; we have been compliant for several months now.
8746 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
8747 change that was accidently commented out
8748 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
8749 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
8752 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8754 * src/hc08/gen.c: output of all of the internal debugging information
8755 is now controlled by the D() macro; it is disabled by default
8757 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8759 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
8760 harder to keep the same registers during a CAST iCode
8761 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
8762 long via int can be done in a single cast, if the signedness is
8764 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
8765 putchar() in tinibios.c in ds390's library
8767 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8769 * src/SDCCast.c (decorateType): fixed bug #898889,
8770 cast result of a literal complement too
8771 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
8772 fixed check for bitfields
8774 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
8776 * src/SDCCicode.c (geniCodeLogic): made it static,
8777 (geniCodeLogicAndOr): added in order to fix bug #905492,
8778 (ast2iCode): fixed bug #905492
8779 * support/regression/tests/bug-905492.c: added
8780 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
8781 (processParms): fixed bug #927659: don't copy parms, this will clear
8783 * support/regression/tests/bug-927659.c: added
8785 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8787 * src/SDCCast.c (addCast): don't cast float to char
8788 * device/lib/libsdcc.lib: added _memmove
8790 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
8792 * device/lib/large/Makefile: fixed parallel execution by
8793 replacing `make` by `$(MAKE)`
8795 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8797 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
8798 offsets (fixes bug #923936)
8800 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
8802 * device/lib/small/Makefile: fixed parallel execution by
8803 replacing `make` by `$(MAKE)`
8805 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8807 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
8809 2004-03-23 Scott Dattalo <scott AT dattalo.com>
8811 * src/pic/gen.c (genCpl): multi-byte complements were not working.
8812 * src/regression/Makefile: Regression test was not running.
8814 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8816 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
8817 complement if possible
8818 * src/SDCCval.c (valComplement),
8819 * src/SDCCicode.c (operandOperation): fixed complement of literal
8820 * support/regression/tests/onebyte.c (testComplement): added
8822 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
8824 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
8825 return an optimized tree; actually replace actParm with the new tree
8826 * src/SDCCast.h: added some parantheses to remove side effects
8827 * support/regression/tests/bug-920866.c
8829 2004-03-21 Scott Dattalo <scott AT dattalo.com>
8830 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
8831 Bit operands were not being handled properly in the pic14 port.
8832 (now src/regression/add.c passes again).
8834 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8836 * src/SDCC.y (labeled_statement): case and default no longer require
8837 a following statement (RFE #893037)
8839 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8841 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
8842 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
8843 disabled (fixes bug #916294)
8844 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
8845 "mov a,acc"; patch provided by Lenny Story
8846 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
8848 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8850 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
8852 * src/ds390/gen.c (genFunction, genEndFunction),
8853 * src/ds390/ralloc.c (ds390_assignRegisters),
8854 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
8855 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
8856 pushed if there are parameters passed on the stack. Also, a cleaner
8857 way to decide if r0/r1 should be pushed/popped. (Together they fix
8860 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8863 * device/lib/mcs51/crtpagesfr.asm,
8864 * device/lib/mcs51/crtxinit.asm,
8865 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
8866 to avoid confusion with Si Lab's SFRPAGE register.
8868 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8870 * src/SDCCglue.c (emitMaps): allow public sfr variables
8871 * src/SDCCglue.c (initialComments): include compiler build date
8872 with compiler version and put the timestamp of the generated
8873 assembly file on a serperate line to be less confusing.
8874 * src/port.h: added genInitStartup hook
8881 * src/z80/main.c: genInitStartup initialize as NULL (default to
8882 historical behaviour)
8883 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
8884 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
8885 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
8886 library instead of hard coding it into the compiler.
8887 * support/regression/ports/mcs51-stack-auto/spec.mk,
8888 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
8889 * device/lib/mcs51/Makefile,
8890 * device/lib/small/Makefile,
8891 * device/lib/large/Makefile,
8892 * device/lib/mcs51/crtpagesfr.asm,
8893 * device/lib/mcs51/crtstart.asm,
8894 * device/lib/mcs51/crtxclear.asm,
8895 * device/lib/mcs51/crtxinit.asm,
8896 * device/lib/mcs51/crtclear.asm,
8897 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
8898 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
8899 and into user configurable files.
8900 * device/lib/clean.mk: clean mcs51 directory too
8901 * support/regression/tests/longlit.c: added static to T1 declaration
8902 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
8903 accesses in the initialization code
8905 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8907 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
8908 OSCTRIMVAL as noted in bug #916008
8910 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8912 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
8913 in loops with multiple exits (reported as incorrect registers
8914 used by Martin Helmling in Sdcc-user list)
8916 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8918 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
8919 made ds390 register extensions look less like error messages
8921 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8923 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
8924 reported by Adam Wozniak in Sdcc-user list
8926 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8928 * src/SDCCast.c (decorateType): fixed with bug and promotion in
8929 arithmetic optimizations, added debug output
8931 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8933 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
8934 * sdcc.spec: updated and split sdcc into 3 rpms
8935 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
8936 needed for literals of LEFT_OP and '+'
8937 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
8938 introduced RESULT_TYPE_NOPROM
8939 (geniCodeMultiply): fixed logic for decision if mul is optimized to
8941 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
8942 limited promotion to int only for '*'
8943 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
8945 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
8947 * src/pic16/gen.c (genSkip),
8948 (genc16bit2lit), (gencjneshort): commented out
8949 (is_LitOp): new helper function, checks operand type
8950 (genCmpEq): rewritten
8952 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8954 * support/regression/tests/bug-908454.c: added
8956 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
8958 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
8959 * src/SDCCicode.c (usualBinaryConversions): op needs int type
8960 (geniCodeCast): cosmetic, don't preserve bit storage class
8961 (geniCodeLeftShift): added promotion
8962 (geniCodeLogic): fixed regression
8963 * src/SDCCsymt.c (computeTypeOr): accept bits too
8964 (compareType): 2nd part of fix for bug #908454, needed for bitfields
8966 2004-03-07 Borut Razem <borut.razem AT siol.net>
8968 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
8970 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
8972 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
8973 version of pic16_genPackRegisters which does not check if ic is a
8975 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
8976 function cause string1.c regression test fails
8978 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8980 * sim/ucsim/configure.in,
8981 * sim/ucsim/configure,
8982 * sim/ucsim/doc/Makefile.in: use docdir
8983 * src/SDCC.y: fixed sbit atrributes
8984 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
8985 * src/SDCCast.c (decorateType): |^& need special promotion handling
8987 * src/SDCCsymt.h: moved definition of RESULT_TYPE
8988 * src/SDCCsymt.h (computeType),
8989 * src/SDCCicode.c: computeType() needs op
8990 * src/SDCCsymt.c (checkTypeSanity),
8991 * doc/sddman.lyx: "plain" bitfields are unsigned
8992 * src/SDCCsymt.c (computeTypeOr): added
8993 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
8995 * src/SDCCval.c (val*): computeType() needs op
8996 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
8997 * support/regression/tests/onebyte.c: added tests for |^&
8999 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9001 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9002 for writing icode into asm output.
9004 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9006 * src/pic16/device.c: added some debug lines enabled
9007 with macro DEBUG_CHECK,
9008 * src/pic16/genarith.c: more debug in genPlus,
9009 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9010 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9011 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9012 * (aopForSym): onStack symbols are re-placed in data memspace,
9013 and onStack flag is cleared,
9014 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9015 copy temporary pcodeop,
9016 * (genPcall): added warning for not updating PCLATU,
9017 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9018 always true for pic16 port,
9019 * (genMultOneWord): NEW, supports integer multiplication,
9020 * (genMult): modified to call genMultOneWord,
9021 * (ifxForOp): added warning when return NULL,
9022 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9023 flag is set before call to operandFromSymbol for implicit
9025 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9026 options.intlong_rent are set by default,
9027 * (_hasNativeMulFor): modified to allow port generation of integer
9029 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9030 set regtype to REG_SFR for all registers, restricting seting the
9031 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9033 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9035 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9036 more than 500 times in the regression tests
9038 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9040 * support/Util/SDCCerr.h,
9041 * support/Util/SDCCerr.c,
9042 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9044 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9045 for symbol conflicts.
9046 * support/valdiags/tests/enum.c,
9047 * support/valdiags/tests/tentdecl.c,
9048 * support/valdiags/tests/struct.c: expect possible error messages
9049 referring to original symbol definitions.
9050 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9052 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9054 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9056 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9058 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9060 * src/pic16/ralloc.c (newReg): fixed bug #908929
9062 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9064 * src/ds390/gen.c: added missing #include "main.h"
9066 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9068 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9069 checking if symbol is already in set,
9070 * src/pic16/device.h: prototype for checkAddSym,
9071 * src/pic16/gen.c: (_G): added entry interruptvector,
9072 * (assignResultValue): removed some commented out lines,
9073 * (genFunction): check for ISR via sym->type, absolute section for
9074 interrupt code is created via a new pBlock, the goto instruction is
9075 placed now correctly at the interrupt vector position, changed all
9076 references from ivec to _G.interruptvector,
9077 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9078 is the interrupt is a high priority one, same for return from ISR,
9079 * src/pic16/glue.c: changed all calls of addSetHead for publics and
9080 externs to calls of checkAddSym,
9081 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9082 pic16_pcode_verbose flag is set,
9083 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9084 * src/pic16/pcoderegs.c: message about how many registers are saved
9085 will only be emitted if pic16_pcode_verbose flag is set,
9087 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9089 * src/ds390/ralloc.h,
9090 * src/ds390/ralloc.c (ds390_regWithIdx),
9091 * src/ds390/gen.c (emitcode),
9093 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9094 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9095 ds390operandCompare, getRegsRead, getRegsWritten,
9096 initializeAsmLineNode): customized instruction size calculation for
9097 ds390, started basis for some register optimizations
9098 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9099 corresponding assembly output
9100 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9101 missing push/pop of r0/r1. Optimized push/pops
9103 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9105 * src/mcs51/main.c (instructionSize): fixed ACALL size
9106 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9108 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9110 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9111 the sorting of rlist with NULL elements
9112 * (print_idataType, print_idata): NEW to create idata sections
9113 * src/pic16/device.h: idataSymSet new variable
9114 * src/pic16/gen.c (genFunction): fixed some bugs in string
9115 comparing, improved the absolute section creation for ISRs,
9116 added FSR0L/FSR0H in registers that are saved in an ISR,
9117 * (genInline): fixed the processing of inline snippets,
9118 now they undergo no process by the peephole optimizer
9119 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9120 are placed in idataSymSet,
9121 * (pic16emitStaticSeg): extern symbols are added in externs,
9122 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9123 switching when aboslute variables are placed in access bank memory
9124 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9125 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9126 commented out with #if,
9127 * (pic16_packRegisters): reintroduce the check for CAST because some
9128 symbols are not correctly handled,
9129 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9130 pCodeInstruction instead of pCode,
9131 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9132 pCodeAsmDir definition,
9133 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9134 directive, then the argument directive is emitted without the leading
9135 tab, hack for inline labels which must be in the first column,
9136 * (compareLabel,pic16_findNextInstruction),
9137 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9138 * (insertBankSwitch): modified for the new pCodeAsmDir,
9140 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9141 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9143 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9145 * (pushSide): commented out with #if,
9146 * (assignResultValue): fixed some typos in saving
9148 * (genPcall): FIXED and sync'ed with genCall,
9149 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9150 * (genNearPointerGet): fixed to handle some more cases,
9151 implementation scheme via table reads,
9152 * (genConstPointerGet): modified to access code memory correct,
9153 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9154 and improved to handle some cases
9155 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9156 instead of "RETLW" for init data
9157 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9158 not IN_DIRSPACE, work around to reduce bank switching when aboslute
9159 variables are placed in access bank memory (<0x80 and >=0xf80),
9160 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9161 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9162 TBLWT_POSTDEC,TBLWT_PREINC
9163 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9164 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9166 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9167 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9168 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9169 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9171 2004-02-29 Borut Razem <borut.razem AT siol.net>
9173 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9174 support/Util/findme.h, support/Util/system.h: enhance binary relative
9175 search for lib and include by using findProgramPath()
9177 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9180 * src/SDCCpeeph.c (pcDistance),
9182 * src/mcs51/ralloc.h,
9183 * src/mcs51/ralloc.c (mcs51_regWithIdx),
9185 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9186 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9187 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9188 size calculation port specific, started basis for some register
9190 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9191 missing push/pop of r0/r1. Optimized push/pops
9192 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9193 * device/lib/_modsint.c (_modsint),
9194 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9195 and stack version so regression tests pass
9197 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9199 * src/Makefile.in (dep): include SLIBOBJS in dependency check
9200 * src/SDCCast.c (decorateType): catch another small optimization
9202 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9203 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9204 modified to finally use computeType() all over SDCC,
9205 see Feature Request #877103
9206 * src/SDCCval.h: cosmetic
9207 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9208 valCompare(); regression tested in muldiv.c
9209 * support/regression/tests/muldiv.c (testMod): mod sign follows
9212 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9214 * src/SDCCast.c (decorateType): fixed bug #902362
9215 * doc/INSTALL.txt: fixed install instructions for win32
9217 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9219 * device/include/Makefile.in (install): fixed by replacing spaces
9222 * doc/INSTALL.txt: updated for release
9223 * doc/sdccman.lyx: added warning for --xstack being buggy
9225 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9227 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
9228 to eliminate build warnings.
9229 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9231 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9232 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9234 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9235 removed -penable-stack, added comment for stack pragma, added
9236 warning for not initializing the stack/frame registers, removed
9237 comment at interrupts section
9239 Stack is made permanent, there is no ability to disable stack usage.
9240 * src/pic16/device.h,
9241 * src/pic16/device.c: removed all references to USE_STACK macro,
9242 * src/pic16/device.c (pic16_dump_section): when no elements in
9243 rlist, free rlist before return,
9244 * (pic16_dump_int_registers): NEW, internal registers are a new set
9245 of general purpose registers reused by each function,
9246 * (checkAddReg): returns 1 if registers is added to set,
9247 * (pic16_groupRegistersInSection): when a registers is of type
9248 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9249 * src/pic16/device.h: memRange and Assigned Memory are deleted,
9250 SRCASECMP macro is moved here from device.c
9251 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9252 PO_PCLATU, PO_PRODL, PO_PRODH,
9253 * (pic16_pCodeOpType, genMinus,
9254 changed compares to "a" register, with AOP_ACC,
9255 * (pic16_genPlus): fixed some bugs and indented properly,
9256 * (pic16_addSign): changed size to size+offset in the MOVWF
9258 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9259 multiply 8-bit operand by literal, result is 8-bit,
9260 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9261 multiply 2 8-bit operand, result is 8-bit,
9262 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9264 * src/pic16/gen.c: changed accUse to contain WREG only,
9265 * (pic16_emitcomment): renamed to pic16_emitpcomment,
9266 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9267 true, do not use immediate addressing any more unless sym is a
9268 pointer in codespace,
9269 * (aopForRemat): do not use immediate addressing when symbol not in
9270 codespace and when symbol's address is requested,
9271 * (aopOp): for-loop in if(sym->accUse) is modified for the new
9273 * (aopGet): added case for AOP_ACC and don't return "accumulator
9274 bug" but WREG instead,
9275 * (popGetTempReg): pushes contents of temporary register in stack,
9276 * (popReleaseTempReg): pops contents of temporary register from
9277 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9278 * (pic16_popGet): separated case AOP_ACC to return register WREG
9279 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9280 or PO_IMMEDIATE and initializes their instance/offset appropriately,
9281 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9282 the use of immediate pointers to certain cases only.
9284 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9285 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9286 * (assignResultValue, genCall, genRet): modified to use the new
9287 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9288 genPcall is still broken,
9289 * (genFunction): added code to create 'A' type pBlocks when
9290 interrupt functions are generated, code not extensively tested yet,
9291 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9292 * (genEndFunction): modified so ISRs pop stored registers from stack,
9293 * (genMultOneByte): cleanup,
9294 * (AccRsh): added flag andmask, to and result with appropriate mask,
9295 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9296 * (genDataPointerGet): fixed and reenabled its use,
9297 * (genNearDataPointerGet): bugs fixed,
9298 * (genDataPointerSet): bugs fixed,
9299 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9300 pic16_DumpSymbol, pic16_DumpOp,
9301 * src/pic16/genutils.h: function prototypes for the above functions,
9302 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9304 * (pic16emitRegularMap): many many many improvements, but needs a
9306 * src/pic16/main.c: enable_stack in pic16_options is removed,
9307 * (_pic16_parseOptions): removed command line options -penable-stack,
9308 * (_process_pragma): emit stack symbol only when stack pragma is
9310 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9311 redirected to FSR0L/FSR0H pair,
9312 * (pic16_get_op, pic16_get_op2): modifications and improvements,
9313 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9314 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9316 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9317 * (dumpPicOptype): NEW,
9318 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9319 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9320 with movff instruction,
9321 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9322 added pic16_int_regs, some packRegsFor* functions are commented out,
9323 because produce errors,
9324 * src/pic16/NOTES: minor modifications
9326 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9328 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9329 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9331 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9332 * as/mcs51/lkaomf51.c: fixed bug #895763
9334 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9336 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9338 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9340 * doc/sdccman.lyx: added details about the HC08 storage classes and
9341 interrupts, fixed the register usage info for z80 & gbz80
9343 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9345 * doc/sdccman.lyx: added more pic16 port documentation
9346 * device/include/pic16/: added header pic18fregs.h
9348 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9350 * doc/sdccman.lyx: added Vangelis' contribution
9352 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9354 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9355 extend to the next CALL or PCALL, not just to the next CALL.
9357 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9359 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9361 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9363 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9364 bug #895752 and a better fix for bug #716790
9366 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9368 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9370 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9372 * doc/sdccman.lyx: minor changes, minor changed
9374 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9376 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9377 which can't handle SDCC_NEWONEBYTEOPS,
9378 (geniCodeMultiply): removed conversion from mult to shift for pic14
9381 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9384 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9385 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9386 thus fixing bug #895406
9388 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9390 * device/lib/_modsint.c,
9391 * device/lib/_modslong.c: sign follows divisor only
9392 * src/hc08/gen.c (genMultOneByte): if result size is 1,
9393 signs or signedness can be ignored
9394 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9395 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9396 added optimization for IFX,
9397 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9399 reenabled optimization for IFX, which was removed on 2004-01-11
9400 * src/SDCCast.h: added return type IFX
9401 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9402 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9403 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9404 SDCC_OLDONEBYTEOPS selects the old behaviour
9405 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9406 changed again and commented promotion rule
9407 * src/SDCCval.c (valDiv): promotion no longer necessary
9408 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9409 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9411 * support/regression/tests/onebyte.c: added
9413 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9415 * gen.c (genInline): reverted to old code for assemnling inline
9416 code because of bug reported James Chadd
9418 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9420 * ralloc.h: missing declarations from previous patch,
9421 seems that patch for ralloc.h was never applied, fixed
9423 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9424 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9428 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9429 indirect addressing. Marked FSR0 as deprecated
9430 * gen.c (pointerCode): commented out, not needed now
9431 (pic16_popGet2p): new MOVFF helper function
9433 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9434 (shiftRLong): removed duplicate debugging info
9436 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9438 * src/ds390/gen.c (genNearPointerGet),
9439 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9440 optimization with bits, but not bitfields.
9441 * src/ds390/ralloc.c (packRegisters),
9442 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9444 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9446 * src/SDCCcse.c (algebraicOpts): copy operands before modification
9448 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9451 * src/SDCCicode.c (operandFromSymbol),
9452 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9453 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9454 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9455 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9456 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9457 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9459 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9460 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9461 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9462 * src/SDCCsymt.c (newSymbol),
9463 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9466 * src/SDCCval.c (newiList): fixed bug #885705
9468 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9470 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9471 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9473 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9475 * device/include/c8051f120.h,
9476 * device/include/c8051f300.h,
9477 * device/include/c8051f310.h: added/updated header files for Silicon
9478 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9479 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9480 in new section Submitting patches
9482 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9484 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9485 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9486 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9488 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9489 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9490 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9492 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9493 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9494 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9496 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9497 genFarPointerGet, genCodePointerGet, genGenPointerGet,
9498 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9499 genGenPointerSet): fixed bug #892400
9500 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9501 to eliminate build warnings.
9502 * src/SDCCast.c (processParms),
9503 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9505 * support/valdiag/valdiag.py: added GCC to the list of defines active
9506 when compiling with gcc
9508 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9510 * support/Util/SDCCerr.h,
9511 * support/Util/SDCCerr.c,
9512 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9513 with an incomplete type (fixed bug #883734)
9514 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9516 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9518 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9520 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9522 * src/SDCCast.c (decorateType),
9523 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9524 function pointer implementation
9525 * support/regression/tests/funptrs.c: added tests to verify both forms
9526 of function pointers work correctly. Added tests to verify parameters
9527 are passed in the correct order.
9529 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
9531 * device.c (regCompare): registers are sorted by ascending
9532 address and increasing size,
9533 * main.c (_pic16_finaliseOptions): removed the declaration
9534 of compiler macro MCU. Now a macro of the format pic18fxxxx
9535 will be defined from the command line
9537 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9538 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9540 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9541 PCOP_RLCF was overwritten!
9542 * gen.c (genSkip): commented out calls to pic16_emitcode,
9543 * (genCmpEQ): fixed "long" compares, only high word did get compared,
9545 * (genRRC): added debugging info,
9546 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9547 overwritten while shifting,
9548 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9549 overwritten while shifting,
9552 * (shiftLLeftOrResult),
9553 * (shiftRLeftOrResult),
9555 * (shiftLLong): Implemented with pic16_emitpcode
9556 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9557 * (genLeftShift): Fixed bug, operand for shift by variable always
9558 was "and"ed with 0x0f,
9559 * (genLeftShiftLiteral),
9561 * (genRightShiftLiteral): added debugging info,
9562 * (genrshFour): added comment,
9563 * (genRightShift): determined signedness from operand "left"
9566 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9568 * src/SDCCicode.c (geniCodeParms),
9569 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9570 function pointers, fixed function pointer bugs #861242 and #861896
9572 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9574 * device/include/c8051f000.h,
9575 * device/include/c8051f120.h,
9576 * device/include/c8051f300.h: added header files for Silicon
9577 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9579 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9581 * src/SDCCast.c (processParams): added new type flow and restructured
9582 (gatherAutoInit): added new type flow
9583 (addCast): cosmetic changes
9584 (getLeftResultType): added new type flow for array indices, patch
9585 provided by Stas, see FR #877103
9586 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9587 array index patch by Stas
9588 * src/SDCCast.h: added prototype getResultTypeFromType()
9590 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9591 * src/pic/glue.c (pic14emitStaticSeg),
9592 * src/pic16/glue.c (pic16emitStaticSeg),
9593 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9594 for initialization of symbols
9595 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9596 * support/Util/SDCCerr.h:
9597 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9598 * .version: bumped version number to 2.3.8
9599 * device/include/Makefile.in (install),
9600 * doc/Makefile (install): changed to 'rm `find ...`' construct to
9603 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9605 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9606 Slade Rich fixed an optimization bug
9607 * src/pic/pcodepeep.c,
9608 * src/pic/pcoderegs.c
9609 * doc/Makefile (install): added test for directory
9611 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9613 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9614 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9615 * src/pic/ralloc.c (getRegPtr, getRegGpr),
9616 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9617 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9618 * as/mcs51/asexpr.c (term),
9619 * as/hc08/asexpr.c (term): fixed bug #887146
9621 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9623 * src/z80/gen.c (genMult): handle single byte result product
9624 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
9625 DUMMY_READ_VOLATILE (fixed bug #886367)
9627 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9629 * support/regression/tests/libmullong.c: fixed logic, on little endian
9630 hosts we ended without a mullong_wrapper()
9632 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9634 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
9635 virus/worm forged address usage.
9637 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9639 Fixed promotion, it should be done on AST level:
9640 * src/SDCCast.c (addCast): added promotion to int
9641 (decorateType): updated call to upCast()
9642 * src/SDCCicode.c (geniCodeLeftShift): removed call to
9643 usualUnaryConversions()
9645 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
9647 * support/regression/tests/literalop.c (mulWrapper): Added a
9648 wrapper to remove integer overflow warnings.
9650 * support/regression/tests/float_trans.c: Made work on host.
9652 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
9655 * support/regression/generate-cases.py (main): Changed from inline
9658 * doc/Makefile (install): Changed to depth first to get rid of
9659 missing directory install warning.
9661 * as/Makefile (install-doc): Made work on Mac.
9663 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
9665 * src/SDCCast.c: added an additional type flow in decorateType() of
9666 opposite direction, see feature request #860006; it's enabled at runtime
9667 by setting the environment variable SDCC_NEWTYPEFLOW
9668 * src/SDCCast.h: changed prototype of decorateType()
9669 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
9670 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
9671 'char' to 'int' can be omitted, if both operands are 'unsigned char';
9672 see feature request #877103
9673 * src/SDCCval.c: updated call of decorateType()
9674 (valBitwise): fixed bug #882876
9675 (valMinus): added promotion
9676 (valLogicAndOr): result is unsigned
9677 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
9678 * src/SDCCsymt.c (computeType),
9679 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
9680 must not cause an unsigned operation
9681 * src/pic/glue (pic14emitRegularMap),
9682 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
9684 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
9686 * src/pic/pcode.c (PCodeID): commented out left over debug code
9688 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
9690 * support/valdiag/tests/overflow.c: added shift tests
9698 * src/pic/pcodepeep.c,
9699 * src/pic/pcoderegs.c,
9701 * src/pic/ralloc.h: applied patch from Slade Rich;
9702 added support for multiple code pages and multiple RAM banks on the
9703 PIC 14 port. The ASM files now no longer simply assume all the
9704 code / RAM are in the same page / bank. This means the linker can
9705 safely allocate code/RAM of separate ASM files to different pages/banks.
9706 * doc/sdccman.lyx: added Slade's tips
9707 * src/mcs51/peeph.def: fixed bug #880768
9709 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9711 * src/hc08/ralloc.c (rematStr): fixed bug #879282
9712 * src/SDCCast.c (decorateType): fixed bug #880197
9714 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
9716 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
9719 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
9720 strtof is not part of C89 and isn't included with Mac OS X.
9722 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9724 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
9725 shiftL2Left2Result): fixed bug #879326
9726 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
9727 (genMultOneByte): fixed bug in signed vs unsigned multiplication
9728 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
9729 address fetch for clr instruction
9730 * device/lib/hc08/_mulint.c: created optimized assembly version
9731 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
9733 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9735 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
9736 proposed in FR #877103
9738 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
9740 * src/SDCCval.c (cheapestVal): added missing checks
9741 * src/SDCCicode.c (usualBinaryConversions): fixed condition
9742 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
9744 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
9746 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
9749 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
9751 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
9752 loaded with the linker search paths (-L arguments) and the libraries
9753 to be linked with the current source (-l arguments). Changes
9754 currently will affect only the pic16 port.
9755 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
9756 include path the port specific paths and port specific libraries,
9757 * gplink command now contains the $3 argument,
9758 * src/pic16/device.h,
9759 * src/pic16/device.c,: structure PIC_device is made public and
9760 renamed to PIC16_device, the same for variable Pics which is renamed
9761 to Pics16. Updated all references to them.
9762 * src/pic16/glue.c (pic16glue): corrected bug with code
9763 initialization which bypassed the variable initializations block.
9765 * device/lib/pic16/Makefile.rules: removed --penable-stack from
9766 COMPILE_FLAGS and added the --nostdinc option
9768 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9770 * device/include/mc68hc908jb8.h: Register defs for another member
9771 of the hc08 family. Contributed by Bjorn Bringert - thanks!
9773 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
9775 Documenting changes from previous commits.
9776 * configure.in (version 1.56),
9777 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
9778 when generating output files to configure the pic16 library,
9779 but now I've commented it out, since gputils aren't installed in the
9780 SF compile farm, so library won't compile
9782 * device/lib/Makefile.in (version 1.56): initially I've added in
9783 target 'all' the prerequestive 'model-pic16' so it compiled the
9784 pic16 library, but now I've commented it out for the same reasons
9786 * added targets 'model-pic16' and 'objects-pic16' to compile the
9788 * added target 'port-specific-objects-pic16' to handle the
9789 generated libraries and copy them into the build/ directory
9790 * added target 'clean-intermediate-pic16' to clean intermediate
9791 files into pic16 directory
9792 * in target 'installdirs' added line to create directory pic16 in
9793 the installation path
9795 * device/include/Makefile.in (version 1.11): in target 'install'
9796 added lines to copy all header files to installation path,
9797 * in target 'installdirs' added line create directory for pic16
9798 headers in the installation path
9800 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
9802 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
9805 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9808 * device/lib/configure.in,
9809 * device/lib/configure: fixed for autoconf 2.57
9811 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9813 * src/z80/main.c (_parseOptions): fixed the portmode= command line
9814 option so that it actually works. Made it specific to the z80, since
9815 the gbz80 doesn't have these kinds of I/O ports.
9817 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9819 * device/include/z180.h,
9820 * device/lib/_memcpy.c,
9821 * device/lib/_memmove.c,
9822 * device/lib/_mulint.c,
9823 * device/lib/ser_ir.c,
9824 * device/lib/ser_ir_cts_rts.c,
9825 * device/lib/_strcmp.c,
9826 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
9827 * src/z80/main.c (_process_pragma): add support for pragmas bank and
9828 portmode; added deprecation warning for bank= and protmode= forms.
9829 Also, guard against buffer overflow.
9830 * src/z80/gen.c (aopGet): generate better code for sfr banked read
9832 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9834 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
9835 changed interrupt vector table generation to only emit declared vectors.
9836 * device/include/Makefile.in: added missing backslash
9837 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
9839 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9841 Mainly changes to support compilation of the device libraries
9842 * src/pic16/device.c: stack is allocated via symbol and not
9843 via literal number. The symbol is placed in the corresponding
9844 position of the data ram
9845 * (pic16_dump_section): relocatable and absolute uninitialized
9846 data are now emitted in sorted order to reduce section naming,
9847 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
9848 weren't marked as being in the access bank,
9850 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9852 Added portion of GNU PIC Library under the directory
9853 device/include/pic16 and device/lib/pic16. These files
9854 contain the declarations of SFRs for the PIC18Fxx2 devices.
9855 The directory is initialized via configure from toplevel.
9857 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
9859 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
9860 the spilllocations to be compared correctly
9862 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9864 * src/SDCCast.c (decorateType): fixed bug introduced today
9866 2004-01-12 Borut Razem <borut.razem AT siol.net>
9868 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
9869 doc/sdccman.lyx: upper case pragmas are deprecated
9871 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9873 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
9874 in simpler and even better code
9876 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9878 * src/SDCCicode.c (operandOperation): fixed bug #874819
9879 * src/SDCCast.c (decorateType): fixed
9880 char foo (unsigned long ul) { return ul > 0; }
9882 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9884 * doc/sdccman.lyx: Moved and added some sections, small changes
9885 all over. Telling LaTeX to be less strict with word spacing
9886 to better keep the right margin. Changed some notes about
9887 maintainance of the ports in section 3.2.1 - is it OK like this?
9889 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9891 SDCC source changes:
9892 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
9893 convilong): modified to inform the pic16 port that builtin functions
9896 PIC16 PORT specific changes:
9897 * src/pic16/device.c pic16_dump_equates() added,
9898 processor registers declared internally by the port are emitted in
9899 the translation as equates,
9900 * src/pic16/gen.c: inline code is passed unprocessed to the
9902 * (pic16_popGetLit2): fnuction modified to take second operand as
9903 pCodeOp pointer and not as literal,
9904 * (popRegFromIdx): prefixed with pic16_,
9905 * (pic16_popCombine2): modified to receive already allocated pCode
9907 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
9908 * (genFunction): initializes local stack frame and pushes on stack
9909 all the registers used by this function,
9910 * (genEndFunction): restores all registers from stack and restores
9912 * src/pic16/glue.c (pic16emitRegularMap): various changes and
9914 * (pic16glue): changed the program startup sequence,
9915 * added new dbName code 'A' for functions placed in absolute section
9916 * src/pic16/main.c: added function attribute _naked,
9917 * added pragma 'code' to place a fnuction at an absolute address,
9918 * added command line arguments --debug-ralloc and --pcode-verbose,
9919 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
9920 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
9921 * (pic16_newpCodeOpLit2): modified to take the second operand as
9923 * (pic16_printpBlock): modified to emit each function in a separate
9925 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
9926 UPPER for immediate operands,
9927 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
9929 * src/pic16/peeph.def: all peepholes with movff are commented out,
9930 because there is a problem in the pcode peep optimizer,
9931 * src/pic16/ralloc.c: the register allocator can now reuse local
9932 function symbols for another function. This saves register usage.
9933 * src/pic16/ralloc.h: added flag isLocal in structure regs,
9935 Added file src/pic16/NOTES with information about program writing on
9936 the current port version.
9938 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9940 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
9941 and peephole 252 (array access)
9943 2004-01-09 Borut Razem <borut.razem AT siol.net>
9945 * src/SDCCmain.c : fixed #872250: -l command line defined library
9946 files are scanned before standard library files
9948 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9950 * src/SDCCast.c (decorateType): fixed bug #874046
9952 2004-01-09 Borut Razem <borut.razem AT siol.net>
9954 * support/scripts/sdcc.nsi: remove previous installation
9956 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9958 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
9959 bytes for last interrupt vector (mcs51)
9960 * sdcc.spec: fixed typo
9962 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9964 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
9965 gen51Code): more efficient parameter receive for --model-large
9968 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9971 * src/z80/main.c: added missed needLinkerScript flags (more than
9972 one port structure defined in these file)
9973 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
9976 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
9978 * src/SDCCmain.c: removed various references to DEFAULT_PORT
9979 * src/port.h: added flag needLinkerScript in port->linker
9980 structure to inform whether to create a .lnk file or not,
9988 * src/z80/main.c: changed appropriately to configure
9989 needLinkerScript flag
9991 * src/pic16/gen.c (genAddrOf): fixed bug #863624
9992 * src/pic/glue.c: added variable udata_section_name to
9993 override default uninitialized data segment definition for
9994 devices only with SHAREBANK memory (reported from Erik Epetrich)
9995 * (pic14emitOverlay): modified to emit a commented overlay segment
9996 directive when no overlay data exist
9997 * (picglue): modified to emit uninitialized data segment
9998 according to udata_section_name
9999 * src/pic/main.c (_pic14_parseOptions): added command line
10000 options --udata-section-name=[name] to override default
10001 udata definition name
10002 * modified _linkCmd and _asmCmd to include compiler passed
10003 arguments via -W option
10004 * src/pic16/main.c: added $l in _asmCmd, changed extension for
10005 object file from '.rel' to '.o' in port->linker structure,
10006 changed size of fptr from 2 to 3 in port structure
10008 2004-01-07 Borut Razem <borut.razem AT siol.net>
10010 * support/scripts/sdcc.nsi: update PATH
10011 * support/scripts/sdcc.ico: craeted
10013 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10015 * device/include/Makefile.in: fix install
10016 * doc/Makefile: fix install
10018 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10020 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10022 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10023 how the function variable allocation summary is displayed; also
10024 include information about variables allocated to the overlay
10027 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10029 * as/mcs51/lkmain.c: Help about -Y option
10030 * as/mcs51/lkarea.c: Fixed gcc warnings
10032 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10034 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10036 * support/valdiag/tests/overflow.c: added
10037 * src/SDCCast.c (decorateType),
10038 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10039 LEFT_OP (left shift)
10041 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10043 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10044 (default behaviour).
10046 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10048 A python script to validate compiler diagnostic messages. It can be
10049 used to verify that sdcc complains about bad c source code and
10050 gives a good location of the error.
10051 * support/valdiag/Makefile,
10052 * support/valdiag/valdiag.py,
10053 * support/valdiag/tests/*
10055 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10057 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10058 * src/SDCCsymt.c (newEnumType),
10060 * support/Util/SDCCerr.c,
10061 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10063 * support/regression/tests/enum.c: added test for enum values that
10064 require at least 2 bytes of storage.
10066 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10068 * src/common.h: added ifndef/define/endif macros
10069 around the header file.
10070 Bug reported from Jesus Calvino-Fraga
10072 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10074 * sdcc.spec: updated
10075 * device/include/Makefile.in: don't install CVS directories
10076 * device/lib/Makefile.in: added removal of CVS directories after install
10077 * doc/Makefile: fixed install, added local_icons
10078 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10079 * src/mcs51/gen.c (genRightShift): fixed bug #870788
10080 * src/ds390/gen.c (genRightShift): fixed bug #870788
10081 * src/SDCCast.c (decorateType): fixed bug #870781
10083 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10085 PIC16 port related changes:
10086 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10087 added variable stackPos,
10089 * gen.c: genCall, assignResultValue: added support for
10090 pushing/retrieving function parameters to/from stack,
10091 genFunction,genEndFunction: setup stack frame for the
10092 generated function,
10093 genAddrOf: will be changed according to bug 863624
10095 * added files genutils.c and genutils.h which contain gen*
10096 debugged and optimised functions extracted from gen.c
10098 * glue.c: added variable 'externs' which holds extern symbols,
10099 pic16emitRegularMap: is modified to properly handle relocatable
10100 symbols under the new scheme,
10101 pic16createInterruptVect: is modified
10102 pic16printPublics: is modified to emit 'global' assembler directives,
10103 added pic16_printExterns to print extern symbols,
10104 pic16glue: initializes stack/frame pointer in the beginning of
10105 the assembly output. Temporary hack, will be corrected later,
10106 because gplink yet does not support stack and SDCC does not
10107 yet support a type of crt0.o object to create the final binary.
10109 * Removed many lines that contain 8051 legacy code.
10110 * The code is finally placed under a 'code' directive.
10111 * Added port specific options.
10113 * _process_pragma: simplified since now we do not need *special*
10114 include file to define SFR registers. But a separate header
10115 will be needed. This will be developed later.
10116 * _pic16_parseOptions: added, parses port specific options:
10117 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10118 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10119 --preplace-udata-with=
10121 * _pic16_setDefaultOptions: modified to initialize section names,
10122 but hack is temporarly out of order since it needs improvement.
10123 * _pic16_genAssemblerPreamble: configuration words are emitted by
10124 their address instead of their name. This part is incomplete and
10125 supports only the 18Fxx2 devices. Other devices will emit an error
10126 during assembly since they do not contain the same set of config
10128 * _pic16_genIVT: is modified,
10130 * pcode.c: added definitions for some hardware registers that are needed
10132 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10133 All PCI entries are updated. Now LFSR is supported.
10134 * Removed pic16_pciTRIS is mentioned by mdubuc in source
10135 * added pic16_newpCodeOpLit2 to support instructions with
10136 two literal arguments
10137 * pic16_pCode2str: corrected code that emits assembler instructions
10138 with two literal operands and those that have an access bit modifier
10139 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10140 this fixes a bug which caused some labels to be lost, when an
10141 assembler directive was added, i.e. banksel,
10142 * pic16_FixRegisterBanking: improved logic that causes the insertion
10144 * InlineFunction: functions that are called once, are not any more
10145 inlined. This can be a port option in the future,
10147 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10149 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10150 hold the corresponding uninitialized symbols,
10151 * pic16_allocProcessorRegister: registers have explicit marked the
10153 * pic16_allocInternalRegister: registers are explicit marked as
10155 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10156 processing list, so bit registers were lost,
10159 * ralloc.h: added field 'accessBank' and original symbol operand
10160 in register definition,
10161 * removed the field isMapped from register definition,
10163 ** Several functions have been removed from various sources:
10164 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10165 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10166 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10167 pic16_assignRelocatableRegisters
10169 ** others have been introduced:
10170 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10171 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10173 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10175 * support/scripts/inc2h.pl: changed definition of BIT_AT
10176 to emit 'sbit at' instead of 'bit at'. This was a request.
10178 PIC16 port related preliminary changes:
10179 * gen.c: prefixed function popRegFromString with
10180 pic16_ and all references to it corrected
10181 * pcode.c: all pic16_pc_* hardware registers prefixed
10182 with underscore (_),
10183 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10184 * ralloc.c: newReg(): when register is REG_SFR then
10185 set address to rIdx,
10186 pic16_allocProcessorRegister(): marks register wasUsed=0
10187 pic16_writeUsedRegs(): added a call to assign processor
10188 registers via pic16_assignFixedRegisters
10190 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10192 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10193 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10194 variables in unused register banks. Also the SSEG is placed
10195 wherever there is enough space for it, and IDATA can be anywhere
10196 in internal RAM. For now compile using -Wl-Y[stack_size].
10197 The mem file is different for this option as well, since it
10198 makes no sense of talking about DSEG lenght.
10200 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10202 * src/SDCClrange.c: fixed bug 869095 that caused segfault
10203 in certain cases, e.g. when ROM assignment, patch provided
10204 from Albert den Haan.
10206 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10208 Many signedness and type propagation fixes:
10209 * src/SDCCicode.c: made geniCodeCast() static
10210 replaced SPEC_ by IS_ (cosmetic)
10211 (operandOperation): fixed div and mod operation
10212 (usualBinaryConversions): added support for promotion of char
10213 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10214 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10215 (geniCodeAdd): an array index will stay unsigned, even if promoted
10217 (geniCodeArray): ditto
10218 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10219 * src/SDCCsymt.c (computeType): added more support for char;
10220 promotion of char is selectable by promoteCharToInt, fixed signedness
10222 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10223 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10224 * src/SDCCval (val*): replaced signedness calculation by
10226 rearranged if-branches (cosmetic)
10227 (valShift): added warning W_SHIFT_CHANGED
10228 (valCompare): fixed problem with different types
10229 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10230 * support/regression/tests/literalop.c: added many cases
10231 * support/regression/tests/ast_constant_folding.c: changed finally to
10233 * .version: new year, new version: 2.3.7
10234 * src/SDCCmain.c (main): applied patch #866468
10235 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10236 provided by Scott Bronson
10237 * doc/sdccman.lyx: updated documentation for sdcdb
10238 updated and added chapter tips
10240 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10242 * src/SDCCsymt.h: missing from yesterday's commits
10244 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10246 * src/SDCC.y (struct_or_union_specifier),
10247 * support/Util/SDCCerr.c,
10248 * support/Util/SDCCerr.h: verify that struct & union tags are used
10251 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10253 * src/SDCCglobl.h: missing from yesterday's commits
10255 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10257 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10258 sft_attributes, struct_declaration, parameter_declaration,
10259 type_name, start_block, declaration_list),
10260 * src/SDCC.lex (check_type): support redefinition of typedef names
10262 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10264 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10265 aligned xdata arrays. Erik helped me with the if clause.
10267 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10269 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10272 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10275 * src/SDCCast.c (newAst_),
10277 * src/SDCCicode.c (ast2iCode, newiCode),
10279 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10280 expr, statement, expression_statement, selection_statement,
10281 iteration_statement, expr_opt, jump_statement): foundation for tracking
10283 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10286 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10288 * support/Util/SDCCerr.c,
10290 * src/SDCCast.c (createCase, createDefault, decorateType),
10291 * src/SDCClabel.c (labelUnreach),
10292 * src/SDCC.y (labeled_statement, jump_statement): More improvements
10294 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10295 (with thanks to Stas Sergeev)
10296 * device/include/time.h,
10297 * device/lib/time.c (CheckTime): suppress unreachable code warning
10299 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10301 * src/SDCCast.c (createIvalCharPtr),
10302 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10304 * support/regression/tests/nullstring.c: tests for these two bugs
10306 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10308 * support/Util/SDCCerr.h,
10309 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10310 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10311 about storage class and 'at' used inside struct or union
10312 * src/SDCCBBlock.c (iCodeFromeBBlock),
10313 * src/SDCCcse.c (ifxOptimize),
10314 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10315 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10316 printIval, emitStaticSeg, emitOverlay),
10317 * src/SDCClabel.c (deleteIfx),
10318 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10319 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10320 gatherAutoInit, processParms),
10321 * support/Util/SDCCerr.h,
10322 * support/Util/SDCCerr.c (werrorfl): Support for better error location
10323 reporting for post-parse errors.
10325 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10327 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10328 implicit casts via union; they don't work on big endian systems
10329 (possible fix for bug #861138)
10331 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10333 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10334 * src/mcs51/main.c: fixed the fix for bug #737001
10336 2003-12-15 Borut Razem <borut.razem AT siol.net>
10338 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10340 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10342 * support/makebin/makebin.c: put output in binary mode
10344 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10346 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10347 xdata and data memory on startup. Set the environment variable
10348 SDCC_NOGENRAMCLEAR to disable this.
10349 * src/mcs51/peephole.def,
10350 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10351 (allows non-interrupt and interrupt code to safely compete for a resource
10352 without the non-interrupt code having to disable interrupts)
10354 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10356 * src/SDCCicode.c (geniCodeAdd),
10357 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10358 with valFromType if type might be a pointer and host is big endian).
10359 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10360 types, not just integer types.
10361 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10362 multiply defined with mismatching "at" address.
10364 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10366 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10367 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10368 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10369 with embedded nulls (fixed bug #753752)
10371 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10373 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10374 Apparently this did not see much testing (endless loop)
10376 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10378 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10380 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10382 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10383 gracefully handle NULL memmap pointers
10385 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10387 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10388 instead of deleting the iCode when an operand is volatile
10389 * src/z80/gen.c (genDummyRead),
10390 * src/mcs51/gen.c (genDummyRead),
10391 * src/ds390/gen.c (genDummyRead),
10392 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10394 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10395 * src/SDCC.y: fixed bug #850420
10397 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10399 Applied z80 i/o port patch from Peter Townson and fixed some operators
10400 to better handle operands in A register.
10401 * device/include/z180.h
10407 * src/z80/peeph-z80.def
10408 * src/z80/peeph.def
10411 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10413 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10415 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10417 * device/lib/hc08/_mullong.c: Removed extra #endif
10419 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10421 * sim/ucsim/hc08.src/inst.cc,
10422 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10423 carries from x to h
10424 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10425 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10426 * device/include/stdarg.h: fixed varargs for hc08
10427 * device/lib/Makefile.in,
10428 * device/lib/hc08/Makefile,
10429 * device/lib/hc08/_mulint.c,
10430 * device/lib/hc08/_mullong.c: fixed some endian problems
10432 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10434 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10435 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10436 * device/lib/_gptrget.c,
10437 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10439 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10441 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10442 * src/SDCCast.c (astErrors): fixed bug #846007
10443 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10445 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10447 * src/SDCCast.c (decorateType): disabled a transformation I added in
10448 revision 1.188 (access to fields of a structure at an absolute address);
10449 it breaks with bitfields, extern declarations, and gcse analysis.
10450 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10451 could be assigned through a pointer, so don't complain.
10452 * src/SDCCast.c (astErrors),
10454 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10456 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10458 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10459 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10460 output of __config directives, since gpasm now supports them
10461 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10462 pre-processor macro, i.e. -DMCU=p18f452
10463 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10464 and modified to handle 'cast' icode similarly to '=' icode
10465 * src/pic16/device.h (typedef struct PIC_device): added field
10466 'extMIface' to indicate that chip has external memory interface
10467 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10468 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10471 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10473 * src/SDCC.y (pointer): fixed bug #846006
10474 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10475 * src/SDCCast.c (decorateType): fixed bug #846009
10476 * src/ds390/peeph.def,
10477 * src/ds390/gen.c (genAnd, genOr),
10478 * src/mcs51/peeph.def,
10479 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10481 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10483 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10490 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10494 * src/SDCCbitv.c: added function to free a bitvector
10495 * src/SDCClrange.h,
10496 * src/SDCClrange.c: added function to recompute the liveranges
10497 * src/avr/ralloc.c,
10498 * src/ds390/ralloc.c,
10499 * src/hc08/ralloc.c,
10500 * src/mcs51/ralloc.c,
10501 * src/pic/ralloc.c,
10502 * src/pic16/ralloc.c,
10503 * src/xa51/ralloc.c,
10504 * src/z80/ralloc.c: recompute the liveranges after register packing
10506 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10508 * src/SDCCloop.c (newInduction): fixed bug #845630
10510 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10512 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10513 inadvertantly left behind from my 2003-11-12 change
10515 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10517 Updated headers I neglected to commit yesterday.
10518 * src/SDCClrange.h,
10521 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10523 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10524 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10525 * src/SDCCopt.c (eBBlockFromiCode),
10526 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10527 the creation of the key hash table from the sequencing so it can be used
10528 earlier (for some GCSE bug fixes still pending)
10530 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10532 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10533 * support/regression/tests/addsub.c: testing genPlus shortcut
10535 2003-11-15 Borut Razem <borut.razem AT siol.net>
10537 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10539 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10541 * src/SDCCcse.c (cseBBlock): fixed bug #527779
10542 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10543 ordering is immaterial.
10544 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10546 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10548 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10549 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10550 (SIGSEV) of bug #840381
10551 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10552 unlink new file before rename if new and old filenames are the same)
10554 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10556 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10557 uninitialized variables) for the mcs51. Set environment variable
10558 SDCC_GENRAMCLEAR to test.
10559 xdata initialization slightly shorter
10561 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10564 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10565 #838241 & 780691 (basicly the same bug)
10566 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10567 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10569 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10571 * src/SDCCmain.c (linkEdit): "fix" #834252
10573 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10575 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10577 * src/SDCC.y: fixed bug #819403
10579 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10581 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10582 the reentrant attribute.
10583 * src/hc08/gen.c (genPackBits): added missing stack readjustment
10584 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10586 * src/SDCCast.c (decorateType): fixed bug with storage class not being
10587 updated during pointer dereference; f.e. ~(((char *)1)*) was being
10588 erroneously reduced to a literal.
10589 * src/hc08/ralloc.c (packRegisters, rematStr),
10590 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10593 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10595 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10596 * doc/sdccman.lyx: changed from 'article' to 'book'
10597 * doc/Makefile: readded test_suite_spec and cdbfileformat
10599 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10601 * device/include/stdlib.h: include malloc.h to comply with ANSI
10602 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10604 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10606 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10607 * doc/clean.mk: also remove *.out files
10608 * doc/sdccman.lyx: some additions, larger top/bottom margins
10610 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10612 * src/SDCC.y: fixed bug #837365
10613 * support/regression/tests/bitopcse.c
10614 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10615 a symbol (might be valop instead)
10616 * device/lib/Makefile.in: added errno.c to HC08SOURCES
10617 * device/lib/clean.mk: added hc08 to the cleaning list
10619 2003-11-04 Borut Razem <borut.razem AT siol.net>
10621 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
10623 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10624 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
10625 malloc is declared in standard stdlib.h
10627 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10629 * device/lib/hc08/Makefile: need to clean .rel not .o files
10630 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
10632 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10636 * src/mcs51/main.c,
10637 * src/ds390/main.c,
10641 * src/pic16/main.c,
10642 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
10643 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
10644 tests (which uses the port's oclsExpense function)
10650 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
10652 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10654 * src/SDCCcse.c (ifxOptimize),
10655 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
10656 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
10657 deleting the IFX iCode.
10658 * src/hc08/ralloc.c: reduced unneeded slocs
10659 * src/hc08/gen.c: fixed bug in asmopToBoolean
10661 2003-11-04 Borut Razem <borut.razem AT siol.net>
10663 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
10664 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10665 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
10666 transferred to configure
10668 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
10670 Use headers defined in the C[++] standards:
10671 * sim/ucsim/gui.src/serio.src/fileio.cc
10672 * sim/ucsim/gui.src/serio.src/frontend.cc
10673 * sim/ucsim/gui.src/serio.src/main.cc
10674 * sim/ucsim/gui.src/serio.src/posix_signal.cc
10675 * support/Util/NewAlloc.c
10677 * as/mcs51/lklibr.c
10681 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10683 * Added MSVC projects for hc08 assembler and linker:
10684 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
10685 /as/hc08/link_hc08.dsp
10687 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
10689 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
10691 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
10693 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
10695 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10697 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
10699 2003-10-31 Borut Razem <borut.razem AT siol.net>
10701 * support/cpp2/cpplib.h,
10702 support/cpp2/cpplib.c,
10703 support/cpp2/cpplex.c,
10704 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
10705 to switch _asm block preprocessing on / off. Default is
10706 #pragma preproc_asm +
10708 2003-10-31 Borut Razem <borut.razem AT siol.net>
10710 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
10711 when outputting comment blocks (when executed with -C option) and
10712 _asm (SDCPP specific) blocks
10714 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10716 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
10718 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
10720 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
10722 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
10724 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
10725 * src/SDCCast.c (decorateType): fixed bug #832664
10727 2003-10-31 Borut Razem <borut.razem AT siol.net>
10729 * support/cpp2/cpplex.c: fixed for SDCPP:
10730 comments(when executed with -C option) and _asm blocks
10731 were included even if they where in skipped #if block.
10732 Applied solution from GCC cpp 3.3.2
10734 2003-10-31 Borut Razem <borut.razem AT siol.net>
10736 * src/SDCC.lex: sdcc now understands both formats:
10737 '# <line_number> <file_name>' and
10738 '#line <line_number> <file_name>'
10739 * support/cpp2/cppmain.c: sdcpp now generates the standard
10740 '# <line_number> <file_name>' instead of former
10741 '#line <line_number> <file_name>'
10743 2003-10-30 Borut Razem <borut.razem AT siol.net>
10745 * support/cpp2/cpphash.h,
10746 * support/cpp2/cpplib.h
10747 * support/cpp2/cpplex.c,
10748 * support/cpp2/cppmain.c,
10749 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
10751 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10753 Fixed a number of problems revealed by bug #827883.
10754 * src/SDCCloop.c (loopInvariants): Spill location of the
10755 result operand should be recomputed if extracted from
10756 a loop. Also, don't extract assignments of an iTemp
10758 * src/SDCCast.c (isConformingBody): loop reversal should
10759 not occur if the control variable is involved with a
10760 relational operator.
10762 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
10764 * .version: bumped to 2.3.6 to reflect the big improvements
10765 made by Erik and Klaus. Thanks!
10767 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
10769 Replaced the livrange code.
10770 * src/SDCClrange.c: added new LR code
10772 * src/SDCCBBlock.h: removed remainig parts from old LR code
10773 * src/ds390/ralloc.c,
10774 * src/ds390/gen.c: minor fixes to make it work with new code
10776 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10779 * as/hc08/lkrloc.c,
10781 * src/hc08/ralloc.c: Fix various warnings related to the hc08
10782 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
10783 (tweaked fix for bug #818696)
10785 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10787 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
10789 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10792 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
10793 * src/mcs51/gen.c (gencjneshort),
10794 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
10795 more efficient (per Scott Bronson's suggestion)
10797 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10799 Extended the semantics of the critical keyword to include
10800 individual statements. See RFE #827755 and #799831
10805 * support/Util/SDCCerr.c
10806 * support/Util/SDCCerr.h
10811 2003-10-19 Borut Razem <borut.razem AT siol.net>
10813 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
10815 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10817 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
10819 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
10820 and predecrement operand is displayed
10822 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10824 * src/SDCCval.c (valMinus): fixed bug #826041
10826 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10828 Some hc08 related updates that I missed earlier
10829 * sim/ucsim/stypes.h
10830 * support/regression/ports/hc08/spec.mk
10832 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10834 New target "hc08" for the Motorola 68hc08 family of micros
10842 * sim/ucsim/hc08.src/*
10843 * sim/ucsim/configure.in
10844 * src/ucsim/configure
10845 * sim/ucsim/packages_in.mk
10848 * device/include/mc68hc908qy.h
10849 * device/lib/hc08/*
10850 * device/lib/Makefile.in
10851 * support/regression/ports/hc08/*
10852 * support/regression/Makefile
10854 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10856 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
10858 * src/ds390/gen.c (genCast): fixed bug #821957
10860 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10862 * device/lib/logf.c: "fixed" overlay bug
10863 * support/regression/ports/host/spec.mk: added m library
10864 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
10865 * support/regression/tests/float_trans: added (for Eric)
10867 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
10869 * src/mcs51/gen.c (genCpl): fixed bug
10870 http://sf.net/mailarchive/message.php?msg_id=6263915
10872 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
10874 * src/SDCCast.c (decorateType): added extended constant folding
10875 * src/SDCCsymt.c (computeType): cleanup
10876 * src/SDCCval.c (valShift): minor optimization
10877 * support/regression/tests/ast_constant_folding.c: added
10879 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10881 * src/SDCCmain.c: removed some unintended changes
10883 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10885 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
10886 * src/z80/gen.c: fixed part of bug #817589
10887 * src/SDCCsymt.c (checkFunction): fixed bug #817895
10889 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
10891 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
10902 * src/ds390/ralloc.c
10904 * src/mcs51/ralloc.c
10906 * src/pic16/ralloc.c
10907 * src/xa51/ralloc.c
10909 * src/z80/gen.c: removed unused label "release:"
10911 2003-10-06 Borut Razem <borut.razem AT siol.net>
10913 * src/SDCC.lex: removed definition of unused variables
10914 save_optimize and save_options
10916 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
10918 * clean.mk: removed '=' in "-maxdepth=1"
10919 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
10920 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
10922 2003-10-06 Borut Razem <borut.razem AT siol.net>
10924 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
10925 my_unput() replaced by unput()
10927 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
10929 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
10930 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
10931 type-punned pointer will break strict-aliasing rules"
10932 Old LR behaviour is again default; Klaus' LR can be choosen by
10933 defining the environment variable LRKLAUS
10937 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
10938 * clean.mk: fixed removal of files in bin/CVS/
10939 * device/lib/clean.mk: fixed removal of directories small and large
10940 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
10942 * src/SDCCval.c: removed superflous test for pedantic
10944 2003-10-05 Borut Razem <borut.razem AT siol.net>
10946 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
10947 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
10948 message "unmatched #pragma SAVE and #pragma RESTORE"
10950 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10952 * doc/sdccman.lyx: various additions and updates (interrupts, inline
10953 assembly, critical functions, atomic, nojtbound)
10955 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
10957 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
10963 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10966 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10968 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10970 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10971 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
10972 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
10974 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10976 * src/z80/gen.c (genRet): fixed bug #524753
10977 * src/z80/gen.c (genCast): fixed internal error on cast from
10979 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
10980 fix for bug #477835 to the z80
10981 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
10982 for tracking iCodes in the peephole optimizer for z80
10984 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10986 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
10987 the other part of bug #814548
10988 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
10990 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
10992 * src/SDCCcse.c: fixed part of bug #814548
10994 2003-09-28 Borut Razem <borut.razem AT siol.net>
10996 * src/asm.c: rewrite of printILine() to use temporary file instead
10998 * src/xa51/main.c: commented out declaration of int rewinds
11000 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11002 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11004 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11006 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11007 * src/asm.c (printILine): Fixed bug #811015
11009 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11011 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11014 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11016 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11017 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11018 to correctly handle general case of AOP_PAIRPTR
11019 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11021 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11023 * src/mcs51/ralloc.c (fillGaps),
11024 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11025 register positioning bug)
11027 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
11029 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11031 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11033 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11034 genCodePointerGet, genGenPointerGet, genFarPointerSet,
11035 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11036 (ralloc doesn't intentionally do this now, but perhaps later)
11037 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11038 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11039 register positioning bugs (Fixed bug #762602 and #795325)
11040 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11041 (Fixed bug #808779)
11042 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11043 lines that --i-code-in-asm generates
11045 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11047 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11048 trying to fclose a FILE* that was already closed.
11050 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11052 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11053 of const struct should be treated as if const themselves)
11055 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
11057 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11059 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11061 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11062 Unix (/n) and DOS (/r/n) line terminations.
11064 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11069 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11071 * src/mcs51/gen.c (genFunction, genEndFunction),
11072 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11073 and restore of EA so that stack offsets to parameters are
11074 correct when using both critical and reentrant/stack-auto.
11075 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11076 size (can be triggered in error if sloc is shared between
11077 different sized objects)
11078 * device/include/float.h: fixed macros to explicitly use
11079 unsigned long where needed
11081 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
11083 Feature req. 799831: added code to allow nesting of critical functions
11084 * src/mcs51/gen.c (genFunction, genEndFunction)
11085 * src/ds390/gen.c (genFunction, genEndFunction)
11087 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11089 * src/SDCCsymt.c (sclsFromPtr),
11091 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11092 support for standard C idiom of memory mapped variables; for
11093 example, *((xdata int*)0x1234) = 1 is now internally equivalent
11094 to xdata int at 0x1234 tempvar = 1.
11095 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11096 provided by Akiya ISHIDA
11098 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
11100 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11101 * src/SDCCval.c (constVal): added reduction from int to char
11102 * src/SDCCval.c (valMult, valDiv): fixed sign handling
11103 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11104 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11106 * support/regression/tests/shifts.c: fixed
11108 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11110 * src/z80/gen.c (genXor): Fixed bug #805445
11112 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11114 Fixed bug #621531 (const & volatile confusion in the type chain).
11115 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11116 refer to the const or volatile state of the pointer itself.
11128 * src/pic16/ralloc.c
11129 * support/regression/tests/const.c
11131 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11133 When checking for duplicated modules, use absolute paths
11134 instead of relative paths. Files changed:
11139 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11141 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11143 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11145 * device/include/string.h: added size_t typedef, changed
11146 prototypes to use size_t, eliminated separate reentrant and
11147 non-reentrant declarations, added _memmove declaration
11148 * device/lib/_memcpy.c: changed to use size_t instead of int,
11149 changed /4 to >>2 to avoid division library call
11150 * device/lib/_memcmp.c,
11151 * device/lib/_memset.c,
11152 * device/lib/_strncat.c,
11153 * device/lib/_strncpy.c,
11154 * device/lib/_strncmp.c: changed to use size_t instead of int
11155 * device/lib/_memmove.c: new file (fixed bug #772294)
11156 * device/lib/Makefile.in: added _memmove.c
11157 * device/lib/z80/asm_strings.s: fixed bug #772290
11158 * support/regression/tests/bitfields.c: attempt to fix host assertion
11159 failure on amd64-unknown-linux2.2
11161 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11163 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11164 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11165 * as/z80/asmain.c (main): fixed bug #801766
11167 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
11169 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11172 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11174 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11175 reported in bug #800609
11177 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
11179 * Top header beautifications in src/pic16 directory:
11180 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11181 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11182 pcoderegs.h, ralloc.c, ralloc.h
11183 * main.c: added top header and GPL license notice
11184 * pcode.c: fixed the if-conditional warning
11186 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
11188 * device/lib/_mullong.c: replaced int by short for gcc
11190 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11192 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11193 and JUMPTABLE iCodes properly now (worked by accident before)
11194 * src/mcs51/gen.c (leftRightUseAcc),
11195 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11196 iCode properly now. Use getSize instead of nRegs since a & b
11197 aren't part of the nRegs tally.
11199 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
11201 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11202 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11203 before instructions that use the _STATUS register
11205 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
11207 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11208 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11209 fetching of the pointer
11210 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11211 copied from genNearPointerSet()
11212 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11213 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11214 If they pop r0/r1 they must be called in the opposite order than aopOp().
11215 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11216 (resp. --stack-auto), prepared for --xstack
11218 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11220 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11222 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
11224 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11225 these ports have their own __sdcc_external_start()
11227 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
11229 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11230 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11231 type for bits was changed. It resulted in bit variables becoming
11232 global, which is not permitted in PIC 14 assembly output.
11234 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11236 * doc/sdccman.lyx: various additions and updates. Rearranged sections
11238 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11240 Z80 and MCS51 linkers complaint if a public symbol is defined
11241 in more than one library module:
11245 * as/mcs51/Makefile.in
11247 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11249 A few small changes that speed up the peephole optimizer.
11253 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11255 Try to make the peephole optimizer smarter by maintaining
11256 an association between the assembly source code and the
11257 iCodes that originated them. Put this information to use
11258 with a new peephole rule condition "notVolatile" so that
11259 the rules can be aggressive yet still safe.
11264 * src/mcs51/peeph.def
11266 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11270 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11271 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11272 if the left or right operand symbols have the accuse flag set.
11274 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11276 Changed the type of the result of the ! (NOT) operator to char;
11277 previously it returned the same type as the source. This allows
11278 us to eliminate all the genFloatNot functions (all of its target
11279 implementations were very buggy) since !float can use the same
11282 * src/SDCCicode.c (ast2iCode): ! returns char
11283 * src/mcs51/gen.c (genNot, genNotFloat),
11284 * src/ds390/gen.c (genNot, genNotFloat),
11285 * src/z80/gen.c (genNot, genNotFloat),
11286 * src/pic/gen.c (genNot, genNotFloat),
11287 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11289 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
11291 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11292 1. Interrupt would not compile properly. Ensure PCLATH register is saved
11293 during interrupts. Ensure WSAVE is located at a shared bank address.
11294 2. Fixed page selection in some places
11295 3. Fixed BTFSS/C to where necessary use registers directly and not simply
11296 the registers name strings.
11297 4. Fixed "signed / unsigned compare" compiler warnings.
11298 5. The PIC port manages its own allocation of the general purpose
11299 registers, but makes no attempt to reuse them. As a result when
11300 compiling it soon runs out of general purpose registers. Some
11301 additional code was added to the files pcode.c and device.c to walk
11302 through the function call tree and rename the registers so that they
11312 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11313 genPlus() & genMinus() when the result is the same as left or right
11315 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11317 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11319 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11321 Made bitfield a distinct type from bit so that bitfields
11322 convert as per ANSI C and bits retain their traditional
11323 boolean style behaviour. Implemented bitfield support in
11331 * src/ds390/gen.c: bit v bitfield split
11332 * src/z80/gen.c: New support for bitfields
11333 * support/regression/tests/bitfields.c: reenabled z80,
11336 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11338 Rules 246.x, 247.x relate to bitfields, the others speed up
11339 access to xdata mapped I/O devices.
11341 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11343 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11345 Cleaned up genPackBits and genUnpackBits and added two helper
11346 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11347 for literal assignments in genPackBits (thanks to Frieder for
11353 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11355 Fixed bug #748310 (pointer to function type mishandled when the
11356 function name is omitted). Also fixed a SIGSEGV when a function
11357 attribute (reentrant, etc) is used on a non-function or on a
11358 function but misplaced before the parameter list.
11360 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11362 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11363 * support/Util/SDCCerr.h,
11364 * support/Util/SDCCerr.c: Added func attr misuse error msg
11366 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
11368 Fixed bug #787649 by anonymous
11369 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11370 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11372 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11374 Fixed numerous bitfield problems.
11376 * src/SDCC.y: More bitfield related error checking
11378 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11379 * support/Util/SDCCerr.h,
11380 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11381 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11382 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11383 * support/regression/tests/bitfields.c: tests added
11385 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11387 Made the constant following the "interrupt" keyword optional. If
11388 omitted, the function will not automatically be given an entry
11389 in the interrupt vector table (similar to #pragma NOIV, but
11390 less syntacticly kludgy). The interrupt number is also now
11391 range checked. Also fixed a bug in the high order bit example
11398 * support/Util/SDCCerr.c
11399 * support/Util/SDCCerr.h
11402 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
11404 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11405 * src/SDCCicode.c (operandOperation): rewritten some ops
11406 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11407 * src/SDCCsymt.c (computeType): literals are handled the same way as any
11409 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11410 be re-activated by defining REDUCE_LITERALS)
11411 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11412 unsigned, but are signed by default
11413 * src/SDCCval.c (constVal): rearranged
11414 * src/SDCCval.c (valMod): preliminary fix
11415 * src/SDCCval.c (valCastLiteral): use TYPE_* types
11416 * support/regression/literalop.c: added, work in progress
11418 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11420 Generate warnings for useless declarations like "char data;"
11421 that don't do what new users expect.
11424 * support/Util/SDCCerr.h
11425 * support/Util/SDCCerr.c
11427 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
11429 * src/SDCCval.c (valMult): fix overflow detection of negative int
11431 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11433 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11435 Changes to support big endian targets:
11448 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
11450 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11451 * device/lib/time.c: fixed warning "integer overflow in expression"
11453 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
11455 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11456 * src/SDCCval.c (constVal): changed default to signed; hex and octal
11457 constants are unsigned; added recognition of "u" flag for unsigned
11458 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11459 * src/SDCCval.c (valDiv, valMod): fixed signdness
11460 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11461 signedness of modulo, left and right shift
11462 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11463 * support/Util/SDCCerr.h: added warning W_INT_OVL
11464 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11465 * src/SDCCast.c (ast_print): improved output of constants
11467 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11469 Fixed some warnings when building with MSVC:
11471 * as/mcs51/asdata.c
11475 * link/z80/aslink.h
11476 * link/z80/lkdata.c
11477 * link/z80/lkeval.c
11482 * support/cpp2/cpplib.c
11486 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
11488 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11490 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11492 * support/librarian/clean.mk: Do not remove Makefile.
11493 * support/librarian/Makefile: added.
11495 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11497 Added librarian to MSVC build:
11500 * support/librarian/librarian.dsp
11502 'configure' not needed for librarian, removed:
11503 * support/librarian/configure
11504 * support/librarian/configure.in
11505 * support/librarian/config_in.h
11506 * support/librarian/Makefile.in
11508 Hopefully these ones built the librarian and the rest of sdcc properly:
11510 * Makefile.common.in
11512 Messed up 'configure', so revert to previous version:
11516 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
11518 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11519 there, while the mantissa of a double is "only" 53 bits wide.
11521 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11523 Adding sdcclib to the build. MSVC project coming soon.
11524 Files added/changed:
11526 * support/librarian/clean.mk
11527 * support/librarian/configure
11528 * support/librarian/configure.in
11529 * support/librarian/config_in.h
11530 * support/librarian/Makefile.bcc
11531 * support/librarian/Makefile.in
11532 * support/librarian/sdcclib.c
11535 * Makefile.common.in
11539 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11541 Linker now complaints if linked modules have conflicting options, for
11542 example, one compiled using --model-large and another one compiled with
11543 --model-small. The following files were modified:
11545 * as/mcs51/asdata.c
11546 * as/mcs51/aslink.h
11548 * as/mcs51/asmain.c
11550 * as/mcs51/i51pst.c
11551 * as/mcs51/lkdata.c
11552 * as/mcs51/lklibr.c
11553 * as/mcs51/lkmain.c
11559 * link/z80/aslink.h
11560 * link/z80/lkdata.c
11561 * link/z80/lklibr.c
11562 * link/z80/lkmain.c
11565 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11567 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11568 as/mcs51/lklibr.c: Generate a warning when a library is not found.
11570 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
11572 * src/z80/mappings.i: fix _mul[us][int,long] entries
11574 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11576 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11578 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
11580 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11581 * support/regression/tests/bitopcse.c: added
11589 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11591 added support for new library format to z80, gbz80 linkers:
11597 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
11599 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11600 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11602 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
11604 added DUMMY_READ_VOLATILE:
11613 * src/SDCCcse.c (algebraicOpts): many improvements
11614 * src/SDCCcse.h: removed algebraicOpts()
11615 * src/SDCCicode.c (picDummyRead): added
11617 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11619 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11620 "Insufficient space in data memory".
11622 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11624 * src/mcs51/gen.c: fixed bug #771358
11625 * src/z80/gen.c: fixed bug #759087
11627 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
11629 * src/pic16/glue.c: minor cleanup by Vangelis
11631 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11633 * device/include/regc515c.h: fixed #758477
11634 * device/lib/_gptrget.c: saving some cycles in generic pointer get
11635 * device/lib/_gptrput.c: saved a few bytes
11636 * my tab spacing is 8, yours too?)
11637 * device/lib/_ser.c: process RX bytes earlier than TX bytes
11638 * device/lib/serial.c: process RX bytes earlier than TX bytes
11639 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
11641 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11643 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
11645 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11647 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
11649 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
11651 * device/lib/Makefile.in: bad fix, reverted to 1.43
11653 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
11655 * device/lib/Makefile.in: added missing z80 object files
11657 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
11659 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
11660 pic16 progress by Vangelis:
11663 * src/pic/Makefile:
11670 * pic16/genarith.c:
11675 * pic16/pcodepeep.c:
11678 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11680 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
11682 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11684 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
11685 added gbz80 build to MSVC project.
11686 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
11687 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
11688 from 8051 stuff and setup so it links using a .lnk file.
11690 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11692 * support/librarian/sdcclib.c: sdcc librarian.
11693 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
11696 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11698 * as/mcs51/lkmain.c: properly handle extensions in function afile.
11700 2003-07-02 Borut Razem <borut.razem AT siol.net>
11702 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
11703 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
11704 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
11705 src/xa51/main.c, src/z80/main.c:
11706 virtualization of glue() function: each port has it's own glue function,
11707 which is accessed by do_glue function pointer in PORT.general structure
11709 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
11711 * DS800C400 fun, improved ROM interface and tinibios.
11713 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
11715 * More support for DS80C400. Now includes beginning of interface to ROM.
11717 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
11719 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
11721 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11723 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
11725 2003-06-19 Borut Razem <borut.razem AT siol.net>
11727 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
11729 2003-06-19 Borut Razem <borut.razem AT siol.net>
11731 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
11732 fixed Z80 port - crt0.o: cannot open.
11734 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
11736 * support/Util/MySystem.c (merge_command): revert bad fix
11738 2003-06-18 Borut Razem <borut.razem AT siol.net>
11740 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
11742 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11744 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11745 option --use-stdout sends errors to stdout instead of stderr.
11747 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
11749 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
11751 2003-06-15 Borut Razem <borut.razem AT siol.net>
11753 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
11754 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
11755 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
11756 fixed width array of pointers replaced with sets;
11757 multiple include and lib paths ared transferred to preprocessor and linker
11758 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
11759 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
11760 fixed width array of pointers
11761 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
11762 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
11763 fixupPath(), getPathDifference()
11764 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
11765 fixed width array of pointers
11767 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
11769 * src/pic16/ralloc.c: fix warnings
11770 * src/pic16/pcode.c: fix warning
11772 2003-06-10 Scott Dattalo <scott AT dattalo.com>
11774 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
11775 know all the details, but essentially this set of changes enable
11776 the pic16 port to generate movff instructions and generate assembler
11780 * src/pic16/glue.c:
11781 * src/pic16/pcode.c:
11782 * src/pic16/device.c:
11783 * src/pic16/main.c:
11784 * src/pic16/pcode.h:
11785 * src/pic16/pcoderegs.c:
11786 * src/pic16/ralloc.c:
11787 * src/pic16/ralloc.h:
11789 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11791 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11792 added option --vc, so sdcc errors and warnings are compatible with
11793 Microsoft Visual Studio.
11795 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11797 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
11798 device/lib/libfloat.lib: added atof function.
11800 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
11802 * doc/sdccman.lyx: updated to Lyx 1.3
11803 * doc/cdbfileformat.lyx: updated to Lyx 1.3
11804 * doc/test_suite_spec.lyx: updated to Lyx 1.3
11805 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
11807 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
11809 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
11811 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11813 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
11814 additions to the "related tools/documentation" section
11816 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
11818 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
11820 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
11822 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
11823 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
11825 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
11827 * doc/sdccman.lyx: fix double dash and other minor things
11828 * doc/Makefile: fix double dash
11830 2003-05-28 Karl Bongers(patches from Martin Helmling)
11831 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
11832 condition and ignore commands.
11834 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11836 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
11837 is in parts still quite out of date, I did changes as far as I felt makes sense
11838 for a non-native english speaker.
11839 Please feel free to add to the manual or to correct my changes.
11840 * doc/Makefile: undid touching the date of intermediate tex files.
11842 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11844 * doc/sdccman.lyx: Manual has an index now
11846 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
11848 Finalize muluint/mulsint and mululong/mulslong merging:
11849 * device/lib/_mulint.c
11850 * device/lib/_mullong.c
11851 * device/lib/gbz80/mul.s
11852 * device/lib/gbz80/stubs.s
11853 * device/lib/z80/mul.s
11854 * device/lib/z80/stubs.s
11855 * src/SDCCsymt.c (initCSupport)
11857 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11859 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
11860 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
11861 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
11862 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
11865 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11867 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
11868 the regression tests I'm not brave enough to enable 245.b, 245.c
11869 * doc/sdccman.lyx: added latex preamble for hyperref package.
11870 Using pdflatex this will give you a hyperlinked pdf file with
11871 bookmarks. (prepend '%' before /usepackage if this breaks something)
11873 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11875 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
11877 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
11879 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
11881 2003-05-21 <johan AT balder>
11883 * src/SDCCglue.c (printIval): fixed bug #739934
11885 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
11887 Applied patch from bug 737905 (renamed yylineo to mylineno):
11894 * src/pic16/pcode.c: Cleaned warnings
11895 * src/pic16/pcodeflow.c: Cleaned warnings
11896 * src/pic16/pcoderegs.c: Cleaned warnings
11898 2003-05-19 Scott Dattalo <scott AT dattalo.com>
11900 * src/pic16/pcode.c: Cleaned warnings
11901 * src/pic16/pcodepeep.c: Cleaned warnings
11902 * src/pic16/ralloc.c: Cleaned warnings
11904 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
11906 * doc/sdccman.lyx: fixed bug 739745
11907 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
11909 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
11911 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
11912 it can be defined with CFLAGS when running configure
11913 * src/SDCCmain.c: fixed compiling + linking with object files
11915 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
11917 * configure.in: configure for pic16 port,
11918 added --disable-pic16-port
11919 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
11920 * src/SDCCmain.c: linkOptions is changed to set *,
11921 added if/endif conditional macros to remove options help
11922 messages from optionsTable when a port is not configured, added
11923 support for the PIc16 port in the ports table, when executing
11924 the compiler with no port specified on command line, a default
11925 port is selected with the new macro DEFAULT_PORT which is
11926 defined in port.h, in setDefaultOptions() linkOptions is removed
11927 from initialization assignment, since now it is a set,
11928 parseCmdLine uses setParseWithComma for linkOptions, in
11929 linkEdit() linkOptions are accessed with new function indexSet()
11930 which returns the i'th item of a set variable. See SDCCset.c, in
11931 linkEdit() when calling buildCmdLine(), added linkOptions as
11932 last argument. Now users can pass arguments to gplink via the
11933 -Wl option, main() uses pic16glue() to glue up pic16 programs
11934 * src/SDCCpeeph.c: various changes to support pic16
11935 * src/SDCCset.c: added function void *indexSet(set *, int) to
11936 return the i'th item of the set
11937 * src/SDCCset.h: added function prototype for indexSet()
11938 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
11939 * src/clean.mk: added pic16 in CLEANALLPORTS variable
11940 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
11941 added macro DEFAULT_PORT
11942 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
11943 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
11945 * src/pic16/glue.c: commented out some error producing lines
11946 * src/pic16/main.c: __config directives are commented out to stop
11947 gpasm complaining and test the linkage with gplink, _linkCmd and
11948 _asmCmd changed to be more gplink and gpasm friendly
11949 * src/pic16/peeph.def: peep rule 3 is commented out, since it
11950 produced an error when parsed, peep rule 12 is added to utilize
11951 movff, but it is commented out since the pCode does not support
11952 yet a command with 2 address arguments
11954 2003-05-18 <johan AT balder>
11956 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11957 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11958 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
11960 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
11961 Added feature to script commands from file.
11963 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
11965 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
11966 * src/SDCCutil.c: include ctype.h for win32
11968 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
11970 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
11972 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
11974 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
11975 Fixed so you can set breakpoints prior to run, run does not stop
11976 on entry now. Add tbreak. Other enhancements and fixes for use
11979 2003-05-12 Borut Razem <borut.razem AT siol.net>
11981 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
11983 2003-05-11 Borut Razem <borut.razem AT siol.net>
11985 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
11986 the path of bin directory, so that PATH is the only env. variable, which has to be set
11987 in case of standard installation.
11988 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
11989 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
11990 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
11992 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
11994 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
11995 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
11996 temp files are in the port dir; clean the gen/test directory when
11997 generating new test.c
11998 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
11999 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12000 * support/regression/tests/zeropad.c: added
12002 2003-05-09 <johan AT balder>
12004 * src/SDCCglue.c: fixed bug #597940
12006 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
12008 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12009 cache sfr, optimize next,step, fix off by one sourceline,
12010 support ddd list function.
12011 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12013 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
12015 * support/regression/HTMLgen.py: added compare_s2f()
12016 * support/regression/Makefile: redo 1.27
12017 * support/regression/generate-cases.py: redo 1.5
12019 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
12021 * support/regression/tests/float.c: workaround 33 bit hex constant
12022 * support/regression/tests/simplefloat.c: fix division for host
12024 2003-04-29 Scott Dattalo <scott AT dattalo.com>
12026 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12027 that tame's the PIC's over-aggressive optimizer.
12029 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12031 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12034 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
12036 Initial support for DS80C400. "Hello world" runs on TINIm400
12039 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
12041 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12042 * Some notes on ddd usage added in debugger/README
12043 Martin Helmling adding more features and fixes for ddd GUI debugger.
12044 Code added for nexti, stepi, up, down, and other adjustments.
12046 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
12048 * src/pic/pCodepeep.c non-wildcard asmops are now handled
12049 * src/pic/peeph.def Added two rules to optimize carry manipulation
12050 * src/pic/* removed debug printfs
12052 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
12054 * debugger/mcs51/cmd.c: added header newalloc.h
12056 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
12058 * as/Makefile: new EXEEXT
12059 * as/z80/Makefile: remove trailing slash of BUILDIR
12060 * as/z80/clean.mk: new EXEEXT
12061 * Makefile.common.in: add to CFLAGS (and others), don't replace it
12062 * support/cpp2/Makefile.in: new EXEEXT
12063 * src/pic/glue.c (pic14emitRegularMap): fixed warning
12065 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
12067 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12068 EXEEXT was introduced to fix all related problems with targets
12069 "clean", "install" and "uninstall"; a couple of further flaws
12070 especially with "clean" have been fixed too
12071 * as/mcs51/Makefile.in
12072 * as/mcs51/clean.mk
12076 * debugger/mcs51/Makefile.in
12077 * debugger/mcs51/clean.mk
12078 * link/z80/Makefile
12079 * link/z80/Makefile.in
12080 * link/z80/clean.mk
12082 * packihx/Makefile.in
12084 * sim/ucsim/Makefile
12085 * sim/ucsim/clean.mk
12086 * sim/ucsim/avr.src/Makefile.in
12087 * sim/ucsim/avr.src/clean.mk
12088 * sim/ucsim/s51.src/Makefile.in
12089 * sim/ucsim/s51.src/clean.mk
12090 * sim/ucsim/xa.src/Makefile.in
12091 * sim/ucsim/xa.src/clean.mk
12092 * sim/ucsim/z80.src/Makefile.in
12093 * sim/ucsim/z80.src/clean.mk
12094 * sim/ucsim/main_in.mk
12095 * sim/ucsim/packages_in.mk
12096 * sim/ucsim/gui.src/Makefile.in
12097 * sim/ucsim/gui.src/serio.src/Makefile.in
12098 * sim/ucsim/gui.src/serio.src/clean.mk
12101 * support/cpp2/Makefile.in
12102 * support/cpp2/clean.mk
12103 * support/makebin/Makefile
12104 * support/makebin/clean.mk
12105 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12106 * doc/sdccman.lyx: --program-suffix no longer needed
12108 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
12110 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12111 Martin Helmling added support for ddd GUI debugger.
12112 Code added to display assembly, set variables, and other commands
12113 to interface to ddd.
12115 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
12117 * as/Makefile: fix target clean
12118 * as/clean.mk: fix target clean
12119 * as/z80/clean.mk: fix target clean
12121 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
12123 * Makefile.common.in: added AT EXEEXT AT
12124 * configure.in: removed all mingw32 stuff
12125 * configure: rebuilt from configure.in
12126 * doc/sdccman.lyx: updated section "installation"
12127 * support/scripts/sdcc_mingw32: adapted to configure
12128 * support/scripts/sdcc_cygwin_mingw32: added
12130 2003-04-22 Scott Dattalo <scott AT dattalo.com>
12132 * src/pic Added object file support for the PIC port
12133 * src/pic Applied patch from Craig Franklin (this started the object file support)
12134 * src/regression Updated the PIC regression tests for object files
12136 2003-04-20 Borut Razem <borut.razem AT siol.net>
12138 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12139 lklex.c: In function `getfid':
12140 lklex.c:203: warning: array subscript has type `char'
12141 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12142 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12143 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12144 stack handling macros
12146 2003-04-19 Borut Razem <borut.razem AT siol.net>
12148 * "handling space characters in file path" task:
12149 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12150 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12151 * support/Util/MySystem.h: make it self-sufficient
12152 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12153 src/z80/main.c, sdcc/as/mcs51/lklex.c:
12154 handling space characters in file path
12155 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12156 (it will be used by assemblers, which have their own includes, e.g. gpasm)
12157 * support/Util/MySystem.c: handling space characters in executable's path
12159 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
12161 * as/z80/Makefile: fix permanent rebuild of z80
12162 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12163 * support/regression/tests/bitfields.c: added Johan's bitfields.c
12165 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
12167 * src/SDCCopt.c: add special case optimization to replace modulo by
12168 a power of two with a bitwise AND.
12170 2003-04-18 <johan AT balder>
12172 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12174 2003-04-17 <johan AT balder>
12176 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12177 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12179 2003-04-13 Borut Razem <borut.razem AT siol.net>
12181 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12182 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12183 fixed mingw problem in adl_NORMALIZE_PATH
12185 2003-04-12 Borut Razem <borut.razem AT siol.net>
12187 * fixed "#pragma SAVE/RESTORE can not be nested":
12188 * src/SDCC.lex: reworked pragma handling functions
12189 * sdcc/src/SDCCglobl.h: reworked stack handling macros
12190 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12192 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12194 * src/SDCCutil.c (pathEquivalent): defined but not used
12195 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12196 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12197 * configure: rebuilt from configure.in
12198 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12199 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12200 * device/include/Makefile.in: replace sdcc_datadir
12201 * device/lib/Makefile.in: replace sdcc_datadir
12202 * Makefile.common.in: add LDFLAGS from configure
12203 * packihx/Makefile.in: use LDFLAGS
12204 * src/Makefile.in: use LDFLAGS
12205 * support/cpp2/Makefile.in: add LDFLAGS from configure
12206 * support/makebin/Makefile: use LDFLAGS
12207 * .version: bumped version number to 2.3.5
12209 2003-04-12 Borut Razem <borut.razem AT siol.net>
12211 * completed "different paths" task:
12212 * src/SDCCmacro.c: fixed bug in handling quotes
12213 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12214 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12216 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12218 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12220 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12222 * ds390/gen.c ds390/peeph.def: fix bug 706781
12224 2003-04-11 Borut Razem <borut.razem AT siol.net>
12226 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12228 2003-04-10 Scott Dattalo <scott AT dattalo.com>
12230 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12231 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12232 set - this bit used to not be set...).
12233 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12234 bad code in PIC Port
12235 * src/regression/and2.c added to test bug 609268
12236 * src/regression/Makefile added and2.c to regression test
12239 2003-04-08 <johan AT CP255758-A>
12241 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12242 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12243 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12245 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
12247 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12249 * support/cpp2/Makefile.in: fix bug #487815
12250 * configure: rebuilt from configure.in
12251 * Makefile.common.in: docdir changed, new path suffixes
12252 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12253 * sdcc_vc_in.h: reflect changes from sdccconf.h
12254 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12255 * src/SDCCutil.h: remove BINDIR hack
12256 * doc/sdccman.lyx: update new path hierarchy
12258 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
12260 * src/SDCCpeeph.c: added okToRemoveSLOC test
12262 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
12264 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12266 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
12268 * src/SDCCpeeph.c: added labelIsReturnOnly test
12269 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12271 2003-04-05 <johan AT balder>
12273 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12274 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12275 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12276 * src/SDCCast.c: fixed a warning
12277 * src/SDCCast.h: fixed a warning
12278 * src/SDCCicode.c (operandFromAst): fixed a warning
12280 2003-04-04 <johan AT balder>
12282 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12283 * src/SDCCast.c (decorateType): fixed bug #715076
12284 * src/SDCC.y: fixed bug #702907
12286 2003-04-03 <johan AT balder>
12288 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12289 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12290 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12291 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12292 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12294 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
12296 * _decdptr.c: fix return values
12297 * _gptrget.c: fix return values
12298 * _gptrgetc.c: fix return values
12299 * _gptrput.c: fix return values
12300 * _mulint.c: fix return values
12301 * as/z80/Makefile: fix 'make -j' problem
12303 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
12305 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12306 * configure.in: big cleanup, updated to autoconf 2.5x
12307 * configure: rebuilt from configure.in
12308 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12309 * sdcc_vc_in.h: reflect changes from sdccconf.h
12310 * doc/Makefile: fixed a flaw in "make install"
12312 2003-04-02 <johan AT balder>
12314 * src/ds390/gen.c (genCmp): no comments
12315 * src/mcs51/gen.c (genCmp): no comments
12316 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12317 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12319 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
12321 * support/regression/generate-cases.py: place generated file in given sub directory
12322 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12323 * support/regression/Makefile: improvements for 'make -j';
12324 side effect: it's simpler and faster now
12326 2003-03-31 Borut Razem <borut.razem AT siol.net>
12328 * src/z80/main.c: link-{port} and as-{port} defined without path
12329 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12331 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
12333 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12335 2003-03-30 Borut Razem <borut.razem AT siol.net>
12337 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12338 changed type of list parameter to set
12339 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12340 * src/port.h: changed type of do_assemble() parameter to set
12341 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12342 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12343 definition of "cppoutfilename" macro with NULL value in preProcess()
12344 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12345 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12346 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12347 replaced with set *binPathSet
12348 * shash_add() deallocates the item, if allready exsists, before adding the new one
12349 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12351 2003-03-30 Scott Dattalo <scott AT dattalo.com>
12353 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12354 a nested for loop bug in the PIC port
12355 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12358 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12360 * support/Util/dbuf.h: remove C++ stuff to make it portable
12362 2003-03-28 Borut Razem <borut.razem AT siol.net>
12364 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12365 literal strings in stringLiteral()
12366 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12367 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12370 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
12372 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12374 2003-03-26 <johan AT balder>
12376 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12377 * src/ds390/gen.c (saveRegisters): catched symbol abuse
12378 * src/SDCCast.c (decorateType): fixed " -v < 3"
12380 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12382 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12383 Added Lenny Story's debug infrastructure changes:
12384 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
12385 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12386 * src/cdbFile.c: added
12387 * src/SDCCdebug.c: added
12388 * src/SDCCdebug.h: added
12389 * src/SDCCast.c (createFunction)
12390 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12391 * src/SDCCmain.c (parseCmdLine, main)
12392 * src/SDCCmem.c (redoStackOffsets)
12393 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12396 * src/avr/gen.c (genAVRCode)
12397 * src/ds390/gen.c (gen390Code)
12398 * src/mcs51/gen.c (gen51Code)
12399 * src/pic/gen.c (genpic14Code)
12400 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12401 * src/xa51/gen.c (genXA51Code)
12402 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12404 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12406 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12407 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12409 2003-03-22 <johan AT balder>
12411 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12413 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
12415 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12416 * doc/cdbfileformat.lyx: added, written by Lenny Story
12417 * doc/Makefile: added cdbfileformat.lyx
12418 * doc/clean.mk: added cdbfileformat.lyx
12420 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
12422 * src/mcs51/peeph.def: fix bug #705773
12424 2003-03-20 <johan AT balder>
12426 An sfr/sbit can have an "at #" AND an initializer
12427 * src/SDCCsymt.c (checkSClass):
12428 * src/SDCCmem.c (allocGlobal):
12429 * src/SDCCmem.c (allocLocal):
12430 * src/SDCCast.c (createBlock):
12432 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
12434 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12436 2003-03-16 <johan AT balder>
12438 Undid the hackup of const and volatile, the problem is much bigger
12440 * src/SDCCast.c:1.171
12441 * src/SDCCglue.c:1.138
12442 * src/SDCCicode.c:1.146
12443 * src/SDCCsymt.c:1.150
12444 * src/SDCCval.c:1.65
12446 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
12448 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12449 * src/ds390/gen.c (genAddrOf): fixed bug #704087
12451 2003-03-13 <johan AT balder>
12453 Hackup const and volatile modifiers in type chains a bit:
12455 * src/SDCCast.c:1.169
12456 * src/SDCCglue.c:1.136
12457 * src/SDCCicode.c:1.143
12458 * src/SDCCsymt.c1.146
12459 * src/SDCCsymt.h1.59
12460 * src/SDCCval.c:1.63
12462 2003-03-12 <johan AT balder>
12464 * src/SDCCBBlock.h: more LRH debugging junk
12465 * src/SDCCcflow.h: more LRH debugging junk
12466 * src/SDCCloop.c: more LRH debugging junk
12467 * src/SDCC.y (struct_declaration): fixed bug #697590
12468 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12469 * src/ds390/gen.c (aopForRemat): fixed bug #700031
12470 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12472 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12473 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12474 test function names must now match exactly).
12475 * src/SDCCcse.c: added special case in findCheaperOp to allow
12476 extending a short integer. Makes less awful code for bug 700121 test case.
12478 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12480 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12481 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12483 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12485 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12486 actually called (operandsNotEqual() was called for all
12487 operandsNotEqualX tests).
12489 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12491 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12492 with shorter literals. Fixes bug 700121.
12494 2003-03-11 <johan AT balder>
12496 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12498 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
12500 * src/SDCCloop.c (mergeRegions): an evil beast is dead
12501 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12503 2003-03-10 Borut Razem <borut.razem AT siol.net>
12505 * src/SDCCmain.c: pipe preprocessor's output
12506 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12507 * sdcc_vc_in.h: define pclose as _pclose for WIN32
12508 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12509 which closes all pipes in pipeSet set
12510 * src/SDCCset.c: free deleted item in function deleteSetItem()
12511 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12512 moved from z80 to src subproject
12513 * .version: increased version number to 2.3.4
12515 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12517 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12518 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12519 * support/regression/ports/xa51/spec.mk: fix typo
12521 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12523 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12525 2003-03-09 Borut Razem <borut.razem AT siol.net>
12527 * src/SDCCmain.c: pipe preprocessor's output
12528 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12529 * sdcc_vc_in.h: define pclose as _pclose for WIN32
12530 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12531 which closes all pipes in pipeSet set
12532 * src/SDCCset.c: free deleted item in function deleteSetItem()
12533 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12534 moved from z80 to src subproject
12536 2003-03-09 Borut Razem <borut.razem AT siol.net>
12538 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12539 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12540 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12541 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12542 * src/SDCCglobl.h: unification of WIN32 native definitions
12544 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12546 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12548 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12550 * src/configure.in: check for endianess (even while cross-compiling)
12551 * src/configure: check for endianess (even while cross-compiling)
12552 * src/configure_in.h: check for endianess (even while cross-compiling)
12553 * src/avr/gen.c: remove old endianess stuff
12554 * src/mcs51/gen.c: remove old endianess stuff
12555 * src/ds390/gen.c: remove old endianess stuff
12556 * src/pic/gen.c: remove old endianess stuff
12557 * src/pic/genarith.c: remove old endianess stuff
12558 * src/pic/glue.c: fix endianess check
12559 * src/pic16/gen.c: remove old endianess stuff
12560 * src/pic16/genarith.c: remove old endianess stuff
12561 * src/pic16/glue.c: fix endianess check
12562 * src/xa51/gen.c: remove old endianess stuff
12563 * src/z80/gen.c: fix endianess check
12564 * src/SDCCglue.c: fix endianess check
12565 * src/ds390/peeph.def: fix bug 700036
12567 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12569 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12570 * src/configure: find appropriate data-types on host for SDCC's int and long
12571 * src/configure.in: find appropriate data-types on host for SDCC's int and long
12572 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12573 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12575 2003-03-07 <johan AT balder>
12578 some minor cleanups before the big shot
12579 OP_DEFS and OP_USES now use Kevin's protection
12580 new option --nolabelopt
12582 * src/SDCCBBlock.c:
12591 * src/ds390/ralloc.c:
12592 * src/mcs51/ralloc.c:
12593 * src/pic/ralloc.c:
12594 * src/xa51/ralloc.c:
12595 * src/z80/ralloc.c:
12597 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12599 * src/pic/pcode.c (get_op): fix 64 bit warnings
12600 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12601 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12602 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12603 * support/regression/tests/malloc.c: fix 64 bit warnings
12605 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
12607 * src/mcs51/gen.c (genMinus): fixed bug 696436
12609 2003-03-02 Borut Razem <borut.razem AT siol.net>
12611 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12613 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12615 * configure.in: test for mkstemp
12616 * sdccconf_in.h: add HAVE_MKSTEMP
12618 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
12620 * device/include/ctype.h: removed warning while using --stack-auto
12621 * device/include/malloc.h: removed warning while using --stack-auto
12622 * device/include/string.h: removed warning while using --stack-auto
12624 2003-02-23 Borut Razem <borut.razem AT siol.net>
12626 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
12627 because NDEBUG is defined (see man assert)
12628 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
12630 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12632 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
12633 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
12635 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12637 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
12638 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
12640 2003-02-18 <johan AT balder>
12642 * as/mcs51/asmain.c (asmbl): module can start with a digit
12643 * as/z80/asmain.c (asmbl): module can start with a digit
12645 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12647 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
12648 * src/asm.c: fix pipe() for Mingw32
12650 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
12652 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
12653 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
12654 make -V work again; --c1mode reads now from stdin
12655 * doc/sdccman.lyx: added --c1mode
12656 * support/Util/SDCCerr.c: new messages for c1 mode
12657 * support/Util/SDCCerr.h: new messages for c1 mode
12658 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
12660 2003-02-15 <johan AT balder>
12662 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
12664 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
12666 * doc/sdccman.lyx: Environment variables, -o and other minor things
12668 2003-02-14 <johan AT balder>
12670 * src/xa51/main.c: before anyone really tries to use it :)
12672 * Install doc's in share/sdcc/doc
12673 * removed some obsolete files
12674 * Do a proper make distclean and uninstall
12675 M Makefile.common.in
12678 M device/include/Makefile.in
12679 M device/lib/Makefile.in
12682 M sim/ucsim/doc/Makefile.in
12684 R src/avr/peeph.rul
12685 R src/xa51/peeph.rul
12686 M support/cpp2/Makefile.in
12687 M support/makebin/Makefile
12690 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12692 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
12694 2003-02-10 Borut Razem <borut.razem AT siol.net>
12696 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
12697 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
12698 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
12699 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
12700 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
12701 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
12702 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
12703 src/z80/Makefile.bcc: Borland Makefile cleanup
12704 * as/z80/Makefile.bcc: Added Borland Makefile
12705 * support/cpp2/borland.h: Removed
12707 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
12709 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
12710 * src/SDCC.lex: new pragma NOIV
12711 * src/SDCCglobl.h: new pragma NOIV
12712 * src/SDCCmem.c: new pragma NOIV
12714 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12716 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
12718 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12720 * src/SDCCmain.c: signal handling is switched off by --debug
12721 * doc/Makefile: small fix for install; use clean.mk again
12722 * doc/clean.mk: clean *.pdf and *.html too
12724 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
12726 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
12727 * device/lib/printfl.c: fix a ds390 bug by making it portable
12728 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
12729 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
12730 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
12731 * debugger/mcs51/cmd.c: converted multi-line string literals
12732 * sim/ucsim/globals.cc: converted multi-line string literals
12733 * src/SDCCmain.c: introduced signal handler to remove temp files
12734 * doc/Makefile: small tweaks, implement clean
12735 * doc: removed generated files
12737 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12739 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
12740 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
12741 Address Record is not correctly generated for DS390."
12743 2003-02-02 Borut Razem <borut.razem AT siol.net>
12745 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
12746 * as/mcs51/asm.h: fixed compilation with Borland C
12747 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
12748 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
12749 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
12750 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
12751 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
12752 src/z80/Makefile.bcc: delete $(LIB) only if exist
12753 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
12755 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
12757 * device/include/malloc.h: introduced NULL
12758 * device/include/string.h: introduced NULL
12759 * device/include/stdlib.h: introduced NULL
12760 * device/lib/_memcpy.c: removed NULL
12761 * device/lib/_strcat.c: removed NULL
12762 * device/lib/_strchr.c: removed NULL
12763 * device/lib/_strcmp.c: removed NULL
12764 * device/lib/_strcpy.c: removed NULL
12765 * device/lib/_strcspn.c: removed NULL
12766 * device/lib/_strlen.c: removed NULL
12767 * device/lib/_strncat.c: removed NULL
12768 * device/lib/_strncmp.c: removed NULL
12769 * device/lib/_strncpy.c: removed NULL
12770 * device/lib/_strpbrk.c: removed NULL
12771 * device/lib/_strrchr.c: removed NULL
12772 * device/lib/_strspn.c: removed NULL
12773 * device/lib/_strstr.c: removed NULL
12774 * device/lib/_strtok.c: removed NULL
12775 * device/lib/malloc.c: removed NULL, include own header
12777 2003-02-02 <johan AT balder>
12779 * 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
12780 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
12781 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
12782 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
12783 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
12784 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
12786 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12788 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
12791 2003-02-01 <johan AT balder>
12793 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
12795 2003-01-31 <johan AT CP255758-A>
12797 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
12799 2003-01-30 <johan AT balder>
12801 * src/SDCCBBlock.c: automatic bug detection
12802 * src/SDCCicode.c: automatic bug detection
12804 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12806 * src/SDCCglobl.h: now --xram-size 0 works
12807 * src/SDCCmain.c: now --xram-size 0 works
12809 2003-01-29 <johan AT balder>
12811 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
12813 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12815 * as/mcs51/aslink.h: Added options --xram-size and --code-size
12816 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
12817 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
12818 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
12819 * src/SDCCglobl.h: Added options --xram-size and --code-size
12820 * src/SDCCmain.c: Added options --xram-size and --code-size
12822 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
12824 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
12825 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
12827 2003-01-27 <johan AT balder>
12829 * src/SDCC.y: fixed bug #613764
12831 2003-01-26 <johan AT balder>
12833 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
12834 * src/SDCCsymt.h: fixed bug #673374
12835 * src/SDCCglue.c: fixed bug #661910
12836 * src/SDCCast.c: fixed bug #458099 and 673374
12838 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
12840 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
12841 * as/mcs51/strcmpi.h: added
12842 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
12843 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
12844 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
12845 * as/mcs51/assym.c: strcmpi -> as_strcmpi
12846 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
12847 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
12848 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
12849 * as/mcs51/Makefile.aslink: new module strcmpi
12850 * as/mcs51/Makefile.asx8051: new module strcmpi
12851 * as/mcs51/Makefil.bcc: new module strcmpi
12852 * as/mcs51/Makefile.in: new module strcmpi
12853 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
12855 2003-01-26 <johan AT balder>
12857 * src/SDCCglue.c: reverted back to 1.124
12858 * src/SDCCast.c: reverted back to 1.156
12859 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
12861 2003-01-25 <johan AT balder>
12863 * src/SDCCglue.c: A better fix for bug #661910
12864 * src/SDCCast.c: A better fix for bug #661910
12865 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
12867 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
12869 * src/Makefile.in: remove spawn.o
12870 * src/SDCCmain.c: remove spawn.h
12871 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
12872 * src/spawn.c: removed
12873 * src/spawn.h: removed
12874 * support/regression/ports/ds390/spec.mk: link with -r
12876 2003-01-24 <johan AT CP255758-A>
12878 * src/ds390/gen.c (aopOp): fixed bug #667458
12879 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
12880 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
12881 (createIvalCharPtr): an ival doesn't always have a storage class anymore
12883 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
12885 * src/mcs51/peeph.def: better assembler identation by Frieder
12886 * src/mcs51/gen.c: better assembler identation by Frieder
12888 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
12890 * as/z80/string.h: removed for gcc 3.2
12891 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
12892 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
12894 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12896 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
12897 * src/SDCCpeeph.c (replaceRule): fix bug #663503
12898 * support/regression/Makefile: separate temp files for ports
12899 * support/regression/generate-cases.py: separate temp files for ports
12900 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12901 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12903 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12905 * moved tinitalk to device/examples/ds390
12907 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
12909 * as/mcs51/lkmem.c: rflag is for DS390
12910 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
12911 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
12912 (linkEdit): move mem- and map-files the same way as ihx-files
12913 * src/z80/main.c (_setDefaultOptions): removed --generic
12914 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
12915 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
12916 * src/pic/glue.c (picglue): --c1mode works again
12917 * src/pic16/glue.c (pic16glue): --c1mode works again
12918 * src/asm.c (printCLine): fix #660034
12920 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12922 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
12923 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
12924 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
12925 * as/mcs51/lkmem (summary): better fix for sp problem
12926 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
12927 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
12928 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
12929 remove --stack-after-data
12931 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12933 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
12934 * src/SDCCutil.c (join): ugly bug: missing '\0'
12935 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
12937 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12939 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
12941 * src/pic/main.c (_asmCmd): gpasm supports -o
12942 * src/z80/main.c: more general macros
12943 * device/lib/Makefile.in: remove intermediate files
12945 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12947 * .version: Bumped version number to 2.3.3
12948 * src/SDCCBBlock.c: new option -o
12949 * src/SDCCglobl.h: new option -o
12950 * src/SDCCglue.c: new option -o
12951 * src/SDCCmain.c: new option -o
12952 * src/asm.c: new option -o
12953 * src/ds390/main.c: new option -o
12954 * src/pic/glue.c: new option -o
12955 * src/pic/pcode.c: new option -o
12956 * src/pic/ralloc.c: new option -o
12957 * src/pic16/glue.c: new option -o
12958 * src/pic16/pcode.c: new option -o
12959 * src/pic16/ralloc.c: new option -o
12960 * src/z80/main.c: new option -o
12961 * device/lib/Makefile.in: use -o
12962 * support/regression/ports/ds390/spec.mk: use -o
12963 * support/regression/ports/gbz80/spec.mk: use -o
12964 * support/regression/ports/mcs51/spec.mk: use -o
12965 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
12966 * support/regression/ports/z80/spec.mk: use -o
12967 * support/regression/ports/ucz80/spec.mk: use -o
12968 * support/regression/ports/xa51/spec.mk: use -o
12969 * support/regression/fwk/lib/timeout.c: fix usage string
12971 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
12972 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
12974 2003-01-07 <johan AT balder>
12976 * src/SDCCast.c (decorateType): fixed bug #600035
12978 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12979 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
12980 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
12981 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
12982 * src/pic/pcode.c: outcommented unused variable to remove warnings
12983 * src/pic/ralloc.c: outcommented unused variable to remove warnings
12985 2003-01-06 <karl AT turbobit.com>
12986 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
12989 2003-01-06 <johan AT balder>
12991 * src/SDCCicode.c: fixed array add
12993 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
12994 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
12995 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
12997 2003-01-04 <johan AT balder>
12999 * src/SDCCval.c (getNelements): fixed the initialized array of structures
13001 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13002 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13004 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
13005 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13006 * support/regression/tests/bug-524697.c: fit mem usage into 8032
13008 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
13009 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13011 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
13012 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13014 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
13015 * src/mcs51/main.c: removed {bindir}{sep} from aslink
13017 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13019 * in /sdcc/as/mcs51/ changed these files in order to create an
13020 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13021 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
13022 following files to include the previous two files: aslink.dsp,
13023 Makefile.aslink, Makefile.bcc, and Makefile.in.
13025 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13026 .adb instead of .cdb
13028 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13030 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13031 value from option --iram-size.
13033 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13035 * /sdcc/as/mcs51/lklist.c: added boundary check before using
13038 2002-09-18 <wiml AT hhhh.org>
13040 * SDCClrange.h: exposed setFromRange() and setToRange()
13041 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13042 packRegsForAccUse() (bug 542397)
13043 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13044 multiple times and emitting the fetch operations more than once
13045 added aopGetUsesAcc() function to allow binary operators to
13046 fetch their operands in the correct order; made genMinus() emit
13047 compact code for X = LITERAL - Y
13049 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13050 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13051 sprintf() in line 1267.
13053 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13054 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13057 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13058 Changes to aslink (All the changes are marked with 'JCF'):
13060 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13063 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13064 area BSEG. Also moves, if possible, the DATA area down into the internal
13065 ram so more space is available.
13067 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13070 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13071 not bytes. Function summary() which creates a memory usage summary
13072 file with extension .mem. Reports of overlaping stack and small stack
13073 size. If the space for the stack is less than 16 bytes aslink trows a
13076 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13077 the 8051. Option 'y' for memory summary output file.
13079 Changes to sdcc (All the changes are marked with 'JCF'):
13081 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13083 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
13084 overlaying area for it (uses RegBankUsed[4]).
13086 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13087 bank zero as used by default. By default aslink locates the stack
13088 (equivalent to --stack-after-data). Pass option 'y' to aslink for
13089 the creation of the .mem file. Delegates the allocation of data area
13090 to aslink (it is not longer 0x30 by default). If --stack-loc passes
13091 the begining of the stack area to aslink.
13093 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
13094 glue() in SDCCglue.c creates an area for it.
13096 2002-09-03 Borut Razem <borut.razem AT siol.net>
13097 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13098 sdcc/src/pic/glue.c:
13099 introduced atexit() handler for teporay files removal in case of
13100 errors, assertions, ...
13102 2002-08-29 Borut Razem <borut.razem AT siol.net>
13103 * sdcc/support/cpp2/auto-host_vc_in.h:
13104 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13105 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13106 Maybe there is a similar problem with BORLANDC? It should be checked!
13108 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13109 corrected improper use of assert: the assignment to clr variable was done inside the assert.
13110 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13111 was not executed, and the compiler (cl) launched a warning:
13112 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13114 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
13115 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13117 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13118 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13120 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13121 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13122 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13123 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13124 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13125 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13126 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13127 - added Release configuration in VS projects
13128 - review of compiler an linker options
13129 - VC .exe files are generated in bin_vc directory, not to interfere
13130 with binaries generated from other projects (cygwin, mingw, bcc ...)
13132 * sdcc/src/yacc.dsp: added
13134 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13135 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13136 and insert the version number definitions from .version
13138 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13140 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13141 added - genarate auto-host.h using auto-host_vc_in.h as template
13144 removed from CVS, generated automatically
13146 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
13147 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13149 2002-08-11 Borut Razem <borut.razem AT siol.net>
13150 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13152 2002-08-10 Borut Razem <borut.razem AT siol.net>
13153 * src/SDCCmain.c (main):
13154 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13155 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13156 The consequence was that some temporary files were not removed.
13159 unification of code in functions tempfilename() and tempfile():
13160 function tempnam() is defined in Visual Studio 6.0 and .NET
13162 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13164 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13165 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13166 - removed compiler command line option /WX: Treats all warnings as errors
13167 - update a list of source files, included into the project
13169 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13170 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13171 changed project type to Generic Project so that can be correcly converted to VS.NET project
13173 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13175 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13177 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13179 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13180 added return 0 statements after assert() to make compiler happy
13182 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13183 added newline in the def file to keep MSC compiler satisfied
13185 * sdcc/src/z80/gen.c:
13186 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13187 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13188 - solved MSC error in function aopDump()
13190 * sdcc_vc.h: define PREFIX as "\\sdcc"
13192 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
13193 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13195 2002-06-22 Scott Dattalo <scott AT dattalo.com>
13196 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13197 - Rewrote the register banking algorithm.
13198 - Added pCode live-range analysis to registers (for now, only non-used and
13199 singly-used registers optimized away)
13201 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13203 * 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.
13205 2002-05-10 Scott Dattalo <scott AT dattalo.com>
13206 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13208 2002-04-22 Michael Hope <michaelh AT vroom>
13210 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13212 * configure.in (DD_COPT): Added include support required for gbdk.
13214 * .version: Bumped version number just to increase it.
13216 * src/SDCCmain.c: Added -nostdinc to the default options.
13218 2002-04-15 Michael Hope <michaelh AT vroom>
13220 * device/lib/z80/printf.c (sprintf): Added.
13222 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13224 * src/z80/peeph.def: Added transpose redundent load rule.
13226 * src/z80/main.c: Added force callee saves for jaune.
13228 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13230 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13232 2002-03-28 Johan Knol <johan AT balder>
13234 * src/SDCCval.c: fixed bug #532436
13236 2002-03-14 Scott Dattalo <scott AT dattalo.com>
13238 Added "char *Processor" field to the port structure.
13241 Added -p option. Allows port dependent processor to be specified.
13244 Initialized the new field char *Processor field to NULL in all ports
13247 Compiler generated registers for interrupt context saving
13248 were not getting allocated.
13250 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
13253 Fixed left shift. Will promote the left side of a left shift
13254 if a) left shifting more than size of operand or b) when assigned
13255 to something size > size of left side
13257 2002-03-14 Scott Dattalo <scott AT dattalo.com>
13259 tons of changes. Register allocation has been
13260 rewritten. Added customization for the various PICs. Flow
13261 analysis is restructured. ...
13263 * src/pic/device.h:
13266 * src/pic/device.c:
13267 Added. device.c is a PIC port hack to accomodate variations
13270 2002-03-13 Michael Hope <michaelh AT vroom>
13272 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
13274 2002-03-04 johanknol <johanknol AT manik>
13276 * /src/SDCCval.c: fixed
13278 const unsigned char arr[][2] = { { 0, 1 } };
13279 t18.c:1: error: Initializer element is not constant
13281 2002-03-04 bela <bela AT manik>
13283 * /device/include/mcs51reg.h:
13284 ds89c420 register definition update
13286 2002-03-03 <johan AT FRIJA>
13288 * support/Util/SDCCerr.c: did something, but don't no why anymore
13290 * support/regression/tests/bug-524691.c: made it a little less shy
13292 * src/SDCCast.c (decorateType): fixed bug #524697
13294 * src/SDCCast.c: made some lineno improvements
13296 * src/SDCCval.c (getNelements): changed warning to error
13298 * src/SDCCglue.c (printIvalArray): changed warning to error
13300 * src/SDCCicode.c: fixed a warning for mingw
13302 * src/SDCCast.c (decorateType): fixed the << promotion for ops
13304 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13306 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
13308 * src/ds390/peeph.def:
13309 Added some more peephole rules
13311 * src/ds390/gen.c: Various fixes & enhancements
13313 * src/SDCClrange.c, src/SDCClrange.h:
13314 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13316 * src/ds390/ralloc.c:
13317 various fixes & enhancements (ds390) specific
13319 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13320 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13323 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13325 2002-03-02 <johan AT FRIJA>
13327 * src/SDCCast.c (decorateType): fixed bug #524708
13329 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13331 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13333 2002-03-01 Michael Hope <michaelh AT vroom>
13335 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13337 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13339 2002-03-01 <johan AT FRIJA>
13341 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13343 * src/SDCCast.c (decorateType): fixed bug #524209
13345 * src/SDCCval.c (valNot): fixed bug #524195
13347 2002-02-26 <johan AT balder>
13349 * src/xa51/gen.c: fixed a warning
13351 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13353 * src/SDCCast.c (decorateType): fixed bug #522534
13355 2002-02-23 <johan AT balder>
13357 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13359 2002-02-22 <johan AT balder>
13361 * src/SDCCast.c: fixed bug #514865
13363 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13365 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
13367 * sdcc/src/SDCCloop.c:
13368 Previous fix was not good. basic blocks that have "break" or "return" are
13369 not really partof a loop , but live ranges used in these blocks should
13370 be live thru the entire loop, so set partOfLoop but don't add them to
13373 2002-02-21 <johan AT FRIJA>
13375 * src/SDCCcse.c: fixed bug #514308
13377 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
13380 Fixed BUG #519583. If a conditional block ended in a return/break
13381 statement inside a loop, it was not being considered part of the loop.
13383 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13385 2002-02-10 Karl Bongers <karl AT turbobit.com>
13388 Fixed up SDCDB debugger somewhat. Updated debugger/README
13389 with lots of comments and notes.
13391 * device/examples/test2.c:
13392 Fix bug, "red" variable not being initialized(compiler complained).
13394 * device/examples/Makefile, examples/test3.c:
13395 Add Makefile in device/examples folder, compiles test3.c
13396 for use as a multiple module SDCDB test case.
13398 * sim/ucsim/cmd.src/cmdset.cc:
13399 Took out debug printfs in ucsim "next" command.
13401 * sim/ucsim/xa.src:
13402 Karl and Johan start ucsim XA support. Most dissassembly working,
13403 about 75% emulation done(plenty of work remaining).
13405 * sim/ucsim/z80.src:
13406 Add Z80 support to ucsim, add test-ucz80 regression test,
13407 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13408 Notice z80 compiler fails on examples/test3.c/crc code.
13410 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
13412 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13413 Added support for --parms-in-bank1
13415 * src/ds390/peeph.def:
13416 added a few more peephole optimzations
13418 * src/ds390/main.c:
13419 1) added __builtin_inp & __builtin_outp used to read in data of given length
13420 from a memory mapped port
13421 2) added __builtin_memcmp
13422 3) added __builtin_swapw swap bytes of a short
13424 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13425 1) handle multiple send & receives from register bank1
13426 2) ralloc can now allocate DPTR1 to some liveRanges
13428 * src/SDCCsymt.c, src/SDCCsymt.h:
13429 changes to handle multiple sends & receives
13431 * src/SDCCptropt.h:
13432 added some pointer arithmetic optimization
13434 * src/SDCCptropt.c:
13435 added some pointer arithmetic optimizations but not stable yet so not
13436 called from anywhere (will get this working shortly)
13438 * src/SDCCopt.c: fixed for multiple sends & receives
13441 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13442 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13443 set preprocessor defines (depending on options)
13445 * src/SDCCicode.c, src/SDCCicode.h:
13446 changes made to handle multiple sends & receives
13449 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13451 * src/SDCCcse.c, src/SDCCcse.h:
13452 added function findbackward def (to be used in upcoming optimization)
13454 * src/SDCCcflow.c, src/SDCCcflow.h:
13455 added function returnAtEnd - to determine if a basic block terminates with
13458 * src/SDCCast.c, src/SDCCast.h:
13459 added option parms-in-bank1
13461 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13462 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13463 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13464 adjusted for --parms-in-bank1 option
13466 * device/include/string.h:
13467 donot redefine "reentrant" keyword
13469 * device/include/ds80c390.h: Added some more SFRs
13471 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
13473 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13475 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
13477 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13479 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
13481 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13483 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
13485 * Added --xram-movc option
13487 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13489 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13491 2002-01-11 Johan Knol
13493 * Added math lib of Jesus Calvino-Fraga
13495 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
13497 * src/SDCCmain.c (processFile): fix processing of ../../src.c
13498 * support/regression/Makefile: new target test-mcs51-stack-auto
13499 * support/regression/ports/mcs51-stack-auto/spec.mk: added
13501 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
13503 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13505 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
13507 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13509 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
13511 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13513 * src/SDCCglue.h: add definition for printIvalChar()
13515 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
13517 * src/SDCCast.c: fix #498138 by Johan
13519 * src/SDCCglue.c: fix #498138 by Johan
13521 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
13523 * support/regression/Makefile: fix clean
13525 * support/regression/ports/ds390/support.c: fix transmission of last character
13527 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
13529 * /sdcc/src/ds390/gen.c:
13530 a) improved computing address of stack variable
13531 b) took out some #if 0 code
13532 c) improved parmBytes adjustment
13533 d) improved genPlusIncr & genMinusIncr
13534 e) genCmp could generate bad code (when left assigned to DPTR)
13535 f) Fixed bug in hasInc
13537 * /sdcc/src/ds390/ralloc.c:
13538 a) packRegsForSupport could mess up live information (Fixed)
13539 b) packRegsDPTRuse could be incorrect for left & right shift
13541 * /sdcc/src/mcs51/ralloc.c:
13542 packRegsForSupport could mess up the live information (Fixed)
13544 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13546 * /sdcc/src/SDCCast.c:
13547 can reverse a loop even if function call is present as long
13548 as the loop control variable is local & is not passed as parameter
13550 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
13552 * /sdcc/ChangeLog: *** empty log message ***
13554 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13555 More builtin function additions for TININative
13557 * /sdcc/src/ds390/ralloc.c:
13558 Had broken the regression testsuite
13560 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13562 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13563 Added funcattr hasStackParms will be set for reentrant functions when there
13564 are paramteres on the stack, this helps in minimizing frame pointer generation
13565 typeFromStr can handle function pointers now
13567 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13568 *** empty log message ***
13570 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
13572 * /src/ds390/gen.c, /src/ds390/main.c:
13573 More builtin function additions for TININative
13575 * /src/ds390/ralloc.c:
13576 Had broken the regression testsuite
13578 * /src/SDCCast.c: Fixed a bug in dumptree
13580 * /src/SDCCsymt.c, /src/SDCCsymt.h:
13581 Added funcattr hasStackParms will be set for reentrant functions when there
13582 are paramteres on the stack, this helps in minimizing frame pointer generation
13583 typeFromStr can handle function pointers now
13585 * /doc/builtins.txt, /doc/TININative.txt:
13586 *** empty log message ***
13589 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
13591 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13592 ALPHA version for -mTININative
13594 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13595 updated to reflect changes in the port structure
13598 added function do_assemble (similar to do_link) if non-null this function
13599 will be called to do assembly (-mTININative) requires a multi command
13601 added function genAssemblerEnd will be called to generate assembler Epilogue
13604 added _JavaNative to debug info printing
13606 * /src/SDCCmain.c: added option --tini-libid
13607 added port->do_assemble function (-mTININative) has a multi command assemble
13609 * /src/SDCCglue.c: Disabled "constExpr" check
13610 added port->genAssemblerEnd function
13612 * /src/SDCCglobl.h: Added option --tini-libid value
13615 tookout optimizeCompare from the header (has no external references)
13617 * /src/SDCCast.c: made one more function "static"
13619 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
13621 * src/z80/mappings.i: Added z80asm support.
13623 * src/z80/main.c: Added z80asm support on --asm=z80asm
13625 * src/z80/gen.c: Fixed asm portability issues.
13627 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
13629 * src/SDCCglue.c (printExterns): Added global/extern split.
13631 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
13633 * support/regression/Makefile: added test for mcs51 model large
13635 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
13637 * support/regression/ports/gbz80/spec.mk: added -mgbz80
13639 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
13641 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
13643 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
13645 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
13647 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
13649 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
13651 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
13653 * support/regression/tests/simplefloat.c: Port to mcs51.
13655 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
13656 * support/regression/tests/bug-485362.c: Added.
13658 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
13660 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
13662 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
13664 * src/z80/gen.c (aopDump): Added a dump function.
13666 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
13667 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
13669 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
13671 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
13673 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
13675 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
13677 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
13679 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
13681 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
13683 * support/regression/ports/ds390/support.c: Use tinibios.
13685 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
13687 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
13689 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
13690 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
13692 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
13694 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
13696 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
13698 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
13700 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
13701 (packRegsForIYUse): Created and optimised.
13703 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
13705 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
13706 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
13708 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
13710 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
13712 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
13714 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
13716 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
13718 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
13720 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
13722 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
13724 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
13726 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
13728 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
13730 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
13731 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
13732 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
13734 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
13736 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
13737 (genNotFloat): Added.
13738 (genUminusFloat): Added.
13740 * device/lib/z80/Makefile: Added floating pt stubs.
13742 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
13744 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
13746 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
13748 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
13750 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
13752 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
13754 * sdcc/support/regression/Makefile: Add port ds390.
13756 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
13758 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
13760 * sdcc/support/regression/ports/ds390/spec.mk: Added.
13762 * sdcc/support/regression/ports/ds390/support.c: Added.
13764 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
13766 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
13768 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
13770 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
13772 * device/include/malloc.h: Added z80 and gbz80 support.
13774 * device/lib/gbz80/heap.s: Added.
13776 * device/lib/z80/heap.s: Added.
13778 * device/lib/malloc.c: Added z80 and gbz80 support.
13780 * support/regression/tests/malloc.c (testMalloc): Added.
13782 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
13784 * support/regression/tests/bug-478094.c: Added.
13786 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
13788 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
13790 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
13792 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
13794 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
13796 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
13798 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
13800 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
13802 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
13804 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
13806 * support/regression/tests/bug-477927.c: Added.
13808 * src/z80/peeph.def: Added minor rules.
13810 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
13812 * src/z80/peeph.def: Added jump optimisation modification.
13814 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
13816 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
13818 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
13820 * support/regression/tests/funptrs.c: Added.
13822 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
13824 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
13826 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
13828 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
13830 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
13832 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
13833 (movLeft2ResultLong): Created.
13835 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
13836 (joinPushes): Added. Joins two char pushes into a word push.
13838 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
13840 * support/cpp2/Makefile.in (install): Added creation of dest dir.
13842 * support/makebin/Makefile (install): Added creation of dest dir.
13844 2001-10-24 Karl Bongers <karl AT turbobit.com>
13846 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
13848 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
13850 * src/z80/ralloc.c: Turned off faulty pack for one use.
13852 * src/z80/peeph-gbz80.def: Removed redundent restart options.
13854 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
13856 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
13858 * support/regression/Makefile: Improved clean
13860 * support/regression/ports/gbz80/spec.mk: Added clean
13862 * support/regression/ports/host/spec.mk: Added clean
13864 * support/regression/ports/z80/spec.mk: Added clean
13866 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
13868 * support/regression/ports/mcs51/timeout.c: little improvements
13870 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
13872 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
13874 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
13876 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
13878 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
13880 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
13882 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
13884 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
13885 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
13887 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
13889 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
13891 * src/mcs51/main.c (_linkCmd): Added bin path to command.
13893 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
13895 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
13897 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
13899 * support/regression/tests/longor.c: Added.
13901 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
13903 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
13905 * as/mcs51/aslink.h: define PATH_MAX
13907 * as/mcs51/asm.h: define PATH_MAX
13909 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
13911 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
13913 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
13915 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
13917 * src/SDCCglobl.h: define PATH_MAX
13919 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
13921 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
13923 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
13925 * src/z80/gen.c (gencjneshort): Fixed
13927 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
13929 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
13931 * support/regression/tests/bug-469671.c: Added.
13933 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
13935 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
13937 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
13939 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
13941 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
13943 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
13945 * src/device/lib/_mulint.c : removed hint: nooverlay bug
13947 * src/device/lib/_mullong.c : removed hint: nooverlay bug
13949 * src/device/lib/_divuint.c : removed hint: nooverlay bug
13951 * src/device/lib/_divulong.c: removed hint: nooverlay bug
13953 * src/device/lib/_moduint.c : removed hint: nooverlay bug
13955 * src/device/lib/_modulong.c: removed hint: nooverlay bug
13957 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
13959 * 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.
13961 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
13963 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
13965 2001-10-07 <johan AT FRIJA>
13967 * device/lib/gets.c (gets): fixed the return value.
13969 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
13970 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
13972 * 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.
13974 * 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.
13976 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
13978 * src/pic/gen.c: Removed Safe_strdup.
13980 * configure.in: Added option to enable libgc support.
13982 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
13983 (bitVectUnion): Optimised.
13984 (bitVectIntersect): Optimised.
13985 (bitVectBitsInCommon): Optimised.
13986 (bitVectCplAnd): Optimised.
13988 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
13990 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
13992 * src/SDCCmain.c: distinguish between assembler debug and plain options
13994 * src/avr/main.c: remove standard assembler options
13996 * src/ds390/main.c: remove standard assembler options
13998 * src/mcs51/main.c: remove standard assembler options
14000 * src/port.h: removed "PENDING" comment
14002 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14004 * src/device/lib/_mulint.c : new, with assember functions
14006 * src/device/lib/_mullong.c : new, with assember functions
14008 * src/device/lib/_divuint.c : with assember functions
14010 * src/device/lib/_divsint.c : with assember functions
14012 * src/device/lib/_divulong.c: with assember functions
14014 * src/device/lib/_divslong.c: with assember functions
14016 * src/device/lib/_moduint.c : with assember functions
14018 * src/device/lib/_modsint.c : with assember functions
14020 * src/device/lib/_modulong.c: with assember functions
14022 * src/device/lib/_modslong.c: with assember functions
14024 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
14026 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14028 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
14029 replaced _mululong.c and _mulslong.c by _mullong.c
14031 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14033 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14035 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14037 * src/SDCCglue.c: test, if win32api is available for MINGW
14039 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14041 * src/SDCCsymt.c: no more _modifier in printTypeChain()
14042 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14043 * support/regression/ports/gbz80/spec.mk: removed GENERIC
14044 * support/regression/ports/host/spec.mk: removed GENERIC
14045 * support/regression/ports/mcs51/spec.mk: removed GENERIC
14046 * support/regression/ports/z80/spec.mk: removed GENERIC
14048 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
14050 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14052 * support/regression/tests/bug-467035.c: Created.
14054 2001-10-01 <johan AT FRIJA>
14056 * src/SDCC.y: fixed bug #466586 part 1
14058 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
14060 * SDCCicode.c: z80 has no generic pointers
14061 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14063 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
14065 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14067 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
14069 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14071 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14073 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
14075 * configure.in: Fixed up so that ucsim is only configured once.
14077 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14079 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14080 (getPathDifference): As above.
14082 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
14084 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14086 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
14087 * .version: Updated to 2.3.1
14089 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14090 Added copyright header.
14092 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14093 (assemble): Added support for macro based assembler commands.
14094 (linkEdit): Added support for macro based linker commands.
14095 (preProcess): Changed the pre-processor to use macros.
14096 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14097 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14099 * device/lib/z80/crt0.s: Added module name for debugging.
14101 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
14103 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14105 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14107 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14109 * src/Makefile.in: Added SDCCmacro and SDCCutil
14111 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
14113 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14115 2001-09-16 <johan AT FRIJA>
14117 * 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.
14119 2001-09-15 <johan AT FRIJA>
14121 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14122 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14124 2001-09-11 <johan AT FRIJA>
14126 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14128 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
14130 * support/regression/tests/bug-460444.c: Added test case.
14132 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14133 (genCast): Added justification for all of the asserts.
14135 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
14137 * support/regression/support.c: _xdata replaced by xdata
14139 * support/regression/spec.mk: removed _generic
14141 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
14143 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14145 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14146 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14148 * src/z80/peeph.def: Added a rule to optimise shift then compare.
14150 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14152 * support/regression/tests/bug-460010.c: Added test case.
14154 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14156 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
14158 * support/regression/Makefile: inter-port-clean adjusted for mcs51
14160 * support/regression/testfwk.c: removed workaround for bug #436344
14162 * support/regression/tests/bp.c: use less memory with mcs51
14164 * support/regression/tests/bug-441448.c: use less memory
14166 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14168 * support/regression/collate-results.py: typo
14170 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
14172 * support/regression/tests/fetchoverlap.c: Added new test case.
14174 * support/regression/tests/bp.c: Added new test case.
14176 * support/regression/tests/bug-448984.c: Added new test case.
14178 * support/regression/tests/pow2shifts.c: Added new test case.
14180 * src/z80/gen.c: Turned off the noise it normally generates for the release.
14181 (genlshTwo): Fixed right shift for count > 8.
14183 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14185 2001-09-08 <johan AT FRIJA>
14187 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14189 2001-09-07 <johan AT FRIJA>
14191 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14193 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14195 2001-09-06 <johan AT FRIJA>
14197 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14198 * bernhard noted me at this: "() equals to (void)" (1.38)
14200 2001-09-05 <johan AT FRIJA>
14202 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14204 2001-09-04 <johan AT FRIJA>
14206 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14209 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
14211 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
14213 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
14215 * link/z80/aslink.h: Fixed path for PATH_MAX
14217 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
14219 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14221 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14223 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14225 * 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.
14227 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
14229 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14230 (genCmp): Fixed up genCmp for the GB with longs.
14232 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14234 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14236 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14238 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14240 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
14242 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
14244 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
14246 * 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.
14248 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14250 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
14252 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
14254 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14256 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
14258 * sim/ucsim/configure: little improvement of Cygwin-detection
14259 * sim/ucsim/configure.in: little improvement of Cygwin-detection
14260 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14261 * support/regression/tests/bug-221100.c: small changes for mcs51
14262 * support/regression/tests/bug-221168.c: small changes for mcs51
14263 * support/regression/tests/bug-227710.c: small changes for mcs51
14264 * support/regression/tests/staticinit.c: small changes for mcs51
14265 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14266 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
14267 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601