[Bug c++/80265] __builtin_{memcmp,memchr,strlen} are not usable in constexpr functions
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 23 11:56:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80265
--- Comment #25 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #24)
> Also, the more work that the algorithm does, the more concerned I'd be that
> although the inputs are constant (and so we use the naive for-loop) the
> actual work done in the loop might be too much to inline, so we make a
That should have read "might be too much to inline and/or unroll at
compile-time".
> run-time call to the slow version when we could use memcmp.
More information about the Gcc-bugs
mailing list