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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #2)
> But __builtin_strlen *does* get optimized when the input is a string
> literal.

But so does strlen, because GCC knows about it. That's my point.

Reply via email to