Dear Tobias and Janne,

I had preparedand was about to submit the identical patch :-)

On Tue, Jan 17, 2012 at 12:45 PM, Janne Blomqvist
<blomqvist.ja...@gmail.com> wrote:
> On Tue, Jan 17, 2012 at 13:24, Tobias Burnus <bur...@net-b.de> wrote:
>> This patch nullifies (scalar) allocatables after malloc, if (and only if)
>> they contain allocatable components to make sure that no uninitialized
>> memory is accessed.
>>
>> Build and regtested on x86-64-linux.
>> OK for the trunk?
>
> calloc potentially has better performance than malloc+memset, and has
> smaller generated code size too.

On a previous occasion (for class array allocation), I looked for and
was unable to find a __BUILTIN_CALLOC.  If it exists, use that.

Otherwise, OK for trunk.

Thanks to you both.

Paul

Reply via email to