Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax Work around gcc 2.95.3's inability to detec...



details:   https://anonhg.NetBSD.org/src/rev/bd1aed00e6ff
branches:  trunk
changeset: 554972:bd1aed00e6ff
user:      he <he%NetBSD.org@localhost>
date:      Thu Nov 06 00:30:13 2003 +0000

description:
Work around gcc 2.95.3's inability to detect that 'ck' will be set
in rounds 129 and 130 through the loop.  Will be noted in doc/HACKS,
and should be reviewed when gcc 3.3.2 is ready for vax.

diffstat:

 sys/arch/vax/vax/ctu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e5b44b5da140 -r bd1aed00e6ff sys/arch/vax/vax/ctu.c
--- a/sys/arch/vax/vax/ctu.c    Thu Nov 06 00:25:50 2003 +0000
+++ b/sys/arch/vax/vax/ctu.c    Thu Nov 06 00:30:13 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ctu.c,v 1.19 2003/07/15 02:15:03 lukem Exp $ */
+/*     $NetBSD: ctu.c,v 1.20 2003/11/06 00:30:13 he Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ctu.c,v 1.19 2003/07/15 02:15:03 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ctu.c,v 1.20 2003/11/06 00:30:13 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -267,7 +267,7 @@
        int status = mfpr(PR_CSRD);
        struct  buf *bp;
        int i, c, tck;
-       unsigned short ck;
+       unsigned short ck = 0;
 
        bp = BUFQ_PEEK(&tu_sc.sc_bufq);
        switch (tu_sc.sc_state) {



Home | Main Index | Thread Index | Old Index