https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111165
--- Comment #25 from Thorsten Glaser <tg at mirbsd dot org> --- Good as I can tell, __valgrind is always 1, at least when looking at it in gdb… I even had to add -ffreestanding because it otherwise triggered an optimisation to transform the loop into a call to strlen on arm64.