fw/sdcc
17 years ago* sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
borutr [Thu, 31 Aug 2006 12:51:59 +0000 (12:51 +0000)]
* sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>

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

17 years agoset svn properties
borutr [Wed, 30 Aug 2006 21:17:29 +0000 (21:17 +0000)]
set svn properties

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

17 years ago* sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
borutr [Wed, 30 Aug 2006 21:12:39 +0000 (21:12 +0000)]
* sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
  sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
  sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
  sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
  sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
  sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
  sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
  sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
  sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
  sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
  sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
  sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
  sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
  sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
  sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
  sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
  sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
  sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
  sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
  sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
  sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
  sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
  sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
  sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
  sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
  sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
  sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
  sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
  sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
  sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
  sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
  sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
  sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
  sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
  sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
  sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
  sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
  sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
  sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
  ucsim WIN32 native port

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

17 years ago* doc/sdccman.lyx: added note on dynamic memory heap initialization
jesusc [Wed, 30 Aug 2006 18:37:26 +0000 (18:37 +0000)]
* doc/sdccman.lyx: added note on dynamic memory heap initialization

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

17 years ago* src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
MaartenBrock [Sun, 27 Aug 2006 20:51:56 +0000 (20:51 +0000)]
* src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too

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

17 years ago* src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
MaartenBrock [Sun, 27 Aug 2006 13:30:50 +0000 (13:30 +0000)]
* src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986

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

17 years ago* as/mcs51/.cvsignore,
MaartenBrock [Sat, 26 Aug 2006 19:46:41 +0000 (19:46 +0000)]
* as/mcs51/.cvsignore,
* debugger/mcs51/.cvsignore,
* src/.cvsignore: deleted

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

17 years ago* src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
MaartenBrock [Sat, 26 Aug 2006 16:04:34 +0000 (16:04 +0000)]
* src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
* support/regression/tests/bug1546986.c: new, added

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

17 years agodevice/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit definitions)
jesusc [Sat, 26 Aug 2006 01:00:38 +0000 (01:00 +0000)]
device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit definitions)

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

17 years ago* sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
borutr [Sun, 20 Aug 2006 13:57:43 +0000 (13:57 +0000)]
* sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
  removed cl_listen_console::match(), cl_console::match(),
  restructured cl_commander::proc_input()

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

17 years agocode cleaned a little bit too much ;-)
borutr [Wed, 16 Aug 2006 18:14:24 +0000 (18:14 +0000)]
code cleaned a little bit too much ;-)

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

17 years ago* sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
borutr [Wed, 16 Aug 2006 14:47:12 +0000 (14:47 +0000)]
* sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
  sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
  sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning

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

17 years agocorrected typos
borutr [Mon, 14 Aug 2006 12:53:33 +0000 (12:53 +0000)]
corrected typos

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

17 years ago* support/regression/Makefile.in,
borutr [Mon, 14 Aug 2006 12:51:48 +0000 (12:51 +0000)]
* support/regression/Makefile.in,
  support/regression/ports/pic14/gpsim.cmd,
  support/regression/ports/pic14/spec.mk,
  support/regression/ports/pic14/support.c:
  added pic14 regression test

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

17 years ago* as/doc/asxhtm.html: documented changed ABS behaviour
MaartenBrock [Mon, 14 Aug 2006 11:00:46 +0000 (11:00 +0000)]
* as/doc/asxhtm.html: documented changed ABS behaviour
* as/doc/README: fixed some typos

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

17 years ago* support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
MaartenBrock [Sat, 12 Aug 2006 22:05:44 +0000 (22:05 +0000)]
* support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
  not defined on host

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

17 years ago* support/regression/fwk/include/testfwk.h,
borutr [Sat, 12 Aug 2006 20:13:39 +0000 (20:13 +0000)]
* support/regression/fwk/include/testfwk.h,
  support/regression/fwk/lib/testfwk.c,
  support/regression/generate-cases.py,
  support/regression/Makefile.in:
  regression test framework does not depend on function pointers and
  variable arguments

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

