diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-25 17:04:16 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-25 17:04:16 +0000 |
commit | 7b8d306d18986cd98808c9ed5d3a696a186dc213 (patch) | |
tree | bca5a11be904a41f7a02366de822a87a8d289f46 /boehm-gc/configure.ac | |
parent | 6535fbf5b543a375a05ec51bfe15c9af69bf3a44 (diff) | |
download | gcc-7b8d306d18986cd98808c9ed5d3a696a186dc213.tar.gz |
PR boehm-gc/11412
* configure.ac (THREADCFLAGS): New variable.
Use it instead of INCLUDES, AM_CPPFLAGS.
<*-*-kfreebsd*-gnu> (THREADDLLIBS): Rename to THREADLIBS.
Remove DG/UX support.
(AC_CONFIG_FILES): Add testsuite/Makefile.
* Makefile.am (AUTOMAKE_OPTIONS): Use foreign instead of cygnus.
(SUBDIRS): Add testsuite.
(libgcjgc_la_LIBADD): Remove $(UNWINDLIBS).
(AM_CXXFLAGS): Add $(THREADCFLAGS).
(AM_CFLAGS): Likewise.
Remove TESTS related variables.
* Makefile.in: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.am: New file.
* testsuite/Makefile.in: New file.
* testsuite/lib/boehm-gc.exp: New file.
* testsuite/config/default.exp: New file.
* testsuite/boehm-gc.c/c.exp: New file.
* testsuite/boehm-gc.lib/lib.exp: New file.
* tests/test.c: Move ...
* testsuite/boehm-gc.c/gctest.c: ... here.
* tests/leak_test.c, tests/middle.c, tests/thread_leak_test.c,
tests/trace_test.c: Move ...
* testsuite/boehm-gc.c: ... here.
* testsuite/boehm-gc.c/trace_test.c: Skip everywhere.
* tests/staticrootslib.c, tests/staticrootstest.c: Move ...
* testsuite/boehm-gc.lib: ... here.
* testsuite/boehm-gc.lib/staticrootstest.c: Use dg-add-shlib
staticrootslib.c.
* tests/test_cpp.cc: Move ...
* testsuite/boehm-gc.c++: ... here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171514 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/configure.ac')
-rw-r--r-- | boehm-gc/configure.ac | 49 |
1 files changed, 9 insertions, 40 deletions
diff --git a/boehm-gc/configure.ac b/boehm-gc/configure.ac index 696b961a94f..88f5b8063e7 100644 --- a/boehm-gc/configure.ac +++ b/boehm-gc/configure.ac @@ -123,6 +123,7 @@ AC_ARG_ENABLE(parallel-mark, ) AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include" +THREADCFLAGS= THREADLIBS= case "$THREADS" in no | none | single) @@ -163,21 +164,21 @@ case "$THREADS" in *-*-hpux10*) AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.") ;; - *-*-kfreebsd*-gnu) + *-*-kfreebsd*-gnu) AC_DEFINE(GC_FREEBSD_THREADS) - INCLUDES="$INCLUDES -pthread" - THREADDLLIBS=-pthread + THREADCFLAGS=-pthread + THREADLIBS=-pthread AC_DEFINE(_REENTRANT) if test "${enable_parallel_mark}" = yes; then AC_DEFINE(PARALLEL_MARK) fi AC_DEFINE(THREAD_LOCAL_ALLOC) AC_DEFINE(USE_COMPILER_TLS, 1,[use tls for boehm]) - ;; + ;; *-*-freebsd*) AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.") AC_DEFINE(GC_FREEBSD_THREADS,1,[support FreeBSD threads]) - AM_CPPFLAGS="$AM_CPPFLAGS -pthread" + THREADCFLAGS=-pthread THREADLIBS=-pthread ;; *-*-solaris2.8*) @@ -218,7 +219,7 @@ case "$THREADS" in # May want to enable it in other cases, too. # Measurements havent yet been done. fi - AM_CPPFLAGS="$AM_CPPFLAGS -pthread" + THREADCFLAGS=-pthread THREADLIBS="-lpthread -lrt" ;; esac @@ -228,20 +229,6 @@ case "$THREADS" in dnl Old wine getenv may not return NULL for missing entry. dnl Define EMPTY_GETENV_RESULTS here to work around the bug. ;; - dgux386) - THREADS=dgux386 -AC_MSG_RESULT($THREADLIBS) - # Use pthread GCC switch - THREADLIBS=-pthread - if test "${enable_parallel_mark}" = yes; then - AC_DEFINE(PARALLEL_MARK,1) - fi - AC_DEFINE(THREAD_LOCAL_ALLOC,1) - AC_DEFINE(GC_DGUX386_THREADS,1,[support for DB/UX on I386 threads]) - AC_DEFINE(DGUX_THREADS,1,[No description]) - # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread - AM_CPPFLAGS="-pthread $AM_CPPFLAGS" - ;; aix) THREADS=posix THREADLIBS=-lpthread @@ -255,6 +242,7 @@ AC_MSG_RESULT($THREADLIBS) AC_MSG_ERROR($THREADS is an unknown thread package) ;; esac +AC_SUBST(THREADCFLAGS) AC_SUBST(THREADLIBS) case "$host" in @@ -455,22 +443,6 @@ AC_SUBST(addincludes) AC_SUBST(addlibs) AC_SUBST(addtests) -# -# Check for AViiON Machines running DGUX -# -ac_is_dgux=no -AC_CHECK_HEADER(sys/dg_sys_info.h, [ac_is_dgux=yes]) - -AC_MSG_CHECKING(if host is AViiON running DGUX) -AC_MSG_RESULT($ac_is_dgux) - ## :GOTCHA: we do not check anything but sys/dg_sys_info.h -if test $ac_is_dgux = yes; then - if test "$enable_full_debug" = "yes"; then - GC_CFLAGS="$GC_CFLAGS -mstandard" - fi - GC_CFLAGS="$GC_CFLAGS -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend" -fi - dnl As of 4.13a2, the collector will not properly work on Solaris when dnl built with gcc and -O. So we remove -O in the appropriate case. dnl Not needed anymore on Solaris. @@ -513,9 +485,6 @@ AC_ARG_ENABLE(gc-debug, AC_MSG_WARN("Client must not use -fomit-frame-pointer.") AC_DEFINE(SAVE_CALL_COUNT, 8, [number of call frames saved with objects allocated through the debugging interface]) ;; - i[3456]86-*-dgux*) - AC_DEFINE(MAKE_BACK_GRAPH,1) - ;; esac fi]) @@ -547,5 +516,5 @@ fi AC_CONFIG_HEADERS([include/gc_config.h include/gc_ext_config.h]) -AC_CONFIG_FILES(Makefile include/Makefile threads.mk) +AC_CONFIG_FILES(Makefile include/Makefile testsuite/Makefile threads.mk) AC_OUTPUT |