From 43f0ea0a27cb18b84e30ba3e2b7bbac4bd18f64a Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 28 Oct 2006 11:03:03 +0000 Subject: [PATCH] i386/include/profile.h: Fixed a syntax error for the (!__KERNEL && !__GNUCLIKE_ASM) case in rev.1.36. Apparently, this case has never been reached even by lint. Submitted by: stefanf {amd64,i386}/include/profile.h: In case the above case is actually reached, break it properly by providing null support that will fail at link time instead of a stub that gives wrong (null) profiling at runtime. --- sys/amd64/include/profile.h | 6 +----- sys/i386/include/profile.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h index b13920ac6fa..6f66e452aa5 100644 --- a/sys/amd64/include/profile.h +++ b/sys/amd64/include/profile.h @@ -171,11 +171,7 @@ mcount() \ } #endif #else /* !__GNUCLIKE_ASM */ -#define MCOUNT \ -void \ -mcount() \ -{ \ -} +#define MCOUNT #endif /* __GNUCLIKE_ASM */ typedef u_long uintfptr_t; diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h index ba405120ac2..fe036d8a075 100644 --- a/sys/i386/include/profile.h +++ b/sys/i386/include/profile.h @@ -134,11 +134,7 @@ mcount() \ _mcount(frompc, selfpc); \ } #else /* !__GNUCLIKE_ASM */ -void \ -#define MCOUNT \ -mcount() \ -{ \ -} +#define MCOUNT #endif /* __GNUCLIKE_ASM */ typedef u_int uintfptr_t;