summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2005-10-10 17:59:37 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2005-10-10 17:59:37 (GMT)
commit876e0a64558dd715ec43f41dbc8ae7c7438e96ed (patch)
tree2875131a5be0128fca9ed2b6d414b8295dd37fee /generic/tclCompile.c
parent2e093041b6542fddc7628829bea7e3ce6aad2bbd (diff)
downloadtcl-msofer_wcodes_branch.zip
tcl-msofer_wcodes_branch.tar.gz
tcl-msofer_wcodes_branch.tar.bz2
* generic/tclExecute.c: fixing an error in INST_LNOT and msofer_wcodes_branch
INST_LYES. Interestingly, the error only appeared in debug builds, but I can't figure out how it matters. * generic/tclCompile.c (OptReduceCount): improved panic message. *** NOTE: disabling the optimiser causes a panic in normal builds, but is ok in debug builds. Something is very fishy.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index ad1f243..1b0ad37 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.81.2.25 2005/06/13 01:45:45 msofer Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.81.2.26 2005/10/10 17:59:38 msofer Exp $
*/
#include "tclInt.h"
@@ -3711,6 +3711,7 @@ OptimiseByteCodeTmp(codePtr)
continue;
}
}
+
/*
* If some range became unreachable, remove the extra reference to the
* break and continue targets.
@@ -3847,6 +3848,9 @@ OptReduceCount(codePtr, pos, auxCount)
*/
if (auxCount[pos] < 0) {
+#ifdef TCL_COMPILE_DEBUG
+ TclPrintInstruction(codePtr, codeStart+pos);
+#endif
Tcl_Panic("Reducing auxCount of unreachable code.");
}