OSDN Git Service

Don't build thread library for targets that don't support threads.
[pf3gnuchains/gcc-fork.git] / libmudflap / ChangeLog
index 4e0525c..e125f01 100644 (file)
@@ -1,3 +1,129 @@
+2005-09-30  James E. Wilson  <wilson@specifix.com>
+
+       * configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
+       AC_CHECK_HEADER.
+       (target_thread_file): New.  Set from sed'ed gcc output.
+       (posix_threads): New.  Set from target_thread_file.  Use instead of
+       ac_have_pthread_h.
+       (pthread_create_version): Move initialization before code using it.
+       * configure: Regenerate.
+
+       * mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown
+       bounds.
+
+2005-09-29  James E. Wilson  <wilson@specifix.com>
+
+       * mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
+       with HAVE_MMAP ifdef.
+
+2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
+
+       PR 23084.
+       * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter.
+
+2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
+
+       * testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319.
+
+2005-09-23  Tom Tromey  <tromey@redhat.com>
+
+       * aclocal.m4, configure: Rebuilt.
+       * configure.ac: Use GCC_CHECK_TLS.
+       * acinclude.m4 (LIBMUDFLAP_CHECK_TLS, LIBMUDFLAP_ENABLE): Moved
+       to ../config.
+
+2005-08-22  Jim Wilson  <wilson@specifix.com>
+
+       * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
+       __FreeBSD__ is defined.
+
+2005-08-17  Jim Wilson  <wilson@specifix.com>
+
+       * mf-hooks1.c (malloc, calloc, realloc, free,
+       __mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling
+       the real routines, and END_MALLOC_PROTECT afterwards.
+       * mf-impl.h (enum __mf_state_enum): Expand comment.  Add in_malloc.
+       (BEGIN_PROTECT): Handle in_malloc state.
+       (BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New.
+       * testsuite/libmudflap.c/hook2-allocstuff.c: New.
+
+2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
+
+       * All files: Update FSF address.
+
+2005-08-15  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
+
+       * mf-hooks3.c (main_seen_p): Remove.
+       (__mf_get_state): Remove attempt to recognize the main thread.
+
+2005-08-15  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * configure.ac: Test for the name of the symbol used for the entry
+       point; define ENTRY_POINT to the result.
+       * configure: Regenerate.
+       * config.h.in: Regenerate.
+       * mf-heuristics.c: Replace _start with ENTRY_POINT throughout.
+
+2005-08-14  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
+
+       * mf-runtime.c (__mf_state_1): Initialize to reentrant.
+       (__mf_init): Set thread state active.
+       * mf-hooks3.c (__mf_pthread_spawner): Always set thread
+       state active.
+       (pthread_create wrapper): Always use thread spawner.
+
+       * testsuite/libmudflap.cth/pass37-frag.c: Increase timeout.
+       * testsuite/libmudflap.cth/pass39-frag.c: Likewise.
+
+2005-07-16  Richard Henderson  <rth@redhat.com>
+
+       * acinclude.m4: New file.
+       * configure.ac: Invoke LIBMUDFLAP_CHECK_TLS.
+       * configure, config.h.in, Makefile.in, testsuite/Makefile.in: Rebuild.
+       * mf-hooks1.c (__mf_0fn_malloc): Move body from ...
+       (__mf_0fn_calloc): ... here.
+       * mf-hooks3.c (struct pthread_info): Remove.
+       (__mf_pthread_info, __mf_pthread_info_idx): Remove.
+       (LIBMUDFLAPTH_THREADS_MAX): Set to 1021.
+       (struct mf_thread_data): New.
+       (mf_thread_data, mf_thread_data_lock): New.
+       (__mf_allocate_blank_threadinfo): Remove.
+       (__mf_find_threadinfo): Rewrite and simplify.  Only use if TLS is
+       not available.
+       (__mf_state_perthread): Remove.
+       (__mf_get_state, __mf_set_state): New.
+       (__mf_pthread_cleanup): Use &errno, rather than saved pointer.
+       Update mf_thread_data killing procedure.
+       (__mf_pthread_spawner): Similarly.
+       (__mf_0fn_pthread_create): Only use wrapper if necessary.  Remove
+       code to allocate thread stack space.
+       (__mf_0fn_pthread_join, pthread_join): Remove.
+       (__mf_0fn_pthread_exit, pthread_exit): Remove.
+       * mf-impl.h (dyn_pthread_join, dyn_pthread_exit): Remove.
+       (__mf_state_1): Rename from __mf_state; use TLS when available.
+       (__mf_get_state, __mf_set_state): New.  Update all users.
+       * mf-runtime.c (begin_recursion_protect1): New.
+       (BEGIN_RECURSION_PROTECT): Use it.
+       (__mf_state_1): Rename from __mf_state; use TLS when available.
+       (threads_active_p): Remove.
+       (__mf_usage): Compute it directly.
+
+2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * testsuite/libmudflap.c/externs-1.c (main): Add return statement.
+
+2005-06-15  Frank Ch. Eigler  <fche@redhat.com>
+
+       Fix for uncaching bug reported by Herman ten Brugge.
+       * mf-runtime.c (__mf_uncache_object): Search whole cache.
+       * testsuite/libmudflap.c/fail40-frag.c: New test.
+
+2005-05-23  Alfred M. Szmidt  <ams@gnu.org>
+
+       PR libmudflap/21724
+       * Makefile.am (AM_MAKEFLAGS): Pass includedir.
+       * Makefile.in: Amend.
+
 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
 
        PR mudflap/21023