fw/sdcc
22 years ago * src/z80/gen.c (setupPair): Added 'extended stack' support for the z80. Can now...
michaelh [Sun, 7 Oct 2001 18:28:35 +0000 (18:28 +0000)]
* src/z80/gen.c (setupPair): Added 'extended stack' support for the z80.  Can now have local variables or parameters of more than 127 bytes in size.  Increadibly slow, but it will work.  Currently anything involving the carry flag.

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

22 years agoCreated
michaelh [Sun, 7 Oct 2001 17:12:13 +0000 (17:12 +0000)]
Created

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

22 years ago * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free...
michaelh [Sun, 7 Oct 2001 16:55:31 +0000 (16:55 +0000)]
* support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.

* support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.

* src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.

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

22 years agofixed the return value of gets()
johanknol [Sun, 7 Oct 2001 15:53:02 +0000 (15:53 +0000)]
fixed the return value of gets()

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

22 years agothis looks better
johanknol [Sun, 7 Oct 2001 15:49:53 +0000 (15:49 +0000)]
this looks better

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

22 years agoport to mcs51
bernhardheld [Sun, 7 Oct 2001 14:29:06 +0000 (14:29 +0000)]
port to mcs51

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

22 years agolet's not assume it is a symbol
johanknol [Sun, 7 Oct 2001 13:21:54 +0000 (13:21 +0000)]
let's not assume it is a symbol

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

22 years agotoo much overhead, and the ?: misbehaved
johanknol [Sun, 7 Oct 2001 12:49:13 +0000 (12:49 +0000)]
too much overhead, and the ?: misbehaved

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

22 years agodon't unconditionally cast to unsigned long
johanknol [Sun, 7 Oct 2001 11:48:15 +0000 (11:48 +0000)]
don't unconditionally cast to unsigned long

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

22 years ago * src/SDCCpeeph.c (peepHole): Fixed all leaks. Added trace support for freeing...
michaelh [Sat, 6 Oct 2001 23:44:03 +0000 (23:44 +0000)]
* src/SDCCpeeph.c (peepHole): Fixed all leaks.  Added trace support for freeing lines.  Optimised restart logic to re-run instead of restart.  Now compiles dscan.c on ~60MB instead of ~200MB.

* support/Util/NewAlloc.c: Added ability to use libgc instead of malloc.  Added Safe_free and Safe_strdup.  Added trace support where you can log allocations and free all at once.

* src/z80/gen.c (genZ80Code): Added de-allocation via trace support.

* src/pic/gen.c: Removed Safe_strdup.

* configure.in: Added option to enable libgc support.

* src/SDCCbitv.c (bitVectnBitsOn): Optimised.
(bitVectUnion): Optimised.
(bitVectIntersect): Optimised.
(bitVectBitsInCommon): Optimised.
(bitVectCplAnd): Optimised.

* support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.

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

22 years ago * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it....
michaelh [Sat, 6 Oct 2001 16:59:25 +0000 (16:59 +0000)]
* support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.

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

22 years agoStupid temporary fix for bug #467035 (throws a warning). At least it keeps the regres...
johanknol [Sat, 6 Oct 2001 15:06:24 +0000 (15:06 +0000)]
Stupid temporary fix for bug #467035 (throws a warning). At least it keeps the regression tests going.

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

22 years agofixed valCastLiteral()
johanknol [Sat, 6 Oct 2001 09:48:26 +0000 (09:48 +0000)]
fixed valCastLiteral()

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

22 years agowin32api not available
bernhardheld [Fri, 5 Oct 2001 16:37:08 +0000 (16:37 +0000)]
win32api not available

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

22 years agomore efficient constant value operations
johanknol [Fri, 5 Oct 2001 12:01:58 +0000 (12:01 +0000)]
more efficient constant value operations

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

22 years agoSubtract unsigned int's from lits now works. Fixed a couple compilation warnings.
sdattalo [Fri, 5 Oct 2001 06:22:48 +0000 (06:22 +0000)]
Subtract unsigned int's from lits now works. Fixed a couple compilation warnings.

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

22 years agofinalized the fix for bug #467142
johanknol [Thu, 4 Oct 2001 12:48:15 +0000 (12:48 +0000)]
finalized the fix for bug #467142

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

22 years agofixed bug #467142
johanknol [Thu, 4 Oct 2001 10:20:14 +0000 (10:20 +0000)]
fixed bug #467142

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

22 years agofixed a compiler crash
johanknol [Thu, 4 Oct 2001 09:02:28 +0000 (09:02 +0000)]
fixed a compiler crash

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

