fw/sdcc
21 years agoadded _itoa and _ltoa
bela [Tue, 13 Aug 2002 14:38:42 +0000 (14:38 +0000)]
added _itoa and _ltoa

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

21 years agoadded functions _ltoa _uitoa
bela [Mon, 12 Aug 2002 14:09:57 +0000 (14:09 +0000)]
added functions _ltoa _uitoa

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

21 years agoadded functions _itoa _uitoa
bela [Mon, 12 Aug 2002 14:06:22 +0000 (14:06 +0000)]
added functions _itoa _uitoa

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

21 years agoadded _itoa and _ltoa
bela [Mon, 12 Aug 2002 13:58:00 +0000 (13:58 +0000)]
added _itoa and _ltoa

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

21 years agoremoved unneeded #include "sdccconf.h"
borutr [Sun, 11 Aug 2002 18:12:58 +0000 (18:12 +0000)]
removed unneeded #include "sdccconf.h"

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

21 years agox = y >> 6; was failing if x and y were 16-bit ints
sdattalo [Sun, 11 Aug 2002 04:40:44 +0000 (04:40 +0000)]
x = y >> 6; was failing if x and y were 16-bit ints

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

21 years agoenabled compilation of SDCC on Visual Studio 6.0 and .NET
borutr [Sat, 10 Aug 2002 15:33:24 +0000 (15:33 +0000)]
enabled compilation of SDCC on Visual Studio 6.0 and .NET

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

21 years agodefine PREFIX as "\\sdcc"
borutr [Sat, 10 Aug 2002 15:31:34 +0000 (15:31 +0000)]
define PREFIX as "\\sdcc"

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

21 years agofile preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
borutr [Sat, 10 Aug 2002 15:28:02 +0000 (15:28 +0000)]
file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
The consequence was that some temporary files were not removed.

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

21 years agoadded xa51 Visual Studio 6.0 project files
borutr [Fri, 9 Aug 2002 21:03:06 +0000 (21:03 +0000)]
added xa51 Visual Studio 6.0 project files

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

21 years agoIndirect pointer access to banks 2 and 3 on the 'f877 now works.
sdattalo [Fri, 9 Aug 2002 14:28:53 +0000 (14:28 +0000)]
Indirect pointer access to banks 2 and 3 on the 'f877 now works.
Variable names are displayed for variables that SDCC couldn't allocate.

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

21 years ago- definition of PATH_MAX for MSC
borutr [Wed, 7 Aug 2002 21:33:37 +0000 (21:33 +0000)]
- definition of PATH_MAX for MSC

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

21 years ago- added newline in the .def file to keep MSC compiler satisfied
borutr [Wed, 7 Aug 2002 21:28:14 +0000 (21:28 +0000)]
- added newline in the .def file to keep MSC compiler satisfied

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

21 years ago- define PREFIX as an empty string just to enable compilation on VC
borutr [Wed, 7 Aug 2002 21:24:59 +0000 (21:24 +0000)]
- define PREFIX as an empty string just to enable compilation on VC

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

21 years ago- function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
borutr [Wed, 7 Aug 2002 21:21:30 +0000 (21:21 +0000)]
- function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
  so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
- solved MSC error in function aopDump()

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

21 years ago- added return 0 statements after assert() to make compiler happy
borutr [Wed, 7 Aug 2002 21:20:13 +0000 (21:20 +0000)]
- added return 0 statements after assert() to make compiler happy

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

21 years ago- added missing ending ';' to rules to get rid of bison warnings
borutr [Wed, 7 Aug 2002 21:18:23 +0000 (21:18 +0000)]
- added missing ending ';' to rules to get rid of bison warnings

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

21 years ago- solved MSC error in function decorateType()
borutr [Wed, 7 Aug 2002 21:17:32 +0000 (21:17 +0000)]
- solved MSC error in function decorateType()

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

