This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Use __builtin_memmove for trivially copy assignable types
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Glen Fernandes <glen dot fernandes at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jonathan Wakely <jwakely at redhat dot com>
- Date: Sat, 16 Jun 2018 14:09:54 +0100
- Subject: Re: [PATCH] Use __builtin_memmove for trivially copy assignable types
- References: <CAHVPgz=BsNLPv-Q=uvbF2L8qw1hG3mhJFpU1uudYURddxpxP-Q@mail.gmail.com>
On Sat, 16 Jun 2018 at 07:01, Glen Fernandes wrote:
> Use __builtin_memmove for trivially copy assignable types
>
I'll review the patch later, just a quick comment for now.
Every use of memcpy, memmove etc. makes it harder to make everything in
<algorithm> constexpr (as we're now required to do). But that's an existing
problem, and probably needs to be solved by teaching the built-ins to
expand inside constant expression evaluation.