17 years ago* device/include/stddef.h: c temporary hack to fix bug 1518273
MaartenBrock [Thu, 10 Aug 2006 20:35:53 +0000 (20:35 +0000)]
* device/include/stddef.h: c temporary hack to fix bug 1518273

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

17 years agodevice/include/mcs51/cc2510fx.h: added.
jesusc [Thu, 10 Aug 2006 02:27:22 +0000 (02:27 +0000)]
device/include/mcs51/cc2510fx.h: added.
src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch to projects.

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

17 years agoAdded strcmpi.[hc] to gbz80 and z80 VC projects
jesusc [Thu, 10 Aug 2006 02:18:25 +0000 (02:18 +0000)]
Added strcmpi.[hc] to gbz80 and z80 VC projects

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

17 years agoRegister Declarations for Chipcon CC2510Fx/CC2511Fx
jesusc [Thu, 10 Aug 2006 01:45:39 +0000 (01:45 +0000)]
Register Declarations for Chipcon CC2510Fx/CC2511Fx

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

17 years ago* as/z80/assym.c (mlookup): ignore case when looking up mnemonics
MaartenBrock [Wed, 9 Aug 2006 12:30:18 +0000 (12:30 +0000)]
* as/z80/assym.c (mlookup): ignore case when looking up mnemonics
* as/z80/Makefile.in: added strcmpi.c
* as/z80/z80adr.c: added upper case registers and lower case conditionals
* support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08

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

17 years ago* device/lib/gbz80/asm_strings.s,
MaartenBrock [Tue, 8 Aug 2006 19:20:11 +0000 (19:20 +0000)]
* device/lib/gbz80/asm_strings.s,
* device/lib/gbz80/crt0_rle.s,
* device/lib/gbz80/div.s,
* device/lib/gbz80/mul.s,
* device/lib/gbz80/shift.s,
* device/lib/z80/asm_strings.s,
* device/lib/z80/crt0_rle.s,
* device/lib/z80/div.s,
* device/lib/z80/mul.s,
* device/lib/z80/shift.s: changed to all lower case menmonics except the
  flags which are all upper case

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

17 years ago* as/z80/asm.h: made CASE_SENSITIVE 1
MaartenBrock [Mon, 7 Aug 2006 16:06:16 +0000 (16:06 +0000)]
* as/z80/asm.h: made CASE_SENSITIVE 1
* link/z80/aslink.h: made CASE_SENSITIVE 1
* src/z80/gen.c (throughout): made all conditionals upper case
* support/regression/tests/bug1503067.c: new

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

17 years ago* src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
MaartenBrock [Sun, 6 Aug 2006 22:36:30 +0000 (22:36 +0000)]
* src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
  (shiftIntoPair): added case 2 for PAIR_IY,
  (setupToPreserveCarry): replaced parameters with iCode and check if
   PAIR_DE is in use to fix bug 1399290,
  (genPlus, genMinus): updated call to setupToPreserveCarry
* support/regression/tests/bug1399290.c: new

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

17 years ago* device/lib/Makefile.in (Z80SOURCES): enabled float support
MaartenBrock [Sun, 6 Aug 2006 18:26:33 +0000 (18:26 +0000)]
* device/lib/Makefile.in (Z80SOURCES): enabled float support
* sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
* src/ds390/gen.c (shiftRLong),
* src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
* src/mcs51/gen.c (sameReg): changed to sameByte,
  (xch_a_aopGet): new,
  (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult,
   shiftLLong, shiftRLong): fixed bug 1533966
* src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
  genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
* support/regression/Makefile.in: disabled z80, enabled ucz80
* support/regression/tests/float_trans.c: enabled test for z80 and host
* support/regression/tests/shifts2.c: new, for testing bug 1533966

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

17 years ago* sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
MaartenBrock [Tue, 1 Aug 2006 19:05:38 +0000 (19:05 +0000)]
* sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
* sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
* sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
* Changelog: not every \ should be a /

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

17 years agoadditional signed char correction
borutr [Tue, 1 Aug 2006 17:58:05 +0000 (17:58 +0000)]
additional signed char correction

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

