DragonFly users List (threaded) for 2008-07
DragonFly BSD
DragonFly users List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Hammer on snapshot cd's


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 16 Jul 2008 00:35:38 +0100

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]