Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/hppa/gen Shut lint up about dp.



details:   https://anonhg.NetBSD.org/src/rev/cd80bcd378ad
branches:  trunk
changeset: 778326:cd80bcd378ad
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 22 12:31:32 2012 +0000

description:
Shut lint up about dp.

>From he@

diffstat:

 lib/libc/arch/hppa/gen/__longjmp14.c |  3 ++-
 lib/libc/arch/hppa/gen/makecontext.c |  5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 0c1ce010b62b -r cd80bcd378ad lib/libc/arch/hppa/gen/__longjmp14.c
--- a/lib/libc/arch/hppa/gen/__longjmp14.c      Thu Mar 22 09:32:04 2012 +0000
+++ b/lib/libc/arch/hppa/gen/__longjmp14.c      Thu Mar 22 12:31:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __longjmp14.c,v 1.4 2008/04/28 20:22:55 martin Exp $   */
+/*     $NetBSD: __longjmp14.c,v 1.5 2012/03/22 12:31:32 skrll Exp $    */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -81,6 +81,7 @@
        uc.uc_mcontext.__gregs[18] = regs[18];
 
        /* Preserve the current value of DP */
+       /* LINTED dp is r27, so is "initialized" */
        uc.uc_mcontext.__gregs[27] = dp;
 
        /* Set the desired return value. */
diff -r 0c1ce010b62b -r cd80bcd378ad lib/libc/arch/hppa/gen/makecontext.c
--- a/lib/libc/arch/hppa/gen/makecontext.c      Thu Mar 22 09:32:04 2012 +0000
+++ b/lib/libc/arch/hppa/gen/makecontext.c      Thu Mar 22 12:31:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makecontext.c,v 1.5 2011/09/20 08:42:29 joerg Exp $    */
+/*     $NetBSD: makecontext.c,v 1.6 2012/03/22 12:31:32 skrll Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: makecontext.c,v 1.5 2011/09/20 08:42:29 joerg Exp $");
+__RCSID("$NetBSD: makecontext.c,v 1.6 2012/03/22 12:31:32 skrll Exp $");
 #endif
 
 #include <inttypes.h>
@@ -81,6 +81,7 @@
        }
        gr[_REG_PCOQH] = fp | HPPA_PC_PRIV_USER;
        gr[_REG_PCOQT] = (fp + 4) | HPPA_PC_PRIV_USER;
+       /* LINTED dp is reg27, ref. above, so initialized */
        gr[_REG_DP] = dp;
 
        /* Construct argument list. */



Home | Main Index | Thread Index | Old Index