summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2011-02-08 17:46:11 +0100
committerNicolas Schodet2011-02-10 15:07:14 +0100
commit3d267a032f7f4fbaabc0f74cab743e3ce1ffc792 (patch)
tree3160151faa0850175a7cea2a805e35f665282c13
parent2a1345eb66fe616f00f3828cdeeaf7f1fdf89688 (diff)
cesar/lib: force inlining when not optimizing, closes #1103
-rw-r--r--cesar/lib/defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cesar/lib/defs.h b/cesar/lib/defs.h
index 695b8d8832..a55850bf12 100644
--- a/cesar/lib/defs.h
+++ b/cesar/lib/defs.h
@@ -38,4 +38,11 @@
# define warn_unused_result
#endif
+#if ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) \
+ && defined (__NO_INLINE__))
+/* We really really want inlining. GCC 4.4 will not inline if optimization is
+ * disable. */
+# define inline inline __attribute__ ((always_inline))
+#endif
+
#endif /* lib_defs_h */