[PATCH] Silence -O3 -Wall warning in malloc/hooks.c with GCC 7 [BZ #22052]

H.J. Lu hjl.tools@gmail.com
Sun Sep 3 15:48:00 GMT 2017


On Thu, Aug 31, 2017 at 10:01 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 08/31/2017 05:55 AM, H.J. Lu wrote:
>
>> One of malloc change caused:
>>
>> https://sourceware.org/bugzilla/show_bug.cgi?id=22052
>
> (uninit warning with -O3)
>
> I have not yet found a good way to suppress this. I don't know yet why
> GCC loses the information that the maybe_p variable is initialized if
> mem2chunk_check returns a non-null pointer.
>

This patch works for me.   OK for master?


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Silence-O3-Wall-warning-in-malloc-hooks.c-with-GCC-7.patch
Type: text/x-patch
Size: 1468 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170903/4f7cc8ef/attachment.bin>


More information about the Libc-alpha mailing list