fw/sdcc
15 years ago* src/pic16/glue.c (pic16_printIvalBitFields): prevent
tecodev [Sat, 6 Dec 2008 23:31:13 +0000 (23:31 +0000)]
* src/pic16/glue.c (pic16_printIvalBitFields): prevent
  NULL pointer dereference, closes #2366757

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

15 years ago* device/include/pic16/pic16devices.txt,
tecodev [Tue, 25 Nov 2008 01:47:40 +0000 (01:47 +0000)]
* device/include/pic16/pic16devices.txt,
  sdcc/src/pic16/device.c,
  sdcc/src/pic16/device.h: implicitly disable XINST
  whenever CONFIG4L is set via an additional optional
  argument to the configword directive in pic16devices.txt

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

15 years ago* device/lib/pic16/configure.ac,
tecodev [Mon, 24 Nov 2008 22:14:14 +0000 (22:14 +0000)]
* device/lib/pic16/configure.ac,
  device/lib/pic16/Makefile.common: fixed quoting issues

* device/lib/pic16/configure,
  device/lib/pic16/debug/Makefile.in,
  device/lib/pic16/libc/Makefile.in,
  device/lib/pic16/libdev/Makefile.in,
  device/lib/pic16/libio/Makefile.in,
  device/lib/pic16/libm/Makefile.in,
  device/lib/pic16/libsdcc/Makefile.in,
  device/lib/pic16/Makefile.in,
  device/lib/pic16/startup/Makefile.in: regenerated

* src/pic16/main.c (_pic16_finaliseOptions): revert to
  variant of r5216

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

15 years ago* src/pic16/main.c (_pic16_finaliseOptions): do not quote the
tecodev [Mon, 24 Nov 2008 00:16:33 +0000 (00:16 +0000)]
* src/pic16/main.c (_pic16_finaliseOptions): do not quote the
  argument of --asm= or --link= to allow for
  --asm="sh script --options", the user can double quote the
  argument if needed: --asm="'c:/program files/gpasm' -q",
  also fix some potential buffer overflows

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

15 years ago* doc/sdccman.lyx:
borutr [Wed, 19 Nov 2008 18:08:05 +0000 (18:08 +0000)]
* doc/sdccman.lyx:
  fixed 2314467: sdccman.lyx: fix "--" in command line parameters
  thanks Mauro Giachero

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

15 years agocorrected spelling error
borutr [Sun, 16 Nov 2008 20:36:12 +0000 (20:36 +0000)]
corrected spelling error

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

15 years ago* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
borutr [Sun, 16 Nov 2008 12:55:47 +0000 (12:55 +0000)]
* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
* doc/sdccman.lyx: documented fixed unnamed bit-field initialization

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

15 years ago(printIvalChar) - removed internal error: it is triggered by structflexarray.c regres...
borutr [Sat, 15 Nov 2008 18:11:26 +0000 (18:11 +0000)]
(printIvalChar) - removed internal error: it is triggered by structflexarray.c regression test

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

15 years ago* support/regression/tests/bug-1981238.c:
borutr [Sat, 15 Nov 2008 17:41:36 +0000 (17:41 +0000)]
* support/regression/tests/bug-1981238.c:
  don't initialize unnamed bit-fields

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

15 years ago* support/regression/tests/bitfields.c:
borutr [Sat, 15 Nov 2008 17:27:17 +0000 (17:27 +0000)]
* support/regression/tests/bitfields.c:
  added test case for RFE #2291335

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

15 years ago* src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
borutr [Sat, 15 Nov 2008 14:14:42 +0000 (14:14 +0000)]
* src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
  src/SDCCsymt.c, src/SDCCsymt.h:
  unnamed bitfields are not initialized (gcc, msvc comatibility)

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

15 years ago* src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
borutr [Sat, 15 Nov 2008 14:13:47 +0000 (14:13 +0000)]
* src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
  src/SDCCsymt.c, src/SDCCsymt.h:
  unnamed bitfields are not initialized (gcc, msvc comatibility)

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

15 years ago* device/include/pic16/pic18f25j10.h,
tecodev [Tue, 11 Nov 2008 02:14:20 +0000 (02:14 +0000)]
* device/include/pic16/pic18f25j10.h,
  device/include/pic16/pic18f45j10.h: remove useless boilerplate

* device/include/pic16/adc.h,
  device/lib/pic16/libio/adc/adcbusy.c,
  device/lib/pic16/libio/adc/adcclose.c,
  device/lib/pic16/libio/adc/adcconv.c,
  device/lib/pic16/libio/adc/adcopen.c,
  device/lib/pic16/libio/adc/adcread.c,
  device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
  and fixed ADC routines to work for more target devices,
  incorporates patch #2036130 by Nick Materer

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

15 years ago* device/include/ctype.h,
MaartenBrock [Mon, 10 Nov 2008 20:12:44 +0000 (20:12 +0000)]
* device/include/ctype.h,
* device/include/ds400rom.h,
* device/include/ds80c390.h,
* device/include/float.h,
* device/include/math.h,
* device/include/serial.h,
* device/include/stdbool.h,
* device/include/tinibios.h: replaced non-C89 '//' with '/* */',
  patch 2195343