21 years ago- changed project type to Generic Project so that can be correcly converted to VS...
borutr [Wed, 7 Aug 2002 21:09:05 +0000 (21:09 +0000)]
- changed project type to Generic Project so that can be correcly converted to VS.NET project

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

21 years ago- removed compiler command line option /WX: Treats all warnings as errors
borutr [Wed, 7 Aug 2002 21:07:10 +0000 (21:07 +0000)]
- removed compiler command line option /WX: Treats all warnings as errors

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

21 years ago- removed compiler command line option /WX: Treats all warnings as errors
borutr [Wed, 7 Aug 2002 21:04:53 +0000 (21:04 +0000)]
- removed compiler command line option /WX: Treats all warnings as errors
- added files to project: device.c, pcodeflow.c, pcoderegs.c, device.h, pcodeflow.h, pcoderegs.h

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

21 years ago- removed compiler command line option /WX: Treats all warnings as errors
borutr [Wed, 7 Aug 2002 21:03:28 +0000 (21:03 +0000)]
- removed compiler command line option /WX: Treats all warnings as errors
- added files to project: SDCCmacro.c, SDCCutil.c

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

21 years agoremoved project sdcpp, added project xa51a
borutr [Wed, 7 Aug 2002 20:58:20 +0000 (20:58 +0000)]
removed project sdcpp, added project xa51a

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

21 years agoAdded regression tests for compound comparisons.
sdattalo [Wed, 7 Aug 2002 13:13:47 +0000 (13:13 +0000)]
Added regression tests for compound comparisons.
-- Fixed several bugs associated with compound compares:
    e.g.  x = (a != b);
   (At least 4 people reported this)
-- Fixed bug associated with an empty main block (Reported by Ralf Forsberg)
-- Bank selection was handled improperly for CALL's
   (Reported by Matt W. at solid-state-logic)
-- For the PIC port, declaring variables at absolute addresses no
   longer automatically makes the variable volatile.

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

21 years agoUnification of code in functions tempfilename() and tempfile():\nfunction tempnam...
borutr [Wed, 7 Aug 2002 06:24:43 +0000 (06:24 +0000)]
Unification of code in functions tempfilename() and tempfile():\nfunction tempnam() is defined in Visual Studio 6.0 and .NET

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

21 years ago- Register banking wasn't working for bit variables were.
sdattalo [Tue, 30 Jul 2002 12:19:43 +0000 (12:19 +0000)]
- Register banking wasn't working for bit variables were.
- Register banking at a return instruction was broken.

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

21 years agoUpdated inc2h.pl from Kevin Pauba. This version handles memory maps
sdattalo [Sun, 28 Jul 2002 14:30:45 +0000 (14:30 +0000)]
Updated inc2h.pl from Kevin Pauba. This version handles memory maps
better.

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

21 years agoTurned off verbose debugging
sdattalo [Sat, 27 Jul 2002 14:51:45 +0000 (14:51 +0000)]
Turned off verbose debugging

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

21 years agovarA = (varB > CONSTANT); Was not compiling correctly.
sdattalo [Sat, 27 Jul 2002 14:50:55 +0000 (14:50 +0000)]
varA = (varB > CONSTANT); Was not compiling correctly.

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

21 years agobug 568948: building with latest MSVC
kvigor [Fri, 26 Jul 2002 20:12:54 +0000 (20:12 +0000)]
bug 568948: building with latest MSVC

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

21 years ago"fix" bug 585128
kvigor [Fri, 26 Jul 2002 19:41:38 +0000 (19:41 +0000)]
"fix" bug 585128

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

21 years agoBug 580443 fix
kvigor [Fri, 26 Jul 2002 17:56:35 +0000 (17:56 +0000)]
Bug 580443 fix

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

21 years agoRegisters used inline were not getting allocated.
sdattalo [Thu, 25 Jul 2002 14:07:13 +0000 (14:07 +0000)]
Registers used inline were not getting allocated.

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

