aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/acconfig.h
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2001-06-08 03:53:35 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2001-06-08 03:53:35 +0000
commit5e21803304ad8ecae564e1119508a45cc8705471 (patch)
treeb2cbfba3edc6eab1c6b67a4c3000514516e6ca14 /libstdc++-v3/acconfig.h
parente9a8af10673c70eb43135b6d0366909f147744b1 (diff)
downloadgcc-5e21803304ad8ecae564e1119508a45cc8705471.zip
gcc-5e21803304ad8ecae564e1119508a45cc8705471.tar.gz
gcc-5e21803304ad8ecae564e1119508a45cc8705471.tar.bz2
threads-no.h: Remove file.
* config/threads-no.h: Remove file. * config/threads-posix.h: Remove file. * acconfig.h (_GLIBCPP_USE_THREADS): Remove. (_GLIBCPP_SUPPORTS_WEAK): Add (required by namespace-clean gthr*.h). (_GLIBCPP_HAVE_GTHR_DEFAULT): Likewise. * config.h.in: Regenerate. * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Completely rework to setup and use gthr*.h files. In particular, make gthr.h files namespace-clean in the staging area (they don't have to be for libgcc.a). * aclocal.m4: Regenerate. * configure: Regenerate. * src/Makefile.am (build_headers): Remove bits/c++threads.h and add bits/gthr.h bits/gthr-single.h bits/gthr-default.h. * src/Makefile.in: Regenerate. * include/bits/c++config: Cleanup threading configuration macros. In particular, define __STL_GTHREADS macro which controls... * include/bits/stl_threads.h: ...a brand new gthr.h-based configuration here. * config/c_io_stdio.h: Include staged gthr.h instead of local thread configuration file. Always use __gthread_mutex_t instead of __mutext_type (or int). * include/bits/std_fstream.h: Likewise. * docs/html/17_intro/howto.html: Remove placeholder comment in case this configuration patch didn't make it. Add advice that section only applies if configured with --enable-threads. * docs/html/23_containers/howto.html: Reword to make clear that _PTHREADS is no longer required for any port to be correctly using STL with threads. Add advice that section only applies if configured with --enable-threads. Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca> From-SVN: r42998
Diffstat (limited to 'libstdc++-v3/acconfig.h')
-rw-r--r--libstdc++-v3/acconfig.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/acconfig.h b/libstdc++-v3/acconfig.h
index c81faa0..b6ef409 100644
--- a/libstdc++-v3/acconfig.h
+++ b/libstdc++-v3/acconfig.h
@@ -1,7 +1,10 @@
// acconfig.h symbols and macros for libstdc++ v3 -*- C++ -*-
-// Include support for multiple threads, e.g., in the I/O package.
-#undef _GLIBCPP_USE_THREADS
+// Define if GCC supports weak symbols
+#undef _GLIBCPP_SUPPORTS_WEAK
+
+// Define if gthr-default.h exists (meaning that threading support is enabled)
+#undef HAVE_GTHR_DEFAULT
// Include support for 'long long' and 'unsigned long long'.
#undef _GLIBCPP_USE_LONG_LONG