http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58240
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The testcase is clearly bogus. You are not using the result of either of the strncmp calls, strncmp is a pure function, so it is fine not to call it at all.