[RFC PATCH] Add alloc_size attribute to the default operator new and operator new[]

Richard Guenther richard.guenther@gmail.com
Wed Aug 3 13:55:00 GMT 2011


On Wed, Aug 3, 2011 at 3:06 PM, Paolo Bonzini <bonzini@gnu.org> wrote:
> On 08/03/2011 02:46 PM, Richard Guenther wrote:
>>
>> If that's reasonable then adding the malloc attribute should be, too.
>
> Making aliasing stricter for -D_FORTIFY_SOURCE=2 sounds wrong though.

The patch unconditionally adds malloc_size.

Richard.



More information about the Gcc-patches mailing list