diff options
author | Simon Marlow <marlowsd@gmail.com> | 2008-06-19 10:08:49 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2008-06-19 10:08:49 +0000 |
commit | 24ad9cf0325bb5fedc9f0ca8bd70f78096d8d326 (patch) | |
tree | 0842c597aaf44db82f49d43cd9f8f14ee09f16a7 /rts/ProfHeap.c | |
parent | 067ec969bb0bdc4c88582e53b040fa2925cbcc56 (diff) | |
download | haskell-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/ProfHeap.c')
-rw-r--r-- | rts/ProfHeap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c index 599b479c8d..9aca5a9fc0 100644 --- a/rts/ProfHeap.c +++ b/rts/ProfHeap.c @@ -182,7 +182,7 @@ static char *type_names[] = { * the band to which this closure's heap space is attributed in the * heap profile. * ------------------------------------------------------------------------- */ -STATIC_INLINE void * +static void * closureIdentity( StgClosure *p ) { switch (RtsFlags.ProfFlags.doHeapProfile) { |