summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-05-26 16:36:26 +0200
committerThomas Schwinge <thomas@codesourcery.com>2013-05-26 16:36:26 +0200
commite4301ffc1f3aa931730d9b967332cf2df5881974 (patch)
tree7a2b4a3e146bf9ceac468f8005e06c8efe180640 /misc
parentff2e0254fcc9eec77cfcd87b16dbf5ed2e3e5f57 (diff)
parent9a079e270a9bec7e1fe28aeda63e07c1bb808d44 (diff)
Merge commit 'refs/top-bases/t/pie-sbrk' into t/pie-sbrk
Diffstat (limited to 'misc')
-rw-r--r--misc/sys/cdefs.h14
-rw-r--r--misc/sys/param.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index f5f18e914c..4aded9bbbd 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -318,10 +318,12 @@
# define __attribute_artificial__ /* Ignore */
#endif
-/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
- inline semantics, unless -fgnu89-inline is used. */
-#if (!defined __cplusplus || __GNUC_PREREQ (4,3)) && defined __GNUC__
-# if defined __GNUC_STDC_INLINE__ || defined __cplusplus
+#ifdef __GNUC__
+/* One of these will be defined if the __gnu_inline__ attribute is
+ available. In C++, __GNUC_GNU_INLINE__ will be defined even though
+ __inline does not use the GNU inlining rules. If neither macro is
+ defined, this version of GCC only supports GNU inline semantics. */
+# if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
# define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
# define __extern_always_inline \
extern __always_inline __attribute__ ((__gnu_inline__))
@@ -329,10 +331,6 @@
# define __extern_inline extern __inline
# define __extern_always_inline extern __always_inline
# endif
-#elif defined __GNUC__ /* C++ and GCC <4.3. */
-# define __extern_inline extern __inline
-# define __extern_always_inline \
- extern __always_inline
#else /* Not GCC. */
# define __extern_inline /* Ignore */
# define __extern_always_inline /* Ignore */
diff --git a/misc/sys/param.h b/misc/sys/param.h
index 5e6353d1e8..d257ec7576 100644
--- a/misc/sys/param.h
+++ b/misc/sys/param.h
@@ -71,7 +71,9 @@
/* Unit of `st_blocks'. */
-#define DEV_BSIZE 512
+#ifndef DEV_BSIZE
+# define DEV_BSIZE 512
+#endif
/* Bit map related macros. */