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: Mon, 4 Sep 2017 13:29:56 -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> <d5004683-9067-62e6-55e7-bde1b974829d@redhat.com>
On Mon, Sep 4, 2017 at 1:33 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 09/03/2017 05:48 PM, H.J. Lu wrote:
>> + unsigned char *magic_p = NULL;
>
> I think the current practice is to use <libc-diag.h> to suppress the
> warning.
Is there a usage example for this warning?
> Is the issue that the memory clobber on the inline asm makes GCC not to
> see the conditional initialization?
Possible.
--
H.J.