This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use __builtin_memmove for trivially copy assignable types


On Thu, Jul 19, 2018 at 10:40 AM Jonathan Wakely <jwakely@redhat.com> wrote:
> On 19/07/18 10:32 -0400, Glen Fernandes wrote:
> >Attached: patch.txt
> >Use __builtin_memmove for trivially copyable types
> >2018-07-19  Glen Joseph Fernandes  <glenjofe@gmail.com>
> >    * include/bits/stl_algobase.h
> >    (__copy_move_a): Used __is_trivially_copyable.
> >    (__copy_move_backward_a): Likewise.
> >Tested x86_64-pc-linux-gnu.
>
> Ah, that was quick :-)
>
> Can we keep the new test you added in the previous patch? It seems
> useful to add anyway.

Affirmative. Attached: patch.txt

Use __builtin_memmove for trivially copyable types

2018-07-19  Glen Joseph Fernandes  <glenjofe@gmail.com>

    * include/bits/stl_algobase.h
    (__copy_move_a): Used __is_trivially_copyable.
    (__copy_move_backward_a): Likewise.
    * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
    New test.

Glen

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]