Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc64/gen delint
details: https://anonhg.NetBSD.org/src/rev/eb575b8e600d
branches: trunk
changeset: 778147:eb575b8e600d
user: martin <martin%NetBSD.org@localhost>
date: Sat Mar 17 21:35:06 2012 +0000
description:
delint
diffstat:
lib/libc/arch/sparc64/gen/flt_rounds.c | 6 +++---
lib/libc/arch/sparc64/gen/fpgetmask.c | 7 ++++---
lib/libc/arch/sparc64/gen/fpgetround.c | 7 ++++---
lib/libc/arch/sparc64/gen/fpgetsticky.c | 7 ++++---
lib/libc/arch/sparc64/gen/fpsetmask.c | 7 ++++---
lib/libc/arch/sparc64/gen/fpsetround.c | 7 ++++---
lib/libc/arch/sparc64/gen/fpsetsticky.c | 7 ++++---
lib/libc/arch/sparc64/gen/longjmp.c | 6 ++++--
lib/libc/arch/sparc64/gen/makecontext.c | 6 ++++--
9 files changed, 35 insertions(+), 25 deletions(-)
diffs (274 lines):
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/flt_rounds.c
--- a/lib/libc/arch/sparc64/gen/flt_rounds.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/flt_rounds.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flt_rounds.c,v 1.4 2005/12/24 23:10:08 perry Exp $ */
+/* $NetBSD: flt_rounds.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: flt_rounds.c,v 1.4 2005/12/24 23:10:08 perry Exp $");
+__RCSID("$NetBSD: flt_rounds.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -23,7 +23,7 @@
int
__flt_rounds()
{
- int x;
+ uint32_t x;
__asm("st %%fsr,%0" : "=m" (*&x));
return map[(x >> 30) & 0x03];
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/fpgetmask.c
--- a/lib/libc/arch/sparc64/gen/fpgetmask.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpgetmask.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetmask.c,v 1.4 2005/12/24 23:10:08 perry Exp $ */
+/* $NetBSD: fpgetmask.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,11 +7,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetmask.c,v 1.4 2005/12/24 23:10:08 perry Exp $");
+__RCSID("$NetBSD: fpgetmask.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#include <ieeefp.h>
#ifdef __weak_alias
@@ -21,7 +22,7 @@
fp_except
fpgetmask()
{
- int x;
+ uint32_t x;
__asm("st %%fsr,%0" : "=m" (*&x));
return (x >> 23) & 0x1f;
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/fpgetround.c
--- a/lib/libc/arch/sparc64/gen/fpgetround.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpgetround.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetround.c,v 1.4 2005/12/24 23:10:08 perry Exp $ */
+/* $NetBSD: fpgetround.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,11 +7,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetround.c,v 1.4 2005/12/24 23:10:08 perry Exp $");
+__RCSID("$NetBSD: fpgetround.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#include <ieeefp.h>
#ifdef __weak_alias
@@ -21,7 +22,7 @@
fp_rnd
fpgetround()
{
- int x;
+ uint32_t x;
__asm("st %%fsr,%0" : "=m" (*&x));
return (x >> 30) & 0x03;
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/fpgetsticky.c
--- a/lib/libc/arch/sparc64/gen/fpgetsticky.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpgetsticky.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetsticky.c,v 1.5 2011/03/06 10:32:47 martin Exp $ */
+/* $NetBSD: fpgetsticky.c,v 1.6 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,11 +7,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetsticky.c,v 1.5 2011/03/06 10:32:47 martin Exp $");
+__RCSID("$NetBSD: fpgetsticky.c,v 1.6 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#include <ieeefp.h>
#ifdef __weak_alias
@@ -25,7 +26,7 @@
fp_except
fpgetsticky()
{
- int x;
+ uint32_t x;
fp_except res;
__asm("st %%fsr,%0" : "=m" (*&x));
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/fpsetmask.c
--- a/lib/libc/arch/sparc64/gen/fpsetmask.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpsetmask.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetmask.c,v 1.5 2011/03/06 10:32:47 martin Exp $ */
+/* $NetBSD: fpsetmask.c,v 1.6 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,11 +7,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetmask.c,v 1.5 2011/03/06 10:32:47 martin Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.6 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#include <ieeefp.h>
#ifdef __weak_alias
@@ -37,7 +38,7 @@
__asm("ld %0,%%fsr" : : "m" (*&new));
- old = (old >> 23) & 0x1f;
+ old = ((uint32_t)old >> 23) & 0x1f;
#ifdef EXCEPTIONS_WITH_SOFTFLOAT
/* update softfloat mask as well */
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/fpsetround.c
--- a/lib/libc/arch/sparc64/gen/fpsetround.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpsetround.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetround.c,v 1.4 2005/12/24 23:10:08 perry Exp $ */
+/* $NetBSD: fpsetround.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,11 +7,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.4 2005/12/24 23:10:08 perry Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#include <ieeefp.h>
#ifdef __weak_alias
@@ -33,5 +34,5 @@
__asm("ld %0,%%fsr" : : "m" (*&new));
- return (old >> 30) & 0x03;
+ return ((uint32_t)old >> 30) & 0x03;
}
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/fpsetsticky.c
--- a/lib/libc/arch/sparc64/gen/fpsetsticky.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpsetsticky.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetsticky.c,v 1.5 2011/03/06 10:32:47 martin Exp $ */
+/* $NetBSD: fpsetsticky.c,v 1.6 2012/03/17 21:35:06 martin Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -7,11 +7,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetsticky.c,v 1.5 2011/03/06 10:32:47 martin Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.6 2012/03/17 21:35:06 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
+#include <sys/types.h>
#include <ieeefp.h>
#ifdef __weak_alias
@@ -37,7 +38,7 @@
__asm("ld %0,%%fsr" : : "m" (*&new));
- old = (old >> 5) & 0x1f;
+ old = ((uint32_t)old >> 5) & 0x1f;
#ifdef EXCEPTIONS_WITH_SOFTFLOAT
old |= _softfloat_float_exception_flags;
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/longjmp.c
--- a/lib/libc/arch/sparc64/gen/longjmp.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/longjmp.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: longjmp.c,v 1.6 2011/04/30 23:39:08 martin Exp $ */
+/* $NetBSD: longjmp.c,v 1.7 2012/03/17 21:35:06 martin Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -54,10 +54,12 @@
* setjmp.S uses hard coded offsets into the jump_buf,
* make sure any changes cause a compile failure here
*/
-__CTASSERT(0x68 == offsetof(__jmp_buf_regs_t,save_mask)+
+#ifndef lint /* XXX this is too much for lint */
+__CTASSERT(0x68 == offsetof(__jmp_buf_regs_t,save_mask) +
sizeof(struct sigcontext));
__CTASSERT(sizeof(sigjmp_buf) >= sizeof(__jmp_buf_regs_t) +
sizeof(struct sigcontext));
+#endif
void
__longjmp14(jmp_buf env, int val)
diff -r 3d6d4d0ededc -r eb575b8e600d lib/libc/arch/sparc64/gen/makecontext.c
--- a/lib/libc/arch/sparc64/gen/makecontext.c Sat Mar 17 21:33:13 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/makecontext.c Sat Mar 17 21:35:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $ */
+/* $NetBSD: makecontext.c,v 1.5 2012/03/17 21:35:06 martin 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.4 2008/04/28 20:22:57 martin Exp $");
+__RCSID("$NetBSD: makecontext.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
#endif
#include <inttypes.h>
@@ -50,6 +50,7 @@
ulong *sp;
va_list ap;
+ /*LINTED*/
sp = (ulong *)((caddr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size);
/* Align on quad-word boundary. */
sp = (ulong *)((ulong)sp & ~0xf);
@@ -71,6 +72,7 @@
sp[14] = (ulong)sp - 2047;
sp[15] = (ulong)_resumecontext - 8;
+ /*LINTED*/
sp = (ulong *)((caddr_t)sp - 2047);
gr[_REG_O6] = (__greg_t)sp;
Home |
Main Index |
Thread Index |
Old Index