summaryrefslogtreecommitdiff
path: root/rts/Inlines.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2008-06-19 10:08:49 +0000
committerSimon Marlow <marlowsd@gmail.com>2008-06-19 10:08:49 +0000
commit24ad9cf0325bb5fedc9f0ca8bd70f78096d8d326 (patch)
tree0842c597aaf44db82f49d43cd9f8f14ee09f16a7 /rts/Inlines.c
parent067ec969bb0bdc4c88582e53b040fa2925cbcc56 (diff)
downloadhaskell-24ad9cf0325bb5fedc9f0ca8bd70f78096d8d326.tar.gz
Fix up inlines for gcc 4.3
gcc 4.3 emits warnings for static inline functions that its heuristics decided not to inline. The workaround is to either mark appropriate functions as "hot" (a new attribute in gcc 4.3), or sometimes to use "extern inline" instead. With this fix I can validate with gcc 4.3 on Fedora 9.
Diffstat (limited to 'rts/Inlines.c')
-rw-r--r--rts/Inlines.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/Inlines.c b/rts/Inlines.c
new file mode 100644
index 0000000000..5d2be70c63
--- /dev/null
+++ b/rts/Inlines.c
@@ -0,0 +1,5 @@
+// all functions declared with EXTERN_INLINE in the header files get
+// compiled for real here, just in case the definition was not inlined
+// at some call site:
+#define KEEP_INLINES
+#include "Rts.h"