mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 23:52:49 +00:00
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
63eda93d1a
commit
ddc534916d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204041
@ -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