diff options
author | bde <bde@FreeBSD.org> | 2006-10-28 11:03:03 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-28 11:03:03 +0000 |
commit | 2952a2afab86f9010f6527367882d7427a984bad (patch) | |
tree | 58e11afc44e5ee3e84ab6390b8cde342d1b80e54 | |
parent | 963ac453db05c1bc7038ec526ac5fc55192d4171 (diff) | |
download | FreeBSD-src-2952a2afab86f9010f6527367882d7427a984bad.zip FreeBSD-src-2952a2afab86f9010f6527367882d7427a984bad.tar.gz |
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.
-rw-r--r-- | sys/amd64/include/profile.h | 6 | ||||
-rw-r--r-- | 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 b13920a..6f66e45 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 ba40512..fe036d8 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; |