PR other/40784
authorJoseph Myers <joseph@codesourcery.com>
Fri, 17 Jul 2009 15:11:33 +0000 (15:11 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 17 Jul 2009 15:11:33 +0000 (15:11 +0000)
* tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to
AC_LINK_IFELSE.

config/ChangeLog
config/tls.m4

index 9b8cd93be8454281d2e4790e1c7959297c981bf6..96d5f7505ac2e453e214c42a771ff476ed15426d 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-17  Joseph Myers  <joseph@codesourcery.com>
+
+       PR other/40784
+       * tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to
+       AC_LINK_IFELSE.
+
 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
 
        * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
index 4648a9098806b8b6b60a7654762e656c18b5ec0a..0ae60460bab540ed302bfa63b41df32158d40a2d 100644 (file)
@@ -79,9 +79,9 @@ AC_DEFUN([GCC_CHECK_TLS], [
          CFLAGS="-fPIC $CFLAGS"
          dnl If -shared works, test if TLS works in a shared library.
          AC_LINK_IFELSE([int f() { return 0; }],
-           AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }],
+           [AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }],
              [gcc_cv_have_tls=yes],
-             [gcc_cv_have_tls=no]),
+             [gcc_cv_have_tls=no])],
            [gcc_cv_have_tls=yes])
          CFLAGS="$chktls_save_CFLAGS"
          LDFLAGS="$chktls_save_LDFLAGS"], [gcc_cv_have_tls=no])