17 years ago* src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
borutr [Tue, 1 Aug 2006 17:21:25 +0000 (17:21 +0000)]
* src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
  comparison is always false due to limited range of data type
  on PPC64 machine (openpower-linux1) where "char = unsigned char"

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

17 years ago* sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
MaartenBrock [Tue, 1 Aug 2006 16:05:44 +0000 (16:05 +0000)]
* sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast

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

17 years ago* sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
borutr [Mon, 31 Jul 2006 16:27:32 +0000 (16:27 +0000)]
* sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
  sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
  sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
  sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
  sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
  sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
  sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
  sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
  enable ucsim mingw compilation. Serial port is disabled,
  since it uses termios.h API, which is not available on native
  WIN32

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

17 years ago* .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
borutr [Mon, 31 Jul 2006 13:57:11 +0000 (13:57 +0000)]
* .version, doc/sdccman.lyx: changed sdcc version to 2.6.1

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

17 years agosdcc:
borutr [Mon, 31 Jul 2006 13:07:24 +0000 (13:07 +0000)]
sdcc:
* Small Device C Compiler 2.6.0 released
* support/scripts/sdcc.nsi: added FULL_DOC option
sdcc-web:
* index.php: Small Device C Compiler 2.6.0 released

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

17 years ago* doc/INSTALL.txt: updated
borutr [Fri, 28 Jul 2006 15:56:26 +0000 (15:56 +0000)]
* doc/INSTALL.txt: updated

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

17 years ago* support/scripts/sdcc.nsi: remove $INSTDIR\include\asm\pic16\*.h
borutr [Fri, 28 Jul 2006 08:48:31 +0000 (08:48 +0000)]
* support/scripts/sdcc.nsi: remove $INSTDIR\include\asm\pic16\*.h

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

17 years ago* device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
borutr [Thu, 27 Jul 2006 17:32:43 +0000 (17:32 +0000)]
* device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
  device/lib/pic16/libio/Makefile.in: fixed bug
  [ 1438344 ] pic16 lib: clean doesn't work properly
* doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list

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

17 years ago* device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
borutr [Thu, 27 Jul 2006 14:24:33 +0000 (14:24 +0000)]
* device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
  device/lib/pic/libdev/Makefile.in: fixed bug
  [ 1438354 ] pic libsdcc: distclean doesn't work

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

17 years ago* doc/knownbugs.html: removed [ 1520966 ] from the list
MaartenBrock [Wed, 26 Jul 2006 09:32:33 +0000 (09:32 +0000)]
* doc/knownbugs.html: removed [ 1520966 ] from the list

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

17 years ago* device/lib/pic/libsdcc/fsdiv.c,
MaartenBrock [Wed, 26 Jul 2006 09:21:58 +0000 (09:21 +0000)]
* device/lib/pic/libsdcc/fsdiv.c,
* device/lib/pic/libsdcc/fsmul.c,
* device/lib/pic16/libsdcc/float/fsdiv.c,
* device/lib/pic16/libsdcc/float/fsmul.c: bugfix, handle too large and small numbers

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

17 years ago* device/lib/_fsdiv.c,
MaartenBrock [Tue, 25 Jul 2006 23:20:31 +0000 (23:20 +0000)]
* device/lib/_fsdiv.c,
* device/lib/_fsmul.c: bugfix, handle too large and too small numbers
* support/regression/tests/bug1520966.c: added

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

17 years ago* doc/knownbugs.html: removed [ 1519095 ] from the list
borutr [Tue, 25 Jul 2006 13:15:09 +0000 (13:15 +0000)]
* doc/knownbugs.html: removed [ 1519095 ] from the list

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

17 years ago* configure.in, configure, sdccconf_in.h: fixed bug
borutr [Tue, 25 Jul 2006 13:04:41 +0000 (13:04 +0000)]
* configure.in, configure, sdccconf_in.h: fixed bug
  [ 1519095 ] regression test onebyte.c fails on ppc64 host

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

