[commit: ghc] master: Don't STATIC_INLINE giveCapabilityToTask (dbcaa8c)

git at git.haskell.org git at git.haskell.org
Wed May 4 12:47:41 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/dbcaa8c2c16aac3908d177601e949ecdd5ed6752/ghc

>---------------------------------------------------------------

commit dbcaa8c2c16aac3908d177601e949ecdd5ed6752
Author: Simon Marlow <smarlow at fb.com>
Date:   Wed May 4 04:29:06 2016 -0700

    Don't STATIC_INLINE giveCapabilityToTask
    
    This causes errors with some versions of gcc (4.4.7 here).


>---------------------------------------------------------------

dbcaa8c2c16aac3908d177601e949ecdd5ed6752
 rts/Capability.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/Capability.c b/rts/Capability.c
index aa77d1b..2f8e152 100644
--- a/rts/Capability.c
+++ b/rts/Capability.c
@@ -428,7 +428,7 @@ void interruptAllCapabilities(void)
  * ------------------------------------------------------------------------- */
 
 #if defined(THREADED_RTS)
-STATIC_INLINE void
+static void
 giveCapabilityToTask (Capability *cap USED_IF_DEBUG, Task *task)
 {
     ASSERT_LOCK_HELD(&cap->lock);



More information about the ghc-commits mailing list