Re: [PATCH] Portable flexible arrays instead of r12255

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Mon, 15 Oct 2012 18:26:12 -0600

On 10/15/2012 03:48 PM, Amos Jeffries wrote:
> On 16.10.2012 08:56, Alex Rousskov wrote:
>> Hello,
>>
>> Trunk r12255 made Clang compiler happy by removing flexible nonPod[]
>> arrays. Unfortunately, it also moved shared memory items into local
>> memory (in some cases uninitialized). See the "[PATCH] Improve CLANG
>> support" thread.
>>
>> The attached patch provides a Clang-friendly flexible array replacement
>> while keeping items in the shared memory (and using placement-new
>> initialization). The code may have become even less readable, but
>> hopefully more portable.
>>
>> The changes passed build farm tests (except a couple of nodes with
>> Jenkins-related build problems unrelated to the code).
>>
>>
>> Thank you,
>>
>> Alex.
>
> +1. Looks good, please apply soonest.

Committed to trunk as r12396.

Thank you,

Alex.
Received on Tue Oct 16 2012 - 00:26:18 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 16 2012 - 12:00:06 MDT