22 years agofixed bug #467655
johanknol [Thu, 4 Oct 2001 08:12:33 +0000 (08:12 +0000)]
fixed bug #467655

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

22 years ago../cvsm
bernhardheld [Wed, 3 Oct 2001 18:49:06 +0000 (18:49 +0000)]
../cvsm

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

22 years agoreplaced by _mulint.c and _mullong.c
bernhardheld [Wed, 3 Oct 2001 16:28:42 +0000 (16:28 +0000)]
replaced by _mulint.c and _mullong.c

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

22 years ago * src/device/lib/_mulint.c : new, with assember functions
bernhardheld [Wed, 3 Oct 2001 16:24:51 +0000 (16:24 +0000)]
* src/device/lib/_mulint.c  : new, with assember functions

* src/device/lib/_mullong.c : new, with assember functions

* src/device/lib/_divuint.c : with assember functions

* src/device/lib/_divsint.c : with assember functions

* src/device/lib/_divulong.c: with assember functions

* src/device/lib/_divslong.c: with assember functions

* src/device/lib/_moduint.c : with assember functions

* src/device/lib/_modsint.c : with assember functions

* src/device/lib/_modulong.c: with assember functions

* src/device/lib/_modslong.c: with assember functions

* src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c

* src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c

* src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
                              replaced _mululong.c and _mulslong.c by _mullong.c

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

22 years agosequence of specifiers in pintTypeChain() corrected
bernhardheld [Wed, 3 Oct 2001 12:01:51 +0000 (12:01 +0000)]
sequence of specifiers in pintTypeChain() corrected

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

22 years agoconstVal() now returns the cheapest val as possible
johanknol [Wed, 3 Oct 2001 08:35:55 +0000 (08:35 +0000)]
constVal() now returns the cheapest val as possible

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

