Commit 57ebe1b2 authored by Damien George's avatar Damien George
Browse files

unix-cpy: Fix adjustment of stack size when leaving exception handler.

Also remove __debug__ from one of the bytecode tests.
parent 28076f3d
...@@ -782,7 +782,7 @@ STATIC void emit_cpy_start_except_handler(emit_t *emit) { ...@@ -782,7 +782,7 @@ STATIC void emit_cpy_start_except_handler(emit_t *emit) {
} }
STATIC void emit_cpy_end_except_handler(emit_t *emit) { STATIC void emit_cpy_end_except_handler(emit_t *emit) {
emit_cpy_adjust_stack_size(emit, -5); // stack adjust emit_cpy_adjust_stack_size(emit, -2); // stack adjust
} }
STATIC void emit_cpy_load_const_verbatim_strn(emit_t *emit, const char *str, mp_uint_t len) { STATIC void emit_cpy_load_const_verbatim_strn(emit_t *emit, const char *str, mp_uint_t len) {
......
...@@ -88,7 +88,7 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=False, ...@@ -88,7 +88,7 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=False,
return success return success
if os.path.isfile(fullname): if os.path.isfile(fullname):
if legacy: if legacy:
cfile = fullname + ('c' if __debug__ else 'o') cfile = fullname + 'c'
else: else:
if optimize >= 0: if optimize >= 0:
cfile = imp.cache_from_source(fullname, cfile = imp.cache_from_source(fullname,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment