From 80c9912a423fbc529a01ca31ab3dd1a5fdfdf0fc Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Mon, 25 Mar 1996 22:11:07 +0000 Subject: Protect internal mcount symbol from lint(1) Use __asm, not asm --- lib/libc/gmon/gmon.c | 2 +- lib/libc/gmon/mcount.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc/gmon') diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index 0ad73fa546f..45b14fd5497 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -52,7 +52,7 @@ static char rcsid[] = "$NetBSD: gmon.c,v 1.5 1995/11/21 22:23:47 jtc Exp $"; #include #include -extern char *minbrk asm ("minbrk"); +extern char *minbrk __asm ("minbrk"); struct gmonparam _gmonparam = { GMON_PROF_OFF }; diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index 6ec117b3f14..fb8f1ac3f2b 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -177,8 +177,10 @@ overflow: return; } +#ifndef lint /* * Actual definition of mcount function. Defined in , * which is included by . */ MCOUNT +#endif -- cgit v1.2.3