fw/sdcc
16 years ago* sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
borutr [Sat, 1 Dec 2007 15:07:42 +0000 (15:07 +0000)]
* sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
  corrected handling of the highest_valid_address

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

16 years agocreated as/asxxsrc directory, assym.c and strcpi.c moved into it
borutr [Sat, 17 Nov 2007 21:15:56 +0000 (21:15 +0000)]
created as/asxxsrc directory, assym.c and strcpi.c moved into it

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

16 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4972 4a8a32a2...
borutr [Sat, 17 Nov 2007 19:23:59 +0000 (19:23 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4972 4a8a32a2-be11-0410-ad9d-d568d2c75423

16 years ago* as/asxxsrc: created
borutr [Sat, 17 Nov 2007 19:21:59 +0000 (19:21 +0000)]
* as/asxxsrc: created
  as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
  as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
  as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
  as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
  as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
  as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
  as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
  as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
  as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
  as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
  as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
  as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
  created as/asxxsrc directory, assym.c and strcpi.c moved into it

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

16 years agoas/hc08/asstore.c, as/mcs51/asstore.c: deleted
borutr [Sat, 17 Nov 2007 19:04:58 +0000 (19:04 +0000)]
as/hc08/asstore.c, as/mcs51/asstore.c: deleted

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

16 years ago* src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
tecodev [Sat, 17 Nov 2007 19:02:22 +0000 (19:02 +0000)]
* src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
* src/pic/glue.c (picglue): emit .file if --debug is given

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

16 years ago2007-11-17 Borut Razem <borut.razem AT siol.net>
borutr [Sat, 17 Nov 2007 18:55:50 +0000 (18:55 +0000)]
2007-11-17 Borut Razem <borut.razem AT siol.net>

* src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
  #983491 - "Merge duplicate strings function is ineffective"
* support/regression/tests/bug-983491.c: regtest disabled
* as/asxxsrc: created
  as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
  as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
  as/z80/assym.c: deleted
  as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
  as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
  as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
  as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
  as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
  as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
  as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
  as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp: modified
  created as/asxxsrc directory, assym.c and strcpi.c moved into it

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

16 years ago* src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
tecodev [Sat, 17 Nov 2007 18:28:53 +0000 (18:28 +0000)]
* src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
care when left or right operand resides in result, fixes #1830220

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

16 years ago* src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
borutr [Sat, 17 Nov 2007 10:55:04 +0000 (10:55 +0000)]
* src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
  #983491 - "Merge duplicate strings function is ineffective"
* support/regression/tests/bug-983491.c: regtest disabled

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

16 years ago* device/include/stdarg.h: added and removed some casts
MaartenBrock [Thu, 15 Nov 2007 17:24:27 +0000 (17:24 +0000)]
* device/include/stdarg.h: added and removed some casts
* src/SDCCsymt.c (compareType): Fully check types between generic and
  non-generic pointers, also accept ptr-ptr to void-ptr assignments

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

16 years ago* support/regression/tests/bug-1817005.c:
borutr [Tue, 13 Nov 2007 06:25:05 +0000 (06:25 +0000)]
* support/regression/tests/bug-1817005.c:
  added regtest for bug #1817005 - as-z80 chokes on long labels

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

16 years agoas\z80\aslist.c: fixed bug #1817005 - as-z80 chokes on long labels
borutr [Mon, 12 Nov 2007 21:38:19 +0000 (21:38 +0000)]
as\z80\aslist.c: fixed bug #1817005 - as-z80 chokes on long labels

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

16 years agoas\z80\asout.c: fixed bug #1817005 - as-z80 chokes on long labels
borutr [Mon, 12 Nov 2007 21:22:36 +0000 (21:22 +0000)]
as\z80\asout.c: fixed bug #1817005 - as-z80 chokes on long labels

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

16 years ago* as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c:
borutr [Mon, 12 Nov 2007 20:38:53 +0000 (20:38 +0000)]
* as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c:
 fixed bug #1817005 - as-z80 chokes on long labels

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

16 years ago* as/hc08/asmain.c,
MaartenBrock [Sun, 11 Nov 2007 13:25:15 +0000 (13:25 +0000)]
* as/hc08/asmain.c,
* as/z80/asmain.c: cosmetic changes
* as/hc08/alloc.h,
* as/mcs51/alloc.h,
* as/z80/alloc.h: removed
* as/hc08/assym.c,
* as/mcs51/assym.c: replaced alloc.h with stdlib.h
* as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
* as/link/hc08/Makefile.in,
* as/link/mcs51/Makefile.in,
* as/link/z80/Makefile.in: added -DUNIX to CFLAGS
* as/link/lklex.c,
* as/link/mcs51/lkarea.c,
* as/link/mcs51/lkmain.c: cosmetic changes
* as/link/hc08/lklibr.c,
* as/link/z80/lklibr.c,
* as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
  used cygwin_conv_to_full_posix_path,
  added warnings, cosmetic changes, brought more in sync
  changed old K&R into ANSI function declarations
* as/link/z80/lklibr.c (loadAdb): added
* as/link/z80/lkmain.c: removed -- option from usage text

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

16 years ago* src/mcs51/gen.c (outBitC): retry of optimization for dummy result
MaartenBrock [Sat, 3 Nov 2007 15:36:25 +0000 (15:36 +0000)]
* src/mcs51/gen.c (outBitC): retry of optimization for dummy result

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

16 years ago* src/mcs51/gen.c (outBitC): optimized for no result
MaartenBrock [Sat, 3 Nov 2007 13:08:55 +0000 (13:08 +0000)]
* src/mcs51/gen.c (outBitC): optimized for no result

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

16 years agofixed regtest #1805702
borutr [Wed, 31 Oct 2007 18:00:54 +0000 (18:00 +0000)]
fixed regtest #1805702

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

16 years ago* src/SDCCsymt.c: fixed (hopeful properly) bug
borutr [Wed, 31 Oct 2007 12:33:37 +0000 (12:33 +0000)]
* src/SDCCsymt.c: fixed (hopeful properly) bug
  #1805702 - order of extern matters
* support/regression/tests/bug-1805702.c: enabled regtest for bug
  #1805702

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

16 years agofixed so that it doesn't produce compilation errors
borutr [Tue, 30 Oct 2007 20:45:23 +0000 (20:45 +0000)]
fixed so that it doesn't produce compilation errors

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

16 years agoadded #include <testfwk.h>
borutr [Tue, 30 Oct 2007 08:55:56 +0000 (08:55 +0000)]
added #include <testfwk.h>

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

16 years ago* src/SDCCsymt.c: reverted bad fixed of bug #1805702
borutr [Mon, 29 Oct 2007 21:35:44 +0000 (21:35 +0000)]
* src/SDCCsymt.c: reverted bad fixed of bug #1805702
  - order of extern matters
* support/regression/tests/bug-1805702.c: disabled regtest for bug
  #1805702

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

16 years ago* src/ds390/peeph.def: must use () for comma to work
MaartenBrock [Mon, 29 Oct 2007 17:47:22 +0000 (17:47 +0000)]
* src/ds390/peeph.def: must use () for comma to work

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

16 years ago* src/SDCCpeeph.c (notVolatileVariable): extra check, somehow for hc08 an operand
MaartenBrock [Mon, 29 Oct 2007 15:47:22 +0000 (15:47 +0000)]
* src/SDCCpeeph.c (notVolatileVariable): extra check, somehow for hc08 an operand
  can have isspilt==1 and spillLoc==NULL (?)

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

16 years ago* src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
MaartenBrock [Mon, 29 Oct 2007 14:05:31 +0000 (14:05 +0000)]
* src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
  24bitMode, portIsDS390
* src/mcs51/gen.c (genOr): optimized for RFE 1750727
* src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
  (notVolatileVariable): also check sloc names,
  (callFuncByName): moved ftab[] out of function and sorted it by use

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

16 years ago* device/include/stdarg.h: fixed bug in va_start macro for --xstack
MaartenBrock [Sun, 28 Oct 2007 19:35:15 +0000 (19:35 +0000)]
* device/include/stdarg.h: fixed bug in va_start macro for --xstack
* src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
  aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
* src/SDCCicode.c (geniCodeCast): fixed bug 880197
* support/regression/tests/bug-880197.c: new, added

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

16 years ago* src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
borutr [Sun, 28 Oct 2007 18:50:32 +0000 (18:50 +0000)]
* src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
* support/regression/tests/bug-1805702.c: added regtest for bug
  #1805702

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

16 years ago* support/regression/Makefile.in,
borutr [Sun, 28 Oct 2007 14:45:55 +0000 (14:45 +0000)]
* support/regression/Makefile.in,
  support/regression/ports/mcs51-large/spec.mk,
  support/regression/ports/mcs51-xstack-auto/spec.mk,
  support/regression/ports/mcs51-stack-auto/spec.mk,
  support/regression/ports/mcs51-medium/spec.mk,
  support/regression/ports/mcs51-common/spec.mk,
  support/regression/ports/mcs51-common/*,
  support/regression/ports/mcs51-small/*:
  mcs51 renamed to mcs51-common, created mcs51-small

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

16 years ago* support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
MaartenBrock [Fri, 26 Oct 2007 20:58:19 +0000 (20:58 +0000)]
* support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
  introduced new test-mcs51 to run all mcs51 tests

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

16 years ago* src/mcs51/peeph.def: added new rules 265 - 270
MaartenBrock [Fri, 26 Oct 2007 20:07:53 +0000 (20:07 +0000)]
* src/mcs51/peeph.def: added new rules 265 - 270

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

16 years ago* src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b
MaartenBrock [Fri, 26 Oct 2007 18:07:27 +0000 (18:07 +0000)]
* src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b
* support/regression/tests/bug1721024.c:new, added

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

16 years ago* support/regression/tests/bug1816470.c: new, added
MaartenBrock [Thu, 25 Oct 2007 21:05:06 +0000 (21:05 +0000)]
* support/regression/tests/bug1816470.c: new, added

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

16 years ago* src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
MaartenBrock [Sun, 21 Oct 2007 18:42:34 +0000 (18:42 +0000)]
* src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
  propagate for *,+,- with float, fixed bug 1816470
  (decorateType): cast to resultTypeProp instead of resultType

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

16 years ago* src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
borutr [Fri, 19 Oct 2007 19:38:41 +0000 (19:38 +0000)]
* src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
  function is ineffective" for pic16 tareget
* support/scripts/listerr.c: corrected include path
* device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
  adjacent memory

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

16 years ago* src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
borutr [Fri, 19 Oct 2007 17:36:01 +0000 (17:36 +0000)]
* src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
  function is ineffective" for pic16 tareget
* support/scripts/listerr.c: corrected include path

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

16 years ago* support/regression/tests/using.c: new, added
MaartenBrock [Thu, 18 Oct 2007 20:35:34 +0000 (20:35 +0000)]
* support/regression/tests/using.c: new, added
* support/regression/tests/vaargs.c: fixed and enabled test

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

16 years ago* src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
borutr [Thu, 18 Oct 2007 20:01:44 +0000 (20:01 +0000)]
* src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
  is ineffective
* support/regression/tests/bug-983491.c: added regtest for bug #983491

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

16 years ago* src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
MaartenBrock [Thu, 18 Oct 2007 10:30:17 +0000 (10:30 +0000)]
* src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
  RegBankUsed[] earlier

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

16 years ago* doc/sdccman.lyx: documented option --Werror
MaartenBrock [Wed, 17 Oct 2007 22:08:37 +0000 (22:08 +0000)]
* doc/sdccman.lyx: documented option --Werror

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

16 years ago* src/SDCCerr.c (vwerror, setWError),
MaartenBrock [Sun, 14 Oct 2007 20:32:34 +0000 (20:32 +0000)]
* src/SDCCerr.c (vwerror, setWError),
* src/SDCCerr.h,
* src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
  warnings as errors, thanks Stas Sergeev for PATCH 1813211

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

16 years ago* device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
MaartenBrock [Sun, 14 Oct 2007 17:55:46 +0000 (17:55 +0000)]
* device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
* src/pic/glue.c,
* src/SDCCval.c,
* src/SDCCast.c,
* src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
  AST_ULONG_VALUE
* src/SDCCast.c (decorateType): improved optimization of tri-op

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

16 years ago* src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
MaartenBrock [Sat, 13 Oct 2007 18:27:11 +0000 (18:27 +0000)]
* src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
* src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
* support/regression/tests/bug-223113.c,
* support/regression/tests/bug-426632.c,
* support/regression/tests/bug-468811.c,
* support/regression/tests/bug-477835.c,
* support/regression/tests/bug-478094.c,
* support/regression/tests/bug-499644.c,
* support/regression/tests/bug-524209.c,
* support/regression/tests/bug-524211.c,
* support/regression/tests/packcast.c,
* support/regression/tests/structidx.c: added empty tests
* support/regression/tests/bug-607243.c: enabled test

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

16 years ago* .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
borutr [Sat, 6 Oct 2007 15:21:38 +0000 (15:21 +0000)]
* .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
   support of universal binaries on Mac OS X

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

16 years ago* src/SDCCval.h: unified double2ul macro for all platforms
borutr [Tue, 2 Oct 2007 19:48:15 +0000 (19:48 +0000)]
* src/SDCCval.h: unified double2ul macro for all platforms
* src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
* support/regression/tests/bitwise.c: added regtest for bug #1777758

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

16 years ago* src/SDCCval.h: unified double2ul macro for all platforms
borutr [Tue, 2 Oct 2007 17:31:50 +0000 (17:31 +0000)]
* src/SDCCval.h: unified double2ul macro for all platforms

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

16 years ago* src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
borutr [Sun, 30 Sep 2007 11:56:05 +0000 (11:56 +0000)]
* src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||

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

16 years ago* src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
borutr [Sun, 30 Sep 2007 10:35:11 +0000 (10:35 +0000)]
* src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
  platforms

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

16 years ago* src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
borutr [Sun, 30 Sep 2007 06:59:18 +0000 (06:59 +0000)]
* src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
  unsigned type, result still unsigned

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

16 years ago* src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
borutr [Sun, 30 Sep 2007 06:54:23 +0000 (06:54 +0000)]
* src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
  platforms
* sdcc_vc_in.h: enabled warnings
* src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
  unsigned type, result still unsigned

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

16 years ago* src/pic/device.c (find_device): prevent buffer underflow error
tecodev [Thu, 27 Sep 2007 22:48:03 +0000 (22:48 +0000)]
* src/pic/device.c (find_device): prevent buffer underflow error
* src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
  the just destroyed list entry

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

16 years agodoc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks Alexander...
frief [Tue, 18 Sep 2007 22:04:53 +0000 (22:04 +0000)]
doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks Alexander Neundorf

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

16 years ago* src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
borutr [Tue, 18 Sep 2007 05:23:12 +0000 (05:23 +0000)]
* src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
 applied to unsigned type, result still unsigned

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

16 years ago* src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c,
borutr [Mon, 17 Sep 2007 19:12:18 +0000 (19:12 +0000)]
* src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c,
  src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c, src/SDCCval.h,
  src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c, src/mcs51/gen.c,
  src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c, src/pic/ralloc.c,
  src/pic16/gen.c, src/pic16/genarith.c, src/pic16/genutils.c,
  src/pic16/glue.c, src/pic16/main.c, src/z80/gen.c, src/z80/ralloc.c:
  fixed bug #1739860 - sdcc does not work correctly on some platforms
  (not finished)
  introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()

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

16 years ago* src/pic16/device.c: reverted to previous version
tecodev [Mon, 17 Sep 2007 18:57:08 +0000 (18:57 +0000)]
* src/pic16/device.c: reverted to previous version
* device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q

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

16 years ago* src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
tecodev [Sun, 16 Sep 2007 19:39:29 +0000 (19:39 +0000)]
* src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
  as this raises a ton of gpasm warnings, just emit a second label
* src/pic16/devices.inc,
* device/lib/pic16/pics.all,
* device/lib/pic16/libdev/pic18f2585.c,
* device/lib/pic16/libdev/pic18f2680.c,
* device/lib/pic16/libdev/pic18f2682.c,
* device/lib/pic16/libdev/pic18f2685.c,
* device/lib/pic16/libdev/pic18f4585.c,
* device/lib/pic16/libdev/pic18f4680.c,
* device/lib/pic16/libdev/pic18f4682.c,
* device/lib/pic16/libdev/pic18f4685.c,
* device/include/pic16/pic18f2585.h,
* device/include/pic16/pic18f2680.h,
* device/include/pic16/pic18f2682.h,
* device/include/pic16/pic18f2685.h,
* device/include/pic16/pic18f4585.h,
* device/include/pic16/pic18f4680.h,
* device/include/pic16/pic18f4682.h,
* device/include/pic16/pic18f4685.h,
* device/include/pic16/pic18fregs.h: added 18f258518f2680,
  18f268218f268518f458518f468018f468218f4685,
  patch contributed by Anton Strobl, applied with changes

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

16 years ago* device/include/pic16/pic18f2431.h,
tecodev [Sun, 16 Sep 2007 18:24:27 +0000 (18:24 +0000)]
* device/include/pic16/pic18f2431.h,
* device/include/pic16/pic18f25j10.h,
* device/include/pic16/pic18f4431.h,
* device/include/pic16/pic18f45j10.h: adopted common include style
* device/include/pic16/pic18f1320.h,
* device/include/pic16/pic18f2320.h,
* device/include/pic16/pic18f2525.h,
* device/include/pic16/pic18f4320.h,
* device/include/pic16/pic18f4525.h: NEW, just include proper .h file
* device/include/pic16/pic18fregs.h: prepared for automatic include
  file selection by having DEVICE.h for every DEVICE
* device/lib/pic16/libdev/pic18f2320.c,
* device/lib/pic16/libdev/pic18f4320.c: just include proper .c file

* device/lib/pic16/configure.in,
* device/lib/pic16/configure: use rm -rf instead of rmdir
* device/lib/pic16/Makefile.in: use RMDIR to remove build directories
* device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast

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

16 years ago* src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
borutr [Sun, 9 Sep 2007 12:18:35 +0000 (12:18 +0000)]
* src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
  distingush between i386 and ppc Mac OS X versions

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

16 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4912 4a8a32a2...
MaartenBrock [Wed, 5 Sep 2007 12:43:03 +0000 (12:43 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4912 4a8a32a2-be11-0410-ad9d-d568d2c75423

16 years ago* src/mcs51/gen.c (genReceive): fixed bug 1788177
MaartenBrock [Wed, 5 Sep 2007 12:40:01 +0000 (12:40 +0000)]
* src/mcs51/gen.c (genReceive): fixed bug 1788177
* support/regression/tests/bug1788177.c: new, added

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

16 years ago* doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
frief [Tue, 4 Sep 2007 20:44:04 +0000 (20:44 +0000)]
* doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
* device/include/mcs51/lint.h added keyword __naked

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

16 years ago* src/pic16/glue.c,
MaartenBrock [Tue, 4 Sep 2007 15:46:07 +0000 (15:46 +0000)]
* src/pic16/glue.c,
* src/pic/glue.c,
* src/SDCCmem.h: removed maxRegBank
* src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
  RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
* src/SDCCsymt.c (checkFunction): set RegBankUsed[] here

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

16 years ago* src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
MaartenBrock [Tue, 4 Sep 2007 08:40:18 +0000 (08:40 +0000)]
* src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
  name and behaviour to handle banked functions
  (scan4op): and use it to fix bug 1786213

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

16 years ago* device/include/pic16/pic18f248.h,
tecodev [Mon, 3 Sep 2007 09:17:13 +0000 (09:17 +0000)]
* device/include/pic16/pic18f248.h,
* device/include/pic16/pic18f258.h,
* device/include/pic16/pic18f448.h,
* device/lib/pic16/libdev/pic18f248.c,
* device/lib/pic16/libdev/pic18f258.c,
* device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
  added T0CONbits, fixes #1786891

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

16 years ago* src/ds390/gen.c (genFarPointerSet),
MaartenBrock [Wed, 29 Aug 2007 13:02:10 +0000 (13:02 +0000)]
* src/ds390/gen.c (genFarPointerSet),
* src/hc08/ralloc.c (packRegisters),
* src/mcs51/ralloc.c (packRegisters),
* src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
  bug 1750318
* src/SDCCicode.h: POINTER_SET can be true for literals too
* support/regression/tests/bug1750318.c: new, added

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

16 years ago* debugger/mcs51/sdcdb.c: fixed compilation with older readline
borutr [Thu, 23 Aug 2007 20:03:39 +0000 (20:03 +0000)]
* debugger/mcs51/sdcdb.c: fixed compilation with older readline
  library versions without the completition functionality

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

16 years ago* device/include/pic16/pic18f1220.h,
tecodev [Wed, 22 Aug 2007 09:06:05 +0000 (09:06 +0000)]
* device/include/pic16/pic18f1220.h,
* device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191

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

16 years ago* debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
borutr [Sun, 12 Aug 2007 10:31:27 +0000 (10:31 +0000)]
* debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src

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

16 years ago* support/scripts/listerr.c:
borutr [Sat, 11 Aug 2007 20:25:55 +0000 (20:25 +0000)]
* support/scripts/listerr.c:
  support/Util/SDCCerr.[ch] moved to src
* support/scripts/winres.h:
  added for compilation with Visual C++ 2005 Express Edition

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

16 years ago * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
borutr [Sat, 11 Aug 2007 18:11:39 +0000 (18:11 +0000)]
* support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
  src/Makefile.in, src/Makefile.bcc:
  support/Util/SDCCerr.[ch] moved to src
* as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
  as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
  device/examples/ds390/tinitalk/tinitalk.dsp,
  device/examples/serialcomm/windows/serialcomm.dsp,
  support/librarian/librarian.dsp:
  removed linking of unused odbc32.lib and odbccp32.lib

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

16 years agodevice/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0 and CKCON1.
jesusc [Thu, 9 Aug 2007 22:39:00 +0000 (22:39 +0000)]
device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0 and CKCON1.

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

16 years ago* sdccconf_in.h: update the endian test so that SPARC Solaris
sdcc-builder [Tue, 7 Aug 2007 11:55:45 +0000 (11:55 +0000)]
* sdccconf_in.h: update the endian test so that SPARC Solaris
  does not throw syntax errors

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

16 years ago* doc/sdccman.lyx: removed two index entries which prevented the
borutr [Mon, 6 Aug 2007 20:02:31 +0000 (20:02 +0000)]
* doc/sdccman.lyx: removed two index entries which prevented the
  generation of sdcc doc archive

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

16 years agodoc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4 instead of lyx...
jesusc [Sun, 5 Aug 2007 18:06:37 +0000 (18:06 +0000)]
doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4 instead of lyx 1.5.0.

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

16 years ago* device/include/hc08/mc68hc908apxx.h: new header contributed by
epetrich [Tue, 31 Jul 2007 06:06:35 +0000 (06:06 +0000)]
* device/include/hc08/mc68hc908apxx.h: new header contributed by
  Lucas Loizaga, with minor modifications. Thanks!

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

16 years agodoc/sdccman.lyx: Documented --acall-ajmp and described new features in sdcclib.
jesusc [Sat, 28 Jul 2007 19:09:38 +0000 (19:09 +0000)]
doc/sdccman.lyx: Documented --acall-ajmp and described new features in sdcclib.

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

16 years agosrc/SDCCglue.c, src/mcs51/main.c: improved implementation of --acall-ajmp
jesusc [Sat, 28 Jul 2007 07:37:07 +0000 (07:37 +0000)]
src/SDCCglue.c, src/mcs51/main.c: improved implementation of --acall-ajmp

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

16 years agosrc/SDCCglue.c, src/mcs51/main.c: improved implementation of --acall-ajmp
jesusc [Sat, 28 Jul 2007 07:35:54 +0000 (07:35 +0000)]
src/SDCCglue.c, src/mcs51/main.c: improved implementation of --acall-ajmp

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

16 years agosrc/SDCCglobl.h, src/SDCCpeeph.c, src/mcs51/main.c, src/mcs51/peeph.def: Added option...
jesusc [Fri, 27 Jul 2007 20:23:22 +0000 (20:23 +0000)]
src/SDCCglobl.h, src/SDCCpeeph.c, src/mcs51/main.c, src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp with acall/ajmp

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

16 years ago* configure.in, configure: re-introduced .version
borutr [Sun, 22 Jul 2007 11:42:58 +0000 (11:42 +0000)]
* configure.in, configure: re-introduced .version
* sdcc.spec, doc/INSTALL.txt: they are used only for releases;
  the version reverted to 2.7.0

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

16 years ago* configure.in,
MaartenBrock [Wed, 18 Jul 2007 15:17:51 +0000 (15:17 +0000)]
* configure.in,
* doc/sdccman.lyx: bumped version to 2.7.3
* device/include/mcs51/compiler.h: fixed elif->else
* src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
* src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
  (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
   enable accuse for bit operands
* src/SDCCmain.c (printVersionInfo),
* src/SDCCutil.c (getBuildEnvironment): factored out creation of build
  environment descriptor
* src/SDCCutil.h: added getBuildEnvironment
* src/SDCCglue.c (initialComments): use getBuildEnvironment
* support/regression/tests/bug1464657.c: enabled test test_Peephole251
* support/regression/tests/bug-408972.c: enabled test leftShiftLong
* support/regression/tests/bug1348008.c,
* support/regression/tests/bug1496419.c,
* support/regression/tests/bug1503067.c,
* support/regression/tests/preproc.c: added empty tests

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

16 years ago* support/regression/tests/bug1678803.c: new, added
MaartenBrock [Sun, 15 Jul 2007 14:21:54 +0000 (14:21 +0000)]
* support/regression/tests/bug1678803.c: new, added

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

16 years ago* as/link/aslink.h,
MaartenBrock [Sat, 14 Jul 2007 08:47:32 +0000 (08:47 +0000)]
* as/link/aslink.h,
* as/link/hc08/lkihx.c,
* as/link/hc08/lkrloc.c,
* as/link/mcs51/lkihx.c,
* as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
  ihxExtendedLinearAddress
* as/link/mcs51/lkrloc.c (relr),
* as/mcs51/asout.c (outr11, outr19): handle absolute destination for
  acall/ajmp, see bug 830513

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

16 years ago* src/mcs51/gen.c (genDataPointerSet): use max of size of right and result
MaartenBrock [Fri, 13 Jul 2007 21:10:11 +0000 (21:10 +0000)]
* src/mcs51/gen.c (genDataPointerSet): use max of size of right and result

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

16 years ago* src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
MaartenBrock [Fri, 13 Jul 2007 12:21:56 +0000 (12:21 +0000)]
* src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
  (cseBBlock): remember aggr2ptr has been used
* src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
  (geniCodeAssign): fixed bug 868103
* src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
  added operandSize prototype
* src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
  (genDataPointerSet): use size of result,
  (gencjne): added parameter useCarry for optimization,
  (genCmpEq): use carry if appropriate,
  (genXor): check if operand already in carry
* support/regression/tests/bug-868103.c: enabled test

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

16 years ago* support/regression/tests/bug1734654.c,
MaartenBrock [Thu, 12 Jul 2007 11:11:02 +0000 (11:11 +0000)]
* support/regression/tests/bug1734654.c,
* support/regression/tests/bug1745717.c: corrected properties

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

16 years ago* src/pic16/gen.c (genNearPointerSet): fixed handling of literals
tecodev [Thu, 12 Jul 2007 09:26:18 +0000 (09:26 +0000)]
* src/pic16/gen.c (genNearPointerSet): fixed handling of literals

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

16 years ago* src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
MaartenBrock [Wed, 11 Jul 2007 14:42:00 +0000 (14:42 +0000)]
* src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
  from Robert Larice, thanks
* support/regression/tests/bitopcse.c,
* support/regression/tests/bitvars.c,
* support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
* support/regression/tests/bug-927659.c: enabled test for z80
* support/regression/tests/bug1738367.c: added extra tests by Frieder
* support/regression/tests/bug1745717.c: new, added
* support/regression/tests/literalop.c,
* support/regression/tests/nullstring.c: removed storage definitions that
  are now in testfwk.h

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

16 years ago* device/include/stdbool.h: do not define __bool_true_false_are_defined
MaartenBrock [Tue, 10 Jul 2007 12:12:48 +0000 (12:12 +0000)]
* device/include/stdbool.h: do not define __bool_true_false_are_defined
  and bool for targets that do not fully support it.
* support/regression/tests/bug1546986.c,
* support/regression/tests/bug1723128.c,
* support/regression/tests/bug1734654.c,
* support/regression/tests/bug1738367.c,
* support/regression/tests/constantRange.c: only use bool if allowed

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

16 years ago* src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
MaartenBrock [Mon, 9 Jul 2007 14:41:30 +0000 (14:41 +0000)]
* src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
  Larice, also handle function pointers
* support/regression/tests/bug1749275.c: new, added

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

16 years ago* device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
borutr [Tue, 3 Jul 2007 20:07:00 +0000 (20:07 +0000)]
* device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing

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

16 years ago* src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
borutr [Tue, 3 Jul 2007 19:51:04 +0000 (19:51 +0000)]
* src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
  src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
  #1746528: SDCC should ignore ':' in inline assembler comments

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

16 years ago* device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
MaartenBrock [Tue, 3 Jul 2007 13:36:13 +0000 (13:36 +0000)]
* device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally

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

16 years ago* device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
MaartenBrock [Mon, 2 Jul 2007 14:38:54 +0000 (14:38 +0000)]
* device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones

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

16 years ago* src/SDCCmain.c: fixed bug #1744746: SDCC #4867: broken option --xram-size
borutr [Fri, 29 Jun 2007 17:23:09 +0000 (17:23 +0000)]
* src/SDCCmain.c: fixed bug #1744746: SDCC #4867: broken option --xram-size

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

16 years ago* sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
borutr [Thu, 28 Jun 2007 09:06:31 +0000 (09:06 +0000)]
* sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
  find out the endianess of host machine for ucsim

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

16 years ago* src/SDCC.y: fixed bug #1744146: Crash when compiling array of
borutr [Wed, 27 Jun 2007 19:15:37 +0000 (19:15 +0000)]
* src/SDCC.y: fixed bug #1744146: Crash when compiling array of
  negative size

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

16 years ago* local/mirror-doors.mk: create Mac OS X unified binaries
borutr [Wed, 27 Jun 2007 17:51:00 +0000 (17:51 +0000)]
* local/mirror-doors.mk: create Mac OS X unified binaries

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

16 years agofixed endif
borutr [Wed, 27 Jun 2007 16:34:48 +0000 (16:34 +0000)]
fixed endif

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

16 years ago* support/regression/generate-cases.py: corrected the file name
borutr [Wed, 27 Jun 2007 16:17:14 +0000 (16:17 +0000)]
* support/regression/generate-cases.py: corrected the file name
  in warning
* configure.in, configure, sdccconf_in.h: find out the endianess of
  host machine

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

16 years agoadded file submitted by Gudjon I. Gudjonsson <gudjon AT gudjon.org>
frief [Wed, 27 Jun 2007 12:32:42 +0000 (12:32 +0000)]
added file submitted by Gudjon I. Gudjonsson <gudjon AT gudjon.org>
device/include/mcs51/p89c66x.h: NXP header file, OK to change licence

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