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:
parent
93bada478f
commit
b53f45c467
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user