This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/58240] GCC optimize strncmp when N=1 incorrectly
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 25 Aug 2013 18:12:08 +0000
- Subject: [Bug c/58240] GCC optimize strncmp when N=1 incorrectly
- Auto-submitted: auto-generated
- References: <bug-58240-4 at http dot gcc dot gnu dot org/bugzilla/>
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.