21 years agoFixed two bugs with inline assembly:
sdattalo [Thu, 25 Jul 2002 13:42:27 +0000 (13:42 +0000)]
Fixed two bugs with inline assembly:
  1) bit instructions weren't assembling
  2) registers were not declared properly.

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

21 years agoInterrupt context registers WSAVE and SSAVE were not getting allocated.
sdattalo [Tue, 23 Jul 2002 14:15:12 +0000 (14:15 +0000)]
Interrupt context registers WSAVE and SSAVE were not getting allocated.
Applied some more peephole and literal multiply patches from Freider Ferlemann

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

21 years agofixed access to array of structures
bernhardheld [Thu, 18 Jul 2002 10:59:07 +0000 (10:59 +0000)]
fixed access to array of structures

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

21 years ago"ancestor" flow logic was implemented. Applied optimization patches from Frieder...
sdattalo [Sun, 14 Jul 2002 21:19:17 +0000 (21:19 +0000)]
"ancestor" flow logic was implemented. Applied optimization patches from Frieder Ferlemann for unsigned multiplications.

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

21 years agoAdded CLRWDT instruction again (this time correctly).
sdattalo [Thu, 11 Jul 2002 04:31:02 +0000 (04:31 +0000)]
Added CLRWDT instruction again (this time correctly).

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

21 years agorenamed a function ins pcodeflow that conflicted with one in pcode.c
sdattalo [Wed, 10 Jul 2002 13:39:54 +0000 (13:39 +0000)]
renamed a function ins pcodeflow that conflicted with one in pcode.c

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

21 years agoAdded pcodeflow.c - much of pcode.c will eventually get moved here.
sdattalo [Wed, 10 Jul 2002 13:32:21 +0000 (13:32 +0000)]
Added pcodeflow.c - much of pcode.c will eventually get moved here.
Added the CLRWDT instruction to the list of valid PIC instructions.
Added two new peep hole rules from Frieder Ferlemann.

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

21 years ago(bandaid) Fixed core dump. You have to specify a valid include file otherwise
sdattalo [Tue, 9 Jul 2002 05:13:19 +0000 (05:13 +0000)]
(bandaid) Fixed core dump. You have to specify a valid include file otherwise
you spew core. This temporary fix keeps the core intact; eventually there will be a more graceful fix.

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

21 years agoDuring a debug session, the code for fixing register banks was turned off.
sdattalo [Sun, 7 Jul 2002 15:09:01 +0000 (15:09 +0000)]
During a debug session, the code for fixing register banks was turned off.

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

21 years agoMore register optimizations
sdattalo [Sun, 7 Jul 2002 06:06:35 +0000 (06:06 +0000)]
More register optimizations

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

21 years agoinline assembly was generated as plain text, now it is assembled into pCodes.
sdattalo [Sun, 7 Jul 2002 00:44:53 +0000 (00:44 +0000)]
inline assembly was generated as plain text, now it is assembled into pCodes.
addpCode2pBlock would dump core if the pCode being added was NULL.
pBlockMergeLabels couldn't merge labels into instructions if the two labels occurred as consecutive pCodes.

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

21 years agoFixed seg fault for empty programs. Added more register optimizations.
sdattalo [Sat, 6 Jul 2002 05:57:42 +0000 (05:57 +0000)]
Fixed seg fault for empty programs. Added more register optimizations.
Added deleteSet() function to delete a set and its contents.

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

21 years agoApplied patch from Kevin L. Pauba that added the #pragma memory declaration feature...
sdattalo [Fri, 5 Jul 2002 06:36:30 +0000 (06:36 +0000)]
Applied patch from Kevin L. Pauba that added the #pragma memory declaration feature. Updated all of the PIC regression tests to use the new #pragma declarations.

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

21 years agoRegister Optimizer was ignoring volatility of SFRs
sdattalo [Fri, 5 Jul 2002 05:43:35 +0000 (05:43 +0000)]
Register Optimizer was ignoring volatility of SFRs

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

21 years agoMore enhancements to register optimization algorithms.
sdattalo [Thu, 4 Jul 2002 19:45:40 +0000 (19:45 +0000)]
More enhancements to register optimization algorithms.

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

21 years agopCode Register optimization - registers used in only one or two instructions
sdattalo [Tue, 2 Jul 2002 15:26:02 +0000 (15:26 +0000)]
pCode Register optimization - registers used in only one or two instructions
are analyzed and removed if possible.

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

21 years agopCode live-range analysis algorithms have been added.
sdattalo [Sun, 23 Jun 2002 03:51:18 +0000 (03:51 +0000)]
pCode live-range analysis algorithms have been added.

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

21 years agoOperand comparisons were unnecessarily failing in the pCode peep hole optimizer.
sdattalo [Wed, 19 Jun 2002 14:26:10 +0000 (14:26 +0000)]
Operand comparisons were unnecessarily failing in the pCode peep hole optimizer.

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

21 years agoFixed some pointer bugs. Added option to selectively enable/disable function inlining.
sdattalo [Mon, 17 Jun 2002 05:12:11 +0000 (05:12 +0000)]
Fixed some pointer bugs. Added option to selectively enable/disable function inlining.

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

21 years agoImproved the Register Banking algorithm.
sdattalo [Thu, 13 Jun 2002 13:57:18 +0000 (13:57 +0000)]
Improved the Register Banking algorithm.

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

21 years agoThat wasn't a good idea?
johanknol [Tue, 11 Jun 2002 10:35:27 +0000 (10:35 +0000)]
That wasn't a good idea?

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

22 years agoFunction inlining works well now. Added more flow analysis.
sdattalo [Sun, 2 Jun 2002 22:40:29 +0000 (22:40 +0000)]
Function inlining works well now. Added more flow analysis.

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

22 years agoPIC aopput was using #00 as a register name.
sdattalo [Fri, 31 May 2002 05:55:29 +0000 (05:55 +0000)]
PIC aopput was using #00 as a register name.

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

22 years agoPIC Port - fixed pointer/array accesses. Stream line comparisons. Started function...
sdattalo [Fri, 31 May 2002 04:14:11 +0000 (04:14 +0000)]
PIC Port - fixed pointer/array accesses. Stream line comparisons. Started function inlining.

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

22 years agoFixed shifts by varaibles. Added rotate test code to src/regression
sdattalo [Mon, 20 May 2002 14:17:48 +0000 (14:17 +0000)]
Fixed shifts by varaibles. Added rotate test code to src/regression

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

22 years agoFixed fatal infinite loop in pcode optimizer.
sdattalo [Sat, 18 May 2002 22:43:04 +0000 (22:43 +0000)]
Fixed fatal infinite loop in pcode optimizer.

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

22 years agoNumerous bug fixes in PIC Port (pointers, shifting, bank selection,...)
sdattalo [Fri, 17 May 2002 04:35:09 +0000 (04:35 +0000)]
Numerous bug fixes in PIC Port (pointers, shifting, bank selection,...)

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

22 years agoFixed several pointer related bugs in the PIC port
sdattalo [Sat, 11 May 2002 13:42:11 +0000 (13:42 +0000)]
Fixed several pointer related bugs in the PIC port

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

22 years agoFixed several tiny bugs.
sdattalo [Fri, 10 May 2002 21:53:41 +0000 (21:53 +0000)]
Fixed several tiny bugs.

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

