[Midnightbsd-cvs] src: sha2.c: gcc 3.4.6 gets confused on this file.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Nov 23 17:39:52 EST 2007


Log Message:
-----------
gcc 3.4.6 gets confused on this file.  Fix T1 and T2 errors building the kernel.

Modified Files:
--------------
    src/sys/crypto/sha2:
        sha2.c (r1.1.1.1 -> r1.2)

-------------- next part --------------
Index: sha2.c
===================================================================
RCS file: /home/cvs/src/sys/crypto/sha2/sha2.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -L sys/crypto/sha2/sha2.c -L sys/crypto/sha2/sha2.c -u -r1.1.1.1 -r1.2
--- sys/crypto/sha2/sha2.c
+++ sys/crypto/sha2/sha2.c
@@ -750,7 +750,7 @@
 
 void SHA512_Transform(SHA512_CTX* context, const sha2_word64* data) {
 	sha2_word64	a, b, c, d, e, f, g, h, s0, s1;
-	sha2_word64	T1, T2, *W512 = (sha2_word64*)context->buffer;
+	sha2_word64	T1 = 0, T2 = 0, *W512 = (sha2_word64*)context->buffer;
 	int		j;
 
 	/* Initialize registers with the prev. intermediate value */


More information about the Midnightbsd-cvs mailing list