This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Silence -O3 -Wall warning in malloc/hooks.c with GCC 7 [BZ #22052]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: "Carlos O'Donell" <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sun, 3 Sep 2017 09:29:57 -0700
- Subject: Re: [PATCH] Silence -O3 -Wall warning in malloc/hooks.c with GCC 7 [BZ #22052]
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOqvpS_HH6_k=rPuE3qx6oifjL8_WKzTVFhK9eZs84NvFA@mail.gmail.com>
On Sun, Sep 3, 2017 at 8:48 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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?
>
FYI, I opened a GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82090
--
H.J.