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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4240
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 18 Jun 2006 19:33:25 +0000 (19:33 +0000)]
- corrected test for __GNUC__
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4239
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4238
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4237
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4232
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 17 Jun 2006 14:43:52 +0000 (14:43 +0000)]
* sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4230
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Sat, 17 Jun 2006 10:00:41 +0000 (10:00 +0000)]
doc/sdccman.lyx: updated, added (porting, debugging), mentioned ec2drv and paulmon
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4229
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4228
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 16 Jun 2006 08:40:32 +0000 (08:40 +0000)]
* src/pic16/gen.c (shiftR2Left2Result): fixed bug #
1507127
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4227
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 13 Jun 2006 15:02:07 +0000 (15:02 +0000)]
* src/SDCClrange.c (findPrevUse): fixed bug
1294475
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4225
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 13 Jun 2006 12:49:43 +0000 (12:49 +0000)]
* debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs
1181163 and
1208515
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4224
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4223
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 12 Jun 2006 21:22:45 +0000 (21:22 +0000)]
* link/z80/lkgb.c,
* link/z80/lkgg.c,
* src/pic16/gen.c,
* src/pic16/main.c,
* src/pic16/pcode.c,
* src/pic/main.c,
* src/pic/pcoderegs.c,
* src/SDCCicode.c,
* src/SDCCmain.c,
* src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
bug
1504689 on minGW
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4222
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Mon, 12 Jun 2006 12:34:21 +0000 (12:34 +0000)]
device/lib/printf_tiny.c: fixed bug #
1465675 (%x format specifier)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4221
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Mon, 12 Jun 2006 12:33:35 +0000 (12:33 +0000)]
fixed bug #
1465675 (%x format specifier)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4220
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Mon, 12 Jun 2006 08:58:49 +0000 (08:58 +0000)]
* src/SDCCast.c (backPatchLabels): fixed bug #
1504636
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4219
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Sun, 11 Jun 2006 21:40:26 +0000 (21:40 +0000)]
* device/include/pic16/adc.h,
device/include/lib/pic16/libio/adc/adcopen.c: applied patch #
1364387
and fixed bug #
1364390
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4218
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sun, 11 Jun 2006 17:18:57 +0000 (17:18 +0000)]
* device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
for optimization
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4217
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Sun, 11 Jun 2006 14:41:20 +0000 (14:41 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4216
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Sun, 11 Jun 2006 14:35:35 +0000 (14:35 +0000)]
* src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
to a char variable
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4215
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 11 Jun 2006 08:07:11 +0000 (08:07 +0000)]
* CVSROOT: removed the CVS left-over
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4214
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 10 Jun 2006 20:18:57 +0000 (20:18 +0000)]
* as/hc08/asmain.c (asexit),
* as/hc08/lkmain.c (lkexit),
* as/mcs51/asmain.c (asexit),
* as/mcs51/lkmain.c (lkexit),
* src/SDCCglue.c (DEFSETFUNC),
* src/SDCCmain.c (linkEdit, assemble),
* support/librarian/sdcclib.c (AddRel),
replaced unlink() by standard C remove()
* src/SDCC.y: replaced removePostIncDecOps() by createRMW()
* src/SDCCast.c (replaceAstWithTemporary, createRMW,
gatherImplicitVariables): new, added to fix bug 608752,
(createFunction): added gatherImplicitVariables()
* src/SDCCast.h: added createRMW prototype
* src/SDCCsymt.h (struct symbol): added infertype
* support/regression/tests/bug608752.c: new, added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4212
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Sat, 10 Jun 2006 09:31:29 +0000 (09:31 +0000)]
* src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
multibyte dummy reads (fixes #
1503234)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4211
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 9 Jun 2006 23:16:10 +0000 (23:16 +0000)]
* device/include/mcs51/compiler.h: new, added header file to enable
creating common sfr definition header files for different compilers
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4210
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4209
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Sun, 4 Jun 2006 20:20:49 +0000 (20:20 +0000)]
* support/valdiag/valdiag.py: added -DPORT_HOST=1
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4208
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Sun, 4 Jun 2006 20:18:29 +0000 (20:18 +0000)]
* support/regression/tests/constantRange.c: added
* support/valdiag/tests/constantRange.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4207
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4206
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 2 Jun 2006 18:41:14 +0000 (18:41 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4205
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 2 Jun 2006 13:57:43 +0000 (13:57 +0000)]
* device/lib/printf_large.c (output_digit): optimized further, Thanks Frieder
* src/ds390/gen.c (emitLabel): new, added,
(genDjnz): fixed stack overflow bug,
(throughout): cosmetic changes to sync with mcs51/gen.c,
replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
* src/mcs51/gen.c (genEndFunction): small optimization,
(throughout): cosmetic changes to sync with ds390/gen.c
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4204
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 2 Jun 2006 08:30:51 +0000 (08:30 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4203
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 2 Jun 2006 08:20:17 +0000 (08:20 +0000)]
* device/lib/printf_large.c (output_digit, calculate_digit): optimized,
(_print_format): fixed printing pointers
* src/mcs51/gen.c (emitLabel, movb): new, added,
(genAssign): small optimization,
(genDjnz): fixed stack overflow bug,
(throughout): replaced sprintf with SNPRINTF,
replaced mcs51_regWithIdx with REG_WITH_INDEX,
replaced emitcode("mov", "b,...") with MOVB(...),
replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
* src/mcs51/peeph.def: added rules 140 and 264
* src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
so they may get optimized into registers
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4202
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 30 May 2006 19:59:34 +0000 (19:59 +0000)]
* src/SDCCmain.c: fixed --help
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4201
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 30 May 2006 19:24:29 +0000 (19:24 +0000)]
* src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
immediately when encountered,
(printUsage): always use stderr even on windows
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4200
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 30 May 2006 15:57:13 +0000 (15:57 +0000)]
* src/SDCCmain.c (printVersionInfo, printOptions, printUsage, parseCmdLine, main): print version to stdout, help to stdout on windows and to stderr on all the rest; exit with EXIT_FAILURE if no arguments given
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4199
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 30 May 2006 15:09:00 +0000 (15:09 +0000)]
* src/SDCCast.c (processParms): fixed bug #
1247551
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4198
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 30 May 2006 14:36:36 +0000 (14:36 +0000)]
* src/SDCCast.c (isLoopCountable): fixed bug #
1478316
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4197
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Sat, 27 May 2006 21:02:49 +0000 (21:02 +0000)]
restored else branch for other ports
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4196
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Sat, 27 May 2006 20:50:29 +0000 (20:50 +0000)]
* src/SDCCcse.c (findPointerSet): fixed bug #
1493710
* support/regression/tests/bug-
1493710.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4195
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 27 May 2006 18:52:41 +0000 (18:52 +0000)]
* support/regression/fwk/lib/testfwk.c: define array in _printn() as
static instead auto
* support/regression/ports/pic16/support.c: increase stack size
from default 64 bytes to 128 bytes
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4194
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 27 May 2006 18:41:47 +0000 (18:41 +0000)]
* support/regression/tests/staticinit.c,
support/regression/tests/float.c: regression tests fully enabled
for pic16 port by putting the initialized data arrays into the code
section
* support/regression/ports/pic16/spec.mk: don't link default libraries.
This was changed by mistake in the previous version.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4193
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 27 May 2006 18:11:06 +0000 (18:11 +0000)]
* support/regression/fwk/lib/testfwk.c: increase stack size
from deafult 64 bytes to 128 bytes
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4192
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Fri, 26 May 2006 22:52:11 +0000 (22:52 +0000)]
* src/pic16/gen.c (genFunction, genEndFunction): some
beautifications, fixed bug with falsely restoring FSR2 in large
stack model, thanks to Beau E. Cox for reporting the bug
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4191
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 26 May 2006 12:48:57 +0000 (12:48 +0000)]
* debugger/mcs51/break.c,
* debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
use %p to print pointers, made address variables unsigned
* debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
* debugger/mcs51/symtab.c (parseSymbol): must return something
* src/mcs51/gen.c (aopForSym): small optimization,
moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
(freeAsmop): added missing break,
(aopPut): removed parameter bvolatile, determine it inside the function,
(saveRegisters, unsaveRegisters): small optimization,
(genIpush): removed pointless check,
(throughout): replaced Safe_calloc, strcpy with Safe_strdup,
replaced sprintf with SNPRINTF,
replaced strcpy with strncpyz,
updated aopPut calls,
replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
* src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4190
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 24 May 2006 19:52:20 +0000 (19:52 +0000)]
* support/regression/tests/bug-221100.c: fixed xdata problem caused by
modification of test for the pic16 port, put the array to the code
memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4189
4a8a32a2-be11-0410-ad9d-
d568d2c75423
jesusc [Wed, 24 May 2006 00:47:58 +0000 (00:47 +0000)]
MSC 6 does not have <stdint.h>. Use pstdint.h instead.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4188
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 23 May 2006 18:59:28 +0000 (18:59 +0000)]
* src/regression/Makefile: removed bool2.c test, added -q linker option
* src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
define SUPPORT_BIT_TYPES 0, removed unused bit variables
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4187
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 22 May 2006 21:50:06 +0000 (21:50 +0000)]
* src/pic16/gen.c (pic16_storeForReturn): fragile fix for
bug #
1492360 (problematic due to generic pointers, see code)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4186
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 22 May 2006 20:04:51 +0000 (20:04 +0000)]
* support/regression/ports/pic16/specs.mk: removed stack size linker
directive
* support/regression/tests/array.c,
support/regression/tests/bitopcse.c,
support/regression/tests/bug-908454.c,
support/regression/tests/malloc.c: modified for pic16 regression test
* support/regression/tests/bitfields.c:
pic16 - excluded bitfileds of size > 8
* support/regression/tests/bp.c: pic16 - reduced data size
* support/regression/tests/bug-221100.c: pic16 - reduced data size
* support/regression/tests/bug-460010.c:
pic16 - used the absolute address the fits in memory
* support/regression/tests/bug-716242.c:
bug [
1443651 ] pic 16: redefining symbol that cannot be redefined.
* support/regression/tests/float.c:
pic16 - excluded - data size too big
* support/regression/tests/onebyte.c:
pic16 - bug [
1444425 ] onebyte.c regression tes fails on pic16
* support/regression/tests/shifts.c:
pic16 - function names probably have to differ in first X characters
(gpasm limitation?)
* support/regression/tests/staticinit.c:
pic16 - excluded some tests due error: no target memory available for
section ".idata"
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4185
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 22 May 2006 19:47:32 +0000 (19:47 +0000)]
* support/Util/dbuf.c: fixed bug #
1489008 fix dbuf_c_str(),
second try. Thanks Stas Sergeev once more.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4184
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sun, 21 May 2006 17:20:08 +0000 (17:20 +0000)]
* src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
(genLeftShift, genRightShift): fixed bug
1491627
* src/hc08/peeph.def (rules 7, 8.x): added
* support/regression/tests/shifts.c (ShiftLeftByParam,
ShiftRightByParam, testShiftByParam): added to test variable shifting
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4183
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Sat, 20 May 2006 16:55:08 +0000 (16:55 +0000)]
* src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
* src/pic16/ralloc.c (newReg): use correct name in hashtable,
(allocReg): add only new registers to dynAllocRegs,
(pic16_assignRegisters): do not reset dynrIdx, fixes bugs
#
1489055, #
1445850, and probably #
1483693
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4182
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Fri, 19 May 2006 21:45:07 +0000 (21:45 +0000)]
* src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
bug in for-loop that didn't emit the last of CONFIG and ID registers
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4181
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Thu, 18 May 2006 11:19:21 +0000 (11:19 +0000)]
* src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1489016,
1434401 and
1490124
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4178
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Thu, 18 May 2006 10:54:34 +0000 (10:54 +0000)]
* src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
with offset
* src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1489016,
1434401 and
1490124
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4177
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 17 May 2006 16:23:27 +0000 (16:23 +0000)]
* support/Util/dbuf.c: fixed bug #
1489008 fix dbuf_c_str(),
thanks Stas Sergeev
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4176
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 15 May 2006 19:58:58 +0000 (19:58 +0000)]
* device/include/mcs51/P89c51RD2.h,
* device/include/mcs51/P89LPC901.h,
* device/include/mcs51/P89LPC922.h,
* device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4174
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Mon, 15 May 2006 01:00:07 +0000 (01:00 +0000)]
* device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
to fix missing stack pragma in compiled binary object file,
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4173
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Sun, 14 May 2006 19:56:18 +0000 (19:56 +0000)]
* support/packihx/configure.in,
* support/packihx/configure: removed warning, autoconf >= 2.5x can determine sizeof basic types even while cross compiling
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4172
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Sat, 13 May 2006 20:38:14 +0000 (20:38 +0000)]
* src/avr/gen.c (aopop),
* src/ds390/gen.c (aopOp),
* src/hc08/gen.c (aopOp),
* src/mcs51/gen.c (aopop),
* src/pic16/gen.c (pic16_aopOp),
* src/pic/gen.c (aopOp),
* src/z80/gen.c (aopop): fix for bug #
1479882; use new, exclusive asmop if size of operand is smaller than spill location
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4171
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 12 May 2006 20:34:43 +0000 (20:34 +0000)]
* *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
have to have CR/LF line endings even if they are checked out on *nix
or on WIN32 in cygwin binmode
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4170
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 12 May 2006 15:01:17 +0000 (15:01 +0000)]
* doc/sdccman.lyx: documented numeric ranges, WEBDOC #
1442369
* device/include/ds80c390.h: added sfr16 definitions
* src/ds390/gen.c,
* src/ds390/gen.h,
* src/ds390/main.c,
* src/ds390/ralloc.c,
* src/ds390/ralloc.h: changes all over the place to sync with mcs51
fixing several bugs and adding sfr16/sfr32, reentrant bit params,
bit returning functions
* support/regression/tests/sfr16.c: enabled test on ds390
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4169
4a8a32a2-be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 11 May 2006 21:42:48 +0000 (21:42 +0000)]
* src/hc08/gen.c (asmopToBool, genIfx): fix for bug #
1429722
* src/hc08/gen.c (storeRegToAop): fix for bug #
1439894
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4168
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Thu, 11 May 2006 20:25:04 +0000 (20:25 +0000)]
* sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
* sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
(cl_address_space constructor): removed expensive initialization,
(cl_address_space::get_cell): extended for late initialization,
(cl_address_space::*): use late initialization,
(cl_address_decoder::activate): removed expensive initialization,
This reduced regression test running time by 25%
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4167
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Thu, 11 May 2006 20:06:55 +0000 (20:06 +0000)]
* packihx/,
* configure.in,
* configure,
* sdcc.dsw,
* Makefile.bcc,
* Makefile.in,
* support/packihx/Makefile.in,
* support/packihx/clean.mk,
* support/packihx/Makefile.bcc,
* support/packihx/PackIhx.dsp: moved packihx to support/packihx
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4166
4a8a32a2-be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 11 May 2006 17:39:14 +0000 (17:39 +0000)]
* src/SDCCval.c (valNot): fix for regression test failure
of not.c on big endian hosts
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4164
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Thu, 11 May 2006 10:49:40 +0000 (10:49 +0000)]
* device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4163
4a8a32a2-be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 10 May 2006 20:09:10 +0000 (20:09 +0000)]
* device/lib/mcs51/Makefile.in: changed string comparison operator
to = for POSIX compliance; == is bash extension
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4162
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Wed, 10 May 2006 12:08:46 +0000 (12:08 +0000)]
* device/lib/hc08/_mulint.c: applied patch
1485428, thanks
kosmonaut_pirx
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4161
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Tue, 9 May 2006 21:48:44 +0000 (21:48 +0000)]
* src/pic16/gen.c (pic16_freeAsmop): release any temp registers
allocated by aopForSym thus fixing bug #
1478657 about failed testfwk.c
* src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
* src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
bug report #
1478657
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4160
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Tue, 9 May 2006 21:47:35 +0000 (21:47 +0000)]
* src/pic16/gen.c (pic16_freeAsmop): release any temp registers
allocated by aopForSym thus fixing bug #
1478657 about failed testfwk.c
* src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
* src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
bug report #
1478657
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4159
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 6 May 2006 18:34:45 +0000 (18:34 +0000)]
* doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
making the html
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4155
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 2 May 2006 18:56:04 +0000 (18:56 +0000)]
* doc/Makefile.in: removed *.ind dependency since there is no rule to
create *.ind, which made make to fail if invoked with -j 2
* local/amd64-linux1.mk: added SDCCCONFIGUREFLAGS = --enable-doc
to configure the doc Makefile and OPT_ENABLE_DOC = 1 to run the
doc Makefile
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4151
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 1 May 2006 21:45:34 +0000 (21:45 +0000)]
* src/SDCCglue.c (emitRegularMap): partial fix for bug
1477149, thanks
Hubert Sack for patch
1479782
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4150
4a8a32a2-be11-0410-ad9d-
d568d2c75423
vrokas [Mon, 1 May 2006 21:27:20 +0000 (21:27 +0000)]
* src/pic16/glue.c (pic16_printIvalStruct): fixed bug #
1445929
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4149
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 1 May 2006 20:47:12 +0000 (20:47 +0000)]
* src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
(create_pic): store only prefix-free device name,
(init_pic): check for device names with "16" prefix,
(list_valid_pics),
* src/pic/device.h (struct PIC_device),
* src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
stored device name,
* device/include/pic/pic12f{635,675,629,683}.h,
* device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
* device/lib/pic/libdev/Makefile.in: allow pic12* devices,
* device/include/pic/pic16f505.h,
* device/lib/pic/libdev/pic16f505.c: removed
* device/include/pic/pic14devices.txt: added support for pic12f
devices, removed unsupported non 16-bit devices
[above changes provided by patch from Zik Saleeba]
* src/pic/*, src/pic16/*, device/include/pic16/*,
device/lib/pic/**, device/lib/pic16/**: obfuscated email address
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4148
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 1 May 2006 20:01:44 +0000 (20:01 +0000)]
* configure.in, configure, doc/Makefile.in:
sync with nightly build makefile - latex, dvipdf and dvips
not needed any more
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4147
4a8a32a2-be11-0410-ad9d-
d568d2c75423
jesusc [Sun, 30 Apr 2006 20:32:47 +0000 (20:32 +0000)]
Changed back to unlink()...
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4145
4a8a32a2-be11-0410-ad9d-
d568d2c75423
sdcc-builder [Sun, 30 Apr 2006 19:55:44 +0000 (19:55 +0000)]
* support/scripts/sdcc.nsi: removed all Readmes and Makefiles in the library source
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4144
4a8a32a2-be11-0410-ad9d-
d568d2c75423
jesusc [Sun, 30 Apr 2006 17:18:43 +0000 (17:18 +0000)]
Changed unlink to POSIX _unlink
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4143
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sun, 30 Apr 2006 12:34:21 +0000 (12:34 +0000)]
* support/regression/ports/hc08/spec.mk: fixed bug
1478892
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4142
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Sat, 29 Apr 2006 08:53:05 +0000 (08:53 +0000)]
* src/pic16/pcode.c (pic16_newpCodeOpLit12),
* src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
(pic16_loadFSR0): handle 12 bit literals correctly, fixes #
1440527
* src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4139
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Fri, 28 Apr 2006 22:39:58 +0000 (22:39 +0000)]
* device/include/Makefile.in (install): added installation of pic/*.inc and pic/*.txt files again, they were erroneously removed
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4138
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Fri, 28 Apr 2006 22:03:38 +0000 (22:03 +0000)]
* configure,
* configure.in: replaced duplicate message about ucsim by missing sdcpp
* install-sh: fix bug #
1204398 by setting umask 0022
* device/lib/Makefile.in: separate build of z80 and gbz80 lib
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4137
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Fri, 28 Apr 2006 20:31:20 +0000 (20:31 +0000)]
* configure,
* configure.in: replaced duplicate message about ucsim by missing sdcpp
* install-sh: fix bug #
1204398 by setting umask 0022
* device/lib/Makefile.in: separate build of z80 and gbz80 lib
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4136
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Fri, 28 Apr 2006 20:25:03 +0000 (20:25 +0000)]
* configure,
* configure.in: replaced duplicate message about ucsim by missing sdcpp
* install-sh: fix bug #
1204398 by setting umask 0022
* device/lib/Makefile.in: separate build of z80 and gbz80 lib
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4135
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 28 Apr 2006 16:53:01 +0000 (16:53 +0000)]
* src/pic/{gen.c,main.h,pcode.c},
* src/pic16/{gen.c,pcode.c}: quietened compiler warnings
concerning signedness with casts
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4134
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 28 Apr 2006 16:23:34 +0000 (16:23 +0000)]
* src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
definition of an interrupt handler,
* src/pic/glue.c (pic14_emitInterruptHandler): moved output of
interrupt handler stuff from picglue() to separate routine,
(picglue): enabled definition of intr handlers in files w/o main()
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4133
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 28 Apr 2006 13:06:43 +0000 (13:06 +0000)]
* support/librarian/sdcclib.c: moved include <limits.h> up to enable
compilation with MSVC 2005 Express Edition (VC8)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4132
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Wed, 26 Apr 2006 08:52:30 +0000 (08:52 +0000)]
* device/lib/Makefile: fixed build of gbz80 lib
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4130
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 25 Apr 2006 22:36:08 +0000 (22:36 +0000)]
* support/regression/tests/bug-460010.c,
* support/regression/tests/bug-524691.c,
* support/regression/tests/bug-716242.c: removed conditional defines
that are already in testfwk.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4129
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 25 Apr 2006 21:35:19 +0000 (21:35 +0000)]
* configure,
* configure.in: replaced duplicate message about ucsim by missing sdcpp
* install-sh: fix bug #
1204398 by setting umask 0022
* device/lib/Makefile.in: separate build of z80 and gbz80 lib
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4128
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 25 Apr 2006 21:25:21 +0000 (21:25 +0000)]
* src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
(AccAXRsh1): added, shift right by 1,
(AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
AccAXLrl1
* support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4127
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 25 Apr 2006 14:32:01 +0000 (14:32 +0000)]
* as/z80/Makefile,
* link/z80/Makefile: removed, they have moved to Makefile.in files
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4126
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 25 Apr 2006 14:05:04 +0000 (14:05 +0000)]
* src/SDCCast.c (decorateType): fix for RFE
1475742, optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4125
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Tue, 25 Apr 2006 11:25:05 +0000 (11:25 +0000)]
* src/SDCCast.c (decorateType): partial fix for RFE
1475769, remove cast to same type
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4124
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Mon, 24 Apr 2006 21:19:58 +0000 (21:19 +0000)]
fix warning
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4123
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bernhardheld [Mon, 24 Apr 2006 20:29:10 +0000 (20:29 +0000)]
Enabled VPATH feature: changed nearly all Makefiles (149 files).
See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
One basic decision: e.g. src/clean.mk includes further files. In order
to make this work there are two solutions:
- rename another dozen clean.mk to clean_in.mk, add srcdir to them and
run configure on them. This way they can use
'include $(srcdir)/port-clean.mk'
- always include clean.mk by the Makefile at the same level. To avoid
that `make clean` tries to include and build Makefile.dep the
MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
implemented, because now even `make uninstall` doesn't create
Makefile.in. clean.mk could be eliminated by pasting it in Makefile.in.
* debugger/mcs51/Makefile.in: build own objects from library sources (SLIB, SDCC) in current directory
* configure, configure.in: renamed --disable-device-lib-build in
--disable-device-lib; added --enable-doc, the required tools are
searched by configure; added result message; the toolchain for the
belonging ports are now only built, if the port is enabled.
* support/regression/*: all output is written in directory gen, because the fwk and ports directories don't livet in the build tree using vpath
* doc/sdccman.lyx: renamed --disable-device-lib-build to --disable-device-lib, added --enable-doc, added section VPATH
* sim/ucsim/configure.in,
* sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and z80 are enabled by default
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4121
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 24 Apr 2006 20:22:31 +0000 (20:22 +0000)]
* src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
config word, "pic14_"-prefixed some extern functions
(pic14_emitConfigWord): emit __config directive(s) if assignment to
config word has been found
* src/pic/device.h: added prototypes
* src/pic/pcode.c: added "pic14_"-prefix where needed
* src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic fixup
* src/pic/glue.c (pic14_constructAbsMap): handle assignments to config words,
(pic14emitRegularMap): ignore config words,
(pic14createInterruptVect): moved generating __config directives away
(picglue): have __config directives emitted
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4119
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 24 Apr 2006 20:09:44 +0000 (20:09 +0000)]
* doc/Makefile: sync with nightly build makefile
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4118
4a8a32a2-be11-0410-ad9d-
d568d2c75423