[Bug middle-end/78809] Inline strcmp with small constant strings

qing.zhao at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 13 16:14:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809

--- Comment #41 from Qing Zhao <qing.zhao at oracle dot com> ---
> --- Comment #40 from Wilco <wilco at gcc dot gnu.org> ---
> See eg. http://www.iso-9899.info/n1570.html section 7.24.4:
> 
> "The sign of a nonzero value returned by the comparison functions memcmp,
> strcmp, and strncmp is determined by the sign of the difference between the
> values of the first pair of characters (both interpreted as unsigned char) that
> differ in the objects being compared."

Thanks. I will provide a small patch to fix this issue soon.


More information about the Gcc-bugs mailing list