[Bug tree-optimization/83194] Possibly missed simplification with strcmp(s, t) == strcmp(t, s)
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 28 16:37:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83194
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
You definitely cannot assume strcmp (s, t) == -strcmp (t, s), only that
the result has the correct sign in each case.
There should be no need to preserve the exact return value (of the correct
sign) chosen by the implementation in a particular case.
More information about the Gcc-bugs
mailing list