fw/sdcc
20 years ago* support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
epetrich [Sun, 9 Nov 2003 01:51:10 +0000 (01:51 +0000)]
* support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
the reentrant attribute.
* src/hc08/gen.c (genPackBits): added missing stack readjustment
* sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
simulation
* src/SDCCast.c (decorateType): fixed bug with storage class not being
updated during pointer dereference; f.e. ~(((char *)1)*) was being
erroneously reduced to a literal.
* src/hc08/ralloc.c (packRegisters, rematStr),
* src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
some cases

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

20 years ago doc/Makefile: readded test_suite_spec and cdbfileformat
frief [Sat, 8 Nov 2003 20:30:43 +0000 (20:30 +0000)]
 doc/Makefile: readded test_suite_spec and cdbfileformat

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

20 years agoreadded test_suite_spec and cdbfileformat (were accidentally commented out)
frief [Sat, 8 Nov 2003 20:29:14 +0000 (20:29 +0000)]
readded test_suite_spec and cdbfileformat (were accidentally commented out)

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

20 years ago* src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
frief [Sat, 8 Nov 2003 15:49:46 +0000 (15:49 +0000)]
* src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
* doc/sdccman.lyx: changed from 'article' to 'book'

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

20 years agosome additions and changed from 'article' to 'book'. Hopefully that does not break...
frief [Sat, 8 Nov 2003 15:43:17 +0000 (15:43 +0000)]
some additions and changed from 'article' to 'book'. Hopefully that does not break to much.

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

20 years agofixed bug #838385. Thanks to Josef Pavlik for finding and fixing
frief [Sat, 8 Nov 2003 15:40:24 +0000 (15:40 +0000)]
fixed bug #838385. Thanks to Josef Pavlik for finding and fixing

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

20 years ago* device/include/stdlib.h: include malloc.h to comply with ANSI
bernhardheld [Sat, 8 Nov 2003 09:29:11 +0000 (09:29 +0000)]
* device/include/stdlib.h: include malloc.h to comply with ANSI
* support/regression/tests/malloc.c: include stdlib.h instead of malloc.h

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

