summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-19 01:31:52 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-19 01:31:52 +0000
commit3dec6ecd31f141ea21c8490fce234e6f6edcee6e (patch)
treebe1f6dc93294f307d2423f5c77f2bcd0663833a8
parentb25cf5893f5ad07c2b8eada28250fc9cb8fb7e2a (diff)
Only force inlining when optimizing.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5751 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--osdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep.h b/osdep.h
index 87f024b127..9cdfb2c1ce 100644
--- a/osdep.h
+++ b/osdep.h
@@ -48,8 +48,10 @@
#define always_inline inline
#else
#define always_inline __attribute__ (( always_inline )) __inline__
+#ifdef __OPTIMIZE__
#define inline always_inline
#endif
+#endif
#else
#define inline always_inline
#endif