From 7a1a679ecbfdeaec3e11076873829f0e0cd581d9 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 3 Feb 1998 20:32:38 +0000 Subject: [PATCH] Ifdefed use of a GNU feature. --- sys/amd64/include/profile.h | 4 +++- sys/i386/include/profile.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h index 0e6601e200ea..44da274435ff 100644 --- a/sys/amd64/include/profile.h +++ b/sys/amd64/include/profile.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)profile.h 8.1 (Berkeley) 6/11/93 - * $Id: profile.h,v 1.12 1997/08/30 08:07:50 fsmp Exp $ + * $Id: profile.h,v 1.13 1997/12/15 02:18:30 tegge Exp $ */ #ifndef _MACHINE_PROFILE_H_ @@ -133,7 +133,9 @@ void stopguprof __P((struct gmonparam *p)); #include __BEGIN_DECLS +#ifdef __GNUC__ void mcount __P((void)) __asm("mcount"); +#endif static void _mcount __P((fptrint_t frompc, fptrint_t selfpc)); __END_DECLS diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h index 0e6601e200ea..44da274435ff 100644 --- a/sys/i386/include/profile.h +++ b/sys/i386/include/profile.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)profile.h 8.1 (Berkeley) 6/11/93 - * $Id: profile.h,v 1.12 1997/08/30 08:07:50 fsmp Exp $ + * $Id: profile.h,v 1.13 1997/12/15 02:18:30 tegge Exp $ */ #ifndef _MACHINE_PROFILE_H_ @@ -133,7 +133,9 @@ void stopguprof __P((struct gmonparam *p)); #include __BEGIN_DECLS +#ifdef __GNUC__ void mcount __P((void)) __asm("mcount"); +#endif static void _mcount __P((fptrint_t frompc, fptrint_t selfpc)); __END_DECLS