20 years ago* doc/Makefile:sdccman.pdf should build with correct references (more info in commit...
frief [Fri, 7 Nov 2003 17:31:22 +0000 (17:31 +0000)]
* doc/Makefile:sdccman.pdf should build with correct references (more info in commit msg)
* doc/clean.mk: also remove *.out files
* doc/sdccman.lyx: some additions, larger top/bottom margins

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

20 years agosome additions, larger top/bottom margins (for a4 and letter)
frief [Fri, 7 Nov 2003 17:28:13 +0000 (17:28 +0000)]
some additions, larger top/bottom margins (for a4 and letter)

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

20 years ago- removed dependency from l2hidx.ist (not in the directory and adds an unwanted section)
frief [Fri, 7 Nov 2003 17:25:28 +0000 (17:25 +0000)]
- removed dependency from l2hidx.ist (not in the directory and adds an unwanted section)
- always use dvipdf to generate the pdf file (pdflatex creates docs for acrobat reader >= 5.0)
- two runs of latex before and after makeindex (needed for correct pagenumbers in index)

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

20 years agoalso remove *.out files
frief [Fri, 7 Nov 2003 17:24:26 +0000 (17:24 +0000)]
also remove *.out files

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

20 years ago* src/SDCC.y: fixed bug #837365
epetrich [Fri, 7 Nov 2003 07:01:10 +0000 (07:01 +0000)]
* src/SDCC.y: fixed bug #837365
* support/regression/tests/bitopcse.c
* src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
a symbol (might be valop instead)
* device/lib/Makefile.in: added errno.c to HC08SOURCES
* device/lib/clean.mk: added hc08 to the cleaning list

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

20 years ago* configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
borutr [Fri, 7 Nov 2003 06:25:50 +0000 (06:25 +0000)]
* configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
  made 2003-11-04
* support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
  as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
  malloc is declared in standard stdlib.h

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

20 years ago* support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
borutr [Fri, 7 Nov 2003 06:25:14 +0000 (06:25 +0000)]
* support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
  as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
  malloc is declared in standard stdlib.h

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

20 years ago* configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
borutr [Fri, 7 Nov 2003 06:24:28 +0000 (06:24 +0000)]
* configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
  made 2003-11-04

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

20 years ago* device/lib/hc08/Makefile: need to clean .rel not .o files
epetrich [Thu, 6 Nov 2003 14:52:13 +0000 (14:52 +0000)]
* device/lib/hc08/Makefile: need to clean .rel not .o files
* src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode

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

20 years ago* src/port.h,
epetrich [Thu, 6 Nov 2003 07:16:24 +0000 (07:16 +0000)]
* src/port.h,
* src/hc08/main.c,
* src/mcs51/main.c,
* src/ds390/main.c,
* src/z80/main.c,
* src/avr/main.c,
* src/pic/main.c,
* src/pic16/main.c,
* src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
* src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
tests (which uses the port's oclsExpense function)
* src/SDCC.y,
* src/SDCCast.c,
* src/SDCCicode.c,
* src/hc08/gen.c,
* src/ds390/gen.c,
* src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)

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

20 years ago* src/SDCCcse.c (ifxOptimize),
epetrich [Tue, 4 Nov 2003 14:19:03 +0000 (14:19 +0000)]
* src/SDCCcse.c (ifxOptimize),
* src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
deleting the IFX iCode.
* src/hc08/ralloc.c: reduced unneeded slocs
* src/hc08/gen.c: fixed bug in asmopToBoolean

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

20 years ago* configure, configure.in, sdcc_vc_in.h, sdcconf.h,
borutr [Tue, 4 Nov 2003 13:47:38 +0000 (13:47 +0000)]
* configure, configure.in, sdcc_vc_in.h, sdcconf.h,
  support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
  as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
  transferred to configure

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

20 years ago* src/SDCCcse.c (ifxOptimize),
epetrich [Tue, 4 Nov 2003 06:46:48 +0000 (06:46 +0000)]
* src/SDCCcse.c (ifxOptimize),
* src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
deleting the IFX iCode.
* src/hc08/ralloc.c: reduced unneeded slocs
* src/hc08/gen.c: fixed bug in asmopToBoolean

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

20 years agoUse headers defined in the C[++] standards:
bernhardheld [Mon, 3 Nov 2003 21:42:40 +0000 (21:42 +0000)]
Use headers defined in the C[++] standards:
* sim/ucsim/gui.src/serio.src/fileio.cc
* sim/ucsim/gui.src/serio.src/frontend.cc
* sim/ucsim/gui.src/serio.src/main.cc
* sim/ucsim/gui.src/serio.src/posix_signal.cc
* support/Util/NewAlloc.c
* as/hc08/lklibr.c
* as/mcs51/lklibr.c
* as/z80/aslist.c
* as/z80/assym.c

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

20 years agoAdded MSVC projects for hc08 assembler and linker
jesusc [Mon, 3 Nov 2003 18:58:36 +0000 (18:58 +0000)]
Added MSVC projects for hc08 assembler and linker

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

20 years agoAdded MSVC projects for hc08 assembler and linker
jesusc [Mon, 3 Nov 2003 18:52:17 +0000 (18:52 +0000)]
Added MSVC projects for hc08 assembler and linker

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

20 years ago*** empty log message ***
mhelmling [Mon, 3 Nov 2003 14:23:15 +0000 (14:23 +0000)]
*** empty log message ***

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

20 years agoFilename can start with number
mhelmling [Mon, 3 Nov 2003 14:17:24 +0000 (14:17 +0000)]
Filename can start with number

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

20 years agosrc/SDCCmain.c (linkEdit): "fixed" again bug #833605
bernhardheld [Sun, 2 Nov 2003 12:34:38 +0000 (12:34 +0000)]
src/SDCCmain.c (linkEdit): "fixed" again bug #833605

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

20 years agoxdata initialization is 13 bytes shorter now
frief [Sat, 1 Nov 2003 21:22:35 +0000 (21:22 +0000)]
xdata initialization is 13 bytes shorter now

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

20 years ago_mcs51_genXINIT: xdata initialization is 13 bytes shorter now
frief [Sat, 1 Nov 2003 21:01:20 +0000 (21:01 +0000)]
_mcs51_genXINIT: xdata initialization is 13 bytes shorter now

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

20 years ago_mcs51_genXINIT: xdata initialization is 13 bytes shorter now
frief [Sat, 1 Nov 2003 20:58:58 +0000 (20:58 +0000)]
_mcs51_genXINIT:  xdata initialization is 13 bytes shorter now

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

20 years ago* support/cpp2/cpplib.h, support/cpp2/cpplib.c, support/cpp2/cpplex.c,
borutr [Fri, 31 Oct 2003 22:33:43 +0000 (22:33 +0000)]
* support/cpp2/cpplib.h, support/cpp2/cpplib.c, support/cpp2/cpplex.c,
  support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
  to switch _asm block preprocessing on / off. Default is
  #pragma preproc_asm +

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

20 years agointroduced #pragma preproc_asm [ + | - ]
borutr [Fri, 31 Oct 2003 22:32:00 +0000 (22:32 +0000)]
introduced #pragma preproc_asm [ + | - ]
to switch _asm block preprocessing on / off. Default is
#pragma preproc_asm +

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

20 years ago* support\cpp2\cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
borutr [Fri, 31 Oct 2003 17:59:42 +0000 (17:59 +0000)]
* support\cpp2\cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
  when outputting comment blocks (when executed with -C option) and
  _asm (SDCPP specific) blocks

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

20 years ago* as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
epetrich [Fri, 31 Oct 2003 17:56:59 +0000 (17:56 +0000)]
* as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning

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

20 years ago* src/SDCCcse.c (updateSpillLocation): fixed bug #808027
kflittner [Fri, 31 Oct 2003 16:10:19 +0000 (16:10 +0000)]
* src/SDCCcse.c (updateSpillLocation): fixed bug #808027

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

20 years agosrc/SDCCast.c (decorateType): fixed bug #832664
bernhardheld [Fri, 31 Oct 2003 15:45:40 +0000 (15:45 +0000)]
src/SDCCast.c (decorateType): fixed bug #832664

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

20 years agosrc/SDCCmain.c (linkEdit): "fixed" bug #833605
bernhardheld [Fri, 31 Oct 2003 14:52:03 +0000 (14:52 +0000)]
src/SDCCmain.c (linkEdit): "fixed" bug #833605

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

20 years ago* support\cpp2\cpplex.c: fixed for SDCPP:
borutr [Fri, 31 Oct 2003 12:30:40 +0000 (12:30 +0000)]
* support\cpp2\cpplex.c: fixed for SDCPP:
  comments(when executed with -C option) and _asm blocks
  were included even if they where in skipped #if block.
  Applied solution from GCC cpp 3.3.2

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

20 years ago* src/SDCC.lex: sdcc now understands both formats:
borutr [Fri, 31 Oct 2003 10:33:48 +0000 (10:33 +0000)]
* src/SDCC.lex: sdcc now understands both formats:
  '# <line_number> <file_name>' and
  '#line <line_number> <file_name>'
* support/cpp2/cppmain.c: sdcpp now generates the standard
  '# <line_number> <file_name>' instead of former
  '#line <line_number> <file_name>'

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

20 years agosdcc now understands both formats:
borutr [Fri, 31 Oct 2003 10:32:26 +0000 (10:32 +0000)]
sdcc now understands both formats:
'# <line_number> <file_name>' and
'#line <line_number> <file_name>'

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

20 years agosdcpp now generates the standard
borutr [Fri, 31 Oct 2003 10:31:48 +0000 (10:31 +0000)]
sdcpp now generates the standard
'# <line_number> <file_name>' instead of former
'#line <line_number> <file_name>'

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

20 years agoadded missing '\'
borutr [Thu, 30 Oct 2003 22:24:44 +0000 (22:24 +0000)]
added missing '\'

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

20 years agosupport/cpp2/cpphash.h, support/cpp2/cpplib.h, support/cpp2/cpplex.c,
borutr [Thu, 30 Oct 2003 21:58:57 +0000 (21:58 +0000)]
support/cpp2/cpphash.h, support/cpp2/cpplib.h, support/cpp2/cpplex.c,
support/cpp2/cppmain.c, support/cpp2/cppinit.c:
fixed bug #828015 - Syntax variation for _asm character constants

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

20 years agoFixed a number of problems revealed by bug #827883.
epetrich [Thu, 30 Oct 2003 05:42:53 +0000 (05:42 +0000)]
Fixed a number of problems revealed by bug #827883.
* src/SDCCloop.c (loopInvariants): Spill location of the
result operand should be recomputed if extracted from
a loop. Also, don't extract assignments of an iTemp
from a literal.
* src/SDCCast.c (isConformingBody): loop reversal should
not occur if the control variable is involved with a
relational operator.

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

20 years ago.version: bumped to 2.3.6 to reflect the big improvements made by Erik and Klaus...
bernhardheld [Tue, 28 Oct 2003 15:56:14 +0000 (15:56 +0000)]
.version: bumped to 2.3.6 to reflect the big improvements made by Erik and Klaus. Thanks\!

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

20 years agoReplaced the liverange code.
kflittner [Tue, 28 Oct 2003 15:04:17 +0000 (15:04 +0000)]
Replaced the liverange code.
* src/SDCClrange.c: added new LR code
* src/SDCCloop.c,
* src/SDCCBBlock.h: removed remainig parts from old LR code
* src/ds390/ralloc.c,
* src/ds390/gen.c: minor fixes to make it work with new code

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

20 years ago* as/hc08/asm.h,
epetrich [Tue, 28 Oct 2003 05:15:01 +0000 (05:15 +0000)]
* as/hc08/asm.h,
* as/hc08/lkrloc.c,
* src/hc08/gen.c,
* src/hc08/ralloc.c: Fix various warnings related to the hc08
* src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
(tweaked fix for bug #818696)

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

20 years agomentioned HC08 port, documented new use of critical, enabling/disabling of interrupts...
frief [Thu, 23 Oct 2003 23:13:55 +0000 (23:13 +0000)]
mentioned HC08 port, documented new use of critical, enabling/disabling of interrupts, minor changes

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

20 years ago* src/z80/ralloc.c (joinPushes): Fixed bug #828742
epetrich [Thu, 23 Oct 2003 14:22:50 +0000 (14:22 +0000)]
* src/z80/ralloc.c (joinPushes): Fixed bug #828742

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

20 years ago* src/SDCCmain.c,
epetrich [Thu, 23 Oct 2003 03:44:44 +0000 (03:44 +0000)]
* src/SDCCmain.c,
* sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
* src/mcs51/gen.c (gencjneshort),
* src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
 more efficient (per Scott Bronson's suggestion)

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

20 years agoFixed bug #828387
epetrich [Thu, 23 Oct 2003 03:42:25 +0000 (03:42 +0000)]
Fixed bug #828387
Made comparison with AOP_IMMD operand more efficient (per Scott Bronson's suggestion)

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

20 years agoExtended the semantics of the critical keyword to include
epetrich [Wed, 22 Oct 2003 07:17:24 +0000 (07:17 +0000)]
Extended the semantics of the critical keyword to include
individual statements. See RFE #827755 and #799831
* src/SDCC.y
* src/SDCCicode.c
* src/SDCCopt.c
* src/SDCCast.c
* support/Util/SDCCerr.c
* support/Util/SDCCerr.h
* src/mcs51/gen.c
* src/ds390/gen.c
* src/hc08/gen.c

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

20 years agofixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
borutr [Sun, 19 Oct 2003 18:37:56 +0000 (18:37 +0000)]
fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31

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

20 years ago* src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
epetrich [Sun, 19 Oct 2003 04:39:13 +0000 (04:39 +0000)]
* src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
Fixed bug #818696
* src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
and predecrement operand is displayed

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

20 years agosrc/SDCCval.c (valMinus): fixed bug #826041
bernhardheld [Sat, 18 Oct 2003 21:22:41 +0000 (21:22 +0000)]
src/SDCCval.c (valMinus): fixed bug #826041

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

20 years agotypos corrected
bela [Sat, 18 Oct 2003 12:42:28 +0000 (12:42 +0000)]
typos corrected

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

20 years agoimproved by Scott Bronson
bela [Fri, 17 Oct 2003 10:53:22 +0000 (10:53 +0000)]
improved by Scott Bronson

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

20 years agoAdded HC08 projects to the workspace
jesusc [Wed, 15 Oct 2003 16:08:51 +0000 (16:08 +0000)]
Added HC08 projects to the workspace

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

20 years agoFixed VC6 error
jesusc [Wed, 15 Oct 2003 16:07:56 +0000 (16:07 +0000)]
Fixed VC6 error

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

20 years agofixed a typo
epetrich [Wed, 15 Oct 2003 07:53:33 +0000 (07:53 +0000)]
fixed a typo

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

20 years agoSome hc08 related updates that I missed earlier
epetrich [Wed, 15 Oct 2003 07:20:40 +0000 (07:20 +0000)]
Some hc08 related updates that I missed earlier

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

20 years agoInitial import
epetrich [Wed, 15 Oct 2003 06:51:33 +0000 (06:51 +0000)]
Initial import

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

20 years agoNew target "hc08" for the Motorola 68hc08 family of micros
epetrich [Wed, 15 Oct 2003 06:50:46 +0000 (06:50 +0000)]
New target "hc08" for the Motorola 68hc08 family of micros

* configure
* configure.in
* Makefile
* src/hc08/*
* src/SDCCmain.c
* src/port.h
* sim/ucsim/hc08.src/*
* sim/ucsim/configure.in
* src/ucsim/configure
* sim/ucsim/packages_in.mk
* as/hc08/*
* as/Makefile
* device/include/mc68hc908qy.h
* device/lib/hc08/*
* device/lib/Makefile.in
* support/regression/ports/hc08/*
* support/regression/Makefile

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

20 years agofixed some filenames
epetrich [Wed, 15 Oct 2003 06:41:08 +0000 (06:41 +0000)]
fixed some filenames

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

20 years agoInitial import
epetrich [Wed, 15 Oct 2003 06:13:11 +0000 (06:13 +0000)]
Initial import

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

20 years agoInitial import
epetrich [Wed, 15 Oct 2003 05:55:48 +0000 (05:55 +0000)]
Initial import

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

20 years agoInitial import
epetrich [Wed, 15 Oct 2003 05:46:28 +0000 (05:46 +0000)]
Initial import

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

20 years agoInitial import
epetrich [Wed, 15 Oct 2003 05:14:36 +0000 (05:14 +0000)]
Initial import

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

20 years agoInitial import
epetrich [Wed, 15 Oct 2003 04:30:41 +0000 (04:30 +0000)]
Initial import

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

20 years ago* src/z80/gen.c: fixed bug revealed by ast_constant_folding.c regression test
epetrich [Tue, 14 Oct 2003 06:40:15 +0000 (06:40 +0000)]
* src/z80/gen.c: fixed bug revealed by ast_constant_folding.c regression test
* src/ds390/gen.c (genCast): fixed bug #821957

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

20 years ago* device/lib/logf.c: "fixed" overlay bug
bernhardheld [Mon, 13 Oct 2003 20:29:32 +0000 (20:29 +0000)]
* device/lib/logf.c: "fixed" overlay bug
* support/regression/ports/host/spec.mk: added m library
* support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
* support/regression/tests/float_trans: added (for Eric)

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

20 years agocosmetic: fixed identation of genCpl()
bernhardheld [Sun, 12 Oct 2003 18:57:20 +0000 (18:57 +0000)]
cosmetic: fixed identation of genCpl()

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

20 years agosrc/mcs51/gen.c (genCpl): fixed bug http://sf.net/mailarchive/message.php?msg_id...
bernhardheld [Sun, 12 Oct 2003 18:49:27 +0000 (18:49 +0000)]
src/mcs51/gen.c (genCpl): fixed bug sf.net/mailarchive/message.php?msg_id=6263915

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

20 years ago* src/SDCCast.c (decorateType): added extended constant folding
bernhardheld [Fri, 10 Oct 2003 21:15:07 +0000 (21:15 +0000)]
* src/SDCCast.c (decorateType): added extended constant folding
* src/SDCCsymt.c (computeType): cleanup
* src/SDCCval.c (valShift): minor optimization
* support/regression/tests/ast_constant_folding.c: added

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

20 years agoremoved some unintended changes in my last commit
epetrich [Thu, 9 Oct 2003 07:00:43 +0000 (07:00 +0000)]
removed some unintended changes in my last commit

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

20 years agoRemoved the hc08 port references
epetrich [Thu, 9 Oct 2003 06:46:12 +0000 (06:46 +0000)]
Removed the hc08 port references

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

20 years ago* src/SDCCmain.c (setParseWithComma): fixed bug #816685
epetrich [Thu, 9 Oct 2003 05:29:23 +0000 (05:29 +0000)]
* src/SDCCmain.c (setParseWithComma): fixed bug #816685
* src/z80/gen.c: fixed part of bug #817589
* src/SDCCsymt.c (checkFunction): fixed bug #817895

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

20 years agoReplaced cast (void **) with (void *) to avoid gcc 3 warning:
bernhardheld [Wed, 8 Oct 2003 09:04:48 +0000 (09:04 +0000)]
Replaced cast (void **) with (void *) to avoid gcc 3 warning:
* src/SDCCcflow.c
* src/SDCCcse.c
* src/SDCCdflow.c
* src/SDCClabel.c
* src/SDCClrange.c
* src/SDCCmem.c
* src/SDCCopt.c
* src/SDCCpeeph.c
* src/SDCCset.c
* src/avr/ralloc.c
* src/ds390/ralloc.c
* src/izt/ralloc.c
* src/mcs51/ralloc.c
* src/pic/ralloc.c
* src/pic16/ralloc.c
* src/xa51/ralloc.c
* src/z80/ralloc.c
* src/z80/gen.c: removed unused label "release:"

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

20 years agoremoved definition of unused variables save_optimize and save_options
borutr [Tue, 7 Oct 2003 19:10:22 +0000 (19:10 +0000)]
removed definition of unused variables save_optimize and save_options

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

20 years ago* src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
bernhardheld [Tue, 7 Oct 2003 08:16:04 +0000 (08:16 +0000)]
* src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
* src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS

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

20 years agoclean.mk: removed \'=\' in "-maxdepth=1"
bernhardheld [Tue, 7 Oct 2003 08:13:11 +0000 (08:13 +0000)]
clean.mk: removed \'=\' in "-maxdepth=1"

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

20 years agouse dbuf for "_asm" definitions; my_unput() replaced by unput()
borutr [Tue, 7 Oct 2003 05:01:47 +0000 (05:01 +0000)]
use dbuf for "_asm" definitions;  my_unput() replaced by unput()

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

20 years ago* src/SDCCicode.c,
bernhardheld [Sun, 5 Oct 2003 19:54:28 +0000 (19:54 +0000)]
* src/SDCCicode.c,
* src/SDCCval.c: removed superflous test for pedantic

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

20 years ago* clean.mk: fixed removal of files in bin/CVS/
bernhardheld [Sun, 5 Oct 2003 19:46:47 +0000 (19:46 +0000)]
* clean.mk: fixed removal of files in bin/CVS/
* device/lib/clean.mk: fixed removal of directories small and large
* support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC

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

20 years ago* src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of setToNull()...
bernhardheld [Sun, 5 Oct 2003 19:18:14 +0000 (19:18 +0000)]
* src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing type-punned pointer will break strict-aliasing rules"
Old LR behaviour is again default; Klaus' LR can be choosen by defining the environment variable LRKLAUS
* src/SDCCBBlock.h
* src/SDCCloop.c
* src/SDCCloop.h
* src/SDCClrange.c
* src/ds390/ralloc.c (spillThis): applied Klaus' patch

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

20 years agoFixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning message "unmatched...
borutr [Sun, 5 Oct 2003 17:34:58 +0000 (17:34 +0000)]
Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning message "unmatched #pragma SAVE and #pragma RESTORE"

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

20 years agodoc/sdccman.lyx: various additions and updates (interrupts, inline assembly, critical...
frief [Sat, 4 Oct 2003 15:18:08 +0000 (15:18 +0000)]
doc/sdccman.lyx: various additions and updates (interrupts, inline assembly, critical functions, atomic, nojtbound)

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

20 years agodoc/sdccman.lyx: various additions and updates (interrupts, inline assembly...
frief [Sat, 4 Oct 2003 15:14:32 +0000 (15:14 +0000)]
doc/sdccman.lyx: various additions and updates (interrupts, inline          assembly, critical functions, atomic, nojtbound, urls, reading documentation, more internal references)

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

20 years agoApplied liferange patch from Klaus Flittner <klaus_flittner@gmx.de>
bernhardheld [Fri, 3 Oct 2003 22:11:42 +0000 (22:11 +0000)]
Applied liferange patch from Klaus Flittner <klaus_flittner@gmx.de>

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

20 years ago* src/z80/gen.h,
epetrich [Fri, 3 Oct 2003 07:08:11 +0000 (07:08 +0000)]
* src/z80/gen.h,
* src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
* src/mcs51/gen.h
* src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
* src/ds390/gen.h
* src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
* src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
* src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705

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

20 years ago* src/z80/gen.c (genRet): fixed bug #524753
epetrich [Thu, 2 Oct 2003 04:26:09 +0000 (04:26 +0000)]
* src/z80/gen.c (genRet): fixed bug #524753
* src/z80/gen.c (genCast): fixed internal error on cast from
pointer to long
* src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
fix for bug #477835 to the z80
* src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
for tracking iCodes in the peephole optimizer for z80

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

20 years ago* src/SDCCpeeph.c (labelInRange): fixed bug #814558
epetrich [Wed, 1 Oct 2003 07:45:52 +0000 (07:45 +0000)]
* src/SDCCpeeph.c (labelInRange): fixed bug #814558

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

20 years ago* src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
epetrich [Wed, 1 Oct 2003 07:27:32 +0000 (07:27 +0000)]
* src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
the other part of bug #814548

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

20 years agosrc/SDCCcse.c: fixed part of bug #814548
bernhardheld [Tue, 30 Sep 2003 15:03:21 +0000 (15:03 +0000)]
src/SDCCcse.c: fixed part of bug #814548

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

20 years ago* src/asm.c: rewrite of printILine() to use temporary file instead a pipe
borutr [Sun, 28 Sep 2003 16:21:47 +0000 (16:21 +0000)]
* src/asm.c: rewrite of printILine() to use temporary file instead a pipe
* src/xa51/main.c: commented out declaration of int rewinds

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

20 years agorewrite of printILine() to use temporary file instaed a pipe
borutr [Sun, 28 Sep 2003 16:16:56 +0000 (16:16 +0000)]
rewrite of printILine() to use temporary file instaed a pipe

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

20 years agocommented out declaration of int rewinds
borutr [Sun, 28 Sep 2003 16:15:37 +0000 (16:15 +0000)]
commented out declaration of int rewinds

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

20 years ago* src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
epetrich [Sat, 27 Sep 2003 07:03:21 +0000 (07:03 +0000)]
* src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206

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

20 years agolib files list only existent modules
sdcc-builder [Fri, 26 Sep 2003 14:55:50 +0000 (14:55 +0000)]
lib files list only existent modules

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

20 years ago* src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
epetrich [Fri, 26 Sep 2003 08:03:12 +0000 (08:03 +0000)]
* src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
* src/asm.c (printILine): Fixed bug #811015

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

20 years agoOptimized memory allocation when processing libs
jesusc [Tue, 23 Sep 2003 07:18:55 +0000 (07:18 +0000)]
Optimized memory allocation when processing libs

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