lkml.org 
[lkml]   [2013]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Information] gcc '-O2' may skip some of uninitialized variables warnings (exist almost 10 years).
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


\
 
 \ /
  Last update: 2013-07-10 23:45    [W:0.058 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site