News for hackers. Stuff that matters.
Re:Clang emits memcpy for std::swap, which can introduce und... by anon1385 on Monday April 25, 2016 @05:15AM (#11563195)
>btw. I'm pretty sure I heard that glibc broke this behavior sometime recently.

You are perhaps thinking of this: https://sourceware.org/bugzilla/show_bug.cgi?id=12518

I'm not sure if that change broke glibc memcpy for identical arguments or just ones that were different but overlapped.

This quote suggests that Drepper wouldn't have had any problem breaking things that passed identical arguments to memcpy:

>The existence of code written by people who should never have been allowed to touch a keyboard cannot be allowed to prevent a correct implementation.

There are no comments on this comment yet.