fw/sdcc
22 years agoupdated to reflect the changes in port structure
sandeep [Tue, 18 Dec 2001 04:32:27 +0000 (04:32 +0000)]
updated to reflect the changes in port structure

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

22 years agoSome peepholes cannot be done in tiniNative mode because "a390" is a STUPID assembler
sandeep [Tue, 18 Dec 2001 04:29:59 +0000 (04:29 +0000)]
Some peepholes cannot be done in tiniNative mode because "a390" is a STUPID assembler

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

22 years agoAdded tiniNative port
sandeep [Tue, 18 Dec 2001 04:28:31 +0000 (04:28 +0000)]
Added tiniNative port

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

22 years agoMore assembler agnostisisms now the code generated actually assembles with "a390"
sandeep [Tue, 18 Dec 2001 04:27:40 +0000 (04:27 +0000)]
More assembler agnostisisms now the code generated actually assembles with "a390"

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

22 years agoadded unqualified_pointer, globals_allowed & reset_labelKey to port structure
sandeep [Tue, 18 Dec 2001 04:24:42 +0000 (04:24 +0000)]
added unqualified_pointer, globals_allowed & reset_labelKey to port structure

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

22 years agoAdded mappings for "a390" the TINI assembler
sandeep [Tue, 18 Dec 2001 04:23:16 +0000 (04:23 +0000)]
Added mappings for "a390" the TINI assembler

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

22 years agoAdded _JavaNative & Overlay to funcattrs
sandeep [Tue, 18 Dec 2001 04:22:16 +0000 (04:22 +0000)]
Added _JavaNative & Overlay to funcattrs

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

22 years ago1) port decides whether to handle GPOINTER unqualified pointers treated as port-...
sandeep [Tue, 18 Dec 2001 04:21:21 +0000 (04:21 +0000)]
1) port decides whether to handle GPOINTER unqualified pointers treated as port->unqualified_pointer
2) added new FUNC* attributes to mergeSpec

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

22 years agoadded functions flat24bitModeAndPortDS390 & portIsDS390 used by ds390 peephole optimizer
sandeep [Tue, 18 Dec 2001 04:18:45 +0000 (04:18 +0000)]
added functions flat24bitModeAndPortDS390 & portIsDS390 used by ds390 peephole optimizer

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

22 years agoPort decides whether to handle a GPOINTER unqualified pointers will be treated as...
sandeep [Tue, 18 Dec 2001 04:17:22 +0000 (04:17 +0000)]
Port decides whether to handle a GPOINTER unqualified pointers will be treated as port->unqualified_pointer

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

22 years agoAdded check for _overlay keyword to force a function to overlay
sandeep [Tue, 18 Dec 2001 04:16:20 +0000 (04:16 +0000)]
Added check for _overlay keyword to force a function to overlay

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

22 years agoAdded port "tiniNative"
sandeep [Tue, 18 Dec 2001 04:15:20 +0000 (04:15 +0000)]
Added port "tiniNative"

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

22 years ago1) don't mark a liverange as Live across a functioncall if it is
sandeep [Tue, 18 Dec 2001 04:14:21 +0000 (04:14 +0000)]
1) don't mark a liverange as Live across a functioncall if it is
defined by the function call

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

22 years agoIncomplete implementation of #pragma OVERLAY (work in progress)
sandeep [Tue, 18 Dec 2001 04:12:26 +0000 (04:12 +0000)]
Incomplete implementation of #pragma OVERLAY (work in progress)

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

22 years ago1) Port decides whether to handle GPOINTER unqualified pointers treated as port-...
sandeep [Tue, 18 Dec 2001 04:11:21 +0000 (04:11 +0000)]
1) Port decides whether to handle GPOINTER unqualified pointers treated as port->unqualified_pointer
2) Port decides if the LabelKey will be reset to 1 after each functions (some assemblers don't like duplicate labels, even if they are local)

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

22 years ago1) Added keyword "_JavaNative" prep for TINI
sandeep [Tue, 18 Dec 2001 04:08:24 +0000 (04:08 +0000)]
1) Added keyword "_JavaNative"  prep for TINI
2) Added keyword "_overlay" forces overlay for a function
3) Port decides whether to handle GPOINTER unqualified pointers treated
as port->unqualified_pointer

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

22 years ago1) Added Keywords "_JavaNative" prep for TINI
sandeep [Tue, 18 Dec 2001 04:05:36 +0000 (04:05 +0000)]
1) Added Keywords "_JavaNative" prep for TINI
2) Added Keyword "_overlay " forces overlay of a function
3) #pragma OVERLAY incomplete

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

