Compiler generates recursive memclr

That was not the solution.

The linking toolchain (gcc) is using newlib, but the __aeabi_memclr from that newlib is not the one that is inserted into the output executable.

Rustc ships with compiler-rt , a LLVM project. This project also contains implementations for __aeabi_memfoo.

So is this a bug in rustc? Tips still appreciated :slight_smile:

-Daniel (Sorry for the monologue)

-> `copy_nonoverlapping` optimizes to a `__aeabi_memcpy` function that recurses infinitely 路 Issue #31544 路 rust-lang/rust 路 GitHub