cvs commit: src/contrib/gcc ChangeLog ansidecl.h builtins.c c-common.c c-common.h c-decl.c c-objc-common.c c-pch.c c-typeck.c cfgcleanup.c combine.c config.gcc config.host config.in configure configure.ac coverage.c cppfiles.c cpphash.h cppinit.c cse.c ...

John Hay jhay at meraka.org.za
Thu Sep 7 00:20:21 PDT 2006


On Wed, Sep 06, 2006 at 11:37:16PM -0700, David O'Brien wrote:
> On Thu, Sep 07, 2006 at 08:36:57AM +0300, Kostik Belousov wrote:
> > On Thu, Sep 07, 2006 at 03:52:59AM +0000, David E. O'Brien wrote:
> > >   Log:
> > >   MFC: GCC 3.4.6
> >
> > You need to MFC sys/crypto/sha2/sha2.c, rev. 1.8.
> > Without it, kernel compile fails:
> > /usr/bsd/src/sys/crypto/sha2/sha2.c: In function `SHA512_Transform':
> > /usr/bsd/src/sys/crypto/sha2/sha2.c:753: warning: 'T2' might be used
> > uninitialized in this function
> > *** Error code 1
> 
> I wonder why I'm not seeing this on my amd64 test machine.

Just a me too. I see it on an i386 box which have options IPSEC and
IPSEC_ESP in the kernel config file:

#######################################
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror  /usr/src/sys/crypto/sha2/sha2.c
/usr/src/sys/crypto/sha2/sha2.c: In function `SHA512_Transform':
/usr/src/sys/crypto/sha2/sha2.c:753: warning: 'T2' might be used uninitialized in this function
*** Error code 1

Stop in /usr/obj/usr/src/sys/SMALL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
#######################################

John
-- 
John Hay -- John.Hay at meraka.csir.co.za / jhay at FreeBSD.org


More information about the cvs-src mailing list