All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen@asianux.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [Information] gcc '-O2' may skip some of uninitialized variables warnings (exist almost 10 years).
Date: Wed, 10 Jul 2013 09:04:54 +0800	[thread overview]
Message-ID: <51DCB336.5040405@asianux.com> (raw)

Hell All:

gcc '-O2' may skip some of uninitialized variables warnings which may be
real bugs. This is gcc issue which keep existence almost 10 years, and
now it seems can not be fixed in recent years.

Please reference: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501, for
kernel special case, also can reference:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57856

If we want to see the warnings (for finding bugs), "EXTRA_CFLAGS=-W"
seems not enough (it use '-O2'), I recommend also to try '-O0' (although
it may also print many spurious warnings)


Thanks.
-- 
Chen Gang

                 reply	other threads:[~2013-07-10  1:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=51DCB336.5040405@asianux.com \
    --to=gang.chen@asianux.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.