17 years ago* configure.in, configure, sdccconf_in.h: fixed bug
borutr [Tue, 25 Jul 2006 12:56:37 +0000 (12:56 +0000)]
* configure.in, configure, sdccconf_in.h: fixed bug
  [ 1519095 ] regression test onebyte.c fails on ppc64 host

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

17 years ago* device/include/mcs51/compiler.h: fixed SFR32 for SDCC
MaartenBrock [Tue, 25 Jul 2006 09:09:37 +0000 (09:09 +0000)]
* device/include/mcs51/compiler.h: fixed SFR32 for SDCC

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

17 years ago* doc/knownbugs.html: added, contains list of known bugs at release
MaartenBrock [Tue, 25 Jul 2006 07:12:30 +0000 (07:12 +0000)]
* doc/knownbugs.html: added, contains list of known bugs at release

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

17 years ago* device/include/mcs51/compiler.h: added SFRX for xdata based special
MaartenBrock [Sun, 23 Jul 2006 18:24:59 +0000 (18:24 +0000)]
* device/include/mcs51/compiler.h: added SFRX for xdata based special
  function registers and corrected defaults with additional warning
* device/lib/malloc.c: cosmetic changes
* device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
* src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
  (fillGaps): and used it

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

17 years ago* src/pic/device.c (addMemRange,assignRegister): suppress verbose
tecodev [Thu, 20 Jul 2006 14:10:16 +0000 (14:10 +0000)]
* src/pic/device.c (addMemRange,assignRegister): suppress verbose
  output unless SDCCPICDEBUG is set
* device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
  output if SILENT is set

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

17 years ago* doc/README.txt: updated
borutr [Tue, 11 Jul 2006 05:40:20 +0000 (05:40 +0000)]
* doc/README.txt: updated

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

17 years ago* .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
borutr [Mon, 10 Jul 2006 21:34:39 +0000 (21:34 +0000)]
* .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
  release candidate 1

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