22 years agommmm, that could be better
johanknol [Mon, 17 Dec 2001 17:41:43 +0000 (17:41 +0000)]
mmmm, that could be better

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

22 years agochange to initialized data segment before emitting the segment
johanknol [Mon, 17 Dec 2001 17:25:07 +0000 (17:25 +0000)]
change to initialized data segment before emitting the segment

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

22 years agofixed bug #490097
johanknol [Mon, 17 Dec 2001 13:18:43 +0000 (13:18 +0000)]
fixed bug #490097

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

22 years agoassigning NULL to a generic pointer is ok
johanknol [Mon, 17 Dec 2001 11:21:45 +0000 (11:21 +0000)]
assigning NULL to a generic pointer is ok

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

22 years agofixed an aggregate initialization bug
johanknol [Mon, 17 Dec 2001 10:34:02 +0000 (10:34 +0000)]
fixed an aggregate initialization bug

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

22 years ago(_*_genXINIT) orl instead of add
bernhardheld [Mon, 17 Dec 2001 07:22:48 +0000 (07:22 +0000)]
(_*_genXINIT) orl instead of add

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

22 years ago(_ds390_genXINIT) added test for 0 length
bernhardheld [Sun, 16 Dec 2001 19:02:28 +0000 (19:02 +0000)]
(_ds390_genXINIT) added test for 0 length

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

22 years ago(_mcs51_genXINIT) added test for 0 length
bernhardheld [Sun, 16 Dec 2001 18:48:18 +0000 (18:48 +0000)]
(_mcs51_genXINIT) added test for 0 length

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

22 years agoanother missing file. Can't we trust cvs anymore?
johanknol [Sun, 16 Dec 2001 16:53:40 +0000 (16:53 +0000)]
another missing file. Can't we trust cvs anymore?

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

22 years agosome small corrections
johanknol [Sun, 16 Dec 2001 16:14:32 +0000 (16:14 +0000)]
some small corrections

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

22 years agoThis should never have been here
johanknol [Sun, 16 Dec 2001 16:12:21 +0000 (16:12 +0000)]
This should never have been here

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

22 years agomissing files for "added seperate segments for initialized data"
johanknol [Sun, 16 Dec 2001 14:40:49 +0000 (14:40 +0000)]
missing files for "added seperate segments for initialized data"

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

22 years agoadded seperate segments for initialized data
johanknol [Sun, 16 Dec 2001 12:55:53 +0000 (12:55 +0000)]
added seperate segments for initialized data

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

22 years agoremove the bad fix for bug #485514
johanknol [Fri, 14 Dec 2001 16:05:18 +0000 (16:05 +0000)]
remove the bad fix for bug #485514

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

22 years agoDPTR use fixed for add to remat.
sandeep [Tue, 11 Dec 2001 21:53:41 +0000 (21:53 +0000)]
DPTR use fixed for add to remat.
iTemps used in return statements can be assigned tp DPTR

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

22 years ago*** empty log message ***
sdattalo [Tue, 11 Dec 2001 15:20:51 +0000 (15:20 +0000)]
*** empty log message ***

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

22 years agoa fix from Jesus Calvino-Fraga (jesusc@interchange.ubc.ca)
johanknol [Tue, 11 Dec 2001 13:33:45 +0000 (13:33 +0000)]
a fix from Jesus Calvino-Fraga (jesusc@interchange.ubc.ca)

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

22 years agofixed bug #482168
johanknol [Mon, 10 Dec 2001 13:57:23 +0000 (13:57 +0000)]
fixed bug #482168

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

22 years agofixed bug #490955
johanknol [Mon, 10 Dec 2001 09:44:49 +0000 (09:44 +0000)]
fixed bug #490955

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

22 years agoadded missing storage class adjustment
kmh [Sun, 9 Dec 2001 20:16:20 +0000 (20:16 +0000)]
added missing storage class adjustment

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

22 years agofixed typo EEA -> EA
kmh [Sun, 9 Dec 2001 20:11:15 +0000 (20:11 +0000)]
fixed typo EEA -> EA

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

22 years agofixed bug #485514
johanknol [Sun, 9 Dec 2001 16:42:21 +0000 (16:42 +0000)]
fixed bug #485514

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

22 years agofixed bug #486503
johanknol [Sun, 9 Dec 2001 13:44:02 +0000 (13:44 +0000)]
fixed bug #486503

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

22 years agofixed bug #482668
johanknol [Sun, 9 Dec 2001 13:29:38 +0000 (13:29 +0000)]
fixed bug #482668

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

