[commit: ghc] master: Fix __thread detection (#8722) (298a25b)

git at git.haskell.org git at git.haskell.org
Fri Feb 7 04:59:25 UTC 2014


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

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

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

commit 298a25bdfd02bb591fde2dd0590bd7af81a91b94
Author: Peter Trommler <ptrommler at acm.org>
Date:   Thu Feb 6 22:57:34 2014 -0600

    Fix __thread detection (#8722)
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

298a25bdfd02bb591fde2dd0590bd7af81a91b94
 configure.ac |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 33d4e7c..e7fbc7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -867,11 +867,11 @@ AC_COMPILE_IFELSE(
   [ AC_LANG_SOURCE([[__thread int tester = 0;]]) ],
   [
    AC_MSG_RESULT(yes)
-   AC_DEFINE([CC_SUPPORTS_TLS],[0],[Define to 1 if __thread is supported])
+   AC_DEFINE([CC_SUPPORTS_TLS],[1],[Define to 1 if __thread is supported])
   ],
   [
    AC_MSG_RESULT(no)
-   AC_DEFINE([CC_SUPPORTS_TLS],[1],[Define to 1 if __thread is supported])
+   AC_DEFINE([CC_SUPPORTS_TLS],[0],[Define to 1 if __thread is supported])
   ])
 
 



More information about the ghc-commits mailing list