22 years agopCode peep rule comparison was ignoring labels when operands were wild cards. (Report...
sdattalo [Wed, 3 Oct 2001 08:04:13 +0000 (08:04 +0000)]
pCode peep rule comparison was ignoring labels when operands were wild cards. (Reported by Ralf Forsberg.)

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

22 years agoAdded new regression test add2.c - tests adding lit's to unsigned ints. Literal addit...
sdattalo [Wed, 3 Oct 2001 07:36:43 +0000 (07:36 +0000)]
Added new regression test add2.c - tests adding lit's to unsigned ints. Literal addition to unsigned chars and unsigned ints has been more fully tested. Fixed a bug with comparisons to unsigned ints.

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

22 years agofixed the:
johanknol [Tue, 2 Oct 2001 12:34:02 +0000 (12:34 +0000)]
fixed the:

void fun(int arg, void (*iterator)(int arg) reentrant) {
  (*iterator)(arg, arg);
}

case

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

22 years agoa more general fix for bug #466586
johanknol [Tue, 2 Oct 2001 12:20:14 +0000 (12:20 +0000)]
a more general fix for bug #466586

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

22 years agoOperators <<, >>, are now fully working for constant shifts on unsigned char and...
sdattalo [Tue, 2 Oct 2001 03:45:23 +0000 (03:45 +0000)]
Operators <<, >>, are now fully working for constant shifts on unsigned char and unsigned int.

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

22 years ago * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
michaelh [Tue, 2 Oct 2001 01:10:42 +0000 (01:10 +0000)]
* support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.

* support/regression/tests/bug-467035.c: Created.

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

22 years ago* src/SDCCglue.c: test, if win32api is available for MINGW
bernhardheld [Mon, 1 Oct 2001 20:39:20 +0000 (20:39 +0000)]
* src/SDCCglue.c: test, if win32api is available for MINGW

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

22 years ago * src/SDCCsymt.c: no more _modifier in printTypeChain()
bernhardheld [Mon, 1 Oct 2001 20:12:41 +0000 (20:12 +0000)]
    * src/SDCCsymt.c: no more _modifier in printTypeChain()
        * support/regression/tests/driverstruct.c: REENTRANT for mcs51
        * support/regression/ports/gbz80/spec.mk: removed GENERIC
        * support/regression/ports/host/spec.mk: removed GENERIC
        * support/regression/ports/mcs51/spec.mk: removed GENERIC
        * support/regression/ports/z80/spec.mk: removed GENERIC

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

22 years agofixed the "void (*i)(void) = f" case
johanknol [Mon, 1 Oct 2001 15:48:44 +0000 (15:48 +0000)]
fixed the "void (*i)(void) = f" case

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

22 years agoToo much opposition against these range checks. It will only work now with --pedantic...
johanknol [Mon, 1 Oct 2001 14:21:56 +0000 (14:21 +0000)]
Too much opposition against these range checks. It will only work now with --pedantic (when it is implemented).

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

22 years agowhy doesn't this one go with a ci in the root dir?
johanknol [Mon, 1 Oct 2001 12:50:13 +0000 (12:50 +0000)]
why doesn't this one go with a ci in the root dir?

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

22 years agoFixed bug #466586 part 1
johanknol [Mon, 1 Oct 2001 12:42:29 +0000 (12:42 +0000)]
Fixed bug #466586 part 1

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

22 years agofixed bug #466587
johanknol [Mon, 1 Oct 2001 09:49:15 +0000 (09:49 +0000)]
fixed bug #466587

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

22 years agofixed bug #462474
johanknol [Mon, 1 Oct 2001 08:55:45 +0000 (08:55 +0000)]
fixed bug #462474
strip doesn't need -s but solaris chocks on it

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

22 years ago * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references...
michaelh [Sun, 30 Sep 2001 18:42:31 +0000 (18:42 +0000)]
* sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.

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

22 years agofixed bug #466026
johanknol [Sun, 30 Sep 2001 13:39:13 +0000 (13:39 +0000)]
fixed bug #466026

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

22 years agoFixed the "unqualified_pointer pointer" rule that confused pointerTypes() in
johanknol [Sun, 30 Sep 2001 11:15:45 +0000 (11:15 +0000)]
Fixed the "unqualified_pointer pointer" rule that confused pointerTypes() in
the "highly unlikely" case that type had a UPOINTER

char code * data * * xdata cpdpgp_x;

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

22 years agoAdded more regression test to the pic port. Added support for <<, >>, ^
sdattalo [Sun, 30 Sep 2001 03:53:13 +0000 (03:53 +0000)]
Added more regression test to the pic port. Added support for <<, >>, ^

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

22 years agoCreated
michaelh [Sun, 30 Sep 2001 01:51:23 +0000 (01:51 +0000)]
Created

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

22 years agoCreated
michaelh [Sun, 30 Sep 2001 00:07:51 +0000 (00:07 +0000)]
Created

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

22 years ago * Makefile (sdcc-libs): Added makebin to the list of standard targets.
michaelh [Sun, 30 Sep 2001 00:05:38 +0000 (00:05 +0000)]
* Makefile (sdcc-libs): Added makebin to the list of standard targets.

* support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.

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

22 years agominor improvement to register allocator in --stack10bit mode
sandeep [Sat, 29 Sep 2001 23:18:27 +0000 (23:18 +0000)]
minor improvement to register allocator in --stack10bit mode

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

22 years agofixed bug #466029
johanknol [Sat, 29 Sep 2001 07:54:54 +0000 (07:54 +0000)]
fixed bug #466029

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

22 years agoThat did soften the pain but didn't cure the illness.
johanknol [Fri, 28 Sep 2001 15:59:41 +0000 (15:59 +0000)]
That did soften the pain but didn't cure the illness.

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

22 years agoadjust for mach os-x support
kbongers [Thu, 27 Sep 2001 22:04:24 +0000 (22:04 +0000)]
adjust for mach os-x support

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

22 years agoThat wasn't a good idea
johanknol [Thu, 27 Sep 2001 11:10:48 +0000 (11:10 +0000)]
That wasn't a good idea

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

22 years agomore pointer issues
johanknol [Thu, 27 Sep 2001 10:09:03 +0000 (10:09 +0000)]
more pointer issues

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

22 years agopointer issues
johanknol [Wed, 26 Sep 2001 16:51:03 +0000 (16:51 +0000)]
pointer issues

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

22 years ago * configure.in: Fixed up so that ucsim is only configured once.
michaelh [Wed, 26 Sep 2001 04:48:42 +0000 (04:48 +0000)]
* configure.in: Fixed up so that ucsim is only configured once.

* support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.

* src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
(getPathDifference): As above.

* src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.

* src/SDCCglue.c (tempfilename): Added function for pre-processor.

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

22 years ago"Fix" of compiler crash
bernhardheld [Tue, 25 Sep 2001 19:50:33 +0000 (19:50 +0000)]
"Fix" of compiler crash

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

22 years agoanother small improvement ;(
johanknol [Tue, 25 Sep 2001 13:13:31 +0000 (13:13 +0000)]
another small improvement ;(

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

22 years agosmall improvements :(
johanknol [Tue, 25 Sep 2001 13:10:28 +0000 (13:10 +0000)]
small improvements :(

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

22 years agoa better constant to type check
johanknol [Tue, 25 Sep 2001 12:04:27 +0000 (12:04 +0000)]
a better constant to type check
removed a temporary fix
filed a bug report, stating the real problem

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

22 years agoa better constant to type check
johanknol [Tue, 25 Sep 2001 11:50:45 +0000 (11:50 +0000)]
a better constant to type check
removed a temporary fix
filed a bug report, stating the real problem

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

22 years agoMinor changes to fix up path seperators.
michaelh [Tue, 25 Sep 2001 03:43:34 +0000 (03:43 +0000)]
Minor changes to fix up path seperators.

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

22 years agoa better fix for bug #456966
johanknol [Mon, 24 Sep 2001 10:39:01 +0000 (10:39 +0000)]
a better fix for bug #456966

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

22 years agoThat wasn't such a good idea
johanknol [Mon, 24 Sep 2001 08:53:16 +0000 (08:53 +0000)]
That wasn't such a good idea

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

22 years agoTurned off debugging messages
michaelh [Sun, 23 Sep 2001 18:43:52 +0000 (18:43 +0000)]
Turned off debugging messages

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

22 years ago * .version: Updated to 2.3.1
michaelh [Sun, 23 Sep 2001 18:25:45 +0000 (18:25 +0000)]
* .version: Updated to 2.3.1

* src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
Added copyright header.

* src/SDCCmain.c: Shifted various functions into SDCCutil.c
(assemble): Added support for macro based assembler commands.
(linkEdit): Added support for macro based linker commands.
(preProcess): Changed the pre-processor to use macros.
(_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
(_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.

* device/lib/z80/crt0.s: Added module name for debugging.
* src/SDCCmain.c (printVersionInfo): Added the build date to the version info.

* src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.

* src/SDCCglue.c: Moved gc_strdup to SDCCutil.c

* src/Makefile.in: Added SDCCmacro and SDCCutil

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

22 years agoNow --lesspedantic kills EVELYN the modified DOG
johanknol [Sun, 23 Sep 2001 16:30:33 +0000 (16:30 +0000)]
Now --lesspedantic kills EVELYN the modified DOG

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

22 years agofixed bug #456966
johanknol [Sun, 23 Sep 2001 16:09:12 +0000 (16:09 +0000)]
fixed bug #456966

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

22 years agofixed bug #456966
johanknol [Sun, 23 Sep 2001 16:03:40 +0000 (16:03 +0000)]
fixed bug #456966

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

22 years agoThis isn't needed anymore because of SDCCast.c:1.82
johanknol [Sun, 23 Sep 2001 13:52:46 +0000 (13:52 +0000)]
This isn't needed anymore because of SDCCast.c:1.82

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

22 years agofixed bug #463839
johanknol [Sun, 23 Sep 2001 13:44:10 +0000 (13:44 +0000)]
fixed bug #463839

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

22 years agoFixed bug-463702
sandeep [Sun, 23 Sep 2001 00:44:04 +0000 (00:44 +0000)]
Fixed bug-463702

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

22 years agomade the error message text more meaningful
sandeep [Fri, 21 Sep 2001 17:38:18 +0000 (17:38 +0000)]
made the error message text more meaningful

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

22 years agofixed the recent bug that disabled the local structure initialisation.
johanknol [Thu, 20 Sep 2001 12:53:54 +0000 (12:53 +0000)]
fixed the recent bug that disabled the local structure initialisation.

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

22 years agoMerged the 2.3.0 branch back into the main line
michaelh [Thu, 20 Sep 2001 00:13:46 +0000 (00:13 +0000)]
Merged the 2.3.0 branch back into the main line

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

22 years agoUpdated READMEs for 2.3.0
michaelh [Wed, 19 Sep 2001 18:32:39 +0000 (18:32 +0000)]
Updated READMEs for 2.3.0

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

22 years agoremoved a fruitless attempt, compareType() should take care of this
johanknol [Wed, 19 Sep 2001 10:56:05 +0000 (10:56 +0000)]
removed a fruitless attempt, compareType() should take care of this

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

22 years agoprevent a compiler crash
johanknol [Tue, 18 Sep 2001 13:36:56 +0000 (13:36 +0000)]
prevent a compiler crash

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

22 years agofixed bug #462479
johanknol [Tue, 18 Sep 2001 09:36:50 +0000 (09:36 +0000)]
fixed bug #462479

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

22 years agodos cvs had problem with .lnk file
kbongers [Mon, 17 Sep 2001 21:46:04 +0000 (21:46 +0000)]
dos cvs had problem with .lnk file

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

22 years agofix dos cvs co problem with .lnk files
kbongers [Mon, 17 Sep 2001 21:43:13 +0000 (21:43 +0000)]
fix dos cvs co problem with .lnk files

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

22 years agotry to fix dos cvs access problen
kbongers [Mon, 17 Sep 2001 21:23:25 +0000 (21:23 +0000)]
try to fix dos cvs access problen

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

22 years ago1) SDCCast.c - allow cast of ZERO to generic pointer (Special case for NULL)
sandeep [Mon, 17 Sep 2001 17:29:43 +0000 (17:29 +0000)]
1) SDCCast.c - allow cast of ZERO to generic pointer (Special case for NULL)
2) SDCCcse.c - Do not change CAST of literal to ASSIGNMENT if the literal is
               of pointer type & cast to generic pointer

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

22 years agoundid the fix for bug #455597, there has to be a better way
johanknol [Mon, 17 Sep 2001 13:27:17 +0000 (13:27 +0000)]
undid the fix for bug #455597, there has to be a better way

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

22 years agoFix for casting literals to generic pointer
sandeep [Sun, 16 Sep 2001 23:16:00 +0000 (23:16 +0000)]
Fix for casting literals to generic pointer

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

22 years agoThese restriction were too strict, I have to think this over again first
johanknol [Sun, 16 Sep 2001 16:22:20 +0000 (16:22 +0000)]
These restriction were too strict, I have to think this over again first

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

22 years agoErrors have E_, warnings have W_, Info's have I_
johanknol [Sun, 16 Sep 2001 14:04:32 +0000 (14:04 +0000)]
Errors have E_, warnings have W_, Info's have I_

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

22 years agofixed bug #436360 part 2, a better type check for function parameters
johanknol [Sun, 16 Sep 2001 13:54:48 +0000 (13:54 +0000)]
fixed bug #436360 part 2, a better type check for function parameters

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

22 years agofixed bug #436360 part 1
johanknol [Sun, 16 Sep 2001 13:52:22 +0000 (13:52 +0000)]
fixed bug #436360 part 1

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

22 years ago__rlrr array lacking extern
kbongers [Sun, 16 Sep 2001 00:40:33 +0000 (00:40 +0000)]
__rlrr array lacking extern

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

22 years agoa possible fix for bug #460662 part 2
johanknol [Sat, 15 Sep 2001 15:37:44 +0000 (15:37 +0000)]
a possible fix for bug #460662 part 2

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

22 years agoA skeleton for a regression fix.
johanknol [Sat, 15 Sep 2001 13:49:10 +0000 (13:49 +0000)]
A skeleton for a regression fix.

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

22 years agofixed bug #460662 part 1
johanknol [Sat, 15 Sep 2001 12:23:00 +0000 (12:23 +0000)]
fixed bug #460662 part 1

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

22 years agoNow only the native_memcpy_cs2xs() is missing
johanknol [Fri, 14 Sep 2001 15:05:22 +0000 (15:05 +0000)]
Now only the native_memcpy_cs2xs() is missing

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

22 years agoallow for APPLE MACH compilation
kbongers [Fri, 14 Sep 2001 03:48:59 +0000 (03:48 +0000)]
allow for APPLE MACH compilation

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

22 years agoImproved version of the experimental new initializer
johanknol [Thu, 13 Sep 2001 15:04:32 +0000 (15:04 +0000)]
Improved version of the experimental new initializer
It should also work now for local's
Remember the environmental var TRY_THE_NEW_INITIALIZER

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

22 years agoa better version of array initializers
johanknol [Wed, 12 Sep 2001 15:30:35 +0000 (15:30 +0000)]
a better version of array initializers

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

22 years agoreversed src and dst
johanknol [Wed, 12 Sep 2001 07:58:37 +0000 (07:58 +0000)]
reversed src and dst

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

22 years agooops, sorry
johanknol [Tue, 11 Sep 2001 15:30:09 +0000 (15:30 +0000)]
oops, sorry

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

22 years agoA first attempt for more efficient initialisations
johanknol [Tue, 11 Sep 2001 15:22:28 +0000 (15:22 +0000)]
A first attempt for more efficient initialisations

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

22 years agofixed bug #460010
johanknol [Tue, 11 Sep 2001 09:41:29 +0000 (09:41 +0000)]
fixed bug #460010

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

22 years agofixed bug #460010
johanknol [Tue, 11 Sep 2001 09:33:41 +0000 (09:33 +0000)]
fixed bug #460010

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