Skip to content

Commit

Permalink
py/persistentcode.c: Fix compil optimisation bug.
Browse files Browse the repository at this point in the history
Fix compiler optimisation bug for
gcc 14.2.1 and arm-none-eabi-gcc 14.2.0

Signed-off-by: IhorNehrutsa <[email protected]>

Co-Authored-By: Daniel van de Giessen <[email protected]>
  • Loading branch information
IhorNehrutsa and DvdGiessen committed Jan 21, 2025
1 parent 085cecb commit 2dcdcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/persistentcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static mp_raw_code_t *load_raw_code(mp_reader_t *reader, mp_module_context_t *co

#if MICROPY_EMIT_MACHINE_CODE
} else {
const uint8_t *prelude_ptr;
const uint8_t *prelude_ptr = NULL;
#if MICROPY_EMIT_NATIVE_PRELUDE_SEPARATE_FROM_MACHINE_CODE
if (kind == MP_CODE_NATIVE_PY) {
// Executable code cannot be accessed byte-wise on this architecture, so copy
Expand Down

0 comments on commit 2dcdcaa

Please sign in to comment.