* device/include/mcs51/C8051F336.h,
* device/include/mcs51/C8051T600.h,
* device/include/mcs51/C8051T610.h,
* device/include/mcs51/C8051T630.h: new, added, patch 2183334
  (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)

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

15 years ago* device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
frief [Mon, 10 Nov 2008 17:38:37 +0000 (17:38 +0000)]
* device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57

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

15 years ago* device/lib/pic16/libdev/mkmk.sh: obey pics.all
tecodev [Mon, 10 Nov 2008 16:44:25 +0000 (16:44 +0000)]
* device/lib/pic16/libdev/mkmk.sh: obey pics.all
* device/lib/pic16/libio/mkmk.sh: properly match whole lines in
  .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
  (patch by Nick Materer, #2253980)

* device/lib/pic16/libio/adc.ignore,
  device/lib/pic16/libio/i2c.ignore,
  device/lib/pic16/libio/usart.ignore,
  device/lib/pic16/pics.all: updated to build more device libs

* device/lib/pic16/libdev/Makefile.am,
  device/lib/pic16/libdev/Makefile.in,
  device/lib/pic16/libio/Makefile.am,
  device/lib/pic16/libio/Makefile.in: regenerated

* src/pic16/device.c (pic16_dump_usection): fixed output of multiple
  names per memory location, applied SDCC style to more functions

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

15 years ago2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
frief [Sun, 9 Nov 2008 22:05:13 +0000 (22:05 +0000)]
2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
        * device/include/mcs51/p89lpc933_4.h: new NXP header file
        * device/include/mcs51/p89lpc935_6.h: new NXP header file
        * device/include/mcs51/p89v66x.h: minor changes

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

15 years ago* device/include/pic/pic14devices.txt: fixed memory description for
tecodev [Sun, 9 Nov 2008 07:55:13 +0000 (07:55 +0000)]
* device/include/pic/pic14devices.txt: fixed memory description for
  12f629 and 12f675, closes #2236240

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

15 years ago* src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
borutr [Thu, 6 Nov 2008 17:20:29 +0000 (17:20 +0000)]
* src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
  pass system include paths with -isystem to sdcpp
* src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneded
  functions (closePipes), (closeTmpFiles) and (rmTmpFiles)

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

15 years ago* doc/sdccman.lyx: updated the sections on the library build process
tecodev [Sun, 2 Nov 2008 13:40:55 +0000 (13:40 +0000)]
* doc/sdccman.lyx: updated the sections on the library build process
  and on how to add support for new devices, and documented known
  problems with the extended instruction set including a workaround

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

15 years ago* device/include/pic16/adc.h,
tecodev [Sat, 1 Nov 2008 17:33:54 +0000 (17:33 +0000)]
* device/include/pic16/adc.h,
  device/include/pic16/pic16devices.txt,
  device/include/pic16/pic18f2410.h,
  device/include/pic16/pic18f2510.h,
  device/include/pic16/pic18f2515.h,
  device/include/pic16/pic18f2610.h,
  device/include/pic16/pic18f4410.h,
  device/include/pic16/pic18f4510.h,
  device/include/pic16/pic18f4515.h,
  device/include/pic16/pic18f4610.h,
  device/include/pic16/pic18fregs.h,
  device/lib/pic16/libdev/Makefile.am,
  device/lib/pic16/libdev/Makefile.in,
  device/lib/pic16/libdev/pic18f2410.c,
  device/lib/pic16/libdev/pic18f2510.c,
  device/lib/pic16/libdev/pic18f2515.c,
  device/lib/pic16/libdev/pic18f2610.c,
  device/lib/pic16/libdev/pic18f4410.c,
  device/lib/pic16/libdev/pic18f4510.c,
  device/lib/pic16/libdev/pic18f4515.c,
  device/lib/pic16/libdev/pic18f4610.c,
  device/lib/pic16/libio/Makefile.am,
  device/lib/pic16/libio/Makefile.in,
  device/lib/pic16/pics.all: added support for 18f[24][456]10
  and 18f[24]515 devices
* doc/sdccman.lyx: updated list of supported PIC16 devices

* src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
  src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
  src/xa51/gen.c: avoid compiler warnings
* support/scripts/inc2h-pic16.pl: removed trailing whitespace

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

15 years agoGudjon I. Gudjonsson <gudjon AT gudjon.org>
frief [Wed, 22 Oct 2008 18:00:51 +0000 (18:00 +0000)]
Gudjon I. Gudjonsson <gudjon AT gudjon.org>
* device/include/mcs51/p89v66x.h: NXP header file
* device/include/mcs51/p89c66x.h: fixed an SBIT definition

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

15 years ago* device/lib/pic16/libdev/Makefile.am,
tecodev [Tue, 14 Oct 2008 17:34:37 +0000 (17:34 +0000)]
* device/lib/pic16/libdev/Makefile.am,
  device/lib/pic16/libio/Makefile.am: enable building libraries for
  18f232118f432118f252318f4620, 18f66j60, 18f66j65, 18f67j60,
  18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
* device/lib/pic16/libdev/Makefile.in,
  device/lib/pic16/libio/Makefile.in: regenerated

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

15 years ago* device/include/pic16/pic18f2450.h,
tecodev [Tue, 14 Oct 2008 12:18:51 +0000 (12:18 +0000)]
* device/include/pic16/pic18f2450.h,
  device/include/pic16/pic18f4450.h,
  device/lib/pic16/libdev/pic18f2450.c,
  device/lib/pic16/libdev/pic18f4450.c,
  device/include/pic16/adc.h,
  device/include/pic16/pic16devices.txt,
  device/include/pic16/pic18fregs.h,
  device/lib/pic16/libdev/Makefile.am,
  device/lib/pic16/libdev/Makefile.in,
  device/lib/pic16/libio/Makefile.am,
  device/lib/pic16/libio/Makefile.in,
  device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525

* device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
  stack to a fixed location, relax it to automatically work with all
  but the smallest devices (256 byte RAM devices need #pragma stack)

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

15 years ago* debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
MaartenBrock [Thu, 9 Oct 2008 21:56:54 +0000 (21:56 +0000)]
* debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
* debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
* device/lib/_strcspn.c: fixed bug 2140931

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

15 years ago* device/include/pic16/stdio.h,
tecodev [Sun, 5 Oct 2008 23:07:36 +0000 (23:07 +0000)]
* device/include/pic16/stdio.h,
  device/lib/pic16/libc/stdio/putchar.c: putchar should not be
  declared __naked for convenience, named all arguments
* device/lib/pic16/libc/stdio/strmgpsim.c,
  device/lib/pic16/libc/stdio/strmmssp.c,
  device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes

* src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
  empty __naked functions,
* (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
  corner cases (unlink first/last pCode in list), reuse more code

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

15 years ago* src/ds390/main.c (_ds390_genInitStartup): added
MaartenBrock [Sun, 5 Oct 2008 20:35:35 +0000 (20:35 +0000)]
* src/ds390/main.c (_ds390_genInitStartup): added
* src/SDCCpeeph.c (getPatternVar): new, added,
  (labelInRange): fixed bug 2115959
* src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
* src/SDCCicode.h: added newiTempOperand
* src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
  added optimizations for 0/x and x/-1, see also patch 2142900
* support/regression/tests/onebyte.c (testMul): added test cases

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

15 years ago* src/pic16/glue.c:
borutr [Sat, 20 Sep 2008 15:55:48 +0000 (15:55 +0000)]
* src/pic16/glue.c:
  definition of absolute address symbols without initial value,
  fixed SDCC cresh "do not know how to intialize symbol"

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

15 years ago* device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
MaartenBrock [Tue, 16 Sep 2008 19:34:18 +0000 (19:34 +0000)]
* device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
* device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
  __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
* device/lib/z80/stubs.s: added stubs for above functions
* src/SDCCopt.c (convilong),
* src/SDCCsymt.c (initCSupport): fixed bug 1900961
* src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
* src/z80/main.c (_hasNativeMulFor): fixed bug, I think
* support/regression/tests/onebyte.c: enabled all tests for z80

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

15 years ago* support/regression/tests/bug1057979.c:
borutr [Mon, 15 Sep 2008 19:55:17 +0000 (19:55 +0000)]
* support/regression/tests/bug1057979.c:
  removed old pic16 sprintf specifics
* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
* doc/sdccman.lyx: documented 'b' binary format specifier removal

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

15 years ago* device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
borutr [Mon, 15 Sep 2008 18:33:02 +0000 (18:33 +0000)]
* device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
  device/lib/pic16/libc/stdio/printf.c,
  device/lib/pic16/libc/stdio/strmusart.c,
  device/lib/pic16/libc/stdio/printf_tiny.c,
  device/lib/pic16/libc/stdio/sprintf.c,
  device/lib/pic16/libc/stdio/strmgpsim.c,
  device/lib/pic16/libc/stdio/putchar.c,
  device/lib/pic16/libc/stdio/fprintf.c,
  device/lib/pic16/libc/stdio/strmmssp.c,
  device/device/lib/pic16/libc/stdio/vprintf.c,
  device/lib/pic16/libc/stdio/printf_small.c,
  device/lib/pic16/libc/stdio/vsprintf.c,
  device/lib/pic16/libc/stdio/strmputchar.c,
  device/lib/pic16/libc/Makefile.am,
  device/lib/pic16/libc/Makefile.in:
  *printf now returns int, puchar.c moved from stdlib to stdio,
  *printf format parameter type changed from char * to const char *,
  added GNU link excetion text to library source files,
  applyed GNU coding style, removed useless svn ids,
  added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
  binary specifier: "%b", "%hb" and "%lb"
* device/lib/pic16/libc/stdio/vfprintf.c:
  applied patch #2044424: PIC16: vfprintf
  thanks Mauro Giachero

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

15 years ago* src/pic16/device.c (pic16_dump_usection): force udata sections
tecodev [Mon, 15 Sep 2008 09:28:11 +0000 (09:28 +0000)]
* src/pic16/device.c (pic16_dump_usection): force udata sections
  into the addressable range (0..0xFFF), workaround for a gpsim
  bug preventing simulation of regtest bug1750318
* src/pic16/ralloc.c (deassignLRs): cosmetic changes,
  (serialRegAssign): fixed regtest bug-971834,
  (pic16_packRegisters): avoid null-pointer dereference

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

15 years ago* src/pic16/gen.c, src/pic16/ralloc.c: use
tecodev [Sun, 14 Sep 2008 04:06:11 +0000 (04:06 +0000)]
* src/pic16/gen.c, src/pic16/ralloc.c: use
  SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
* src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857

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

15 years ago* support/regression/fwk/testfwk.h:
borutr [Fri, 12 Sep 2008 19:28:35 +0000 (19:28 +0000)]
* support/regression/fwk/testfwk.h:
  define pdata as data for pic16 target
  thanks Mauro Giachero

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

15 years ago* tests\bug-221100.c, tests\shifts.c, tests\absolute.c:
borutr [Thu, 11 Sep 2008 19:20:36 +0000 (19:20 +0000)]
* tests\bug-221100.c, tests\shifts.c, tests\absolute.c:
  applied patch #2105615: Some PIC16 testcase fixlets
  thanks Mauro Giachero

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

15 years ago* src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
MaartenBrock [Sun, 7 Sep 2008 22:27:12 +0000 (22:27 +0000)]
* src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
* support/regression/tests/bug2094505.c: new, added

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

15 years ago * support/regression/tests/nullstring.c:
borutr [Sun, 7 Sep 2008 13:05:28 +0000 (13:05 +0000)]
* support/regression/tests/nullstring.c:
  disable warning about excess elements in array of chars initializer

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

15 years ago* src/SDCCglue.c, src/SDCCast.c:
borutr [Sun, 7 Sep 2008 12:50:06 +0000 (12:50 +0000)]
* src/SDCCglue.c, src/SDCCast.c:
  fixed throw of "excess elements" warning for char arrays

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

15 years ago* as/z80/aslist.c (lstsym): changed old K&R to ANSI
MaartenBrock [Sun, 7 Sep 2008 12:19:47 +0000 (12:19 +0000)]
* as/z80/aslist.c (lstsym): changed old K&R to ANSI
* src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
* src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
* support/regression/tests/bug2077267.c: new, added

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

15 years ago* configure.in, Makefile.common.in: add support for ccache,
tecodev [Fri, 5 Sep 2008 16:35:04 +0000 (16:35 +0000)]
* configure.in, Makefile.common.in: add support for ccache,
  remove spurious $VERSION output, detect doc-tools even without
  --enable-doc to facilitate later manual doc-builds, minor cleanup
* configure: regenerated

* doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
  avoid races in parallel VPATH builds
* doc/clean.mk: remove .lyx files in the builddir for VPATH builds
* doc/sdccman.lyx: mention --without-ccache configure option

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

15 years ago* src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
tecodev [Mon, 1 Sep 2008 17:02:23 +0000 (17:02 +0000)]
* src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
* (genConstPointerGet): fix reading bitfields from __code space
* src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
  bitfield initializers (fix regression test bug1856409.c)
* (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
  arbitrary sizes

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

15 years ago* src/pic16/gen.c (genAssign): removed useless compiler output
tecodev [Sun, 31 Aug 2008 21:08:28 +0000 (21:08 +0000)]
* src/pic16/gen.c (genAssign): removed useless compiler output
* (genPointerGet,genPointerSet,genCast),
  src/pic16/glue.c (pic16_printGPointerType):
  also handle PPOINTERs just to avoid spurious asserts
* (pic16_printIvalType,pic16_printIvalBitFields):
  generalized to arbitrary type/bitfield sizes, allows compilation of
  regression test bug-1981238.c
* (pic16_printIvalChar): fix regression test structflexarray.c
* (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
  in initialized structs and fix #1843745
* (pic16_printIvalStruct): always output initializers for all fields,
  even those not explicitly given, fixes zeropad.c regression test
* (pic16_printIvalUnion): fix union initializers (bug1426356.c,
  #2073635, #1567098, and #1485812)
* src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'

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

15 years agofix to pass the host regression test
borutr [Sun, 31 Aug 2008 10:47:20 +0000 (10:47 +0000)]
fix to pass the host regression test

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

15 years ago* src/SDCCsymt.c, src/SDCCglue.c,
borutr [Sun, 31 Aug 2008 09:10:06 +0000 (09:10 +0000)]
* src/SDCCsymt.c, src/SDCCglue.c,
  support/regression/tests/bug-1981238.c:
  applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
  thanks to RvS

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

15 years ago* support/regression/tests/bug-895992.c,
borutr [Sun, 31 Aug 2008 08:16:59 +0000 (08:16 +0000)]
* support/regression/tests/bug-895992.c,
  support/regression/tests/onebyte.c:
  enabled pic16 regression testing since the bugs
  1511794: pic16: regression test bug-895992.c fails
  1444425: onebyte.c regression tes fails on pic16
  are fiexed, probably by fixing
  2048464: PIC16: fix genUminus - addresses not.c regression test

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

15 years ago* support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP release version 4.3.2
borutr [Sat, 30 Aug 2008 21:02:34 +0000 (21:02 +0000)]
* support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP release version 4.3.2

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

15 years ago* device/lib/pic16/configure, device/lib/pic16/configure.ac:
tecodev [Sun, 24 Aug 2008 20:30:52 +0000 (20:30 +0000)]
* device/lib/pic16/configure, device/lib/pic16/configure.ac:
  always use the sdcc from the current build tree (ignore $CC from
  the environment, fixes compile farm builds)
* device/lib/Makefile.in: rename .a into .lib for compatibility,
  remove more build products from install directory
* sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
* sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs

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

15 years agocorrected the comment
borutr [Sun, 24 Aug 2008 08:00:56 +0000 (08:00 +0000)]
corrected the comment

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

15 years ago* src/SDCC.y: applied patch
borutr [Sun, 24 Aug 2008 06:52:39 +0000 (06:52 +0000)]
* src/SDCC.y: applied patch
  1963382: Listing File - C file comment is incorrect
  thanks to Serge Malo

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

15 years ago* src/pic16/gen.c: applied patch
borutr [Sat, 23 Aug 2008 11:44:54 +0000 (11:44 +0000)]
* src/pic16/gen.c: applied patch
  2048464: PIC16: fix genUminus - addresses not.c regression test
  thanks Mauro Giachero

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

15 years ago* device/lib/pic16/configure, device/lib/pic16/configure.ac,
borutr [Fri, 22 Aug 2008 21:07:50 +0000 (21:07 +0000)]
* device/lib/pic16/configure, device/lib/pic16/configure.ac,
  src/pic16/main.c: allow spaces in gpasm and gplink paths

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

15 years agoFixed commit date
spth [Fri, 15 Aug 2008 20:42:54 +0000 (20:42 +0000)]
Fixed commit date

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

15 years agoMinor peephole improvement
spth [Fri, 15 Aug 2008 20:39:49 +0000 (20:39 +0000)]
Minor peephole improvement

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

15 years ago* src/pic/*.[ch]: removed dead/replaced code, no functional changes
tecodev [Fri, 15 Aug 2008 15:11:06 +0000 (15:11 +0000)]
* src/pic/*.[ch]: removed dead/replaced code, no functional changes

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

15 years ago* src/z80/gen.c (_vemit2): suppress compiler warning
tecodev [Fri, 15 Aug 2008 14:57:21 +0000 (14:57 +0000)]
* src/z80/gen.c (_vemit2): suppress compiler warning

* src/pic/*.[ch]: make proper use of header files and avoid
  ad-hoc extern declarations, mark module-local helpers 'static',
  no functional changes
* src/pic16/pcode.c: disentangled from pic14 backend

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

15 years agoFixed #2051348
spth [Thu, 14 Aug 2008 13:12:10 +0000 (13:12 +0000)]
Fixed #2051348

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

15 years ago* configure.in,
tecodev [Sun, 10 Aug 2008 22:03:04 +0000 (22:03 +0000)]
* configure.in,
* Makefile.common.in: export PACKAGE for $docdir,
  fixes #1957036, avoid some "underquoted definition" warnings
* configure: regenerated

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

15 years ago* device/lib/pic16/**: build pic16 library using autotools for
tecodev [Sun, 10 Aug 2008 20:58:48 +0000 (20:58 +0000)]
* device/lib/pic16/**: build pic16 library using autotools for
  improved dependency tracking

* device/lib/Makefile.in,
* src/pic16/main.c,
* support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)

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

15 years ago* src/pic/pcode.c (ReuseReg): do not overlay the registers used for
tecodev [Sun, 10 Aug 2008 17:37:34 +0000 (17:37 +0000)]
* src/pic/pcode.c (ReuseReg): do not overlay the registers used for
  local variables if --no-overlay is given, workaround for #2023121

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

15 years ago* src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
tecodev [Fri, 8 Aug 2008 18:00:57 +0000 (18:00 +0000)]
* src/pic16/genarith.c (genAddLit): fix structure access (#1888004)

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

15 years ago* src/pic/pcoderegs.c,
tecodev [Fri, 8 Aug 2008 16:40:05 +0000 (16:40 +0000)]
* src/pic/pcoderegs.c,
* src/pic/pcode.c,
* src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF

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

15 years ago* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
borutr [Thu, 7 Aug 2008 22:22:15 +0000 (22:22 +0000)]
* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3

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

15 years ago* src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
borutr [Thu, 7 Aug 2008 21:44:41 +0000 (21:44 +0000)]
* src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
  device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
  device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
  support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
  applied modified patsh 2038174: Add support for binary constants v2
  thanks Mauro Giachero

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

15 years ago* doc/sdccman.lyx,
tecodev [Mon, 4 Aug 2008 15:54:43 +0000 (15:54 +0000)]
* doc/sdccman.lyx,
* src/pic16/device.h,
* src/pic16/glue.c,
* src/pic16/main.c: enable --optimize-goto by default

* device/lib/pic16/Makefile.common.in: suppress removed option

* src/pic16/gen.c,
* src/pic16/genutils.c: avoid too long relative branches (#2031890)

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

15 years agoAdded two peepholes that simplify conditional jumps
spth [Sun, 3 Aug 2008 11:48:46 +0000 (11:48 +0000)]
Added two peepholes that simplify conditional jumps

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

15 years ago* src\pic16\device.c, src\pic16\glue.c, src\pic16\pcode.c:
borutr [Wed, 30 Jul 2008 17:23:30 +0000 (17:23 +0000)]
* src\pic16\device.c, src\pic16\glue.c, src\pic16\pcode.c:
  applied patch 22032433: PIC16: fix constant strings,
  thanks Mauro Giachero

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

15 years ago* src/pic16/gen.c: applied patches :
borutr [Tue, 29 Jul 2008 18:47:55 +0000 (18:47 +0000)]
* src/pic16/gen.c: applied patches :
  2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
  2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
  2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
  thanks Mauro Giachero

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

15 years agoFixed typo in comment
spth [Sun, 13 Jul 2008 10:50:09 +0000 (10:50 +0000)]
Fixed typo in comment

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

15 years agoZ80 peephole improvements - Implemented RFE #1919415, #1861376, #1880202, #1914434...
spth [Sat, 12 Jul 2008 12:05:19 +0000 (12:05 +0000)]
Z80 peephole improvements - Implemented RFE #1919415, #1861376, #1880202, #1914434, prepared for RFE #1703943.

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

15 years agoseparate Z80 from GBZ80 peepholes
spth [Sat, 12 Jul 2008 11:01:54 +0000 (11:01 +0000)]
separate Z80 from GBZ80 peepholes

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

15 years ago* device/include/pic16/pic18f66j60.h,
tecodev [Sat, 21 Jun 2008 21:36:29 +0000 (21:36 +0000)]
* device/include/pic16/pic18f66j60.h,
* device/include/pic16/pic18f66j65.h,
* device/include/pic16/pic18f67j60.h,
* device/include/pic16/pic18f86j60.h,
* device/include/pic16/pic18f86j65.h,
* device/include/pic16/pic18f87j60.h,
* device/include/pic16/pic18f96j60.h,
* device/include/pic16/pic18f96j65.h,
* device/include/pic16/pic18f97j60.h,
* device/lib/pic16/libdev/pic18f66j60.c,
* device/lib/pic16/libdev/pic18f66j65.c,
* device/lib/pic16/libdev/pic18f67j60.c,
* device/lib/pic16/libdev/pic18f86j60.c,
* device/lib/pic16/libdev/pic18f86j65.c,
* device/lib/pic16/libdev/pic18f87j60.c,
* device/lib/pic16/libdev/pic18f96j60.c,
* device/lib/pic16/libdev/pic18f96j65.c,
* device/lib/pic16/libdev/pic18f97j60.c,
* device/include/pic16/pic16devices.txt,
* device/include/pic16/pic18fregs.h,
* device/lib/pic16/pics.all: added new devices

* device/include/pic16/adc.h,
* device/lib/pic16/libio/adc/adcbusy.c,
* device/lib/pic16/libio/adc/adcopen.c,
* device/lib/pic16/libio/adc/adcsetch.c,
* device/lib/pic16/libio/i2c/i2copen.c,
* device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
  all changes from a patch by Anton Strobl

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

15 years ago* sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
borutr [Thu, 12 Jun 2008 05:24:24 +0000 (05:24 +0000)]
* sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
  sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
  sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
  sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
  sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
  sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
  sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
  sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
  fixed bug 1990586: s51 simulator, uc::disass() unimplemented
  by applying the modified patch from Risto Huotari

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

15 years ago* .version,
MaartenBrock [Wed, 4 Jun 2008 16:04:39 +0000 (16:04 +0000)]
* .version,
* doc/sdccman.lyx: bumped sdcc version to 2.8.2
* src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185

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

15 years ago* src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
MaartenBrock [Wed, 4 Jun 2008 12:53:37 +0000 (12:53 +0000)]
* src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
* support/regression/tests/bug1938300.c: new, added

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

15 years ago* device/include/asm/ds390/features.h,
MaartenBrock [Tue, 3 Jun 2008 17:42:20 +0000 (17:42 +0000)]
* device/include/asm/ds390/features.h,
* device/include/asm/mcs51/features.h,
* device/include/mcs51/regc515c.h: inserted LGPL notice

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

15 years ago* device/lib/gbz80/div.s,
MaartenBrock [Thu, 29 May 2008 11:47:22 +0000 (11:47 +0000)]
* device/lib/gbz80/div.s,
* device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
  patch 1597883, Thanks Robert Ramey

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

15 years ago* src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
MaartenBrock [Thu, 29 May 2008 08:49:00 +0000 (08:49 +0000)]
* src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
  createIvalCharPtr, createIvalPtr, createIval),
* src/SDCCval.h
* src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
  initializers for local auto variables
* support/regression/tests/zeropad.c: added testcase for auto initializers

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

15 years ago* device/lib/pic16/startup/crt0.c,
tecodev [Mon, 26 May 2008 18:55:44 +0000 (18:55 +0000)]
* device/lib/pic16/startup/crt0.c,
* device/lib/pic16/startup/crt0i.c,
* device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
  explicit, fixed curr_entry loop for >= 256 initializer records,
  removed debug code (write to 0xf7e)

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

15 years ago* device/include/pic/pic16f627a.h,
tecodev [Sun, 25 May 2008 10:00:45 +0000 (10:00 +0000)]
* device/include/pic/pic16f627a.h,
* device/include/pic/pic16f628a.h,
* device/include/pic/pic16f648a.h: added missing ports

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

15 years ago* sim/ucsim/s51.src/uc89c51r.cc,
MaartenBrock [Tue, 20 May 2008 15:49:59 +0000 (15:49 +0000)]
* sim/ucsim/s51.src/uc89c51r.cc,
* sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430

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

15 years ago* device/include/float.h: added __INFINITY
MaartenBrock [Tue, 20 May 2008 13:54:51 +0000 (13:54 +0000)]
* device/include/float.h: added __INFINITY
* device/lib/_fsadd.c: handle overflows
* device/lib/_fsmul.c,
* device/lib/_fsdiv.c: use __INFINITY
* device/lib/_fseq.c,
* device/lib/_fsneq.c: handle -0.0
* sim/ucsim/s51.src/uc89c51r.cc,
* sim/ucsim/s51.src/uc89c51rcl.h: bugfix auxr should be auxr1
* sim/ucsim/sim.src/hwcl.h: */* confuses VC
* src/mcs51/gen.c (genSend): fixed bug with --xstack
* support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
* support/regression/tests/snprintf.c: test bug with --xstack

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

15 years agoSupport nested parenthesis in peephole function arguments (#1967300)
spth [Mon, 19 May 2008 19:58:11 +0000 (19:58 +0000)]
Support nested parenthesis in peephole function arguments (#1967300)

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

15 years ago* src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
tecodev [Mon, 19 May 2008 13:40:55 +0000 (13:40 +0000)]
* src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
  fixed duplicate labels (#1911325)

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

15 years ago* src/regression/empty.c: suppress warning
tecodev [Mon, 19 May 2008 08:11:40 +0000 (08:11 +0000)]
* src/regression/empty.c: suppress warning
* src/regression/pointer1.c: enabled index_by_pointer()
* src/regression/inline.c: now works for pic16 as well

* src/pic16/device.c: include dbuf declarations
* src/pic16/device.h: removed obsolete prototypes

* src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
* src/pic16/glue.c: made purely local functions static,
  (pic16_printGPointerType, pic16_printIvalCharPtr,
  pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
  generic pointers' tags (#1961866)

* src/pic16/pcode.c (assignValnums): optimize literal assignments

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

15 years ago* support/scripts/sdcc.nsi: uninstall include/pic16/pic16devices.txt
borutr [Mon, 19 May 2008 05:32:00 +0000 (05:32 +0000)]
* support/scripts/sdcc.nsi: uninstall include/pic16/pic16devices.txt

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

15 years ago* support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
borutr [Sun, 18 May 2008 18:07:22 +0000 (18:07 +0000)]
* support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
  fixed typo

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

15 years ago* support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
borutr [Sun, 18 May 2008 06:46:55 +0000 (06:46 +0000)]
* support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
  the buffer is null terminated
* src/device/pic16.c:
  applied modified patch 1965676: Patch for Win32 16 bit PIC
* sdcc_vc_in.h: defined YY_NO_UNISTD_H

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

15 years ago* as/hc08/clean.mk,
MaartenBrock [Fri, 16 May 2008 11:16:01 +0000 (11:16 +0000)]
* as/hc08/clean.mk,
* as/mcs51/clean.mk,
* as/z80/clean.mk: also clean *.dep
* device/lib/pic16/libsdcc/stack/Makefile,
* sim/ucsim/libtool: removed as they are rebuild by configure
* src/clean.mk: removed izt, so Makefile is not deleted for distclean

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

15 years ago* src/SDCC.lex (check_type),
MaartenBrock [Thu, 15 May 2008 22:40:51 +0000 (22:40 +0000)]
* src/SDCC.lex (check_type),
* src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942

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

15 years ago* src/SDCCast.c (fixupInline, createFunction): save currBlockno in
MaartenBrock [Tue, 13 May 2008 08:10:12 +0000 (08:10 +0000)]
* src/SDCCast.c (fixupInline, createFunction): save currBlockno in
  fixupInline instead of createFunction to fix bug 1864577
  (inlineFindMaxBlockno): removed, use global blockNo
* src/SDCCglobl.h: added blockNo
* src/z80/peep.c,
* src/z80/peep.h: modified properties
* support/regression/tests/bug1864577.c: new, added

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

16 years ago* as/mcs51/asdata.c,
MaartenBrock [Wed, 7 May 2008 22:21:27 +0000 (22:21 +0000)]
* as/mcs51/asdata.c,
* as/mcs51/asm.h: added org_cnt
* as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
* as/mcs51/asout.c: changed old K&R to ANSI
* as/mcs51/Makefile.in: use common identifiers
* as/hc08/asdata.c,
* as/hc08/asexpr.c,
* as/hc08/asm.h,
* as/hc08/asmain.c,
* as/hc08/asout.c,
* as/hc08/Makefile.bcc,
* as/hc08/Makefile.in: synchronized with as/mcs51/*
* sdcc_vc_in.h: added define __func__
* src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
  Thanks Ruud van Silfhout
* support/regression/tests/bug1717305.c: new, added

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

16 years ago* support/regression/Makefile.in,
borutr [Mon, 5 May 2008 19:16:27 +0000 (19:16 +0000)]
* support/regression/Makefile.in,
  support/regression/ports/ds390/spec.mk,
  support/regression/ports/hc08/spec.mk,
  support/regression/ports/mcs51-common/spec.mk,
  support/regression/ports/pic14/spec.mk,
  support/regression/ports/pic16/spec.mk,
  support/regression/ports/ucz80/spec.mk,
  support/regression/ports/z80/spec.mk:
  added INC_DIR and LIBDIR paths
* src/ds390/gen.c: removed duplicated selicolon

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

16 years ago* support/regression/Makefile.in,
borutr [Sun, 4 May 2008 07:04:12 +0000 (07:04 +0000)]
* support/regression/Makefile.in,
  support/regression/fwk/lib/testfwk.c,
  support/regression/ports/ds390/spec.mk,
  support/regression/ports/hc08/spec.mk,
  support/regression/ports/mcs51-common/spec.mk,
  support/regression/ports/mcs51-large/spec.mk,
  support/regression/ports/mcs51-medium/spec.mk,
  support/regression/ports/mcs51-small/spec.mk,
  support/regression/ports/mcs51-stack-auto/spec.mk,
  support/regression/ports/mcs51-xstack-auto/spec.mk,
  support/regression/ports/pic14/spec.mk,
  support/regression/ports/pic16/spec.mk,
  support/regression/ports/ucz80/spec.mk:
  added possibility to define the sdcc binary directory SDCC_BIN_PATH
  used to run regeression tests

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

16 years ago* doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
tecodev [Thu, 1 May 2008 21:37:49 +0000 (21:37 +0000)]
* doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
  supported devices and instructions to add new ones

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

16 years ago* device/include/pic16/adc.h,
tecodev [Thu, 1 May 2008 20:31:09 +0000 (20:31 +0000)]
* device/include/pic16/adc.h,
  device/lib/pic16/libio/adc/adcbusy.c,
  device/lib/pic16/libio/adc/adcopen.c,
  device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
  18f2455 style ADC devices, based on patch #1776197
* device/lib/pic16/libio/adc/adcclose.c,
  device/lib/pic16/libio/adc/adcconv.c,
  device/lib/pic16/libio/adc/adcread.c: cosmetic changes
* device/include/pic16/{pic18f2331.h,pic18f2431.h},
  device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
* device/include/pic16/pic18f4431.h,
  device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
* device/lib/pic16/libio/adc.ignore: forbid unhandled devices

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

16 years ago* src/pic16/device.h: removed unused field PIC16_device.sfrRange,
tecodev [Thu, 1 May 2008 16:43:18 +0000 (16:43 +0000)]
* src/pic16/device.h: removed unused field PIC16_device.sfrRange,
  moved xinst flag into pic16_options_t
* src/pic16/device.c (default_device, pic16_list_devices,
  pic16_find_device): removed references to sfrrange
* src/pic16/gen.c (genFunction),
  src/pic16/glue.c (pic16initialComments),
  src/pic16/main.c (pic16_optionsTable),
  src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
  to xinst
* device/include/pic16/pic16devices.txt: removed sfrrange lines

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

16 years ago* src/pic16/devices.inc,
tecodev [Tue, 29 Apr 2008 17:00:17 +0000 (17:00 +0000)]
* src/pic16/devices.inc,
  device/include/pic16/pic16devices.txt: replaced compiled-in list
  of devices with a variant parsed at runtime
* src/pic16/device.c: added support for parsing pic16devices.txt,
  clean up
* src/pic16/device.h: removed (now) unused fields from PIC_device
* src/pic16/main.c: removed #pragma maxram,
  (_pic16_initPaths): removed bogus generation of search paths,
  setup the port proper only after the search paths (for
  pic16devices.txt) are set up,
  (_pic16_finaliseOptions): moved processor dependant code here
  from _pic16_initPaths(), clean up
* src/pic16/ralloc.c (pic16_init_stack),
* src/pic16/ralloc.h,
* src/pic16/pcode.c: clean up
* device/include/Makefile.in,
  support/scripts/sdcc.nsi: also install/package pic16devices.txt
* support/scripts/inc2h-pic16.pl: updated instructions

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

16 years ago* device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
tecodev [Tue, 29 Apr 2008 14:44:30 +0000 (14:44 +0000)]
* device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
  pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
  device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
  pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
  added missing family members and 18f2480/2580/4480/4580 family
* device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
* device/include/pic16/pic18f2525.h: use 18f4620.h
* device/include/pic16/pic18f6680.h: use 18f8680.h
* device/include/pic16/pic18fregs.h,
  device/lib/pic16/pics.all,
  src/pic16/devices.inc: add new devices
* device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
* device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
* device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
* device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
  prevent attempting to build the libio for some new devices

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

16 years ago* debugger/mcs51/Makefile.in: fixed paths to sources
tecodev [Tue, 29 Apr 2008 14:33:50 +0000 (14:33 +0000)]
* debugger/mcs51/Makefile.in: fixed paths to sources

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

16 years ago* as/link/lklibr.c: moved from as/link/z80/lklibr.c
borutr [Fri, 25 Apr 2008 11:43:56 +0000 (11:43 +0000)]
* as/link/lklibr.c: moved from as/link/z80/lklibr.c
* as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
* 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: lklibr.c moved
* doc/INSTALL.txt: binary archives in bz2 format
* support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP

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