Allow the pmap code to be built with GCC from FreeBSD 7 again.

This patch basically gives us the best of both worlds. Instead of
forcing the compiler to emulate GNU-style inline semantics even though
we're using ISO C99, it will only use GNU-style inlining when the
compiler is configured that way (__GNUC_GNU_INLINE__).

Tested by:	jhb
This commit is contained in:
Ed Schouten 2010-02-18 14:28:38 +00:00
parent 63eda93d1a
commit ddc534916d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204041
3 changed files with 12 additions and 0 deletions

View File

@ -151,7 +151,11 @@ __FBSDID("$FreeBSD$");
#endif
#if !defined(DIAGNOSTIC)
#ifdef __GNUC_GNU_INLINE__
#define PMAP_INLINE inline
#else
#define PMAP_INLINE extern inline
#endif
#else
#define PMAP_INLINE
#endif

View File

@ -162,7 +162,11 @@ __FBSDID("$FreeBSD$");
#endif
#if !defined(DIAGNOSTIC)
#ifdef __GNUC_GNU_INLINE__
#define PMAP_INLINE inline
#else
#define PMAP_INLINE extern inline
#endif
#else
#define PMAP_INLINE
#endif

View File

@ -173,7 +173,11 @@ __FBSDID("$FreeBSD$");
#endif
#if !defined(PMAP_DIAGNOSTIC)
#ifdef __GNUC_GNU_INLINE__
#define PMAP_INLINE inline
#else
#define PMAP_INLINE extern inline
#endif
#else
#define PMAP_INLINE
#endif