fw/sdcc
16 years ago* sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
borutr [Mon, 18 Feb 2008 07:26:19 +0000 (07:26 +0000)]
* sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit

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

16 years ago* src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
MaartenBrock [Sun, 17 Feb 2008 22:07:46 +0000 (22:07 +0000)]
* src/SDCCmain.c (linkEdit): emit -z when using --debug for z80

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

16 years ago* sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
borutr [Sun, 17 Feb 2008 17:16:28 +0000 (17:16 +0000)]
* sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
  sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
  sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
  sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
  enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0

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

16 years ago* src/pic16/genarith.c,
tecodev [Sun, 17 Feb 2008 16:31:47 +0000 (16:31 +0000)]
* src/pic16/genarith.c,
* src/pic16/gen.c,
* src/pic16/gen.h,
* src/pic16/genutils.c: removed unused legacy code,
  removed unused fields from struct asmop and struct _G

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

16 years ago* src/pic16/gen.c (AccRsh): cosmetic changes,
tecodev [Sun, 17 Feb 2008 13:38:14 +0000 (13:38 +0000)]
* src/pic16/gen.c (AccRsh): cosmetic changes,
  (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
  genRightShiftLiteral): fixed to work with SFRs as result by
  assigning only once to result,
  removed a lot of unused/excluded code fragments

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

16 years ago* src/z80/gen.c, src/z80/peeph.def: applied patch
borutr [Sun, 17 Feb 2008 12:30:30 +0000 (12:30 +0000)]
* src/z80/gen.c, src/z80/peeph.def: applied patch
  #1893510: Improve logical left shift on Z80, thanks to Philipp Krause

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

16 years ago* device/include/pic/pic16f88.h,
tecodev [Sun, 17 Feb 2008 10:47:26 +0000 (10:47 +0000)]
* device/include/pic/pic16f88.h,
* device/include/pic/pic16f886.h,
* device/include/pic/pic16f887.h: added TRISA6 and TRISA7

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

16 years ago* src/z80/peeph.def: applied patch
borutr [Sun, 17 Feb 2008 07:25:53 +0000 (07:25 +0000)]
* src/z80/peeph.def: applied patch
  #1893626: Optimize tail calls on Z80, thanks to Philipp Krause

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

16 years ago* as/link/mcs51/aslink.dsp: removed SDK define
MaartenBrock [Sat, 16 Feb 2008 21:28:52 +0000 (21:28 +0000)]
* as/link/mcs51/aslink.dsp: removed SDK define
* as/link/z80/clean.mk: brought in sync with other ports
* as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
* as/hc08/Makefile.bcc,
* as/mcs51/Makefile.bcc,
* as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
* src/z80/main.c (_setValues): use the now capitalized -Z,
  (z80_port, gbz80_port): generate debug information when asked

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

16 years ago* src/z80/peeph-gbz80.def: applied patch
borutr [Sat, 16 Feb 2008 15:05:19 +0000 (15:05 +0000)]
* src/z80/peeph-gbz80.def: applied patch
  #1880235: Z80 return peephole, thanks to Philipp Krause

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

16 years ago* as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
borutr [Sat, 16 Feb 2008 14:28:22 +0000 (14:28 +0000)]
* as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
  as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
  as/z80/Makefile.in. as/z80/Makefile.bcc:
  applied patch #1893393: patch for as-z80 and link-z80 to generate cdb,
  thanx to Armin Diehl
* as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
  as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
  asnoice.c moved to as/asxxsrc/asnoice.c

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

16 years ago* .version,
MaartenBrock [Thu, 14 Feb 2008 14:01:06 +0000 (14:01 +0000)]
* .version,
* doc/sdccman.lyx: bumped version to 2.7.5
* src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583

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

16 years ago* device/include/pic16/stdlib.h,
MaartenBrock [Wed, 13 Feb 2008 21:59:32 +0000 (21:59 +0000)]
* device/include/pic16/stdlib.h,
* device/lib/pic16/libc/stdlib/ltoa.c,
* device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*

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

16 years ago* src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
borutr [Wed, 13 Feb 2008 19:17:50 +0000 (19:17 +0000)]
* src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
  src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
  src/SDCCopt.c,  src/SDCCval.c:
  fixed bug #1890273: SDCC Warning 154 shows wrong filename

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

16 years agofixed warnings, produced with last commit
borutr [Wed, 13 Feb 2008 17:56:02 +0000 (17:56 +0000)]
fixed warnings, produced with last commit

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

16 years ago* src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
borutr [Wed, 13 Feb 2008 06:55:24 +0000 (06:55 +0000)]
* src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode

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

16 years ago* src/SDCCsymt.c (compareType): fixed bug 1309013
MaartenBrock [Tue, 12 Feb 2008 15:09:16 +0000 (15:09 +0000)]
* src/SDCCsymt.c (compareType): fixed bug 1309013

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

16 years ago* src/SDCCval.c, src/SDCCval.h:
borutr [Sat, 9 Feb 2008 16:45:05 +0000 (16:45 +0000)]
* src/SDCCval.c, src/SDCCval.h:
  code cleaning, added function constChrVal()
* src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
  call constChrVal() instead constVal()

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

16 years ago* src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
MaartenBrock [Fri, 1 Feb 2008 18:46:38 +0000 (18:46 +0000)]
* src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
  of function pointer
* src/SDCCerr.h,
* src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
* support/regression/tests/absolute.c: added TestStruct TestVar (see also
  bug 1859853)

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

16 years ago* device/include/pic/pic16f886.h,
tecodev [Fri, 1 Feb 2008 15:57:45 +0000 (15:57 +0000)]
* device/include/pic/pic16f886.h,
* device/include/pic/pic16f887.h: added RA6 and RA7

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

16 years ago* device/include/pic/pic16f88.h: added RA6 and RA7
tecodev [Thu, 24 Jan 2008 11:24:53 +0000 (11:24 +0000)]
* device/include/pic/pic16f88.h: added RA6 and RA7
* device/lib/pic/libdev/disabled_pic16f886.c,
* device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled

* src/pic16/devices.inc,
* device/include/pic16/pic18f2423.h,
* device/include/pic16/pic18f2523.h,
* device/include/pic16/pic18fregs.h,
* device/lib/pic16/pics.all
* device/lib/pic16/libdev/pic18f2423.c,
* device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
* device/lib/pic16/libio/i2c.ignore,
* device/lib/pic16/libio/usart.ignore,
* device/lib/pic16/libio/adc.ignore: ignore new devices

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

16 years ago* src/SDCCast.c (createRMW): fixed bug 1582651
MaartenBrock [Wed, 23 Jan 2008 22:13:38 +0000 (22:13 +0000)]
* src/SDCCast.c (createRMW): fixed bug 1582651

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

16 years ago* support/regression/tests/arithcsi.c: fixed regression test
borutr [Sun, 20 Jan 2008 00:37:33 +0000 (00:37 +0000)]
* support/regression/tests/arithcsi.c: fixed regression test

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

16 years ago* support/regression/tests/arithcsi.c: added regression test
borutr [Sun, 20 Jan 2008 00:35:31 +0000 (00:35 +0000)]
* support/regression/tests/arithcsi.c: added regression test

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

16 years ago* src/SDCCcse.c: partially fixed enhancement request
borutr [Sat, 19 Jan 2008 23:49:32 +0000 (23:49 +0000)]
* src/SDCCcse.c: partially fixed enhancement request
  #1793872 - multiply by -1 not collapsed
* support/regression/tests/arithcsi.c: added regression test

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

16 years ago* device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
MaartenBrock [Sat, 19 Jan 2008 15:42:51 +0000 (15:42 +0000)]
* device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
* as/link/lklex.c,
* as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
  cosmetic changes, brought more in sync, changed old K&R to ANSI

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

16 years ago* as/mcs51/asx8051.dsp: removed define SDK
MaartenBrock [Sat, 19 Jan 2008 13:06:10 +0000 (13:06 +0000)]
* as/mcs51/asx8051.dsp: removed define SDK
* as/mcs51/i51mch.c (machine): fixed bug 1865114

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

16 years agosdcc-build:
borutr [Sun, 13 Jan 2008 11:14:43 +0000 (11:14 +0000)]
sdcc-build:
* lib/version.mk: fixed VER_XXX macros

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

16 years ago*src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
borutr [Sun, 13 Jan 2008 07:54:32 +0000 (07:54 +0000)]
*src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero

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

16 years agosdcc-build:
borutr [Sun, 13 Jan 2008 06:43:50 +0000 (06:43 +0000)]
sdcc-build:
* Makefile, lib/bootstrap.mk, lib/variables.mk, lib/version.mk:
  added version.mk, introduced variables SDCC_VER_MAJOR,
  SDCC_VER_MINOR, SDCC_VER_DEVEL, SDCCREVISION renamed to
  SDCC_REVISION

