MaartenBrock [Wed, 11 Jul 2007 14:42:00 +0000 (14:42 +0000)]
* src/SDCCsymt.c (compareType): fixed bugs
1738367 and
1745717 with patch
from Robert Larice, thanks
* support/regression/tests/bitopcse.c,
* support/regression/tests/bitvars.c,
* support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
* support/regression/tests/bug-927659.c: enabled test for z80
* support/regression/tests/bug1738367.c: added extra tests by Frieder
* support/regression/tests/bug1745717.c: new, added
* support/regression/tests/literalop.c,
* support/regression/tests/nullstring.c: removed storage definitions that
are now in testfwk.h
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4879
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 10 Jul 2007 12:12:48 +0000 (12:12 +0000)]
* device/include/stdbool.h: do not define __bool_true_false_are_defined
and bool for targets that do not fully support it.
* support/regression/tests/bug1546986.c,
* support/regression/tests/bug1723128.c,
* support/regression/tests/bug1734654.c,
* support/regression/tests/bug1738367.c,
* support/regression/tests/constantRange.c: only use bool if allowed
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4877
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 9 Jul 2007 14:41:30 +0000 (14:41 +0000)]
* src/mcs51/peep.c (isCallerSaveFunc): fixed bug
1749275, thanks Robert
Larice, also handle function pointers
* support/regression/tests/bug1749275.c: new, added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4876
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 3 Jul 2007 20:07:00 +0000 (20:07 +0000)]
* device/include/typeof.h: fixed bug #
1747142: typeof.h needs fixing
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4875
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 3 Jul 2007 19:51:04 +0000 (19:51 +0000)]
* src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
#
1746528: SDCC should ignore ':' in inline assembler comments
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4874
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 3 Jul 2007 13:36:13 +0000 (13:36 +0000)]
* device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4873
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 2 Jul 2007 14:38:54 +0000 (14:38 +0000)]
* device/include/mcs51/
C8051F360.h: fixed bug #
1746410, thanks Chris Jones
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4872
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 29 Jun 2007 17:23:09 +0000 (17:23 +0000)]
* src/SDCCmain.c: fixed bug #
1744746: SDCC #4867: broken option --xram-size
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4871
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Thu, 28 Jun 2007 09:06:31 +0000 (09:06 +0000)]
* sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
find out the endianess of host machine for ucsim
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4869
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 27 Jun 2007 19:15:37 +0000 (19:15 +0000)]
* src/SDCC.y: fixed bug #
1744146: Crash when compiling array of
negative size
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4867
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 27 Jun 2007 17:51:00 +0000 (17:51 +0000)]
* local/mirror-doors.mk: create Mac OS X unified binaries
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4866
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 27 Jun 2007 16:34:48 +0000 (16:34 +0000)]
fixed endif
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4865
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 27 Jun 2007 16:17:14 +0000 (16:17 +0000)]
* support/regression/generate-cases.py: corrected the file name
in warning
* configure.in, configure, sdccconf_in.h: find out the endianess of
host machine
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4864
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Wed, 27 Jun 2007 12:32:42 +0000 (12:32 +0000)]
added file submitted by Gudjon I. Gudjonsson <gudjon AT gudjon.org>
device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4863
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 26 Jun 2007 19:40:14 +0000 (19:40 +0000)]
* support/librarian/sdcclib.c: fixed warning:
format '%s' expects type 'char *', but argument 2 has type 'int'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4862
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 26 Jun 2007 18:47:44 +0000 (18:47 +0000)]
* support/regression/generate-cases.py: implemented more flexible rule
for detection of testing functions, allowing return type 'void' in
the same line as the function name in the function definition
* support/regression/tests/bug-
1654060.c: corrected test
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4861
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 26 Jun 2007 10:39:18 +0000 (10:39 +0000)]
* support/regression/generate-cases.py: display warning if function list is empty
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4860
4a8a32a2-be11-0410-ad9d-
d568d2c75423
jesusc [Mon, 25 Jun 2007 17:12:45 +0000 (17:12 +0000)]
Added feature Requests [
1510635] Multiple infiles for sdcclib.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4859
4a8a32a2-be11-0410-ad9d-
d568d2c75423
epetrich [Wed, 20 Jun 2007 05:37:10 +0000 (05:37 +0000)]
* src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
bug
1731741
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4857
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 18 Jun 2007 18:24:42 +0000 (18:24 +0000)]
* src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
how to handle comments, so they have to be removed by the
preprocessor; fixed bug #
1738926:SDCC #4852: broken option -V
* src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
src/pic16/main.c, src/pic/main.c, src/z80/main.c,
support/Util/SDCCerr.c, support/Util/SDCCerr.h:
table driven option hadling
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4855
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 16 Jun 2007 14:53:19 +0000 (14:53 +0000)]
* src/SDCCast.c (decorateType),
* src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
iCode to ast level to fix bug
1738367
* support/regression/tests/bug1738367.c: new, added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4854
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 15 Jun 2007 21:57:15 +0000 (21:57 +0000)]
* src/pic16/devices.inc,
* device/lib/pic16/pics.all,
* device/include/pic16/pic18fregs.h,
* device/include/pic16/pic18f[24][45]20.h,
* device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
18f2420,
18f2520, and
18f4420 devices, updated
18f4520 definitions
* device/lib/pic16/Makefile.in: faster cleanup
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4853
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Wed, 13 Jun 2007 19:22:56 +0000 (19:22 +0000)]
* src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4852
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Tue, 12 Jun 2007 23:08:19 +0000 (23:08 +0000)]
* src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4851
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Tue, 12 Jun 2007 21:49:18 +0000 (21:49 +0000)]
* support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
suppress bit defines if NO_BIT_DEFINES is #define'd
* device/include/pic/pic*.h: recreated all headers to include
conditional bit defines
* device/include/pic/pic16f886.h,
* device/include/pic/pic16f887.h: fixed based on newer .inc file
* device/include/pic/recreate.sh: script to recreate the complete
device library files based on the currently supported devices
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4850
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 12 Jun 2007 20:27:04 +0000 (20:27 +0000)]
sdcc:
* doc/sdccman.lyx: SDCC Wiki moved to
http://sdcc.wiki.sourceforge.net/
sdcc-web:
* left_menu.inc: SDCC Wiki moved to
http://sdcc.wiki.sourceforge.net/
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4849
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 12 Jun 2007 15:43:05 +0000 (15:43 +0000)]
sdcc-cf:
* packages/build.gpsim/Makefile: use new svn URL scheme
adcc-web:
* index.php, snap_header.php, left_menu.inc:
use new svn URL scheme
sdcc:
* src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
support/regression/Makefile.in, support/scripts/build.mak,
support/scripts/Makefile.snapshot:
use new svn URL scheme
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4848
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Sun, 10 Jun 2007 21:17:14 +0000 (21:17 +0000)]
* src/mcs51/peeph.def: disabled rule 132.d to fix #
1734654
* support/regression/tests/bug1734654.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4847
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sun, 10 Jun 2007 20:55:33 +0000 (20:55 +0000)]
* src/SDCCast.c (decorateType): optimized '?' for equal operands
* src/SDCCicode.c (geniCodeConditional): optimization for bit result
with literal operands
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4846
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 10 Jun 2007 16:47:35 +0000 (16:47 +0000)]
* src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
src/z80/main.c: move target specific options from src/SDCCmain.c
to src/<target>/main.c
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4845
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 10 Jun 2007 08:31:00 +0000 (08:31 +0000)]
* as/link/z80/lklibr.c: fixed mingw build warning
lklibr.c:575: warning: implicit declaration of function 'tolower'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4844
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 9 Jun 2007 15:59:28 +0000 (15:59 +0000)]
* src/z80/gen.c: fixed bug #
1294691: nested ifs make compiler crash;
removed unused swap_sense; removed outBitCLong, replaced with outBitC
* support/regression/tests/bug-
1294691.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4843
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 9 Jun 2007 13:20:47 +0000 (13:20 +0000)]
* src/SDCCsymt.c (computeType): added optimization for 'cond ? true : false'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4842
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 9 Jun 2007 08:20:39 +0000 (08:20 +0000)]
* src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
can also be static, fixes bug
1733438
* src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
have absolute address too
* support/regression/tests/absolute.c: added test for static absolute var
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4841
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 8 Jun 2007 08:53:31 +0000 (08:53 +0000)]
* src/regression/Makefile: suppress parallel builds, allow easy
switching between pic14/pic16 ports
* src/regression/picregs.h: added pic14/16 header file switch
* src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
inline.c,nestfor.c,string1.c}: include "picregs.h"
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4840
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Thu, 7 Jun 2007 20:33:22 +0000 (20:33 +0000)]
* support/regression/tests/constantRange.c,
support/regression/tests/scott-compare3.c: fixed failing regression
tests, uncovered by implementation of more flexible rule for detection
of testing functions
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4839
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Thu, 7 Jun 2007 19:47:43 +0000 (19:47 +0000)]
* support/regression/generate-cases.py: implemented more flexible rule
for detection of testing functions, allowing white-spaces surrounding
the function name and the 'void' parameter.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4838
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 6 Jun 2007 22:32:26 +0000 (22:32 +0000)]
* sim/ucsim/*.*, sim/ucsim/configure, sim/ucsim/configure.in:
permanent solution to suppress GCC 4.2.0 c++ warning:
deprecated conversion from string constant to `char *'
use 'const char *' where ever required
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4837
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 4 Jun 2007 20:46:17 +0000 (20:46 +0000)]
* src/SDCCast.c(decorateType): better optimize '!!' and comparisons
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4836
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 4 Jun 2007 18:00:33 +0000 (18:00 +0000)]
* sim/ucsim/configure.in, sim/ucsim/configure:
use "read" to read from .version
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4835
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 4 Jun 2007 07:06:22 +0000 (07:06 +0000)]
* configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
doc/INSTALL.txt: version bumped to 2.7.2
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4834
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 4 Jun 2007 06:16:48 +0000 (06:16 +0000)]
* configure.in, configure, config_vc.awk: sdcc version number is now
stored in configure.in; removed .version
* configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
doc/INSTALL.txt: version bumped to 2.7.2
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4833
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 3 Jun 2007 20:47:28 +0000 (20:47 +0000)]
* */Makefile.in: removed annoying warning:
Makefile:xx: Makefile.dep: No such file or directory
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4832
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 3 Jun 2007 20:38:18 +0000 (20:38 +0000)]
* */Makefile.in: removed annoying warning:
Makefile:xx: Makefile.dep: No such file or directory
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4831
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 2 Jun 2007 19:41:33 +0000 (19:41 +0000)]
* src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
(genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
* src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
* src/SDCCast.c (resultTypePropagate): propagate for '!',
(decorateType): also optimize comparisons with RESULT_TYPE_BIT,
bugfix: only use newBoolLink for bit result type
* src/SDCCicode.c (geniCodeLogic): added param tree,
bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
(geniCodeLogicAndOr): use IS_BIT,
(geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
(ast2iCode): added tree param to geniCodeLogic for comparisons
* src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
* support/regression/tests/bug1723128.c: added test NotZero
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4829
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 1 Jun 2007 19:37:18 +0000 (19:37 +0000)]
* sim/ucsim/configure, sim/ucsim/configure.in:
temporary solution to supress GCC 4.2.0 c++ warning:
deprecated conversion from string constant to `char *'
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4827
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 1 Jun 2007 17:39:09 +0000 (17:39 +0000)]
* device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
* device/lib/pic16/libdev/pic18f[24]5j10.c:
search for included source file in local directory
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4826
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 1 Jun 2007 16:31:56 +0000 (16:31 +0000)]
support/cpp2/Makefile.in: modified
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4825
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 1 Jun 2007 15:23:01 +0000 (15:23 +0000)]
* SDCPP synchronized with GCC CPP release version 4.2.0,
currently the latest release:
* support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
support/cpp2/cppdefault.h, support/cpp2/except.h,
support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
support/cpp2/opth-gen.awk, support/cpp2/opts.c,
support/cpp2/opts.h, support/cpp2/output.h,
support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
support/cpp2/system.h, support/cpp2/version.c: modified
* support/cpp2/opts-common.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4824
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 1 Jun 2007 08:08:53 +0000 (08:08 +0000)]
* device/lib/pic/libdev/pic12f683.c,
* device/include/pic/pic12f683.h: added GPIO bits
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4823
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Thu, 31 May 2007 22:42:43 +0000 (22:42 +0000)]
* doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
quotation marks, clarified role of PIC14 vs. PIC16 ports
* src/pic16/devices.inc,
* device/include/pic16/pic18fregs.h,
* device/include/pic16/pic18f[24][45]j10.h,
* device/lib/pic16/pics.all,
* device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
18f24j10, 18f25j10, 18f44j10, and 18f45j10
* device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
for new devices as they are not yet supported by gputils
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4821
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Thu, 31 May 2007 20:45:20 +0000 (20:45 +0000)]
* Small Device C Compiler 2.7.0 released
* .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
changed sdcc version to 2.7.1
* support/scripts/sdcc.nsi: added How to create WIN32 release setup.exe package
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4820
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 29 May 2007 10:58:44 +0000 (10:58 +0000)]
* doc/sdccman.lyx: documented initialization and allocation of absolute
variables, bit parameter passing, the need for function pointers to be
reentrant and alpha quality support of inline and retrict
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4818
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 26 May 2007 09:43:07 +0000 (09:43 +0000)]
* support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
* docs/knownbugs.html: updated
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4815
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 25 May 2007 06:05:06 +0000 (06:05 +0000)]
* doc/sdccman.lyx: inserted footnotes about inline assembler labels,
thanks Jan Waclawek
* src/mcs51/gen.c (aopPut): fixed part of bug
1723128 when result is
AOP_CRY and ruonly
(gencjneshort): optimized when left is AOP_DIR
* src/SDCCglue.c (printIvalStruct): fixed other part of bug
1723128 for
initializing unions in a struct/array
* support/regression/fwk/include/testfwk.h: added defines for data, near
and far for host and z80
* support/regression/tests/bug1723128.c: new, added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4814
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 22 May 2007 21:45:48 +0000 (21:45 +0000)]
* doc/knownbugs.html: updated
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4812
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 21 May 2007 21:16:14 +0000 (21:16 +0000)]
* src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
error message instead
* src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4810
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 21 May 2007 17:23:07 +0000 (17:23 +0000)]
* src/mcs51/peeph.def (257.b): disabled to fix bug
1721024
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4808
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 21 May 2007 09:10:38 +0000 (09:10 +0000)]
* src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
closes #
1722392
* src/regression/gpsim_assert.h,
* src/regression/Makefile,
* src/regression/pcodeopt.c: regression test for the above fix
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4807
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Fri, 11 May 2007 18:12:13 +0000 (18:12 +0000)]
* src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
jumps to self, fixed bug
1717281
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4806
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Thu, 10 May 2007 06:50:59 +0000 (06:50 +0000)]
* support/scripts/gen_known_bugs.pl: cosmetic fix
* doc/knownbugs.html: generated by gen_known_bugs.pl
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4802
4a8a32a2-be11-0410-ad9d-
d568d2c75423
epetrich [Thu, 10 May 2007 05:29:03 +0000 (05:29 +0000)]
* src/SDCCast.c (createFunction): also generate non-inlined version of
function for functions declared as "static inline"
* src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
function can be inlined after non-inlined version generated.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4801
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Wed, 9 May 2007 22:22:10 +0000 (22:22 +0000)]
* support/scripts/gen_known_bugs.pl: added script which generates knownbugs.html
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4800
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Wed, 9 May 2007 21:11:46 +0000 (21:11 +0000)]
* doc/knownbugs.html: updated for release 2.7.0
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4799
4a8a32a2-be11-0410-ad9d-
d568d2c75423
jesusc [Wed, 9 May 2007 15:32:32 +0000 (15:32 +0000)]
device/include/mcs51/uPSD33xx.h: Added SFRX definitions by Jan Waclawek
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4798
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 8 May 2007 19:44:35 +0000 (19:44 +0000)]
* src/ds390/gen.c (emitcode): don't change properties of previous lines,
(throughout): updated generating comments
* src/mcs51/gen.c (emitcode): don't change properties of previous lines,
(throughout): updated generating comments
* src/SDCCpeeph.c (peepHole): continue searching at the first replaced
rule instead of at the second, or it might skip lines when removing the
complete match
* support/regression/tests/bug1714204.c: changed test to foo
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4797
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 8 May 2007 17:51:15 +0000 (17:51 +0000)]
* doc/sdccman.lyx: changed sdcc version to 2.7.0,
thanks to SDCC Distributed Compile Farm members,
added Z80 and GBZ80 command line options
* .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4796
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Tue, 8 May 2007 16:59:41 +0000 (16:59 +0000)]
* device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
* device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
* support/regression/tests/longlit.c: modified to be tested at all and
to pass the actual test
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4795
4a8a32a2-be11-0410-ad9d-
d568d2c75423
jesusc [Tue, 8 May 2007 02:33:42 +0000 (02:33 +0000)]
device/include/mcs51/uPSD33xx.h: Added.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4794
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Mon, 7 May 2007 16:32:16 +0000 (16:32 +0000)]
* device/lib/_gptrput.c,
* device/lib/_gptrget.c: removed old code,
(_gptrgetWord),
* src/ds390/gen.c (genGenPointerGet): fixed bug
1714204
* support/regression/tests/bug1714204.c: new, added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4793
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Sun, 6 May 2007 20:26:51 +0000 (20:26 +0000)]
* support/regression/tests/regtrack.c: test was never executed because of the regression test being picky about white spaces.
* device/lib/mcs51/crtclear.asm: added comment
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4792
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Sun, 6 May 2007 20:08:22 +0000 (20:08 +0000)]
* device/lib/pic/Makefile.rules,
* device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4791
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Sun, 6 May 2007 18:36:59 +0000 (18:36 +0000)]
* src/pic16/device.h,
* src/pic16/main.h,
* src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
_pic16_setDefaultOptions): removed/reordered command-line args
* doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
devices, regrouped command line args, environment variables),
clarified sone points, added sections on how to add devices to the
PIC14/PIC16 ports
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4790
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sun, 6 May 2007 16:32:39 +0000 (16:32 +0000)]
* src/z80/peeph.def: fixed bug in rule 2
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4789
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 5 May 2007 16:48:00 +0000 (16:48 +0000)]
* src/mcs51/peep.c (): fixed bug
1712928
* support/regression/tests/bug1712928.c: new, added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4787
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sat, 5 May 2007 13:45:50 +0000 (13:45 +0000)]
* src/port.h: added TARGET_MCS51_LIKE
* src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
take advantage of it too
* src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
(shiftR2Left2Result): Optimized: don't check shifting by 0
* src/z80/peeph-z80.def,
* src/z80/peeph.def: whole set of new rules by Philipp Krause with some
modifications, see patch
1700823
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4786
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sat, 5 May 2007 07:41:17 +0000 (07:41 +0000)]
* device/lib/pic16/Makefile.common.in,
device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
removed bash dependencies
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4785
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Tue, 1 May 2007 12:28:14 +0000 (12:28 +0000)]
* src/SDCCicode.c:
fixed bug #
1710507: --i-code-in-asm makes compile fail
all iCode comments are now one liners
* src/mcs51/gen.c: fixed memory leak
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4784
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Tue, 1 May 2007 10:59:39 +0000 (10:59 +0000)]
* device/lib/pic/libdev/*.c
* device/include/pic/*.h: regenerated all device libs from updated
.inc files
* support/scripts/inc2h.pl: documented usage, now uses strict to
catch more bugs
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4783
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 30 Apr 2007 18:14:17 +0000 (18:14 +0000)]
* doc/sdccman.lyx:
fixed bug #
1669175: Problem with space in output paths
documented how to use paths with spaces for Windows users
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4782
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 29 Apr 2007 20:33:44 +0000 (20:33 +0000)]
* Removed svn:executable property from non-executable files
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4781
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 29 Apr 2007 18:24:00 +0000 (18:24 +0000)]
* src/SDCCval.c: fixed bug
#
1592871: Segfault with "large" const arrays of characters
replaced recursion with iteration
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4780
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 29 Apr 2007 15:13:29 +0000 (15:13 +0000)]
* Fixed svn:eol-style and svn:keywords properties
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4779
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 29 Apr 2007 15:02:49 +0000 (15:02 +0000)]
* Fixed svn:eol-style and svn:keywords properties
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4778
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 29 Apr 2007 13:31:48 +0000 (13:31 +0000)]
* Fixed svn:eol-style and svn:keywords properties
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4777
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 29 Apr 2007 13:15:51 +0000 (13:15 +0000)]
* Fixed svn:eol-style and svn:keywords properties
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4776
4a8a32a2-be11-0410-ad9d-
d568d2c75423
MaartenBrock [Sun, 29 Apr 2007 08:36:30 +0000 (08:36 +0000)]
* src/mcs51/gen.c (genRet): fixed bug
1707003
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4775
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 27 Apr 2007 22:03:51 +0000 (22:03 +0000)]
* src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
createReachingDefinitions,assignValnums,pic16_destructDF,
pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
prevent NULL pointer dereferences
* device/lib/pic/libdev/pic16f886.c,
* device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
prevent building them, gputils do not really support them yet
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4774
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Fri, 27 Apr 2007 13:24:27 +0000 (13:24 +0000)]
* device/lib/_ltoa.c: 36 bytes less __data mem. This really helps printf_small. 32 bytes more __idata mem.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4773
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Fri, 27 Apr 2007 08:33:17 +0000 (08:33 +0000)]
* src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
return early when pb or pb->pcHead is NULL (patch #
1708427)
* src/regression/empty.c,
* src/regression/Makefile: added test with empty functions
* support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4772
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 27 Apr 2007 06:44:07 +0000 (06:44 +0000)]
added comment
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4771
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Fri, 27 Apr 2007 06:42:06 +0000 (06:42 +0000)]
* src/SDCCast.c: fixed feature request
#
1547512: Redundant strings linked when using sizeof("abc")
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4770
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Mon, 23 Apr 2007 19:11:03 +0000 (19:11 +0000)]
* doc/sdccman.lyx, src/SDCCmain.c:
peep-hole comments are generated only if --fverbose-asm option is
specified and --no-peep-comments is not, as proposed by Frieder.
* support/regression/Makefile.in: compile regression tests with
--fverbose-asm option so one can "grep" whether a new (or an old)
peephole is (still) applied; requested by Frieder.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4769
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 23 Apr 2007 13:42:32 +0000 (13:42 +0000)]
* device/include/pic/pic16f886.h,
* device/include/pic/pic16f887.h,
* device/lib/pic/libdev/pic16f886.c,
* device/lib/pic/libdev/pic16f887.c,
* device/include/pic/pic14devices.txt,
* device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4768
4a8a32a2-be11-0410-ad9d-
d568d2c75423
tecodev [Mon, 23 Apr 2007 13:09:53 +0000 (13:09 +0000)]
* device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
fixes #
1704666
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4767
4a8a32a2-be11-0410-ad9d-
d568d2c75423
frief [Sun, 22 Apr 2007 22:05:39 +0000 (22:05 +0000)]
* device/lib/_memset.c: assembler version for mcs51
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4766
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 22 Apr 2007 16:59:19 +0000 (16:59 +0000)]
"__code" keyword replaces with "code" macro
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4765
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 22 Apr 2007 16:12:39 +0000 (16:12 +0000)]
test-
1699804.c renamed to bug-
1699804.c
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4764
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 22 Apr 2007 16:00:15 +0000 (16:00 +0000)]
support/regression/tests/test-
1699804.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4763
4a8a32a2-be11-0410-ad9d-
d568d2c75423
borutr [Sun, 22 Apr 2007 15:57:03 +0000 (15:57 +0000)]
* support/scripts/listerr.c: program to create the list of errors and
warnings list from - added
* doc/sdccman.lyx: removed the note
"For list of warnings and corresponding codes, see err_warn.txt"
* src/SDCCsymt.c: fixed bug #
1699804:
Bug with some uses of sizeof(static local array) (MCS51)
* support/regression/tests/test-
1699804.c: added
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4762
4a8a32a2-be11-0410-ad9d-
d568d2c75423