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.
This commit is contained in:
Bruce Evans 2006-10-28 11:03:03 +00:00
parent 955d762aca
commit 43f0ea0a27
2 changed files with 2 additions and 10 deletions

View File

@ -171,11 +171,7 @@ mcount() \
}
#endif
#else /* !__GNUCLIKE_ASM */
#define MCOUNT \
void \
mcount() \
{ \
}
#define MCOUNT
#endif /* __GNUCLIKE_ASM */
typedef u_long uintfptr_t;

View File

@ -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;