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

M Welinder <terra at gnome dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |terra at gnome dot org

--- Comment #10 from M Welinder <terra at gnome dot org> ---
mystrlen and strlen are not equivalent, so gcc is wrong in turning the former
into a call of the latter.

Specifically: mystrlen preserves errno, strlen need not do that.  (C99 section
7.5 item 3.)

(Repeating the comment from over in bug 56888.)

Reply via email to