Subject: bug in profile.h?
To: None <port-sparc@NetBSD.ORG>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-sparc
Date: 04/06/1996 16:23:51
Ok ... what I though was a compiler bug may actually be a bug in
sparc/include/profile.h...If I back out the following change, it works:
Index: profile.h
===================================================================
RCS file: /a/cvsroot/src/sys/arch/sparc/include/profile.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -c -r1.4 -r1.5
*** profile.h 1995/08/14 15:44:36 1.4
--- profile.h 1996/03/31 22:21:42 1.5
***************
*** 1,4 ****
! /* $NetBSD: profile.h,v 1.4 1995/08/14 15:44:36 pk Exp $ */
/*
* Copyright (c) 1992, 1993
--- 1,4 ----
! /* $NetBSD: profile.h,v 1.5 1996/03/31 22:21:42 pk Exp $ */
/*
* Copyright (c) 1992, 1993
***************
*** 65,71 ****
asm("add %o7, 8, %o1");
#endif
! #define _MCOUNT_DECL static void _mcount
#ifdef _KERNEL
/*
--- 65,72 ----
asm("add %o7, 8, %o1");
#endif
! #define _MCOUNT_DECL void _mcount
! _MCOUNT_DECL __P((unsigned long, unsigned long));
#ifdef _KERNEL
/*
...though, asking Charles about it, his comment was:
"Still not clear whether that's a bug in profile.h or not."
In any case, Paul probably had some reason for making that change, but
for now, at least you can compile your C library...
--------------------------------------------------------------------------
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939