From: Larry Finger <Larry.Finger@lwfinger.net>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Question on compiler warning
Date: Tue, 31 Dec 2013 13:28:36 -0600 [thread overview]
Message-ID: <52C31AE4.1050501@lwfinger.net> (raw)
In-Reply-To: <52C2A2E5.3020100@ilande.co.uk>
On 12/31/2013 04:56 AM, Mark Cave-Ayland wrote:
> Hi Larry,
>
> Could it be that you don't see the issue the locally because you've got
> different compiler optimisation settings? I've seen a similar bug recently on
> another project where the "may be used uninitialized" warning appears with -O0
> and -O1 but magically disappears with the default -O2 setting (presumably
> because the optimiser performs some kind of inlining/reordering that makes the
> issue go away).
Mark,
It is possible. Certainly, a higher optimization level will force the compiler
to do a better job of flow analysis. I am using -O2, which is the standard in
the kernel makefile. I would expect that Geert is also using the same lever, but
perhaps not.
Larry
next prev parent reply other threads:[~2013-12-31 19:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-31 1:24 Question on compiler warning Larry Finger
2013-12-31 9:36 ` Geert Uytterhoeven
2013-12-31 10:56 ` Mark Cave-Ayland
2013-12-31 19:28 ` Larry Finger [this message]
2014-01-02 21:56 ` David Rientjes
2014-01-02 22:14 ` Larry Finger
2014-01-02 23:40 ` David Rientjes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52C31AE4.1050501@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mark.cave-ayland@ilande.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox