Re: [PATCH] mention referenced object in more -Wstringop-overflow instances

2019-10-03 Thread Jeff Law
On 10/2/19 5:15 PM, Martin Sebor wrote: > The attached patch adds an optional argument to > compute_builtin_object_size to let it return the DECL of the object > whose size it's called to compute.  This lets -Wstringop-overflow > point to the object in more instances of the warning than it does > n

[PATCH] mention referenced object in more -Wstringop-overflow instances

2019-10-02 Thread Martin Sebor
The attached patch adds an optional argument to compute_builtin_object_size to let it return the DECL of the object whose size it's called to compute. This lets -Wstringop-overflow point to the object in more instances of the warning than it does now (but by no means all of them -- more work is n