22 years agofixed bug #477835 for ds390-port
johanknol [Sun, 9 Dec 2001 11:45:10 +0000 (11:45 +0000)]
fixed bug #477835 for ds390-port

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

22 years ago * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
michaelh [Thu, 6 Dec 2001 03:07:04 +0000 (03:07 +0000)]
 * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.

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

22 years agofixed bug #489360
johanknol [Wed, 5 Dec 2001 20:06:13 +0000 (20:06 +0000)]
fixed bug #489360

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

22 years agofix printf is a macro in gcc 3
drdani [Tue, 4 Dec 2001 07:55:57 +0000 (07:55 +0000)]
fix printf is a macro in gcc 3

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

22 years agofix "inc sp"
bernhardheld [Sun, 2 Dec 2001 23:01:45 +0000 (23:01 +0000)]
fix "inc sp"

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

22 years agosupport/regression/tests/simplefloat.c: Port to mcs51
bernhardheld [Sun, 2 Dec 2001 21:31:34 +0000 (21:31 +0000)]
support/regression/tests/simplefloat.c: Port to mcs51

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

22 years ago(genFunction): avoid excess "inc sp"
bernhardheld [Sun, 2 Dec 2001 20:27:50 +0000 (20:27 +0000)]
(genFunction): avoid excess "inc sp"

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

22 years agofixed bug #485513, although a warning should be thrown for non-constant initializers
johanknol [Sat, 1 Dec 2001 16:11:23 +0000 (16:11 +0000)]
fixed bug #485513, although a warning should be thrown for non-constant initializers

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

22 years agoMissed defining D
sandeep [Thu, 29 Nov 2001 23:32:26 +0000 (23:32 +0000)]
Missed defining D

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

22 years agoImplemented FillGaps for z80 & mcs51
sandeep [Thu, 29 Nov 2001 22:26:18 +0000 (22:26 +0000)]
Implemented FillGaps for z80 & mcs51

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

22 years agoa) Moved DPL, DPH, DPX & B before XREGn . ralloc.c/ralloc.h
sandeep [Wed, 28 Nov 2001 18:12:36 +0000 (18:12 +0000)]
a) Moved DPL, DPH, DPX & B before XREGn . ralloc.c/ralloc.h
b) Changed saveRBank & unsaveRBank routines to save & restore R0-R7 only

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

22 years agoFixed up more warnings
michaelh [Wed, 28 Nov 2001 02:02:46 +0000 (02:02 +0000)]
Fixed up more warnings

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

22 years agoFixed up extra static
michaelh [Wed, 28 Nov 2001 01:58:43 +0000 (01:58 +0000)]
Fixed up extra static

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

22 years agoFixed up s51 autodetect
michaelh [Wed, 28 Nov 2001 01:57:35 +0000 (01:57 +0000)]
Fixed up s51 autodetect

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

22 years agoCleaned up warnings
michaelh [Wed, 28 Nov 2001 01:46:36 +0000 (01:46 +0000)]
Cleaned up warnings

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

22 years agoFixed up s51 autodetect
michaelh [Wed, 28 Nov 2001 01:45:19 +0000 (01:45 +0000)]
Fixed up s51 autodetect

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

22 years agoPrevious fix was BADDD . this should do it
sandeep [Mon, 26 Nov 2001 00:57:16 +0000 (00:57 +0000)]
Previous fix was BADDD . this should do it

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

22 years agoFixed problem where the same slocs was shared between two operands
sandeep [Sun, 25 Nov 2001 23:29:25 +0000 (23:29 +0000)]
Fixed problem where the same slocs was shared between two operands
in which case they should get different aops

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

22 years agoFixed problem where slocs can be shared by two operands, in which case
sandeep [Sun, 25 Nov 2001 23:24:55 +0000 (23:24 +0000)]
Fixed problem where slocs can be shared by two operands, in which case
then should go to different aops if the sizes differ

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

22 years agoDonot reverse parameters for "builtin" functions
sandeep [Sun, 25 Nov 2001 23:19:30 +0000 (23:19 +0000)]
Donot reverse parameters for "builtin" functions

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

22 years agoFixed algebraicOpts() for division by self
sandeep [Sun, 25 Nov 2001 22:16:34 +0000 (22:16 +0000)]
Fixed algebraicOpts() for division by self

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

22 years ago * support/regression/tests/bug-485362.c: Added.
michaelh [Sun, 25 Nov 2001 19:06:14 +0000 (19:06 +0000)]
* support/regression/tests/bug-485362.c: Added.

