All of lore.kernel.org
 help / color / mirror / Atom feed
* [Information] gcc '-O2' may skip some of uninitialized variables warnings (exist almost 10 years).
@ 2013-07-10  1:04 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-07-10  1:04 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-10  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-10  1:04 [Information] gcc '-O2' may skip some of uninitialized variables warnings (exist almost 10 years) Chen Gang

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.