17 years ago* support/scripts/sdcc.nsi: added device/lib/src/pic16/libsdcc/stack/*.S
borutr [Mon, 10 Jul 2006 21:00:28 +0000 (21:00 +0000)]
* support/scripts/sdcc.nsi: added device/lib/src/pic16/libsdcc/stack/*.S
  in WIN32 installation

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

17 years agosdcc:
borutr [Mon, 10 Jul 2006 20:54:52 +0000 (20:54 +0000)]
sdcc:
* support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
  device/lib/src/pic/libm/*.c in WIN32 installation
sdcc-web:
* snap.php: support for i586-mingw32msvc snapshots

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

17 years ago* device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
MaartenBrock [Sat, 8 Jul 2006 20:20:46 +0000 (20:20 +0000)]
* device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
* src/pic16/glue.c (initPointer), fixed bug 1496419 for pic16

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

17 years ago* src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
MaartenBrock [Thu, 6 Jul 2006 21:24:36 +0000 (21:24 +0000)]
* src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127

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

17 years ago* support/regression/tests/constantRange.c:
borutr [Thu, 6 Jul 2006 20:24:43 +0000 (20:24 +0000)]
* support/regression/tests/constantRange.c:
  fixed bug [ 1518317 ] regression test constantRange fails on alpha host

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

17 years ago* support/regression/tests/bitfields.c:
borutr [Thu, 6 Jul 2006 19:56:23 +0000 (19:56 +0000)]
* support/regression/tests/bitfields.c:
  fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts

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

17 years agoreplace .cc with .c
borutr [Tue, 4 Jul 2006 16:01:37 +0000 (16:01 +0000)]
replace .cc with .c

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

17 years ago* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
borutr [Tue, 4 Jul 2006 13:49:11 +0000 (13:49 +0000)]
* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
  src/port.mk,
  src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
  src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
  src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
  reverted changes from 2006-07-03
* Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS

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

17 years ago* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
borutr [Tue, 4 Jul 2006 13:32:19 +0000 (13:32 +0000)]
* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
  src/port.mk,
  src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
  src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
  src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
  reverted changes from 2006-07-03
* Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS

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

17 years ago* support/regression/Makefile.in, support/regression/ports/host/spec.mk:
borutr [Tue, 4 Jul 2006 13:18:44 +0000 (13:18 +0000)]
* support/regression/Makefile.in, support/regression/ports/host/spec.mk:
  added CPPFLAGS, used by the host port

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

17 years ago* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
borutr [Tue, 4 Jul 2006 07:29:55 +0000 (07:29 +0000)]
* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
  src/port.mk,
  src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
  src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
  src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
  reverted changes from 2006-07-03
* Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS

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

17 years ago* support/regression/valdiag/tests/switch.c,
bernhardheld [Mon, 3 Jul 2006 21:06:08 +0000 (21:06 +0000)]
* support/regression/valdiag/tests/switch.c,
* support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
* support/regression/tests/libmullong.c: fixed for host
* support/regression/ports/host/spec.mk: disable all warnings for host, SDCC runs with --less-pedantic too

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

17 years ago* as/z80/Makefile.in: defined CPPFLAGS
borutr [Mon, 3 Jul 2006 20:31:46 +0000 (20:31 +0000)]
* as/z80/Makefile.in: defined CPPFLAGS

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

17 years ago* sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
borutr [Mon, 3 Jul 2006 19:58:39 +0000 (19:58 +0000)]
* sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
  sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
  sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
  sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies

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

17 years agosdcc-build:
borutr [Mon, 3 Jul 2006 10:11:18 +0000 (10:11 +0000)]
sdcc-build:
* local/ppc-osx3.mk: added
* emu/rrz80/cpu/z80.h: detect __BIG_ENDIAN__ if defined by preprocessor
sdcc:
* src/configure.in, src/configure, src/Makefile.in: defined CPPFLAGS
* src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
* src/avr/Makefile.in, rc/ds390/Makefile.in, src/ds400/Makefile.in,
  src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
  src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:

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

17 years ago* src/pic16/devices.inc,
tecodev [Sun, 2 Jul 2006 10:13:24 +0000 (10:13 +0000)]
* src/pic16/devices.inc,
* device/include/pic16/pic18fregs.h,
* device/include/pic16/pic18f4550.h,
* device/lib/pic16/pics.all,
* device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550

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

17 years ago* as/hc08/lkaomf51.c (OutputName),
bernhardheld [Sat, 1 Jul 2006 20:59:37 +0000 (20:59 +0000)]
* as/hc08/lkaomf51.c (OutputName),
* as/mcs51/lkaomf51.c (OutputName),
* as/z80/asmain.c (asmbl),
* src/ds390/main.c (asmLineNodeFromLineNode),
* src/hc08/ralloc.c (hc08_assignRegisters),
* src/mcs51/main.c (asmLineNodeFromLineNode),
* src/xa51/ralloc.c (checkRegMask),
* src/xa51/gen.c (emitcode),
* src/z80/gen.c (_emit2),
* src/SDCCast.c (searchLitOp),
* src/SDCCglobl.h,
* support/packihx/packihx.c,
* support/Util/MySystem.c (split_command): fix gcc 4 warnings
* src/ds390/gen.c (aopPutUsesAcc),
* src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
* support/regression/tests/libmullong.c (mullong_wrapper),
* src/SDCCsymt.c (powof2),
* src/SDCCast.c,
* src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
* src/SDCCsymt.h: added TYPE_TARGET_*
* src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
* src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to SDCCast because 1) header problems 2) this is the right place
* src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
* src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added prototype

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

17 years ago* src/SDCCicode.h: removed buggy semicolon in unused macro
bernhardheld [Thu, 29 Jun 2006 13:58:34 +0000 (13:58 +0000)]
* src/SDCCicode.h: removed buggy semicolon in unused macro
* src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853, search for previous definiton of auto symbols too,
(findPrevUse): fixed logic of emitWarnings

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

17 years ago* src/pic16/gen.c (genFunction, genEndFunction): also preserve
tecodev [Mon, 26 Jun 2006 17:52:27 +0000 (17:52 +0000)]
* src/pic16/gen.c (genFunction, genEndFunction): also preserve
  PCLATH and PCLATU on interrupts, potentially fixes #1505141

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

17 years ago* device/lib/pic/libm: NEW, added math library functions
tecodev [Sun, 25 Jun 2006 22:17:57 +0000 (22:17 +0000)]
* device/lib/pic/libm: NEW, added math library functions
* device/lib/pic/libsdcc: NEW; added float support functions
* device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
* device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
  NEW, added math related headers
* device/include/asm/pic/features.h: NEW
* src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
  (popGet): allow larger offsets for AOP_PCODE,
  (genDataPointerSet): handle literals explicitly, more debug output,
  (genAssign): fixed for float using aopLiteral ;-)
* src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
  GOTO initialisation routine
* src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
  flag on registers, fixes #1469043 (local variables do not work)
* src/pic/main.c (_pic14_do_link),
* src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
  available

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

17 years ago* device/lib/pic16/libc/stdio/sprintf.c: return the number of
borutr [Sun, 25 Jun 2006 12:22:18 +0000 (12:22 +0000)]
* device/lib/pic16/libc/stdio/sprintf.c: return the number of
  characters printed (not including the trailing '\0' used to end
  output to strings). Problem detected in regression test bug-927659.c.
  NOTE: printf() family functions should return int instead
  unsigned int!
* device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
  specifier are printed as themselves
* sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
  support flags, width and precision specifiers

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

17 years ago* sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
borutr [Sat, 24 Jun 2006 20:49:06 +0000 (20:49 +0000)]
* sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
  to the list of sdcc tagrets not supporting bit type
* sdcc/support/regression/tests/bug-905992.c.c: excluded regression
  testfor pic16 due to bug:
  [ 1511794 ] pic16: regression test bug-895992.c fails

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

17 years ago* src/mcs51/gen.c (genCmp): optimization for RFE 1162453
MaartenBrock [Sat, 24 Jun 2006 16:37:52 +0000 (16:37 +0000)]
* src/mcs51/gen.c (genCmp): optimization for RFE 1162453

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

17 years ago* src/SDCCglue.c (initPointer), fixed bug 1496419
MaartenBrock [Sat, 24 Jun 2006 11:48:29 +0000 (11:48 +0000)]
* src/SDCCglue.c (initPointer), fixed bug 1496419
* support/regression/tests/bug1496419.c: new, added

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

17 years ago* support/regression/ports/pic16/support.c: use gpsim usart module from
borutr [Thu, 22 Jun 2006 07:03:31 +0000 (07:03 +0000)]
* support/regression/ports/pic16/support.c: use gpsim usart module from
  libgpsim_modules library

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

17 years agoFixed bug 1510144: Error in header at89c51ed2.h
jesusc [Thu, 22 Jun 2006 03:10:28 +0000 (03:10 +0000)]
Fixed bug 1510144: Error in header at89c51ed2.h

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

17 years ago* src/pic/glue.h,src/pic16/glue.h: added prototypes
tecodev [Mon, 19 Jun 2006 20:36:23 +0000 (20:36 +0000)]
* src/pic/glue.h,src/pic16/glue.h: added prototypes
* src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
  pic1x_emitSymbolIfNew): NEW, check for a string in a set,
  (pic14printExterns,pic14printPublics,pic16printPublics,
  pic16_printExterns): use new functions to emit symbols
  (picglue,pic16glue): emit publics before emitting externs
* src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
  locally defined functions to avoid bug #1443651
* support/regression/tests/bug-716242.c: removed pic16 workaround
* support/regression/ports/pic16/spec.mk: ignore errors during build

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

17 years ago* src/pic/glue.h: added pic14aopLiteral prototype
tecodev [Mon, 19 Jun 2006 16:50:14 +0000 (16:50 +0000)]
* src/pic/glue.h: added pic14aopLiteral prototype
* src/pic/glue.c (pic14aopLiteral): return unsigned int
* src/pic/gen.c: removed stdint.h dependency
  (aopGet): use Safe_strdup()
  (bitpatternFromVal): removed, replaced use with pic14aopLiteral
  (genDataPointerSet): use pic14aopLiteral()
* src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
  for pic16; thanks to Bernhard and Maarten

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

17 years ago* support/regression/tests/constantRange.c,
borutr [Sun, 18 Jun 2006 21:49:50 +0000 (21:49 +0000)]
* support/regression/tests/constantRange.c,
  support/regression/tests/rotate.c: include inttypes.h instead
  stdint.h on solaris, addad svn attributes

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

17 years ago* support/regression/tests/structflexarray.c: flexible array members
borutr [Sun, 18 Jun 2006 21:08:05 +0000 (21:08 +0000)]
* support/regression/tests/structflexarray.c: flexible array members
  not supported by gcc < 3
* sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
  GUI tool by default
* src/pic/gen.c: don't include [p]strdin.h on solaris
* support/Util/pstdint.h: addad svn attributes

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

17 years ago- corrected test for __GNUC__
borutr [Sun, 18 Jun 2006 19:33:25 +0000 (19:33 +0000)]
- corrected test for __GNUC__

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

17 years ago* support/regression/tests/structflexarray.c: flexible array members
borutr [Sun, 18 Jun 2006 18:48:25 +0000 (18:48 +0000)]
* support/regression/tests/structflexarray.c: flexible array members
  not supported by gcc < 3
* lib/variables.mk, lib/fetch.mk, sdcc-build-bootstrap.sh:
  use common ORIG tree with VPATH functionality

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

17 years ago* src/SDCCsymt.c (initCSupport): change return type of divschar to
tecodev [Sun, 18 Jun 2006 16:42:39 +0000 (16:42 +0000)]
* src/SDCCsymt.c (initCSupport): change return type of divschar to
  int for PIC16
* src/pic16/genarith.c (genAddLit): sign-extend via standard routine
  (pic16_genMinusBits): simplified sign-extension
  (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
    pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
    adjusted to correctly handle mixed-signed operands, disabled
    now unused multiplciation routines
* src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
  (assignResultValue): added argument denoting the size of the result
    as returned by the function (fixes upcasts in assigning from
    function calls: char foo(); int i = foo();)
  (genCall,genPcall,genGenPointerGet,genReceive): pass size of
    function result to assignResultValue
  (genMult): disabled inlined multiplication code
  (genDiv): augmented to also handle the modulus operator, fixed to
    handle mixed-signed operands correctly
  (genMod): simply call genDiv, disabled unused code
  (genAssign): fixed missing (sign-)extension on result
* src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
    valid char operands, allow signed operands for native code, added
    division and modulo operator handling
* device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int

As a consequence, onebyte.c (if split into two files) and muldiv.c
pass regression tests.

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

17 years ago* doc/Makefile.in: two runs of makeindex seem needed to get correct page references...
frief [Sat, 17 Jun 2006 21:40:28 +0000 (21:40 +0000)]
* doc/Makefile.in: two runs of makeindex seem needed to get correct page references in the index of sdccman.pdf
* doc/sdccman.lyx: mentioned cmon51, added links, small changes

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

17 years ago* sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
borutr [Sat, 17 Jun 2006 14:43:52 +0000 (14:43 +0000)]
* sdcc/device/lib/Makefile.in: corrected PORTINCDIR path

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

17 years agodoc/sdccman.lyx: updated, added (porting, debugging), mentioned ec2drv and paulmon
frief [Sat, 17 Jun 2006 10:00:41 +0000 (10:00 +0000)]
doc/sdccman.lyx: updated, added (porting, debugging), mentioned ec2drv and paulmon

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

17 years ago* as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
MaartenBrock [Fri, 16 Jun 2006 14:31:13 +0000 (14:31 +0000)]
* as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
  consecutive abs areas
  (find_empty_space, allocate_space): added map to handle codemap or
   xdatamap,
  (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
   absolute idata and xdata
* as/mcs51/lkmem.c (summary2): updated legend

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

17 years ago* src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
tecodev [Fri, 16 Jun 2006 08:40:32 +0000 (08:40 +0000)]
* src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127

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

17 years ago* src/SDCClrange.c (findPrevUse): fixed bug 1294475
MaartenBrock [Tue, 13 Jun 2006 15:02:07 +0000 (15:02 +0000)]
* src/SDCClrange.c (findPrevUse): fixed bug 1294475

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

17 years ago* debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and 1208515
MaartenBrock [Tue, 13 Jun 2006 12:49:43 +0000 (12:49 +0000)]
* debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and 1208515

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

17 years ago* src/port.h (struct PORT): added field gp_tags, to hold the tag
vrokas [Tue, 13 Jun 2006 08:32:55 +0000 (08:32 +0000)]
* src/port.h (struct PORT): added field gp_tags, to hold the tag
value of generic pointers,
* src/avr/main.c,
src/ds390/main.c,
src/hc08/main.c,
src/izt/i186.c,
src/izt/tlcs900h.c,
src/mcs51/main.c,
src/pic/main.c,
src/pic16/main.c,
src/xa51/main.c,
src/z80/main.c: PORT structure, added elements for gp_tags field,
* src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
fields in the PORT structure of each port,
* src/SDCCast.c (decorateType): allow processing of generic pointers
for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
S_FIXED symbols

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

17 years ago* link/z80/lkgb.c,
MaartenBrock [Mon, 12 Jun 2006 21:22:45 +0000 (21:22 +0000)]
* link/z80/lkgb.c,
* link/z80/lkgg.c,
* src/pic16/gen.c,
* src/pic16/main.c,
* src/pic16/pcode.c,
* src/pic/main.c,
* src/pic/pcoderegs.c,
* src/SDCCicode.c,
* src/SDCCmain.c,
* src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
  bug 1504689 on minGW

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

17 years agodevice/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
frief [Mon, 12 Jun 2006 12:34:21 +0000 (12:34 +0000)]
device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)

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

17 years agofixed bug #1465675 (%x format specifier)
frief [Mon, 12 Jun 2006 12:33:35 +0000 (12:33 +0000)]
fixed bug #1465675 (%x format specifier)

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

17 years ago* src/SDCCast.c (backPatchLabels): fixed bug #1504636
bernhardheld [Mon, 12 Jun 2006 08:58:49 +0000 (08:58 +0000)]
* src/SDCCast.c (backPatchLabels): fixed bug #1504636

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

17 years ago* device/include/pic16/adc.h,
vrokas [Sun, 11 Jun 2006 21:40:26 +0000 (21:40 +0000)]
* device/include/pic16/adc.h,
device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
and fixed bug #1364390

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

17 years ago* device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
MaartenBrock [Sun, 11 Jun 2006 17:18:57 +0000 (17:18 +0000)]
* device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
  for optimization

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

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4216 4a8a32a2...
vrokas [Sun, 11 Jun 2006 14:41:20 +0000 (14:41 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4216 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
vrokas [Sun, 11 Jun 2006 14:35:35 +0000 (14:35 +0000)]
* src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
to a char variable

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

17 years ago* CVSROOT: removed the CVS left-over
borutr [Sun, 11 Jun 2006 08:07:11 +0000 (08:07 +0000)]
* CVSROOT: removed the CVS left-over

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

17 years ago* as/hc08/asmain.c (asexit),
MaartenBrock [Sat, 10 Jun 2006 20:18:57 +0000 (20:18 +0000)]
* as/hc08/asmain.c (asexit),
* as/hc08/lkmain.c (lkexit),
* as/mcs51/asmain.c (asexit),
* as/mcs51/lkmain.c (lkexit),
* src/SDCCglue.c (DEFSETFUNC),
* src/SDCCmain.c (linkEdit, assemble),
* support/librarian/sdcclib.c (AddRel),
  replaced unlink() by standard C remove()
* src/SDCC.y: replaced removePostIncDecOps() by createRMW()
* src/SDCCast.c (replaceAstWithTemporary, createRMW,
  gatherImplicitVariables): new, added to fix bug 608752,
  (createFunction): added gatherImplicitVariables()
* src/SDCCast.h: added createRMW prototype
* src/SDCCsymt.h (struct symbol): added infertype
* support/regression/tests/bug608752.c: new, added

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