aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2009-01-04 23:02:02 +0000
committerBen Elliston <bje@gcc.gnu.org>2009-01-05 10:02:02 +1100
commitf958e3caa5a1d72b44f5da590624ec4fd86168ec (patch)
tree99400288920c663de3dcc3cca9f499ffb1972fcb /libstdc++-v3
parent0009b473a0fe5c76e303f1cc34251df0cba2d478 (diff)
downloadgcc-f958e3caa5a1d72b44f5da590624ec4fd86168ec.zip
gcc-f958e3caa5a1d72b44f5da590624ec4fd86168ec.tar.gz
gcc-f958e3caa5a1d72b44f5da590624ec4fd86168ec.tar.bz2
configure.ac: Exchange the order of GLIBCXX_ENABLE_THREADS and GLIBCXX_ENABLE_ATOMIC_BUILTINS...
* configure.ac: Exchange the order of GLIBCXX_ENABLE_THREADS and GLIBCXX_ENABLE_ATOMIC_BUILTINS macro invocations. * configure: Regenerate. From-SVN: r143062
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rwxr-xr-xlibstdc++-v3/configure60
-rw-r--r--libstdc++-v3/configure.ac2
3 files changed, 37 insertions, 31 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 94f3bd7..77014c1 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-05 Ben Elliston <bje@au.ibm.com>
+
+ * configure.ac: Exchange the order of GLIBCXX_ENABLE_THREADS and
+ GLIBCXX_ENABLE_ATOMIC_BUILTINS macro invocations.
+ * configure: Regenerate.
+
2009-01-04 Richard Guenther <rguenther@suse.de>
PR libstdc++/38720
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 549acb4..c61affc 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -14722,6 +14722,32 @@ echo "${ECHO_T}$enable_libstdcxx_pch" >&6
+ echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
+echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
+ target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
+ echo "$as_me:$LINENO: result: $target_thread_file" >&5
+echo "${ECHO_T}$target_thread_file" >&6
+
+ if test $target_thread_file != single; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_GTHR_DEFAULT 1
+_ACEOF
+
+ fi
+
+ glibcxx_thread_h=gthr-$target_thread_file.h
+
+ gthread_file=${toplevel_srcdir}/gcc/${glibcxx_thread_h}
+ if grep __GTHREADS $gthread_file >/dev/null 2>&1 ; then
+ enable_thread=yes
+ else
+ enable_thread=no
+ fi
+
+
+
+
ac_ext=cc
@@ -14739,7 +14765,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
# unnecessary for a builtins test.
cat > conftest.$ac_ext << EOF
-#line 14742 "configure"
+#line 14768 "configure"
int main()
{
typedef bool atomic_type;
@@ -14778,7 +14804,7 @@ echo "${ECHO_T}$enable_atomic_builtinsb" >&6
rm -f conftest*
cat > conftest.$ac_ext << EOF
-#line 14781 "configure"
+#line 14807 "configure"
int main()
{
typedef short atomic_type;
@@ -14817,7 +14843,7 @@ echo "${ECHO_T}$enable_atomic_builtinss" >&6
rm -f conftest*
cat > conftest.$ac_ext << EOF
-#line 14820 "configure"
+#line 14846 "configure"
int main()
{
// NB: _Atomic_word not necessarily int.
@@ -14857,7 +14883,7 @@ echo "${ECHO_T}$enable_atomic_builtinsi" >&6
rm -f conftest*
cat > conftest.$ac_ext << EOF
-#line 14860 "configure"
+#line 14886 "configure"
int main()
{
typedef long long atomic_type;
@@ -14929,32 +14955,6 @@ echo "$as_me: WARNING: Performance of certain classes will degrade as a result."
- echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
-echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
- target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
- echo "$as_me:$LINENO: result: $target_thread_file" >&5
-echo "${ECHO_T}$target_thread_file" >&6
-
- if test $target_thread_file != single; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_GTHR_DEFAULT 1
-_ACEOF
-
- fi
-
- glibcxx_thread_h=gthr-$target_thread_file.h
-
- gthread_file=${toplevel_srcdir}/gcc/${glibcxx_thread_h}
- if grep __GTHREADS $gthread_file >/dev/null 2>&1 ; then
- enable_thread=yes
- else
- enable_thread=no
- fi
-
-
-
-
# Checks for compiler support that doesn't require linking.
# All these tests are for C++; save the language and the compiler flags.
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index 12dc1d5..7fc802e 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -97,8 +97,8 @@ GLIBCXX_ENABLE_HOSTED
# Enable compiler support that doesn't require linking.
GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
GLIBCXX_ENABLE_PCH($is_hosted)
-GLIBCXX_ENABLE_ATOMIC_BUILTINS
GLIBCXX_ENABLE_THREADS
+GLIBCXX_ENABLE_ATOMIC_BUILTINS
# Checks for compiler support that doesn't require linking.
GLIBCXX_CHECK_COMPILER_FEATURES