fw/sdcc
18 years ago* doc/sdccman.lyx, */Makefile, */Makefile.in:
borutr [Sat, 22 Apr 2006 07:13:16 +0000 (07:13 +0000)]
* doc/sdccman.lyx, */Makefile, */Makefile.in:
  references to CVS replaced with Subversion

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4108 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4106 4a8a32a2...
borutr [Fri, 21 Apr 2006 21:04:55 +0000 (21:04 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4106 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/version.awk: adapted for svn
borutr [Wed, 19 Apr 2006 18:15:39 +0000 (18:15 +0000)]
* src/version.awk: adapted for svn
* /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
  sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
  sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
  /binutils-avr/etc/*.vi, *.jin: removed all properties
  support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4099 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/version.awk: adapted for svn
borutr [Wed, 19 Apr 2006 07:18:48 +0000 (07:18 +0000)]
* src/version.awk: adapted for svn

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4098 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* CVS to Subversion migration completed
borutr [Wed, 19 Apr 2006 06:24:35 +0000 (06:24 +0000)]
* CVS to Subversion migration completed

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4097 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
borutr [Tue, 18 Apr 2006 04:56:22 +0000 (04:56 +0000)]
* support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
  ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4096 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/include/Makefile.in: added pic/*.inc to the installation
borutr [Mon, 17 Apr 2006 20:44:19 +0000 (20:44 +0000)]
* device/include/Makefile.in: added pic/*.inc to the installation

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4095 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/collate-results.py: fixed output in case of a valdiag error
bernhardheld [Sat, 15 Apr 2006 20:54:19 +0000 (20:54 +0000)]
* support/regression/collate-results.py: fixed output in case of a valdiag error
* support/regression/generate-cases.py: fixed splitting of pathnames with dots
* as/hc08/lklibr.c,
* as/mcs51/lklibr.c (addfile): fixed off-by-one bug

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4094 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
tecodev [Tue, 11 Apr 2006 20:12:07 +0000 (20:12 +0000)]
* src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
* src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
* src/pic16/pcode.c (assignValnums): fixed #1460578

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4093 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/lib/pic/libdev/*.c,
tecodev [Tue, 11 Apr 2006 18:59:23 +0000 (18:59 +0000)]
* device/lib/pic/libdev/*.c,
* device/include/pic/*.h: replaced sfr and data with __sfr and __data,
  fixes #1468739, enables compilation in --std-c99 mode
* support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4092 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic/device.c (find_device): removed debug output
tecodev [Tue, 11 Apr 2006 18:23:55 +0000 (18:23 +0000)]
* src/pic/device.c (find_device): removed debug output
  (list_valid_pics): enabled verbose listing of supported devices
* device/include/stdbool.h: define bool as char for pic14/16 as well

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4091 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
frief [Fri, 7 Apr 2006 14:38:20 +0000 (14:38 +0000)]
* src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4090 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoallow using brackets here: "__interrupt (1) __using (1)"
frief [Fri, 7 Apr 2006 14:37:25 +0000 (14:37 +0000)]
allow using brackets here: "__interrupt (1) __using (1)"

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4089 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* .version: bumped version to 2.5.6
maartenbrock [Fri, 7 Apr 2006 09:52:42 +0000 (09:52 +0000)]
* .version: bumped version to 2.5.6
* src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4088 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoRaphael forgot to commit this I guess
maartenbrock [Fri, 7 Apr 2006 09:24:47 +0000 (09:24 +0000)]
Raphael forgot to commit this I guess

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4087 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* .version: bumped version to 2.5.6 (pic14 ABI changed)
tecodev [Thu, 6 Apr 2006 19:56:14 +0000 (19:56 +0000)]
* .version: bumped version to 2.5.6 (pic14 ABI changed)
* src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
* src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
  pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
    pic14_constructAbsMap
  (pic14printPublics): declare absolute global symbols as global
  (pic14createInterruptVect),
* src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
  (newReg): assume new registers unused, use correct name in
    hashtable (reg->name instead of name), more debugLog output
* src/pic/device.h (PIC_device): added fields for verbose output
* src/pic/device.c: moved device definition to pic14devices.txt,
    added routines for runtime parsing of pic14devices.txt,
    added support for second config word
* src/pic/main.c (_process_pragma): removed #pragma maxram,
  (_pic14_keywords): no longer accept "bit" and "sbit" keywords
  (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
  (_pic14_parseOptions): moved pCodeInitRegisters here
  (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
* src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
  (pCodeInitRegisters): rewrapped comments, perpared new approach to
    handling the pseudo stack
* device/lib/Makefile.in: ignore failures in objects-pic16,
* device/lib/pic/{configure,configure.in,Makefile}: added libdev/
* device/lib/pic/NEWS: document new dependency on picXXX.lib
* device/lib/pic/Makefile.subdir,
* device/lib/pic16/Makefile.subdir: improved clean rules
* device/lib/pic/libdev/: NEW, pic14 device libraries
* device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
* device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
* device/include/Makefile.in: create subdir and install pic14 headers
* device/include/pic/p16f_common.inc: removed unused declarations
* device/include/pic/pic16*.h: added header files for 100+ 14 bit
    PICs from inc2h.pl v1.6,
    replaced BIT_AT macros with struct declarations
* device/include/pic/pic14devices.txt: definition of supported devices,
    all above improvements contributed by Zik Saleeba, thanks
* support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
* support/scripts/sdcc.nsi: also install pic14 device libraries and
    headers

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4086 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/include/mcs51/c8051f410.h: added interrupt numbers,
maartenbrock [Thu, 6 Apr 2006 19:25:31 +0000 (19:25 +0000)]
* device/include/mcs51/c8051f410.h: added interrupt numbers,
* device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
  thanks to Charles Olds

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4085 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoChangeLog: fixed my cut and paste error within the ChangeLog
frief [Thu, 6 Apr 2006 16:49:51 +0000 (16:49 +0000)]
ChangeLog: fixed my cut and paste error within the ChangeLog

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4084 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* debugger/mcs51/cmd.c (infoRegisters): show return address on stack
frief [Thu, 6 Apr 2006 16:40:18 +0000 (16:40 +0000)]
* debugger/mcs51/cmd.c (infoRegisters): show return address on stack

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4083 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago(infoRegisters): show return address on stack
frief [Thu, 6 Apr 2006 16:39:02 +0000 (16:39 +0000)]
(infoRegisters): show return address on stack

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4082 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
maartenbrock [Thu, 6 Apr 2006 15:24:25 +0000 (15:24 +0000)]
* src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
* src/mcs51/gen.c (genJumpTab): fixed bug in medium model
* support/regression/bug1464657.c: added, new test

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4081 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
maartenbrock [Wed, 5 Apr 2006 12:52:33 +0000 (12:52 +0000)]
* src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
  version number

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4080 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
maartenbrock [Wed, 5 Apr 2006 09:42:42 +0000 (09:42 +0000)]
* src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
  --no-peep and --peep-file <file> are used don't use default rules but
  do use the <file>

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4079 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/mcs51/gen.c (genCall): fixed bug 1457608
maartenbrock [Wed, 5 Apr 2006 08:55:37 +0000 (08:55 +0000)]
* src/mcs51/gen.c (genCall): fixed bug 1457608

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4078 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodoc/sdccman.lyx: reverted to version 1.129 of december as my latest changes seem...
frief [Thu, 30 Mar 2006 07:40:27 +0000 (07:40 +0000)]
doc/sdccman.lyx: reverted to version 1.129 of december as my latest changes seem to cause (trigger?) problems with the build system.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4077 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCpeeph.c (operandsLiteral): new, added,
maartenbrock [Wed, 29 Mar 2006 07:21:04 +0000 (07:21 +0000)]
* src/SDCCpeeph.c (operandsLiteral): new, added,
  (callFuncByName): inserted operandsLiteral
* src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4076 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agochanged crappy link
frief [Tue, 28 Mar 2006 22:48:01 +0000 (22:48 +0000)]
changed crappy link

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4075 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodoc/sdccman.lyx: added paragraph "Use of SDCC in Education"
frief [Tue, 28 Mar 2006 22:18:22 +0000 (22:18 +0000)]
doc/sdccman.lyx: added paragraph "Use of SDCC in Education"

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4074 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoadded paragraph "Use of SDCC in Education"
frief [Tue, 28 Mar 2006 22:16:50 +0000 (22:16 +0000)]
added paragraph "Use of SDCC in Education"

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4073 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
frief [Tue, 28 Mar 2006 06:33:19 +0000 (06:33 +0000)]
* src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4072 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodisabled rule 132.e fixing bug #1453093
frief [Tue, 28 Mar 2006 06:31:03 +0000 (06:31 +0000)]
disabled rule 132.e fixing bug #1453093

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4071 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
maartenbrock [Fri, 24 Mar 2006 15:27:11 +0000 (15:27 +0000)]
* src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
  implemented patch 1120823 Thanks to Willy De la Court (normal
  interrupts need an interrupt number now if they are made critical),
  and enabled nesting of critical functions though not for gbz80
  (genCritical, genEndCritical): added functions
  (genZ80Code): added cases for CRITICAL and ENDCRITICAL
* src/z80/mappings.i: added "ei" to all mappings

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4070 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoapplied patch fixing GCC 4.1 build submitted by the Debian SDCC maintainer Aurelien...
frief [Mon, 20 Mar 2006 08:17:46 +0000 (08:17 +0000)]
applied patch fixing GCC 4.1 build submitted by the Debian SDCC maintainer Aurelien Jarno:
"Credits goes to Martin Michlmayr, who rebuilt the whole Debian archive with gcc 4.1 on mips and wrote the patch"

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4069 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/genarith.c (genAddLit): simplified and fixed case where
tecodev [Thu, 16 Mar 2006 09:32:20 +0000 (09:32 +0000)]
* src/pic16/genarith.c (genAddLit): simplified and fixed case where
  the left operand is shorter than the result (c* = lit-c* + int),
  fixes bug #1450796
* src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
  OP_SYMBOL

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4064 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/gen.c (pic16_popGet): comented out usage of 'char *rs'
vrokas [Wed, 15 Mar 2006 01:33:16 +0000 (01:33 +0000)]
* src/pic16/gen.c (pic16_popGet): comented out usage of 'char *rs'

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4063 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* enviroment variable 'PIC16_PACKED_BITFIELDS'
vrokas [Wed, 15 Mar 2006 00:45:24 +0000 (00:45 +0000)]
* enviroment variable 'PIC16_PACKED_BITFIELDS'

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4062 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
vrokas [Wed, 15 Mar 2006 00:43:05 +0000 (00:43 +0000)]
* src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
linking is done manually in pic16 port's _linkEdit,
* src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
* src/pic16/gen.c (aopForSym): when direct register name is WREG then
allocate asmop as AOP_ACC,
(aopForRemat): added parameter 'bool result' in function declaration,
(pic16_aopGet): return AOP_ACC when accessing WREG,
(pic16_popGetTempReg): minor modification,
(pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
'pic16_allocWithIdx',
(genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
calling function in absolute addresses,
(genAssign): take into account AOP_ACC asmop,
* src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
* src/pic16/pcoderegs.c: some debug functions and lines added,
* src/pic16/ralloc.c (decodeRegType): added but commented out,
* (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
register too,
* (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
call to allocReg, not by manually allocating a new one,
(pic16_assignRegisters): now before going through the register
allocating functions mark all registers as free. This eliminates some
side effects resulting from peephole parser done earlier in the backbone

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4061 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCicode.c (geniCodeLogic),
maartenbrock [Mon, 13 Mar 2006 17:25:27 +0000 (17:25 +0000)]
* src/SDCCicode.c (geniCodeLogic),
* src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4060 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
maartenbrock [Fri, 10 Mar 2006 15:57:12 +0000 (15:57 +0000)]
* src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
  (genSend): bugfix, do not allocate and free twice,
  (shiftRLong): handle partially overlapping aops
* support/regression/tests/bitopcse.c: fixed warning redefined idata

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4059 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/fwk/include/testfwk.h: added defines for xdata, idata for pic16
borutr [Wed, 8 Mar 2006 21:33:33 +0000 (21:33 +0000)]
* support/regression/fwk/include/testfwk.h: added defines for xdata, idata for pic16

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4058 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/tests/bug1409955.c: new, added
maartenbrock [Wed, 8 Mar 2006 16:42:33 +0000 (16:42 +0000)]
* support/regression/tests/bug1409955.c: new, added
* src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
* src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
  (aopForSym, aopOp): increment asmop.allocated if reused,
  (freeAsmop): decrement asmop.allocated and check for zero instead of
  using asmop.freed,
  (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
  (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
   genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
   genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
   genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
   genSignedRightShift, genRightShift, genDataPointerGet,
   genPagedPointerGet, genFarPointerGet, genCodePointerGet,
   genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
    in reverse order from allocation,
  (genPlus, genCmpEq): free asmop's in reverse order from allocation and
    added swappedLR to keep track
* support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
  pdata & code for GCC, z80, gbz80 & hc08
* support/regression/tests/zeropad.c: moved defines to testfwk.h

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4057 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
tecodev [Wed, 8 Mar 2006 09:53:55 +0000 (09:53 +0000)]
* src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4056 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/include/mcs51/c8051f410.h: new SiLabs mcu
maartenbrock [Tue, 7 Mar 2006 13:09:37 +0000 (13:09 +0000)]
* device/include/mcs51/c8051f410.h: new SiLabs mcu
* src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
* support/regression/tests/array.c: added parenthesis, made arrays unsigned

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4055 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/ports/pic16/spec.mk: link with libm18f.lib,
borutr [Mon, 6 Mar 2006 21:21:43 +0000 (21:21 +0000)]
* support/regression/ports/pic16/spec.mk: link with libm18f.lib,
  made the linker quiet

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4054 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* added missing 'n' ;-)
borutr [Mon, 6 Mar 2006 18:09:19 +0000 (18:09 +0000)]
* added missing 'n' ;-)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4053 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/gen.c (genPcall): fixed bug #1443644
vrokas [Mon, 6 Mar 2006 13:01:25 +0000 (13:01 +0000)]
* src/pic16/gen.c (genPcall): fixed bug #1443644

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4052 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
vrokas [Mon, 6 Mar 2006 08:27:52 +0000 (08:27 +0000)]
* src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
which dumps before the function entry point a data byte which represents
the number of the local variables used by the specified function, added
'xinst' for initial support for Extended Instruction Support,
* src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
(pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
port->fun_prefix anymore (may change later),
(genFunction, genEndFunction): do not store/restore local registers for
_main (this should take care the --main-return command line option in
the future),
(genOr): removed some legacy pic-port instructions,
* src/pic16/genarith.c (genAddLit): re-enabled old code because
performing operations with SFR's causes data to be written more than
once to each SFR. Perhaps SFRs should be handled in special cases...
* src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
pcode.h
* src/pic16/main.c (_process_pragma): stack bound checking did not take
into account for stack starting position,
(struct OPTIONS pic16_optionsTable): added command line argument
--extended or -y for Extended Instruction Support,
* src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
(deassignLRs): *** perhaps the most important change, old 'for' code
(comented out for reference), didn't account for some registers which
were left marked 'not free' after a pointer operation. The change
reduces register usage a lot in some cases

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4051 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/ports/hc08/spec.mk: remove *.asm in traget _clean
borutr [Sat, 4 Mar 2006 23:41:54 +0000 (23:41 +0000)]
* support/regression/ports/hc08/spec.mk: remove *.asm in traget _clean
* support/regression/tests/bug-524697.c: decreased array size for
  mcs51 to fit into the internal RAM
* support/regression/Makefile.in: a little bit more verbose

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4050 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/fwk/lib/testfwk.c,
borutr [Fri, 3 Mar 2006 19:32:46 +0000 (19:32 +0000)]
* support/regression/fwk/lib/testfwk.c,
  support/regression/fwk/include/testfwk.h: introduced function
  _prints(), nonrecursive _printn(), call _initEmu() from main()
* support/regression/ports/gbz80/support.asm,
  support/regression/ports/ucz80/support.asm,
  support/regression/ports/z80/support.asm,
  support/regression/ports/ds390/support.c,
  support/regression/ports/hc08/support.c,
  support/regression/ports/host/support.c,
  support/regression/ports/mcs51/support.c,
  support/regression/ports/xa51/support.c: added empty _initEmu() function
* support/regression/ports/pic16/gpsim.cmd,
  support/regression/ports/pic16/spec.mk,
  support/regression/ports/pic16/support.c,
  support/regression/Makefile.in: added pic16 regression test

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4049 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
tecodev [Thu, 2 Mar 2006 16:30:48 +0000 (16:30 +0000)]
* src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
  genConstPointerGet): use safe way of generating MOVFF to cover
    literals as well as registers, fixes bug #1440527
* src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
    dereference
  (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
    more correctly, fixes bug #1232186
  (pic16_printIval): use pic16_printIvalUnion() for initialized unions
* src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
    gplink guess the correct processor in more cases, applied patch
    from Till Riedel attached to and fixing bug #1436552

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4048 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/tests/array.c: added, contains check for #1434401
frief [Mon, 20 Feb 2006 11:31:11 +0000 (11:31 +0000)]
* support/regression/tests/array.c: added, contains check for #1434401
* src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4047 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodisabled 186.d as temporary fix for #1434401
frief [Mon, 20 Feb 2006 11:28:34 +0000 (11:28 +0000)]
disabled 186.d as temporary fix for #1434401

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4046 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agosupport/regression/tests/array.c: added, contains check for #1434401
frief [Mon, 20 Feb 2006 11:25:58 +0000 (11:25 +0000)]
support/regression/tests/array.c: added, contains check for #1434401

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4045 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
maartenbrock [Thu, 16 Feb 2006 11:11:51 +0000 (11:11 +0000)]
* device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
* device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
* device/include/mcs51/c8051f326.h,
* device/include/mcs51/c8051f340.h: new SiLabs mcu's
* device/include/mcs51/c8051f000.h,
* device/include/mcs51/c8051f018.h,
* device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
  PCON_IDLE,PCON_STOP and added sfr16 definitions

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4044 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoOops, I forgot to commit the ChangeLog
bernhardheld [Wed, 15 Feb 2006 10:04:19 +0000 (10:04 +0000)]
Oops, I forgot to commit the ChangeLog

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4043 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
maartenbrock [Tue, 14 Feb 2006 19:09:48 +0000 (19:09 +0000)]
* src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
  genGetWord): fixed bug 1409955

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4042 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/include/hc08/mc68hc908gp32.h,
maartenbrock [Tue, 14 Feb 2006 13:41:46 +0000 (13:41 +0000)]
* device/include/hc08/mc68hc908gp32.h,
* device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4041 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCast.c (constExprValue): return NULL if not a value
maartenbrock [Mon, 13 Feb 2006 22:48:50 +0000 (22:48 +0000)]
* src/SDCCast.c (constExprValue): return NULL if not a value
* src/SDCCglue.c (printIvalArray): fixed bug 1225568
* src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
* support/regression/tests/bitfields.c: enabled signed bitfield for all

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4040 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/regression/ptrarg.c: added, fails due to bug #1430967
borutr [Mon, 13 Feb 2006 20:55:58 +0000 (20:55 +0000)]
* src/regression/ptrarg.c: added, fails due to bug #1430967
* src/regression/Makefiel: ptrarg.c added, ...

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4039 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/z80/gen.c (genUnpackBits): fixed bug 1019480
maartenbrock [Mon, 13 Feb 2006 13:50:50 +0000 (13:50 +0000)]
* src/z80/gen.c (genUnpackBits): fixed bug 1019480
* support/regression/tests/bitfields.c: enabled signed bitfield for z80

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4038 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
borutr [Sat, 11 Feb 2006 19:53:52 +0000 (19:53 +0000)]
* src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
  print "Processor: xxx" message to stdout only if --verbose

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4037 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
maartenbrock [Sat, 11 Feb 2006 11:08:31 +0000 (11:08 +0000)]
* src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
* support/regression/tests/bug1426356.c: added
* support/regression/tests/bitfields.c: removed 2 tests

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4036 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
maartenbrock [Fri, 10 Feb 2006 13:37:25 +0000 (13:37 +0000)]
* device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
* device/include/mcs51/c8051f330.h,
* device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
  PCON_IDLE,PCON_STOP and added sfr16 definitions
* device/lib/_divsint.c,
* device/lib/_divuint.c,
* device/lib/_divulong.c,
* device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
  register bank bug for small stackauto

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4035 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
maartenbrock [Thu, 9 Feb 2006 14:33:55 +0000 (14:33 +0000)]
* support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4034 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
maartenbrock [Wed, 8 Feb 2006 22:23:29 +0000 (22:23 +0000)]
* support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
* all.dsp: corrected several bin paths
* device/include/mcs51/c8051f120.h,
* device/include/mcs51/c8051f300.h,
* device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
  to PCON_IDLE,PCON_STOP
* device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
* device/lib/printf_large.c (output_float): fixed bug 1388703
* support/regression/tests/bug1057979.c: added test for bug 1388703

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4033 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic/pcode.c (pciTRIS): fixed typo,
tecodev [Wed, 8 Feb 2006 18:32:55 +0000 (18:32 +0000)]
* src/pic/pcode.c (pciTRIS): fixed typo,
  (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
  (LinkFlow): fixed handling of flows that end in a call,
  (ReuseReg): perform safety check earlier
* src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
    to work with flows at the beginning of a pBlock,
    fixes #1426557 (Symbol not previously defined),
  (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
    usage information
  (RemoveUnusedRegisters): update register usage info
* src/pic/ralloc.c (newReg): prevent duplicate registers from being
    created, reuse existing ones instead
* src/pic/gen.c (genPcall): fixed #1424719

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4032 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* link/z80/lkmain.c,
bernhardheld [Tue, 7 Feb 2006 15:53:40 +0000 (15:53 +0000)]
* link/z80/lkmain.c,
* link/z80/lklex.c,
* link/z80/lkdata.c,
* link/z80/aslink.h: fixed build on current cygwin: replaced getline() by lk_getline()

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4031 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
borutr [Wed, 1 Feb 2006 21:14:02 +0000 (21:14 +0000)]
* src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
  src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
  src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
  src/regression/bool1.c, src/regression/bool2.c,
  src/regression/bool3.c, src/regression/call1.c,
  src/regression/compare.c, src/regression/compare10.c,
  src/regression/compare2.c, src/regression/compare3.c,
  src/regression/compare4.c, src/regression/compare5.c,
  src/regression/compare6.c, src/regression/compare7.c,
  src/regression/compare8.c, src/regression/compare9.c,
  src/regression/configword.c, src/regression/for.c,
  src/regression/inline.c, src/regression/mult1.c,
  src/regression/nestfor.c, src/regression/or1.c,
  src/regression/pointer1.c, src/regression/ptrfunc.c,
  src/regression/rotate1.c, src/regression/rotate2.c,
  src/regression/rotate3.c, src/regression/rotate4.c,
  src/regression/rotate5.c, src/regression/rotate6.c,
  src/regression/rotate7.c, src/regression/string1.c,
  src/regression/struct1.c, src/regression/sub.c,
  src/regression/sub2.c, src/regression/switch1.c,
  src/regression/while.c, src/regression/xor.c,
  src/regression/create_stc, src/regression/simulate,
  src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
  regression tests
* src/regression/gpsim_assert.h: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4030 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* as/hc08/aslex.c,
bernhardheld [Sat, 28 Jan 2006 10:02:29 +0000 (10:02 +0000)]
* as/hc08/aslex.c,
* as/hc08/aslink.h,
* as/hc08/asm.h,
* as/hc08/asmain.c,
* as/hc08/lkdata.c,
* as/hc08/lklex.c,
* as/hc08/lkmain.c,
* as/mcs51/aslex.c,
* as/mcs51/aslink.h,
* as/mcs51/asm.h,
* as/mcs51/asmain.c,
* as/mcs51/lkdata.c,
* as/mcs51/lklex.c,
* as/mcs51/lkmain.c,
* as/z80/aslex.c,
* as/z80/asm.h,
* as/z80/asmain.c: fixed build on current cygwin: replaced getline() by as_getline()

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4027 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/ds390/gen.c (unsaveRegisters): fixed literal function pointer ((void (code...
bernhardheld [Sat, 28 Jan 2006 09:15:47 +0000 (09:15 +0000)]
* src/ds390/gen.c (unsaveRegisters): fixed literal function pointer ((void (code *) (void)) 0) ();

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4026 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agofix for port ds390
bernhardheld [Fri, 27 Jan 2006 22:43:46 +0000 (22:43 +0000)]
fix for port ds390

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4025 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCC.y: fixed bug #716242, exchanged pointer and function declarator in the...
bernhardheld [Fri, 27 Jan 2006 21:38:09 +0000 (21:38 +0000)]
* src/SDCC.y: fixed bug #716242, exchanged pointer and function declarator in the symbol chain
* src/SDCCsymt.h,
* src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)" parameter list for function pointers
* src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
* support/regression/tests/bug-716242.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4024 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoremoved ineffective pragma
bernhardheld [Sun, 22 Jan 2006 19:51:47 +0000 (19:51 +0000)]
removed ineffective pragma

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4023 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array offset if possible
bernhardheld [Fri, 20 Jan 2006 21:58:55 +0000 (21:58 +0000)]
* src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array offset if possible
* src/SDCCast.c (getLeftResultType): 255 fits in char, not 256

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4022 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agothis should have been removed
bernhardheld [Wed, 18 Jan 2006 20:02:38 +0000 (20:02 +0000)]
this should have been removed

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4021 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it inifinitely recurseabl...
bernhardheld [Tue, 17 Jan 2006 23:48:35 +0000 (23:48 +0000)]
* src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it inifinitely recurseable, added static
* support/regression/tests/bug-1408066.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4020 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/ports/mcs51-xstack-auto/spec.mk: added --std-sdcc99 to LIBSDCCFLAGS
bernhardheld [Tue, 17 Jan 2006 22:25:29 +0000 (22:25 +0000)]
* support/regression/ports/mcs51-xstack-auto/spec.mk: added --std-sdcc99 to LIBSDCCFLAGS

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4019 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to newiTempLoopHe...
bernhardheld [Tue, 17 Jan 2006 21:48:59 +0000 (21:48 +0000)]
* src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to newiTempLoopHeaderLabel
* src/SDCCicode.h,
* src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel): renamed, added possibility to create "postLoopLbl"-labels
* src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop, isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy, addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned, hasNonPtrUse, loopInvariants, addressTaken, findInduction, findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
(pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
(basicInduction): fixed bug #136564, made static,
(loopInduction): changed parameter of basicInduction, made static,
(addPostLoopBlock): added
* src/SDCCloop.h: removed backEdges, pregion, pinduction, loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs, findLoopEndSeq
* support/regression/tests/bug-136564.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4018 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false while loop
bernhardheld [Mon, 16 Jan 2006 08:49:48 +0000 (08:49 +0000)]
* src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false while loop
* support/regression/tests/bug-1406131.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4017 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCval.c (cheapestVal): beautified
bernhardheld [Sat, 31 Dec 2005 15:22:55 +0000 (15:22 +0000)]
* src/SDCCval.c (cheapestVal): beautified
(valNot): ANSI: result type is int (SDCC: unsigned char)
* support/regression/tests/onebyte.c: added promotion and signedness tests for unary minus
* support/regression/tests/not.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4016 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCast.c (decorateType): fix promotion of unary minus
bernhardheld [Sat, 31 Dec 2005 13:17:32 +0000 (13:17 +0000)]
* src/SDCCast.c (decorateType): fix promotion of unary minus
* src/SDCCsymt.c (computeType): beautified
* src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
(valUnaryPM, valComplement, valNot): fix sign and promotion
* support/regression/tests/uminus.c: speedup by removing superflous test case 'int'
* support/regression/tests/onebyte.c: added promotion and signedness tests for unary minus
* support/regressions/tests/bug-477927.c: disable warning about uninitialized variables

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4015 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/mcs51/gen.c (gen51Code): show final register usage after fillGaps in asm with...
bernhardheld [Wed, 28 Dec 2005 22:01:43 +0000 (22:01 +0000)]
* src/mcs51/gen.c (gen51Code): show final register usage after fillGaps in asm with --i-code-in-asm
* src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo, markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks, incUsed, rliveClear, adjustIChain): made static,
(setFromRange): excluded because it's unused,
(findPrevUseSym, markWholeLoop): added,
(findPrevUse): rewritten; fixes bug 895992; now a complete search through all branches of predecessors enables sdcc to emit the warning W_LOCAL_NOINIT, marking of outermost loop was incomplete,
(rlivePoint): made static, added parameter emitWarnings which is only true during the first run out of two,
(findRecursiveSucc, findRecursivePred): removed,
(computeLiveRanges): made static, added parameter emitWarnings,
(dumpIcRlive): added for debugging only
* src/SDCClrange.h: added boolean parameter to computeLiveRanges(), removed prototype of setFromRange()
* src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings in call of computeLiveRanges()
* support/regression/tests/bug-895992.c: added
* support/regression/tests/bug-971834.c: added
* support/valdiag/tests/bug-895992.c: added
* support/valdiag/tests/bug-971834.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4014 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodevice/lib/Makefile.in: added --std-sdcc99 to CFLAGS
bernhardheld [Wed, 28 Dec 2005 13:34:16 +0000 (13:34 +0000)]
device/lib/Makefile.in: added --std-sdcc99 to CFLAGS

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4013 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
tecodev [Sun, 18 Dec 2005 14:51:13 +0000 (14:51 +0000)]
* src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
  (genUnpackBits): improved code for direct operands,
  (genPackBits): improved code for literal assignment to bitfields
    and for direct destination operands (no FSR indirection),
    prevented redundant AND, fixes #1362800,
  (AccLsh): added parameter to disable masking of the result
* src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
  skip instructions with side-effects (like incfsz),
  (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
* src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
* device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
  fixes #1375263

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4012 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCicode.c (fgeniCodeAssign): fixed bug 1369874, don't use volatile variables...
bernhardheld [Sun, 11 Dec 2005 21:31:17 +0000 (21:31 +0000)]
* src/SDCCicode.c (fgeniCodeAssign): fixed bug 1369874, don't use volatile variables as spill location

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4007 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/regression/tests/bug-1376320.c: added
bernhardheld [Sat, 10 Dec 2005 20:57:55 +0000 (20:57 +0000)]
* support/regression/tests/bug-1376320.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4006 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to replacing...
bernhardheld [Sat, 10 Dec 2005 20:43:31 +0000 (20:43 +0000)]
* src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to replacing literals

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4005 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/pic/device.c: renamed is_shared to pic14_is_shared
tecodev [Thu, 8 Dec 2005 18:32:59 +0000 (18:32 +0000)]
* src/pic/device.c: renamed is_shared to pic14_is_shared
* src/pic/gen.c (genIfx): re-enabled handling of sbits
* src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
  (is_valid_identifier): added for above workaround

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4004 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* device/lib/Makefile.in: fixed to enable port-specific-objects
maartenbrock [Wed, 7 Dec 2005 12:49:32 +0000 (12:49 +0000)]
* device/lib/Makefile.in: fixed to enable port-specific-objects
* device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
  char, thanks Hubert Sack
* doc/sdccman.lyx: documented --xstack-loc,
  elaborated a bit more on interrupts and pitfalls,
  removed "setjmp/longjmp unsupported",
  documented some unsupported C99 features
* src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
* src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
  if, thanks Hubert Sack
* src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
* support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
  make make_library
* support/regression/get_ticks.py: new, get cpu cycles and code size, so
  regression tests can report resource usage (rfe 700441)
* support/regression/collate-results.py: report resource usage
* support/regression/ports/ds390/spec.mk,
* support/regression/ports/hc08/spec.mk,
* support/regression/ports/mcs51/spec.mk,
* support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
* support/regression/ports/ds390/uCsim.cmd,
* support/regression/ports/hc08/uCsim.cmd,
* support/regression/ports/mcs51/uCsim.cmd,
* support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
* support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
  library, use the default one
* support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
  building the library

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4003 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* config.dsp: added dependency on .version and configure_vc.awk
maartenbrock [Tue, 6 Dec 2005 15:12:16 +0000 (15:12 +0000)]
* config.dsp: added dependency on .version and configure_vc.awk
* device/include/setjmp.h: updated for --stack-auto and --xstack
* device/include/mcs51/at89c51snd1c.h: corrected line endings
* device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
* device/lib/_setjmp.c: updated for --stack-auto and --xstack
* device/lib/libsdcc.lib: added _setjmp
* src/SDCCast.c (createIvalCharPtr): fixed warnings,
  (decorateType): fixed bug 1372851,
  (optimizeGetHbit): fixed warning
* src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
  array initialisation
* support/regression/tests/bug1057979.c: added test for bug 1358192
* support/regression/tests/setjmp.c: added, test for setjmp/longjmp

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4002 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
borutr [Sat, 3 Dec 2005 16:28:18 +0000 (16:28 +0000)]
* support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
  command since the NSIS was upgraded to version 2.11 on CF x86-linux2

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4001 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCast.c (decorateType): try to optimize literals before promotion
bernhardheld [Tue, 29 Nov 2005 21:57:12 +0000 (21:57 +0000)]
* src/SDCCast.c (decorateType): try to optimize literals before promotion

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4000 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr, createIval): imple...
bernhardheld [Tue, 29 Nov 2005 21:22:07 +0000 (21:22 +0000)]
* src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr, createIval): implement symbol independant "flexible array member",
(createIvalCharPtr): implemented flexible array initialisation with a string
* src/SDCCsymt.c (copyStruct): removed, (getSize): fixed comment,
(getAllocSize): removed, the additional allocation size is now in sym->flexArrayLength,
(checkStructFlexArray): new, syntax checks for "flexible array members",
(compStructSize): added syntax checks for "flexible array members"
(copyStruct): removed,
(copyLinkChain): removed inefficient fix for bug 770487
* src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
* src/SDCCsymt.h: added structdef.b_flexArrayMember and symbol->flexArrayLength
* src/SDCCerr.c,
* src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY, E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
* support/regression/tests/structflexarray.c: added
* support/valdiag/tests/structflexiblearray.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3999 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* src/SDCCast.c (decorateType): fixed bug 1368489
bernhardheld [Tue, 29 Nov 2005 08:55:39 +0000 (08:55 +0000)]
* src/SDCCast.c (decorateType): fixed bug 1368489
* support/Util/SDCCerr.c,
* support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3998 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodevice/include/mcs51/at89c51snd1c.h: added file submitted by Weston T. Schmidt <schmi...
frief [Mon, 28 Nov 2005 22:49:19 +0000 (22:49 +0000)]
device/include/mcs51/at89c51snd1c.h: added file submitted by Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3997 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoadded file submitted by Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch...
frief [Mon, 28 Nov 2005 22:47:06 +0000 (22:47 +0000)]
added file submitted by Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3996 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* plat/win32/gpsim.nsi, plat/win32/make.mingw, cli/makefile.mingw,
borutr [Sun, 27 Nov 2005 19:25:57 +0000 (19:25 +0000)]
* plat/win32/gpsim.nsi, plat/win32/make.mingw, cli/makefile.mingw,
  gpsim/makefile.mingw, gui/makefile.mingw, modules/makefile.mingw,
  src/makefile.mingw, regression/README: MINGW sync

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3995 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agodon't rewrite CPP_OPTION (pfile, obj_ext)
borutr [Sun, 27 Nov 2005 16:35:57 +0000 (16:35 +0000)]
don't rewrite CPP_OPTION (pfile, obj_ext)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3994 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years agoremoved debugging printout
borutr [Sun, 27 Nov 2005 14:52:30 +0000 (14:52 +0000)]
removed debugging printout

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3993 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 years ago* support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
borutr [Sun, 27 Nov 2005 14:38:57 +0000 (14:38 +0000)]
* support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
  support/cpp2/mkdeps.h: added command line option
  -obj-ext=<extension> to SDCPP to define object file externion, used
  for generation of make dependencies (-M)
* src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3992 4a8a32a2-be11-0410-ad9d-d568d2c75423