[Bug c/69381] New: Maximum long loop completes immediately
Assignee: unassigned at gcc dot gnu.org Reporter: alexander.gantman at intel dot com Target Milestone: --- The case (taken from U_BOOT code) size_t strnlen(const char * s, size_t count) { const char *sc; for (sc = s; count-- && *sc != '\0'; ++sc)
[Bug target/69381] Maximum long loop completes immediately
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69381 --- Comment #2 from Alexander Gantman --- We also had checked it on x86 and it was ok.The problem is only on ARC. more over it works fine with Arc Compiler. Only GCC generates wrong assembly.