* support/regression/tests/simplefloat.c (testDivNearOne): Added.

* src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.

* src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.

* src/z80/gen.c (aopDump): Added a dump function.

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

22 years ago--debug is wrong
bernhardheld [Sun, 25 Nov 2001 01:55:58 +0000 (01:55 +0000)]
--debug is wrong

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

22 years ago * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
bernhardheld [Sun, 25 Nov 2001 01:45:20 +0000 (01:45 +0000)]
* sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.

* sim/ucsim/s51.src/port.cc: Port 4 and 5 added.

* sim/ucsim/s51.src/regs51.h: DS390 SFRs added.

* sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.

* sim/ucsim/s51.src/uc390cl.h: Work in progress.

* sim/ucsim/sim.src/uccl.h: 6 ports for DS390.

* support/regression/fwk/lib/testfwk.c: Run with tinibios.

* support/regression/ports/mcs51/spec.mk: Fine tuninig.

* support/regression/ports/ds390/support.c: Use tinibios.

* support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.

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

22 years ago * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
bernhardheld [Sun, 25 Nov 2001 01:39:52 +0000 (01:39 +0000)]
* sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.

* sim/ucsim/s51.src/port.cc: Port 4 and 5 added.

* sim/ucsim/s51.src/regs51.h: DS390 SFRs added.

* sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.

* sim/ucsim/s51.src/uc390cl.h: Work in progress.

* sim/ucsim/sim.src/uccl.h: 6 ports for DS390.

* support/regression/fwk/lib/testfwk.c: Run with tinibios.

* support/regression/ports/mcs51/spec.mk: Fine tuninig.

* support/regression/ports/ds390/support.c: Use tinibios.

* support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.

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

22 years agoAdded regression testing files that should've been added a long time ago.
sdattalo [Sat, 24 Nov 2001 06:04:01 +0000 (06:04 +0000)]
Added regression testing files that should've been added a long time ago.
Fixed ptr gen bugs. (need to dive into ralloc... ptrs are generated poorly)

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

22 years ago * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything...
michaelh [Sat, 24 Nov 2001 04:44:41 +0000 (04:44 +0000)]
* src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
(packRegsForHLUse3): Added packing support for send, cast, and return value from a call.

* src/z80/peeph.def: Added rules for optimising pushes of part of a pair.

* src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.

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

22 years agoMade it assembler agnostic everything assembler specific now handled in asm.c
sandeep [Fri, 23 Nov 2001 21:43:26 +0000 (21:43 +0000)]
Made it assembler agnostic everything assembler specific now handled in asm.c

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

22 years agoMore fixes for DPTR use
sandeep [Fri, 23 Nov 2001 21:42:21 +0000 (21:42 +0000)]
More fixes for DPTR use

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

22 years agoChanged default stack location to 0x400007
sandeep [Fri, 23 Nov 2001 21:41:35 +0000 (21:41 +0000)]
Changed default stack location to 0x400007

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

22 years agoAdded tokens to print bytes at different offsets
sandeep [Fri, 23 Nov 2001 21:40:30 +0000 (21:40 +0000)]
Added tokens to print bytes at different offsets

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

22 years ago& sp with 0xff
sandeep [Fri, 23 Nov 2001 21:39:30 +0000 (21:39 +0000)]
& sp with 0xff

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

22 years agotemporary disabled checkConstantRange, left a warning as a reminder
johanknol [Fri, 23 Nov 2001 19:45:14 +0000 (19:45 +0000)]
temporary disabled checkConstantRange, left a warning as a reminder

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

22 years agoPIC Port - Totally rewrote signed comparisons. It was a horrendously hideous bitch...
sdattalo [Fri, 23 Nov 2001 17:54:03 +0000 (17:54 +0000)]
PIC Port - Totally rewrote signed comparisons. It was a horrendously hideous bitch of a job that I wouldn't wish on my worst enemy.

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

22 years agofixed the "(int) = -0x81" problem
johanknol [Fri, 23 Nov 2001 10:18:30 +0000 (10:18 +0000)]
fixed the "(int) = -0x81" problem

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

22 years agofunctions containing only __builtin functions can overlay variables
sandeep [Wed, 21 Nov 2001 17:11:55 +0000 (17:11 +0000)]
functions containing only __builtin functions can overlay variables

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

22 years agoadded __typeof extention will return type of a variable / expression
sandeep [Wed, 21 Nov 2001 17:10:33 +0000 (17:10 +0000)]
added __typeof extention will return type of a variable / expression
as enumerated in typeof.h

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

