Re: [PATCH] correct aligned_alloc argument order (PR 80020)

2017-03-14 Thread Jeff Law
On 03/13/2017 02:44 AM, Richard Biener wrote: On Mon, Mar 13, 2017 at 2:13 AM, Martin Sebor wrote: r243470 decorates standard allocation functions like alloca and malloc with attribute alloc_size. However, in applying the attribute to aligned_alloc I had overlooked that the size argument is th

Re: [PATCH] correct aligned_alloc argument order (PR 80020)

2017-03-13 Thread Richard Biener
On Mon, Mar 13, 2017 at 2:13 AM, Martin Sebor wrote: > r243470 decorates standard allocation functions like alloca > and malloc with attribute alloc_size. However, in applying > the attribute to aligned_alloc I had overlooked that the size > argument is the second one and not the first. That ove

[PATCH] correct aligned_alloc argument order (PR 80020)

2017-03-12 Thread Martin Sebor
r243470 decorates standard allocation functions like alloca and malloc with attribute alloc_size. However, in applying the attribute to aligned_alloc I had overlooked that the size argument is the second one and not the first. That oversight has led to __builtin_object_size() reporting the wrong