borutr [Sat, 12 Aug 2006 20:13:39 +0000 (20:13 +0000)]
* support/regression/fwk/include/testfwk.h,
support/regression/fwk/lib/testfwk.c,
support/regression/generate-cases.py,
support/regression/Makefile.in:
regression test framework does not depend on function pointers and
variable arguments
MaartenBrock [Wed, 9 Aug 2006 12:30:18 +0000 (12:30 +0000)]
* as/z80/assym.c (mlookup): ignore case when looking up mnemonics
* as/z80/Makefile.in: added strcmpi.c
* as/z80/z80adr.c: added upper case registers and lower case conditionals
* support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
MaartenBrock [Tue, 8 Aug 2006 19:20:11 +0000 (19:20 +0000)]
* device/lib/gbz80/asm_strings.s,
* device/lib/gbz80/crt0_rle.s,
* device/lib/gbz80/div.s,
* device/lib/gbz80/mul.s,
* device/lib/gbz80/shift.s,
* device/lib/z80/asm_strings.s,
* device/lib/z80/crt0_rle.s,
* device/lib/z80/div.s,
* device/lib/z80/mul.s,
* device/lib/z80/shift.s: changed to all lower case menmonics except the
flags which are all upper case
MaartenBrock [Mon, 7 Aug 2006 16:06:16 +0000 (16:06 +0000)]
* as/z80/asm.h: made CASE_SENSITIVE 1
* link/z80/aslink.h: made CASE_SENSITIVE 1
* src/z80/gen.c (throughout): made all conditionals upper case
* support/regression/tests/bug1503067.c: new
MaartenBrock [Sun, 6 Aug 2006 22:36:30 +0000 (22:36 +0000)]
* src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
(shiftIntoPair): added case 2 for PAIR_IY,
(setupToPreserveCarry): replaced parameters with iCode and check if
PAIR_DE is in use to fix bug 1399290,
(genPlus, genMinus): updated call to setupToPreserveCarry
* support/regression/tests/bug1399290.c: new
MaartenBrock [Tue, 1 Aug 2006 19:05:38 +0000 (19:05 +0000)]
* sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
* sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
* sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
* Changelog: not every \ should be a /
borutr [Tue, 1 Aug 2006 17:21:25 +0000 (17:21 +0000)]
* src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
comparison is always false due to limited range of data type
on PPC64 machine (openpower-linux1) where "char = unsigned char"
* sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
enable ucsim mingw compilation. Serial port is disabled,
since it uses termios.h API, which is not available on native
WIN32
sdcc:
* Small Device C Compiler 2.6.0 released
* support/scripts/sdcc.nsi: added FULL_DOC option
sdcc-web:
* index.php: Small Device C Compiler 2.6.0 released
* device/lib/pic/libsdcc/fsdiv.c,
* device/lib/pic/libsdcc/fsmul.c,
* device/lib/pic16/libsdcc/float/fsdiv.c,
* device/lib/pic16/libsdcc/float/fsmul.c: bugfix, handle too large and small numbers
* device/include/mcs51/compiler.h: added SFRX for xdata based special
function registers and corrected defaults with additional warning
* device/lib/malloc.c: cosmetic changes
* device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
* src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
(fillGaps): and used it
* src/pic/device.c (addMemRange,assignRegister): suppress verbose
output unless SDCCPICDEBUG is set
* device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
output if SILENT is set
sdcc:
* support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
device/lib/src/pic/libm/*.c in WIN32 installation
sdcc-web:
* snap.php: support for i586-mingw32msvc snapshots
* support/regression/valdiag/tests/switch.c,
* support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
* support/regression/tests/libmullong.c: fixed for host
* support/regression/ports/host/spec.mk: disable all warnings for host, SDCC runs with --less-pedantic too
tecodev [Sun, 25 Jun 2006 22:17:57 +0000 (22:17 +0000)]
* device/lib/pic/libm: NEW, added math library functions
* device/lib/pic/libsdcc: NEW; added float support functions
* device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
* device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
NEW, added math related headers
* device/include/asm/pic/features.h: NEW
* src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
(popGet): allow larger offsets for AOP_PCODE,
(genDataPointerSet): handle literals explicitly, more debug output,
(genAssign): fixed for float using aopLiteral ;-)
* src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
GOTO initialisation routine
* src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
flag on registers, fixes #1469043 (local variables do not work)
* src/pic/main.c (_pic14_do_link),
* src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
available
borutr [Sun, 25 Jun 2006 12:22:18 +0000 (12:22 +0000)]
* device/lib/pic16/libc/stdio/sprintf.c: return the number of
characters printed (not including the trailing '\0' used to end
output to strings). Problem detected in regression test bug-927659.c.
NOTE: printf() family functions should return int instead
unsigned int!
* device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
specifier are printed as themselves
* sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
support flags, width and precision specifiers
borutr [Sat, 24 Jun 2006 20:49:06 +0000 (20:49 +0000)]
* sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
to the list of sdcc tagrets not supporting bit type
* sdcc/support/regression/tests/bug-905992.c.c: excluded regression
testfor pic16 due to bug:
[ 1511794 ] pic16: regression test bug-895992.c fails
tecodev [Mon, 19 Jun 2006 20:36:23 +0000 (20:36 +0000)]
* src/pic/glue.h,src/pic16/glue.h: added prototypes
* src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
pic1x_emitSymbolIfNew): NEW, check for a string in a set,
(pic14printExterns,pic14printPublics,pic16printPublics,
pic16_printExterns): use new functions to emit symbols
(picglue,pic16glue): emit publics before emitting externs
* src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
locally defined functions to avoid bug #1443651
* support/regression/tests/bug-716242.c: removed pic16 workaround
* support/regression/ports/pic16/spec.mk: ignore errors during build
tecodev [Mon, 19 Jun 2006 16:50:14 +0000 (16:50 +0000)]
* src/pic/glue.h: added pic14aopLiteral prototype
* src/pic/glue.c (pic14aopLiteral): return unsigned int
* src/pic/gen.c: removed stdint.h dependency
(aopGet): use Safe_strdup()
(bitpatternFromVal): removed, replaced use with pic14aopLiteral
(genDataPointerSet): use pic14aopLiteral()
* src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
for pic16; thanks to Bernhard and Maarten
borutr [Sun, 18 Jun 2006 21:08:05 +0000 (21:08 +0000)]
* support/regression/tests/structflexarray.c: flexible array members
not supported by gcc < 3
* sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
GUI tool by default
* src/pic/gen.c: don't include [p]strdin.h on solaris
* support/Util/pstdint.h: addad svn attributes
borutr [Sun, 18 Jun 2006 18:48:25 +0000 (18:48 +0000)]
* support/regression/tests/structflexarray.c: flexible array members
not supported by gcc < 3
* lib/variables.mk, lib/fetch.mk, sdcc-build-bootstrap.sh:
use common ORIG tree with VPATH functionality
tecodev [Sun, 18 Jun 2006 16:42:39 +0000 (16:42 +0000)]
* src/SDCCsymt.c (initCSupport): change return type of divschar to
int for PIC16
* src/pic16/genarith.c (genAddLit): sign-extend via standard routine
(pic16_genMinusBits): simplified sign-extension
(pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
adjusted to correctly handle mixed-signed operands, disabled
now unused multiplciation routines
* src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
(assignResultValue): added argument denoting the size of the result
as returned by the function (fixes upcasts in assigning from
function calls: char foo(); int i = foo();)
(genCall,genPcall,genGenPointerGet,genReceive): pass size of
function result to assignResultValue
(genMult): disabled inlined multiplication code
(genDiv): augmented to also handle the modulus operator, fixed to
handle mixed-signed operands correctly
(genMod): simply call genDiv, disabled unused code
(genAssign): fixed missing (sign-)extension on result
* src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
valid char operands, allow signed operands for native code, added
division and modulo operator handling
* device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
As a consequence, onebyte.c (if split into two files) and muldiv.c
pass regression tests.
frief [Sat, 17 Jun 2006 21:40:28 +0000 (21:40 +0000)]
* doc/Makefile.in: two runs of makeindex seem needed to get correct page references in the index of sdccman.pdf
* doc/sdccman.lyx: mentioned cmon51, added links, small changes
MaartenBrock [Fri, 16 Jun 2006 14:31:13 +0000 (14:31 +0000)]
* as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
consecutive abs areas
(find_empty_space, allocate_space): added map to handle codemap or
xdatamap,
(lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
absolute idata and xdata
* as/mcs51/lkmem.c (summary2): updated legend
vrokas [Tue, 13 Jun 2006 08:32:55 +0000 (08:32 +0000)]
* src/port.h (struct PORT): added field gp_tags, to hold the tag
value of generic pointers,
* src/avr/main.c,
src/ds390/main.c,
src/hc08/main.c,
src/izt/i186.c,
src/izt/tlcs900h.c,
src/mcs51/main.c,
src/pic/main.c,
src/pic16/main.c,
src/xa51/main.c,
src/z80/main.c: PORT structure, added elements for gp_tags field,
* src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
fields in the PORT structure of each port,
* src/SDCCast.c (decorateType): allow processing of generic pointers
for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
S_FIXED symbols
tecodev [Mon, 5 Jun 2006 21:38:29 +0000 (21:38 +0000)]
* src/pic16/{pcode.h,genarith.c}:
introduced pCodeOp combining any two pCodeOps (previously only
two register operands could be combined), removed pcop2 from
pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
* src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
* src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
rewritten to use new PO_TWO_OPS
* src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
* src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
(pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
(pic16_newpCodeOp2): NEW, create combined pCodeOp,
(pic16_get_op): embraced return arg to allow #define return(x),
added new case for combined opcodes
(pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
(pic16_pCode2str,pic16_getRegFrompCodeOp,
pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
bernhardheld [Sun, 4 Jun 2006 20:14:11 +0000 (20:14 +0000)]
* src/SDCCval.c (checkConstantRange): added
* src/SDCCval.h: added checkConstantRange
* support/Util/SDCCerr.c,
* support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
* src/SDCC.y: moved early 'condition transformations' to SDCCast.c
* src/SDCCast.c (decorateType): added checkConstantRange,
added 'condition transformations' from SDCC.y so that now W_COMP_RANGE can be emitted with the correct always true/false warning,
added optimization for double '!';
result of decorateType() must be assigned back to the tree, because decorateType() can change the tree
* src/SDCCicode.c (geniCodeLogic),
(geniCodeAssign): replaced new checkConstantRange, added warnings,
(checkConstantRange): removed, it was only a fragment which never emitted a warning
* src/SDCCsymt.c (computeType): fixed promotion for "-1 < (unsigned bit) b"
* src/pic/ralloc.c (packRegsForAssign),
* src/pic16/ralloc.c (packRegsForAssign),
* src/hc08/ralloc.c (packRegsForAssign),
* src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931 from mcs51
* src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
* support/regression/tests/constantRange.c: added
* support/valdiag/tests/constantRange.c: added