From: cuz Date: Thu, 11 Oct 2001 13:48:30 +0000 (+0000) Subject: Comment out unused code X-Git-Tag: V2.12.0~2564 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76f0c7c05efa2e5418a4f006cc408f4c57ea738b;p=cc65 Comment out unused code git-svn-id: svn://svn.cc65.org/cc65/trunk@1031 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeopt.c b/src/cc65/codeopt.c index 7d9dddcb6..5508d2bee 100644 --- a/src/cc65/codeopt.c +++ b/src/cc65/codeopt.c @@ -1112,14 +1112,14 @@ static unsigned OptDecouple (CodeSeg* S) /*****************************************************************************/ - + +#if 0 static unsigned OptSize1 (CodeSeg* S) /* Do size optimization by calling special subroutines that preload registers. * This routine does not work standalone, it needs a following register load * removal pass. */ { -#if 0 static const char* Func = { "stax0sp", /* staxysp, y = 0 */ "addeq0sp", @@ -1194,7 +1194,6 @@ static unsigned OptSize1 (CodeSeg* S) "tosumoda0", /* tosumodax, x = 0 */ "tosxora0", /* tosxorax, x = 0 */ }; -#endif unsigned Changes = 0; unsigned I; @@ -1221,6 +1220,7 @@ static unsigned OptSize1 (CodeSeg* S) /* Return the number of changes made */ return Changes; } +#endif @@ -1386,7 +1386,7 @@ static OptFunc DOptPtrStore1 = { OptPtrStore1, "OptPtrStore1", 0, 0, 0, static OptFunc DOptPtrStore2 = { OptPtrStore2, "OptPtrStore2", 0, 0, 0, 0, 0 }; static OptFunc DOptShift1 = { OptShift1, "OptShift1", 0, 0, 0, 0, 0 }; static OptFunc DOptShift2 = { OptShift2, "OptShift2", 0, 0, 0, 0, 0 }; -static OptFunc DOptSize1 = { OptSize1, "OptSize1", 0, 0, 0, 0, 0 }; +/*static OptFunc DOptSize1 = { OptSize1, "OptSize1", 0, 0, 0, 0, 0 };*/ static OptFunc DOptSize2 = { OptSize2, "OptSize2", 0, 0, 0, 0, 0 }; static OptFunc DOptStackOps = { OptStackOps, "OptStackOps", 0, 0, 0, 0, 0 }; static OptFunc DOptStoreLoad = { OptStoreLoad, "OptStoreLoad", 0, 0, 0, 0, 0 }; @@ -1437,7 +1437,7 @@ static OptFunc* OptFuncs[] = { &DOptRTSJumps, &DOptShift1, &DOptShift2, - &DOptSize1, + /*&DOptSize1,*/ &DOptSize2, &DOptStackOps, &DOptStoreLoad,