[PATCH] libstdc++: Handle non-integral sizes in std::uninitialized_fill_n

Jonathan Wakely jwakely@redhat.com
Wed Jun 17 20:28:42 GMT 2020


On 17/06/20 21:10 +0100, Jonathan Wakely wrote:
>On 17/06/20 20:55 +0100, Jonathan Wakely wrote:
>>+struct Value
>>+{
>>+  int value = 0x1234;
>>+};
>
>Oops, I modified this test, and it no longer tests the right code.
>This type isn't trivial, so doesn't use the fill_n optimization
>anyway. I'll fix the test.

Here's the fix. Tested x86_64-linux, committed to master.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 4132 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200617/2c25ec23/attachment-0001.bin>


More information about the Gcc-patches mailing list