fw/sdcc
22 years ago * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
michaelh [Wed, 7 Nov 2001 21:17:05 +0000 (21:17 +0000)]
* src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
(packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
(packRegsForAccUse2): Added rule to pack hbit IFXs into A.

* src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.

* src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
(genNotFloat): Added.
(genUminusFloat): Added.

* device/lib/z80/Makefile: Added floating pt stubs.

* device/lib/Makefile.in (Z80SOURCES): Added floating pt support.

* src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.

* device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.

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

22 years ago * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
bernhardheld [Wed, 7 Nov 2001 20:28:07 +0000 (20:28 +0000)]
* sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.

* sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.

* sdcc/support/regression/Makefile: Add port ds390.

* sdcc/support/regression/ports/mcs51/spec.mk: Minor change.

* sdcc/support/regression/ports/ds390/spec.mk: Added.

* sdcc/support/regression/ports/ds390/support.c: Added.

* sdcc/support/regression/ports/ds390/uCsim.cmd: Added.

* sdcc/support/regression/ports/mcs51/timeout.c: Cut.

* sdcc/support/regression/fwk/lib/timeout.c: Paste.

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

22 years agoAdded missing entries
michaelh [Wed, 7 Nov 2001 18:20:35 +0000 (18:20 +0000)]
Added missing entries

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

22 years agoogga-ectomy
kvigor [Wed, 7 Nov 2001 18:18:53 +0000 (18:18 +0000)]
ogga-ectomy

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

22 years agoAdded option --use-accelerator (for DS390)
sandeep [Wed, 7 Nov 2001 06:15:31 +0000 (06:15 +0000)]
Added option --use-accelerator (for DS390)

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

22 years agoDisbale interrupt during Accelerator operations
sandeep [Wed, 7 Nov 2001 06:14:25 +0000 (06:14 +0000)]
Disbale interrupt during Accelerator operations
Use option to determine if Accelerator code should be generated

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

22 years agoAnother small improvement on cast remat
sandeep [Wed, 7 Nov 2001 01:22:20 +0000 (01:22 +0000)]
Another small improvement on cast remat

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

22 years agoFixed cast remat problem for pointerGet & pointerSet
sandeep [Wed, 7 Nov 2001 00:31:54 +0000 (00:31 +0000)]
Fixed cast remat problem for pointerGet & pointerSet

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

22 years ago- Parameter passing now works
sdattalo [Wed, 7 Nov 2001 00:05:06 +0000 (00:05 +0000)]
- Parameter passing now works
- Added comments
- pBlock statistics are now displayed in .asm files (debugging stuff)

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

22 years agofixed bug #478698
johanknol [Tue, 6 Nov 2001 16:28:52 +0000 (16:28 +0000)]
fixed bug #478698

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

22 years agoa small naked and calleesave fix
johanknol [Tue, 6 Nov 2001 15:58:03 +0000 (15:58 +0000)]
a small naked and calleesave fix

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

22 years agoArithmetic accelerator: genModTwoBytes loaded MB backwards with literals too.
kvigor [Tue, 6 Nov 2001 06:24:40 +0000 (06:24 +0000)]
Arithmetic accelerator: genModTwoBytes loaded MB backwards with literals too.

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

22 years agoArithmetic accelerator fixes: literal multiply/divide loaded MB in wrong order; multi...
kvigor [Tue, 6 Nov 2001 05:45:47 +0000 (05:45 +0000)]
Arithmetic accelerator fixes: literal multiply/divide loaded MB in wrong order; multiply generated bad code if result was in ACC

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

22 years agoFix crash compiling vprintf.c
kvigor [Mon, 5 Nov 2001 21:28:55 +0000 (21:28 +0000)]
Fix crash compiling vprintf.c

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

22 years agoadded macro IS_CAST_ICODE
sandeep [Mon, 5 Nov 2001 15:48:00 +0000 (15:48 +0000)]
added macro IS_CAST_ICODE

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

22 years agocast of a remat is also remat.
sandeep [Mon, 5 Nov 2001 15:19:24 +0000 (15:19 +0000)]
cast of a remat is also remat.

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

22 years agoCast of a remat is also remat.
sandeep [Mon, 5 Nov 2001 15:18:07 +0000 (15:18 +0000)]
Cast of a remat is also remat.

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

22 years agofixed bug #477835 for the mcs port
johanknol [Mon, 5 Nov 2001 14:28:10 +0000 (14:28 +0000)]
fixed bug #477835 for the mcs port

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

22 years agomore function pointer issues
johanknol [Mon, 5 Nov 2001 12:01:27 +0000 (12:01 +0000)]
more function pointer issues

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

22 years agoAdded heap support functions
michaelh [Mon, 5 Nov 2001 04:26:36 +0000 (04:26 +0000)]
Added heap support functions

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

22 years ago * device/include/malloc.h: Added z80 and gbz80 support.
michaelh [Mon, 5 Nov 2001 04:25:30 +0000 (04:25 +0000)]
* device/include/malloc.h: Added z80 and gbz80 support.
* device/lib/gbz80/heap.s: Added.
* device/lib/z80/heap.s: Added.
* device/lib/malloc.c: Added z80 and gbz80 support.
* support/regression/tests/malloc.c (testMalloc): Added.
* src/SDCCmain.c (parseCmdLine): Added support for -Wp.

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

22 years ago* src/SDCCmain.c (parseCmdLine): Added support for -Wp.
michaelh [Mon, 5 Nov 2001 01:52:21 +0000 (01:52 +0000)]
* src/SDCCmain.c (parseCmdLine): Added support for -Wp.

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

22 years ago * support/regression/tests/bug-478094.c: Added.
michaelh [Mon, 5 Nov 2001 01:40:22 +0000 (01:40 +0000)]
* support/regression/tests/bug-478094.c: Added.

* src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.

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

22 years ago * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
bernhardheld [Sun, 4 Nov 2001 21:09:53 +0000 (21:09 +0000)]
* sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests

        * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests

        * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests

        * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests

* sdcc/support/regression/tests/bug-460010.c: Small change for ds390

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

22 years agoFor 296a
michaelh [Sun, 4 Nov 2001 18:44:57 +0000 (18:44 +0000)]
For 296a

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

22 years agoAdded a new warning message "W_CAST_STRUCT_PTR" when
sandeep [Sun, 4 Nov 2001 18:26:38 +0000 (18:26 +0000)]
Added a new warning message "W_CAST_STRUCT_PTR" when
pointers to different structures are CAST

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

22 years agoFixed bug-478036 : (struct array passed as argument)
sandeep [Sun, 4 Nov 2001 18:25:49 +0000 (18:25 +0000)]
Fixed bug-478036 : (struct array passed as argument)
Fixed bug when pointers to different structures were allowed to be cast without
a warning.
SDCC.lex cosmetic

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

22 years agomore function pointer parameter issues
johanknol [Sun, 4 Nov 2001 16:31:05 +0000 (16:31 +0000)]
more function pointer parameter issues

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

22 years agoa small fix for the floating point problem
johanknol [Sun, 4 Nov 2001 16:26:12 +0000 (16:26 +0000)]
a small fix for the floating point problem

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

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

* src/z80/peeph.def: Added minor rules.

* src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.

* src/z80/peeph.def: Added jump optimisation modification.

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

22 years agoAdded support for DS390 Arithmetic Accelerator
sandeep [Sun, 4 Nov 2001 01:09:03 +0000 (01:09 +0000)]
Added support for DS390 Arithmetic Accelerator

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

22 years agofixed fig #471059
johanknol [Sat, 3 Nov 2001 10:21:43 +0000 (10:21 +0000)]
fixed fig #471059

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

22 years agothis wasn't intended to be this way
johanknol [Fri, 2 Nov 2001 18:32:16 +0000 (18:32 +0000)]
this wasn't intended to be this way

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

22 years agothis wasn't intended to be this way
johanknol [Fri, 2 Nov 2001 15:26:46 +0000 (15:26 +0000)]
this wasn't intended to be this way

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

22 years agoa better fix for bug #476632
johanknol [Fri, 2 Nov 2001 13:41:59 +0000 (13:41 +0000)]
a better fix for bug #476632

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

22 years agosome small improvements for dumptree
johanknol [Fri, 2 Nov 2001 13:40:09 +0000 (13:40 +0000)]
some small improvements for dumptree

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

22 years agofixed bug #477397
johanknol [Fri, 2 Nov 2001 11:59:39 +0000 (11:59 +0000)]
fixed bug #477397

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

22 years agoWhy did I do this in 1.100 ??????
johanknol [Fri, 2 Nov 2001 11:49:07 +0000 (11:49 +0000)]
Why did I do this in 1.100 ??????

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

22 years ago * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
michaelh [Fri, 2 Nov 2001 04:52:12 +0000 (04:52 +0000)]
* src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.

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

22 years ago- Added ;#CSRC labels so that a 3rd party tool can parse the .asm output
sdattalo [Thu, 1 Nov 2001 15:26:09 +0000 (15:26 +0000)]
- Added ;#CSRC labels so that a 3rd party tool can parse the .asm output
  and ascertain the C source line numbers. (The Tool is gpsim).
- Label generation bug for & was fixed
- Redundant/unnecessary labels weren't properly removed.
- pcode optimization was happening twice.

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

22 years agosome small dumptree enhancements
johanknol [Thu, 1 Nov 2001 15:23:52 +0000 (15:23 +0000)]
some small dumptree enhancements

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

22 years agotemporary fix for bug #476632 z80 only
johanknol [Thu, 1 Nov 2001 10:53:46 +0000 (10:53 +0000)]
temporary fix for bug #476632 z80 only

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

22 years agoinsert reentrant for mcs51
bernhardheld [Wed, 31 Oct 2001 21:58:01 +0000 (21:58 +0000)]
insert reentrant for mcs51

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

22 years agofixed bug #476678
johanknol [Wed, 31 Oct 2001 16:30:22 +0000 (16:30 +0000)]
fixed bug #476678

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

22 years agofixed bug #476683
johanknol [Wed, 31 Oct 2001 15:39:35 +0000 (15:39 +0000)]
fixed bug #476683

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

22 years agofixed bug #476632
johanknol [Wed, 31 Oct 2001 10:14:13 +0000 (10:14 +0000)]
fixed bug #476632

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

22 years agoAdded.
michaelh [Wed, 31 Oct 2001 03:45:15 +0000 (03:45 +0000)]
Added.

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

22 years agoavoid stack overflow
bernhardheld [Tue, 30 Oct 2001 20:40:14 +0000 (20:40 +0000)]
avoid stack overflow

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

22 years agoavoid DSEG overflow
bernhardheld [Tue, 30 Oct 2001 17:46:35 +0000 (17:46 +0000)]
avoid DSEG overflow

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

22 years agoAdded regression tests for PIC Port.
sdattalo [Tue, 30 Oct 2001 17:23:24 +0000 (17:23 +0000)]
Added regression tests for PIC Port.

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

22 years agoThe PIC Port was assuming ifx was always true. (A recent [valid] change
sdattalo [Tue, 30 Oct 2001 17:21:13 +0000 (17:21 +0000)]
The PIC Port was assuming ifx was always true. (A recent [valid] change
in iCode generation broke that assumption.)

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

22 years agoa small update, before I forget
johanknol [Tue, 30 Oct 2001 14:53:49 +0000 (14:53 +0000)]
a small update, before I forget

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

22 years agoa beauty patch from bug #476062
johanknol [Tue, 30 Oct 2001 14:13:23 +0000 (14:13 +0000)]
a beauty patch from bug #476062

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

22 years agofixed bug #476089
johanknol [Tue, 30 Oct 2001 13:16:09 +0000 (13:16 +0000)]
fixed bug #476089

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

22 years agovoid * is allowed
johanknol [Tue, 30 Oct 2001 12:53:08 +0000 (12:53 +0000)]
void * is allowed

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

22 years agofixed bug #476281
johanknol [Tue, 30 Oct 2001 11:26:51 +0000 (11:26 +0000)]
fixed bug #476281

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

22 years agofixed bug #475821
johanknol [Tue, 30 Oct 2001 11:00:30 +0000 (11:00 +0000)]
fixed bug #475821

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

22 years agofixed bug #475852
johanknol [Mon, 29 Oct 2001 14:07:37 +0000 (14:07 +0000)]
fixed bug #475852

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

22 years agofixed an array to pointer bug
johanknol [Mon, 29 Oct 2001 10:29:22 +0000 (10:29 +0000)]
fixed an array to pointer bug
cleaned it up a little
unified print from -> to typechain

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

22 years agomake the examples work again
johanknol [Mon, 29 Oct 2001 10:25:50 +0000 (10:25 +0000)]
make the examples work again

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

22 years agoAssignment to structure member incorrect
sandeep [Sun, 28 Oct 2001 19:17:27 +0000 (19:17 +0000)]
Assignment to structure member incorrect

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

22 years ago * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
michaelh [Sun, 28 Oct 2001 00:35:47 +0000 (00:35 +0000)]
* src/z80/gen.c (genArrayInit): Made it work for on stack arrays.

* src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.

* src/z80/gen.c (genMinus): Fixed for where the result is one byte.
(movLeft2ResultLong): Created.

* src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
(joinPushes): Added.  Joins two char pushes into a word push.

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

22 years agoAdded new option --dumptree . This will dump the front end tree
sandeep [Sat, 27 Oct 2001 21:09:22 +0000 (21:09 +0000)]
Added new option --dumptree . This will dump the front end tree
before lowering it to iCode.

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

22 years agoFix for bug 474411: Two loops can share the same lastBlock so the
sandeep [Sat, 27 Oct 2001 20:38:15 +0000 (20:38 +0000)]
Fix for bug 474411: Two loops can share the same lastBlock so the
induction variables should be unioned.

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

22 years agoFix for bug #469649 . When we make a register equivalent carry over the fact
sandeep [Sat, 27 Oct 2001 19:34:49 +0000 (19:34 +0000)]
Fix for bug #469649 . When we make a register equivalent carry over the fact
that it can go on stack.

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

22 years agofixed an array of structures initialisation bug
johanknol [Sat, 27 Oct 2001 19:15:34 +0000 (19:15 +0000)]
fixed an array of structures initialisation bug

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

22 years agofixed a sprintf() bug, only visible in the ds390 port
johanknol [Sat, 27 Oct 2001 17:16:52 +0000 (17:16 +0000)]
fixed a sprintf() bug, only visible in the ds390 port

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

22 years agoMake the examples work again
johanknol [Sat, 27 Oct 2001 17:13:45 +0000 (17:13 +0000)]
Make the examples work again

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

22 years ago * support/cpp2/Makefile.in (install): Added creation of dest dir.
michaelh [Sat, 27 Oct 2001 01:45:41 +0000 (01:45 +0000)]
* support/cpp2/Makefile.in (install): Added creation of dest dir.

* support/makebin/Makefile (install): Added creation of dest dir.

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

22 years agofix some grossness in the logic operations (genAnd, genOr, genXor)
kvigor [Fri, 26 Oct 2001 21:38:31 +0000 (21:38 +0000)]
fix some grossness in the logic operations (genAnd, genOr, genXor)

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

22 years agofix broken genOr
kvigor [Fri, 26 Oct 2001 21:07:39 +0000 (21:07 +0000)]
fix broken genOr

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

22 years agotemporary "fixed" bug #469649, more too come...
johanknol [Fri, 26 Oct 2001 13:44:42 +0000 (13:44 +0000)]
temporary "fixed" bug #469649, more too come...

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

22 years agofixed bug #474411/474687
johanknol [Fri, 26 Oct 2001 13:26:49 +0000 (13:26 +0000)]
fixed bug #474411/474687

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

22 years agofixed a optimizer bug for longs
johanknol [Fri, 26 Oct 2001 12:25:46 +0000 (12:25 +0000)]
fixed a optimizer bug for longs

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

22 years agofixed bug #474222
johanknol [Fri, 26 Oct 2001 12:01:59 +0000 (12:01 +0000)]
fixed bug #474222

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

22 years agoremove cpp directory
kbongers [Wed, 24 Oct 2001 20:09:53 +0000 (20:09 +0000)]
remove cpp directory

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

22 years agostdio.h not needed
bernhardheld [Wed, 24 Oct 2001 20:02:41 +0000 (20:02 +0000)]
stdio.h not needed

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

22 years agoRemove cpp directory
kbongers [Wed, 24 Oct 2001 19:46:47 +0000 (19:46 +0000)]
Remove cpp directory

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

22 years agoremove output of empty line
bernhardheld [Wed, 24 Oct 2001 19:23:48 +0000 (19:23 +0000)]
remove output of empty line

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

22 years agoit's ok now
johanknol [Wed, 24 Oct 2001 09:04:45 +0000 (09:04 +0000)]
it's ok now

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

22 years agoCleaned it up a little
johanknol [Wed, 24 Oct 2001 08:56:08 +0000 (08:56 +0000)]
Cleaned it up a little

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

22 years agoding, dong, the ack is dead! (fixed the last "Ack!" error)
kvigor [Tue, 23 Oct 2001 15:52:28 +0000 (15:52 +0000)]
ding, dong, the ack is dead! (fixed the last "Ack!" error)

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

22 years agofixed bug #443366
johanknol [Tue, 23 Oct 2001 12:40:19 +0000 (12:40 +0000)]
fixed bug #443366

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

22 years agosmall reg bank fix
johanknol [Tue, 23 Oct 2001 11:59:03 +0000 (11:59 +0000)]
small reg bank fix

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

22 years agofixed bug #473654
johanknol [Tue, 23 Oct 2001 11:26:42 +0000 (11:26 +0000)]
fixed bug #473654

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

22 years agofixed a gcc warning
johanknol [Tue, 23 Oct 2001 08:23:52 +0000 (08:23 +0000)]
fixed a gcc warning

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

22 years agoBug 471076 fix
kvigor [Tue, 23 Oct 2001 03:09:49 +0000 (03:09 +0000)]
Bug 471076 fix

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

22 years agoclean: rm timeout.exe for Cygwin
bernhardheld [Mon, 22 Oct 2001 19:17:40 +0000 (19:17 +0000)]
clean: rm timeout.exe for Cygwin

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

22 years agoFunction attribute migration.
johanknol [Mon, 22 Oct 2001 19:00:28 +0000 (19:00 +0000)]
Function attribute migration.
Now all function attributes (args, critical, interrupt etc) are in the
sym_link where DECLARATOR==FUNCTION instead of scattered around in
the symbol and the etype of the symbol.
Now we can have multiple functions in a typechain which can have their own
private attributes.

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

22 years ago2001-10-21 Michael Hope <michaelh@juju.net.nz>
michaelh [Mon, 22 Oct 2001 01:14:16 +0000 (01:14 +0000)]
2001-10-21  Michael Hope  <michaelh@juju.net.nz>

        * src/z80/ralloc.c: Turned off faulty pack for one use.

        * src/z80/peeph-gbz80.def: Removed redundent restart options.

        * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.

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

22 years agoSigned comparisons are now working (except for signed longs)
sdattalo [Sun, 21 Oct 2001 22:40:40 +0000 (22:40 +0000)]
Signed comparisons are now working (except for signed longs)
Fixed gen errors for bit &, | operators
Auto register collision detection was failing
Changed the default processor to a 16F877
Added regression test script "rt.sh" for regression testing a single file.

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

22 years agoAdded temp.lnk to clean
bernhardheld [Sun, 21 Oct 2001 21:32:09 +0000 (21:32 +0000)]
Added temp.lnk to clean

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

22 years agoFix: added includes
bernhardheld [Sun, 21 Oct 2001 21:29:07 +0000 (21:29 +0000)]
Fix: added includes

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

22 years ago * support/regression/Makefile: Improved clean
bernhardheld [Sun, 21 Oct 2001 20:53:04 +0000 (20:53 +0000)]
* support/regression/Makefile: Improved clean
* support/regression/ports/gbz80/spec.mk: Added clean
* support/regression/ports/host/spec.mk: Added clean
* support/regression/ports/z80/spec.mk: Added clean
* support/regression/ports/mcs51/spec.mk: Added clean, little improvements
* support/regression/ports/mcs51/timeout.c: little improvements

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

22 years agosmall fix
johanknol [Sun, 21 Oct 2001 17:58:44 +0000 (17:58 +0000)]
small fix

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

22 years agoadded a long litteral test
johanknol [Sun, 21 Oct 2001 17:49:08 +0000 (17:49 +0000)]
added a long litteral test

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

22 years agoNo need for that anymore
johanknol [Sun, 21 Oct 2001 12:11:41 +0000 (12:11 +0000)]
No need for that anymore

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

22 years agosome litteral long fixes, now 40000+40000 = 80000l instead of 14464 and
johanknol [Sun, 21 Oct 2001 10:52:16 +0000 (10:52 +0000)]
some litteral long fixes, now 40000+40000 = 80000l instead of 14464 and
#define TIMER1_RELOAD_VALUE -(2*OSCILATOR)/(32*12*BAUD) works again

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

22 years agoEarly optimization of '?' operator if value already known
sandeep [Sat, 20 Oct 2001 17:55:50 +0000 (17:55 +0000)]
Early optimization of '?' operator if value already known

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

22 years agoimplicit casts of array to pointer are now in default space
johanknol [Fri, 19 Oct 2001 11:41:58 +0000 (11:41 +0000)]
implicit casts of array to pointer are now in default space

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