unix-cpy: Fix adjustment of stack size when leaving exception handler.
Also remove __debug__ from one of the bytecode tests.
This commit is contained in:
parent
28076f3d4b
commit
57ebe1b27d
@ -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,
|
|||||||
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user