22 years agoAdded __builtin function __builtin_memset_x
sandeep [Wed, 21 Nov 2001 17:06:41 +0000 (17:06 +0000)]
Added __builtin function __builtin_memset_x

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

22 years agoHas __typeof enumerations
sandeep [Wed, 21 Nov 2001 17:04:35 +0000 (17:04 +0000)]
Has __typeof enumerations

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

22 years agoa) Fixed a buch of bugs with DPTR use
sandeep [Wed, 21 Nov 2001 16:56:29 +0000 (16:56 +0000)]
a) Fixed a buch of bugs with DPTR use
b) Added functionality to check if a DPTR use after register allocation and before filling gaps.

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

22 years agofixed a last minute type
johanknol [Mon, 19 Nov 2001 14:21:12 +0000 (14:21 +0000)]
fixed a last minute type

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

22 years agoFixed bug #483124
johanknol [Mon, 19 Nov 2001 13:49:17 +0000 (13:49 +0000)]
Fixed bug #483124
The experimental if-optimizer/warner goes with it

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

22 years ago * src/z80/gen.c (genCmp): Fixed compare on unsigned.
michaelh [Mon, 19 Nov 2001 05:38:44 +0000 (05:38 +0000)]
* src/z80/gen.c (genCmp): Fixed compare on unsigned.

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

22 years ago * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
michaelh [Mon, 19 Nov 2001 04:56:44 +0000 (04:56 +0000)]
* src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
(packRegsForIYUse): Created and optimised.

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

22 years agoport to mcs51
bernhardheld [Sun, 18 Nov 2001 19:41:27 +0000 (19:41 +0000)]
port to mcs51

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

22 years agoport to mcs51
bernhardheld [Sun, 18 Nov 2001 19:28:59 +0000 (19:28 +0000)]
port to mcs51

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

22 years agoImplemented builtin functions
sandeep [Sun, 18 Nov 2001 18:58:21 +0000 (18:58 +0000)]
Implemented builtin functions

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

22 years agoImplementaion of builtin functions
sandeep [Sun, 18 Nov 2001 18:56:30 +0000 (18:56 +0000)]
Implementaion of builtin functions

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

22 years agodetails of __builtin function processing
sandeep [Sun, 18 Nov 2001 18:40:38 +0000 (18:40 +0000)]
details of __builtin function processing

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

22 years ago * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
bernhardheld [Sun, 18 Nov 2001 16:38:47 +0000 (16:38 +0000)]
* sdcc/support/regression/tests/bug-460010.c: fix seg violation on host

* sdcc/support/regression/tests/muldiv.c: fix output on mcs51

* sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51

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

22 years agoFixed BUG #482929 - defs , uses & clashes should be cleared
sandeep [Sun, 18 Nov 2001 01:41:01 +0000 (01:41 +0000)]
Fixed BUG #482929 - defs , uses & clashes should be cleared

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

22 years agoKeep uses & defs bitVectors updated during pack* operations
sandeep [Sat, 17 Nov 2001 17:16:40 +0000 (17:16 +0000)]
Keep uses & defs bitVectors updated during pack* operations

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

22 years agoprelimanary fix for bug #480076
johanknol [Sat, 17 Nov 2001 16:17:16 +0000 (16:17 +0000)]
prelimanary fix for bug #480076

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

22 years agoAlthough a one byte char array has size==1, it can't be accuse
johanknol [Sat, 17 Nov 2001 11:18:54 +0000 (11:18 +0000)]
Although a one byte char array has size==1, it can't be accuse

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

22 years agothis is better than a wild guess
johanknol [Fri, 16 Nov 2001 19:31:47 +0000 (19:31 +0000)]
this is better than a wild guess

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

22 years agoanother small stack fix, no test case but this should be better
johanknol [Fri, 16 Nov 2001 19:21:24 +0000 (19:21 +0000)]
another small stack fix, no test case but this should be better

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

22 years agoModified error message format to conform closer to GNU C. This helps GUI
karahalios [Fri, 16 Nov 2001 16:55:12 +0000 (16:55 +0000)]
Modified error message format to conform closer to GNU C. This helps GUI
developement environments (in particular Mac OS X Project Builder) display &
track error messages better.

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

22 years agosmall improvement of --dumptree readabilety
johanknol [Fri, 16 Nov 2001 15:34:32 +0000 (15:34 +0000)]
small improvement of --dumptree readabilety

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

22 years agolet's try again: a small stack fix
johanknol [Fri, 16 Nov 2001 14:35:57 +0000 (14:35 +0000)]
let's try again: a small stack fix

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