This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/58240] GCC optimize strncmp when N=1 incorrectly


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]