22 years agoAdded support for multiplication. Fixed peep hole bugs (and more functionality to...
sdattalo [Fri, 10 May 2002 18:18:49 +0000 (18:18 +0000)]
Added support for multiplication. Fixed peep hole bugs (and more functionality to the peep hole optimizer). Began weeding out AOP_XXX types for asm ops and am starting to replace with pcode types.

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

22 years ago * device/lib/z80/printf.c: Changed emitter to volatile to work
michaelh [Tue, 23 Apr 2002 03:56:21 +0000 (03:56 +0000)]
* device/lib/z80/printf.c: Changed emitter to volatile to work
around a pcall bug.

       * configure.in (DD_COPT): Added include support required for gbdk.

         * .version: Bumped version number just to increase it.

   * src/SDCCmain.c: Added -nostdinc to the default options.

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

22 years ago * device/lib/z80/printf.c (sprintf): Added.
michaelh [Tue, 16 Apr 2002 03:57:42 +0000 (03:57 +0000)]
* device/lib/z80/printf.c (sprintf): Added.

* src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.

* src/z80/peeph.def: Added transpose redundent load rule.

* src/z80/main.c: Added force callee saves for jaune.

* src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.

* src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.

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

22 years agopass LDFLAGS to linker, fix of 533276
drdani [Tue, 9 Apr 2002 11:58:44 +0000 (11:58 +0000)]
pass LDFLAGS to linker, fix of 533276

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

22 years ago Update spec file for 2.3.0 release.
stevewilliams [Sat, 6 Apr 2002 23:09:21 +0000 (23:09 +0000)]
 Update spec file for 2.3.0 release.

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

22 years agoFix half of bug #536787
bernhardheld [Sat, 30 Mar 2002 22:34:46 +0000 (22:34 +0000)]
Fix half of bug #536787

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

22 years agoEric Norum's suggeston to install doc to standard place
drdani [Fri, 29 Mar 2002 07:27:15 +0000 (07:27 +0000)]
Eric Norum's suggeston to install doc to standard place

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

22 years agofixed bug #532436
johanknol [Thu, 28 Mar 2002 11:02:06 +0000 (11:02 +0000)]
fixed bug #532436

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

22 years agofixed bug #532436
johanknol [Thu, 28 Mar 2002 10:45:52 +0000 (10:45 +0000)]
fixed bug #532436

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

22 years agoConsolidate generic pointer code
kvigor [Wed, 20 Mar 2002 21:52:10 +0000 (21:52 +0000)]
Consolidate generic pointer code

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

22 years agoAdded -p option to allow selection of port dependent processors.
sdattalo [Wed, 20 Mar 2002 06:32:50 +0000 (06:32 +0000)]
Added -p option to allow selection of port dependent processors.

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

22 years agoAdded -p command line option to allow selection of port dependent processor.
sdattalo [Wed, 20 Mar 2002 06:10:31 +0000 (06:10 +0000)]
Added -p command line option to allow selection of port dependent processor.

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

22 years agoconfigure failed on Solaris
kvigor [Tue, 19 Mar 2002 19:28:12 +0000 (19:28 +0000)]
configure failed on Solaris

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

22 years agoadd simple mingw32 script to compile
kbongers [Tue, 19 Mar 2002 05:22:42 +0000 (05:22 +0000)]
add simple mingw32 script to compile

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

22 years ago*** empty log message ***
sandeep [Sat, 16 Mar 2002 16:48:28 +0000 (16:48 +0000)]
*** empty log message ***

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

22 years agoFixed left shift. Will promote the left side of a left shift
sandeep [Sat, 16 Mar 2002 16:45:20 +0000 (16:45 +0000)]
Fixed left shift. Will promote the left side of a left shift
if a) left shifting more than size of operand or b) when assigned
to something size > size of left side

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

22 years agodattalo - Added bank1.c and string1.c to test banking and character strings in the...
sdattalo [Fri, 15 Mar 2002 13:23:40 +0000 (13:23 +0000)]
dattalo - Added bank1.c and string1.c to test banking and character strings in the PIC port.

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

22 years agodattalo Added pcodeflow.h - most of the flow definitions are now here.
sdattalo [Fri, 15 Mar 2002 13:21:35 +0000 (13:21 +0000)]
dattalo Added pcodeflow.h - most of the flow definitions are now here.

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

