Hammer on snapshot cd's
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Tue Jul 15 16:49:17 PDT 2008
Matthew Dillon wrote:
One interesting thing I've found on GCC-4 is that the callgraph analyzer
will cross procedure boundaries for all procedures in that particular
source file. It can actually detect that error is left uninitialized
in this situation:
cc -Wall x.c -c -O2
x.c: In function 'fubar2':
x.c:16: warning: 'error' is used uninitialized in this function
(edit so *valuep is set to 0)
cc -Wall x.c -c -O2
(no warning reported)
So you need to go -O2? -O alone doesn't work? Maybe we should -O2
after the release then :)
cheers
simon
More information about the Users
mailing list