sdcc-cf:
* packages/build.nsis/Makefile: updated to NSIS version 2.34
* crontab.txt: execute .bash_profile instead of .bashrc on cf-x86

sdcc:
* support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...

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

16 years ago* src/pic16/gen.c: fixed implementation of bitwise operations for
borutr [Sun, 30 Dec 2007 22:56:15 +0000 (22:56 +0000)]
* src/pic16/gen.c: fixed implementation of bitwise operations for
  pic16targer
* support/regression/tests/bitwise.c: added test cases

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

16 years agofixed makefiles
borutr [Sat, 29 Dec 2007 22:33:50 +0000 (22:33 +0000)]
fixed makefiles

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

16 years ago* as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
borutr [Sat, 29 Dec 2007 21:44:17 +0000 (21:44 +0000)]
* as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
  as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
  as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
  as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
* as/asxxsrc/aslex.c: use dbuf_getline()
* as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
  as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
  as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
  as/z80/asm.h, as/z80/z80adr.c:
  changed type of ib and ip to const char *

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

16 years agofixed skipLine() and printCLine()
borutr [Sat, 29 Dec 2007 18:01:19 +0000 (18:01 +0000)]
fixed skipLine() and printCLine()

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

16 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4986 4a8a32a2...
borutr [Sat, 29 Dec 2007 16:56:58 +0000 (16:56 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4986 4a8a32a2-be11-0410-ad9d-d568d2c75423

16 years ago* src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
borutr [Sat, 29 Dec 2007 16:50:25 +0000 (16:50 +0000)]
* src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
* src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
  src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
* support/Util/dbuf_string.[ch]: added function dbuf_getline()
* src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
  src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
  src/pic16/pcode.[ch]: added const qualifier

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

16 years agoremoved gcc warning: 'c' may be used uninitialized in this function
borutr [Fri, 28 Dec 2007 19:32:00 +0000 (19:32 +0000)]
removed gcc warning: 'c' may be used uninitialized in this function

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

16 years ago* as/hc08/asmain.c, as/mcs51/asmain.c:
borutr [Fri, 28 Dec 2007 19:19:05 +0000 (19:19 +0000)]
* as/hc08/asmain.c, as/mcs51/asmain.c:
  added missing initialization of a_addr field
* support/regression/tests/long_asm_line.c: added regtest for long
  assembler line

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

16 years ago* as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
borutr [Fri, 28 Dec 2007 18:39:56 +0000 (18:39 +0000)]
* as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
  introduced (readlin) - long lines are turuncated
* as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
  as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
  as/z80/Makefile.in: moved aslex.c to asxxsrc
* as/hc08/aslex.c, as/z80/aslex.c: deleted
* as/z80/asmain.c, as/hc08/asmain.c, as/mcs51/asmain.c:
  added missing initialization of a_addr field

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

16 years ago* src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
borutr [Sat, 22 Dec 2007 13:05:08 +0000 (13:05 +0000)]
* src/SDCC.lex: fixed bug #1852894: # character hangs the compiler

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

16 years ago* src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
MaartenBrock [Thu, 20 Dec 2007 13:20:53 +0000 (13:20 +0000)]
* src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang

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

16 years ago* device/include/pic16/stdbool.h: removed, since already exists in
borutr [Sun, 16 Dec 2007 16:18:03 +0000 (16:18 +0000)]
* device/include/pic16/stdbool.h: removed, since already exists in
 device/include/; this also fixes bitopcse.c regression test for pic16
 target
* support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
* src/pic16/glue.c: fixed bug #1851855: generic static pointer
  dereference doesn't work; covered by regression test bug1399290

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

16 years agoadded macro ASSERT_FAILED
borutr [Sun, 16 Dec 2007 12:08:32 +0000 (12:08 +0000)]
added macro ASSERT_FAILED

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

16 years ago* device/include/pic16/stdbool.h: removed, since already exists in
borutr [Sun, 16 Dec 2007 11:59:54 +0000 (11:59 +0000)]
* device/include/pic16/stdbool.h: removed, since already exists in
 device/include/; this also fixes bitopcse.c regression test for pic16
 target
* support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED

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

16 years ago* doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
borutr [Wed, 5 Dec 2007 20:26:46 +0000 (20:26 +0000)]
* doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
  Adding new PIC16

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

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