22 years agodattalo - Disabled code dependent on ports that have been disabled. I don't know...
sdattalo [Thu, 14 Mar 2002 15:23:35 +0000 (15:23 +0000)]
dattalo - Disabled code dependent on ports that have been disabled. I don't know why avr/peeph.rul has changed.

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

22 years agodattalo - Major commit! re-wrote register allocation and flow analysis.
sdattalo [Thu, 14 Mar 2002 15:18:52 +0000 (15:18 +0000)]
dattalo - Major commit! re-wrote register allocation and flow analysis.
 * added support for individual pics.
 * interrupts are now supported
 * tons and tons of minor changes.

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

22 years agosome minor improvements
johanknol [Wed, 6 Mar 2002 16:13:50 +0000 (16:13 +0000)]
some minor improvements

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

22 years agofixed
johanknol [Mon, 4 Mar 2002 15:58:12 +0000 (15:58 +0000)]
fixed

const unsigned char arr[][2] = { { 0, 1 } };
t18.c:1: error: Initializer element is not constant

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

22 years agods89c420 register definition update
bela [Mon, 4 Mar 2002 07:04:42 +0000 (07:04 +0000)]
ds89c420 register definition update

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

22 years agoChangelog:1.102 I hate to repeat myself ...
johanknol [Sun, 3 Mar 2002 17:45:50 +0000 (17:45 +0000)]
Changelog:1.102 I hate to repeat myself ...

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

22 years agoa couple of changes
johanknol [Sun, 3 Mar 2002 17:43:41 +0000 (17:43 +0000)]
a couple of changes

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

22 years agochanged some warnings to errors when codegen is skipped
johanknol [Sun, 3 Mar 2002 12:09:42 +0000 (12:09 +0000)]
changed some warnings to errors when codegen is skipped

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

22 years agofixed a warning
johanknol [Sun, 3 Mar 2002 12:06:05 +0000 (12:06 +0000)]
fixed a warning

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

22 years agofixed bug #524685
johanknol [Sun, 3 Mar 2002 10:52:53 +0000 (10:52 +0000)]
fixed bug #524685

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

22 years agofixed the << promotion for ops
johanknol [Sun, 3 Mar 2002 10:50:54 +0000 (10:50 +0000)]
fixed the << promotion for ops

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

22 years ago*** empty log message ***
sandeep [Sat, 2 Mar 2002 19:24:08 +0000 (19:24 +0000)]
*** empty log message ***

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

22 years agoAdded some more peephole rules
sandeep [Sat, 2 Mar 2002 19:19:51 +0000 (19:19 +0000)]
Added some more peephole rules

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

22 years agoVarious fixes & enhancements
sandeep [Sat, 2 Mar 2002 19:13:35 +0000 (19:13 +0000)]
Various fixes & enhancements

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

22 years agofunctions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
sandeep [Sat, 2 Mar 2002 19:11:14 +0000 (19:11 +0000)]
functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c

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

22 years agovarious fixes & enhancements (ds390) specific
sandeep [Sat, 2 Mar 2002 19:09:22 +0000 (19:09 +0000)]
various fixes & enhancements (ds390) specific

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

22 years agoFunctions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
sandeep [Sat, 2 Mar 2002 19:08:47 +0000 (19:08 +0000)]
Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
from rallocs.

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

22 years agoBetter fix for bug # 514308
sandeep [Sat, 2 Mar 2002 18:42:16 +0000 (18:42 +0000)]
Better fix for bug # 514308

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

22 years agothat's all for today
johanknol [Sat, 2 Mar 2002 17:10:56 +0000 (17:10 +0000)]
that's all for today

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

22 years agofixed bug#524708
johanknol [Sat, 2 Mar 2002 16:56:44 +0000 (16:56 +0000)]
fixed bug#524708

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