https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117229

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>but why for '-march=gfx908' only, but not '-march=gfx1100' (or nvptx, for 
>example)

Is newlib compiled for each of these multilib? If so it could be
./newlib/libc/string/strstr.c (strstr) in newlib is miscompiled with the
-march=gfx908 option. so you need to debug that.

One option is disable the "Use the Quick-Search algorithm for needle lengths
less than 255" optimization part of strstr.c first and see if that is
miscompiled. since this case the needle is short (less than 30 characters).

Reply via email to