summaryrefslogtreecommitdiff
path: root/libmudflap
Commit message (Collapse)AuthorAgeFilesLines
* pass59-frag.c (main): Fix casting of arg.Uros Bizjak2007-03-142-2/+6
| | | | | | * testsuite/libmudflap.cth/pass59-frag.c (main): Fix casting of arg. From-SVN: r122911
* Makefile.am: Add dummy install-pdf target.Brooks Moses2007-03-013-4/+11
| | | | | | | * Makefile.am: Add dummy install-pdf target. * Makefile.in: Regenerate From-SVN: r122442
* [multiple changes]Jakub Jelinek2007-02-072-2/+129
| | | | | | | | | | | | | | | | | 2007-02-07 Bruno Haible <bruno@clisp.org> config/ PR libgomp/28468 * config/tls.m4 (GCC_CHECK_TLS): Also check whether the libc supports TLS via __thread. 2007-02-07 Jakub Jelinek <jakub@redhat.com> {libgomp,libstdc++-v3,libmudflap,libjava}/ PR libgomp/28468 * configure: Regenerate. From-SVN: r121689
* tls.m4 (GCC_CHECK_TLS): Do not test TLS with static linking if static ↵Eric Botcazou2006-12-042-2/+39
| | | | | | | | | | | | | | | | | | | | | | linking doesn't even work. config/ * tls.m4 (GCC_CHECK_TLS): Do not test TLS with static linking if static linking doesn't even work. libgomp/ * configure: Regenerate. libmudflap/ * configure: Regenerate. libjava/ * configure: Regenerate. libstdc++-v3/ * configure: Regenerate. From-SVN: r119487
* * tls.m4 (GCC_CHECK_TLS): Fall back to a link test.Daniel Jacobowitz2006-11-132-6/+11
| | | | From-SVN: r118777
* re PR libmudflap/28578 (A most simple multithreaded program (practically any ↵Frank Ch. Eigler2006-11-103-6/+70
| | | | | | | | | | | | | | | | | | | | multithreaded one) causes mudflap violation) 2006-11-10 Frank Ch. Eigler <fche@redhat.com> PR libmudflap/28578 * mf-hooks1.c (__mf_0fn_malloc): Make the bootstrap buffers static but not function scope static. (free): Skip deallocation attempts for objects placed into bootstrap buffers. * testsuite/libmudflap.cth/pass59-frag.c: New test. M libmudflap/mf-hooks1.c M libmudflap/ChangeLog A libmudflap/testsuite/libmudflap.cth/pass59-frag.c From-SVN: r118662
* 2006-11-06 Frank Ch. Eigler <fche@redhat.com>Frank Ch. Eigler2006-11-062-12/+74
| | | | | | | | From Herman ten Brugge <hermantenbrugge@home.nl>: * mf-runtime.c (__mf_uncache_object): Optimize the code so that small and large objects are handled a lot faster. From-SVN: r118526
* configure.ac (__libc_freeres): Look for it.Frank Ch. Eigler2006-11-066-2/+143
| | | | | | | | | | | | | 2006-11-06 Frank Ch. Eigler <fche@redhat.com> * configure.ac (__libc_freeres): Look for it. * mf-impl.h (call_libc_freeres): New configuration flag. * mf-runtime.c (__mf_set_default_options): Set it by default. (__mfu_report): Call it if needed. (__mfu_unregister): Remove "unaccessed registered object" warning. * configure, config.h.in: Regenerated. From-SVN: r118523
* tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE.Tom Tromey2006-09-192-3/+6
| | | | | | | | | | | | | | | | config * tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE. libgomp * configure: Rebuilt. libstdc++-v3 * configure: Rebuilt. libmudflap * configure: Rebuilt. libjava * configure: Rebuilt. From-SVN: r117049
* re PR tree-optimization/21274 (SSA Crash, reproducable)Frank Ch. Eigler2006-06-219-39/+92
| | | | | | | | | | | | | | | | | | | 2006-06-21 Frank Ch. Eigler <fche@redhat.com> PR 21274 mf-runtime.h installation based on ssp patch for PR 26473 from Mark Mitchell <mark@codesourcery.com>. * configure.ac (ACX_NONCANONICAL_TARGET): Use it. * Makefile.am (target_noncanonical): Define. (libsubincludedir): New variable. (nobase_libsubinclude_HEADERS): Add mf-runtime.h. (include_HEADERS): Remove. * configure, aclocal.m4, config.h.in: Regenerated. * Makefile.in, testsuite/Makefile.in: Likewise. * mf-runtime.h: Add #ifndef protection for conflicting _REENTRANT and _THREAD_SAFE redefinition values. From-SVN: r114855
* Makefile.am: Add install-html target.Carlos O'Donell2006-05-243-0/+13
| | | | | | | | | 2006-05-23 Carlos O'Donell <carlos@codesourcery.com> * Makefile.am: Add install-html target. Add install-html to .PHONY * Makefile.in: Regenerate. From-SVN: r114036
* re PR c++/26789 (ICE on incomplete struct with -fmudflap)Volker Reichelt2006-04-193-0/+23
| | | | | | | | | | PR mudflap/26789 * testsuite/libmudflap.c++/error1-frag.cxx: New test. PR mudflap/26790 * testsuite/libmudflap.c++/error2-frag.cxx: New test. From-SVN: r113095
* libjava.exp (libjava_init): Recognize multilib directory names containing ↵Matthias Klose2006-04-102-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | underscores. gcc/testsuite: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libffi: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libgomp: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libjava: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libmudflap: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libstdc++: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. From-SVN: r112833
* libmudflap.exp (libmudflap-init): Remove -static from MUDFLAP_FLAGS if ↵Janis Johnson2005-11-227-5/+48
| | | | | | | | | | | | | | static library not supported. * testsuite/lib/libmudflap.exp (libmudflap-init): Remove -static from MUDFLAP_FLAGS if static library not supported. * testsuite/libmudflap.c/cfrags.exp (MUDFLAP_FLAGS): new. * testsuite/libmudflap.c/externs.exp: Ditto. * testsuite/libmudflap.c++/ctors.exp: Ditto. * testsuite/libmudflap.c++/c++frags.exp: Ditto. * testsuite/libmudflap.cth/cthfrags.exp: Ditto. From-SVN: r107371
* .cvsignore are not needed for subversion, remove them.Andreas Jaeger2005-10-311-1/+0
| | | | From-SVN: r106279
* This avoids small data/gp reloc overflow errors.James E Wilson2005-10-043-3/+10
| | | | | | | | | * configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare $name as array of characters with unknown bound. Also store into the array. * configure: Regenerate. From-SVN: r104964
* Don't build thread library for targets that don't support threads.James E Wilson2005-09-303-57/+97
| | | | | | | | | | | | * 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. From-SVN: r104838
* Fix mips-elf gp relocation overflow errors.James E Wilson2005-09-302-2/+7
| | | | | | | * mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown bounds. From-SVN: r104825
* We can only wrap mmap if it exists.James E Wilson2005-09-292-0/+10
| | | | | | | * mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect with HAVE_MMAP ifdef. From-SVN: r104810
* re PR libmudflap/23084 (mudflap crash upon accept() with argement 2 and 3 as ↵Frank Ch. Eigler2005-09-232-1/+7
| | | | | | | | | | | NULL) 2005-09-23 Frank Ch. Eigler <fche@elastic.org> PR 23084. * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter. From-SVN: r104588
* pass58-frag.cxx: New test for heisenbug 19319.Frank Ch. Eigler2005-09-232-0/+16
| | | | | | | | 2005-09-23 Frank Ch. Eigler <fche@elastic.org> * testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319. From-SVN: r104587
* enable.m4: New file.Tom Tromey2005-09-236-63/+16
| | | | | | | | | | | | | config: * enable.m4: New file. * tls.m4: New file. libmudflap: * aclocal.m4, configure: Rebuilt. * configure.ac: Use GCC_CHECK_TLS. * acinclude.m4 (LIBMUDFLAP_CHECK_TLS, LIBMUDFLAP_ENABLE): Moved to ../config. From-SVN: r104571
* Fix FreeBSD fopen instrumentation.James E Wilson2005-08-222-0/+11
| | | | | | | * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when __FreeBSD__ is defined. From-SVN: r103368
* Fix FreeBSD failure with recursive malloc call.James E Wilson2005-08-184-2/+59
| | | | | | | | | | | | * 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. From-SVN: r103256
* All files: Update FSF address.Kelley Cook2005-08-1711-18/+22
| | | | | | | | 2005-08-17 Kelley Cook <kcook@gcc.gnu.org> * All files: Update FSF address. From-SVN: r103197
* mf-hooks3.c (main_seen_p): Remove.Ulrich Weigand2005-08-152-19/+9
| | | | | | | * mf-hooks3.c (main_seen_p): Remove. (__mf_get_state): Remove attempt to recognize the main thread. From-SVN: r103119
* configure.ac: Test for the name of the symbol used for the entry point...Maciej W. Rozycki2005-08-155-4/+101
| | | | | | | | | | * 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. From-SVN: r103113
* mf-runtime.c (__mf_state_1): Initialize to reentrant.Ulrich Weigand2005-08-145-29/+24
| | | | | | | | | | | | | * 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. From-SVN: r103084
* gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.Richard Henderson2005-07-1612-832/+611
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit. * 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. From-SVN: r102108
* * testsuite/libmudflap.c/externs-1.c (main): Add return statement.Ulrich Weigand2005-06-192-0/+6
| | | | From-SVN: r101184
* Fix for uncaching bug reported by Herman ten Brugge.Frank Ch. Eigler2005-06-153-5/+67
| | | | | | | | | | 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. From-SVN: r100985
* re PR libmudflap/21724 (libmudflap/Makefile.am, refusing to install ↵Alfred M. Szmidt2005-06-143-0/+8
| | | | | | | | | | | | mf-runtime.h in includedir) 2005-05-23 Alfred M. Szmidt <ams@gnu.org> PR libmudflap/21724 * Makefile.am (AM_MAKEFLAGS): Pass includedir. * Makefile.in: Amend. From-SVN: r100951
* re PR libmudflap/21023 (mudflap reports errors for external array variable ↵Frank Ch. Eigler2005-06-145-1/+67
| | | | | | | | | | | | | | | with no size specified) 2005-06-14 Frank Ch. Eigler <fche@redhat.com> PR mudflap/21023 * tree-mudflap.c (mudflap_finish_file): Exclude non-public rather than static objects (!) from libmudflap registration. * testsuite/libmudflap.c/externs.exp, externs-{1,2}.c: New test files. * testsuite/libmudflap.c/cfrags.exp: Bypass new sources. From-SVN: r100950
* re PR testsuite/21094 (libmudflap C++ tests run even when C++ not configured)Frank Ch. Eigler2005-06-143-0/+13
| | | | | | | | | 2005-06-14 Frank Ch. Eigler <fche@redhat.com> PR libmudflap/21094 * testsuite/libmudflap.c++/*.exp: Assert build tree g++. From-SVN: r100946
* re PR libmudflap/22064 (libmudflap contains possible alias violations)Frank Ch. Eigler2005-06-142-16/+16
| | | | | | | | | | 2005-06-14 Frank Ch. Eigler <fche@redhat.com> PR mudflap/22064 * mf-impl.h (mudflap_mode, violation_mode): Make these ordinary unsigned vars with #defines instead of enums. From-SVN: r100945
* * configure: Regenerate.Mike Stump2005-05-102-1/+5
| | | | From-SVN: r99498
* * configure: Regenerate.Mike Stump2005-04-132-1/+66
| | | | From-SVN: r98065
* re PR other/19266 ([mudflap] ICE when compiling with -fmudflap -O)Frank Ch. Eigler2005-04-123-1/+32
| | | | | | | | | | | | | | | | | 2005-04-12 Frank Ch. Eigler <fche@redhat.com> PR mudflap/19266 From Richard Henderson <rth@redhat.com>: * tree-mudflap.c (mf_build_check_statement_for): Correct block splitting logic. 2005-04-12 Frank Ch. Eigler <fche@redhat.com> PR mudflap/19266 * testsuite/libmudflap.c++/c++frags.exp: Also test -O permutation. * testsuite/libmudflap.c++/pass57-frag.cxx: New test. From-SVN: r98028
* * mf-runtime.h: Add libmudflap copyright clause.Mike Stump2005-04-072-0/+36
| | | | From-SVN: r97807
* * mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.Alan Modra2005-04-042-3/+6
| | | | From-SVN: r97532
* mf-heuristics.c: Fix whitespace at end of line.Mike Stump2005-03-228-262/+272
| | | | | | | | | | | | * mf-heuristics.c: Fix whitespace at end of line. * mf-hooks1.c: Likewise. * mf-hooks2.c: Likewise. * mf-hooks3.c: Likewise. * mf-impl.h: Likewise. * mf-runtime.c: Likewise. * mf-runtime.h: Likewise. From-SVN: r96850
* configure.ac: Do not invoke TL_AC_GCC_VERSION.Zack Weinberg2005-03-217-40/+26
| | | | | | | | | | * configure.ac: Do not invoke TL_AC_GCC_VERSION. In all substitutions, expand gcc_version in Makefile. * aclocal.m4, configure: Regenerate. * Makefile.am: Set gcc_version. * Makefile.in, testsuite/Makefile.in: Regenerate. From-SVN: r96817
* mf-runtime.c (__mfu_check): Respect ignore_reads configuration.Frank Ch. Eigler2005-03-174-1/+42
| | | | | | | | | 2005-03-17 Frank Ch. Eigler <fche@redhat.com> * mf-runtime.c (__mfu_check): Respect ignore_reads configuration. * testsuite/libmudflap.c/{pass56,fail39}-frag.c: New tests. From-SVN: r96620
* * typo fixFrank Ch. Eigler2005-02-131-0/+1
| | | | From-SVN: r94984
* re PR libmudflap/19319 (Mudflap produce many violations on simple, correct ↵Frank Ch. Eigler2005-02-132-0/+11
| | | | | | | | | | | c++ program) 2005-02-13 Frank Ch. Eigler <fche@redhat.com> PR mudflap/19319 * testsuite/libmudflap.c++/pass55-frag.c: New test. From-SVN: r94983
* * testsuite/libmudflap.c/pass32-frag.c: Fix typo.Richard Henderson2005-01-052-2/+6
| | | | From-SVN: r92930
* mf-impl.h (uintptr_t): Get typedef via stdint.h or define explicitly.Greg McGary2005-01-0211-28/+107
| | | | | | | | | | | | | | * mf-impl.h (uintptr_t): Get typedef via stdint.h or define explicitly. * mf-runtime.h: New file, replaces mf-runtime.h.in. * configure.ac (AC_CONFIG_FILES): mf-runtime.h is no longer generated. * Makefile.in: Ditto. * testsuite/lib/libmudflap.exp: Add -I${srcdir}/.. to get mf-runtime.h * testsuite/libmudflap.c/pass32-frag.c: s/uintptr_t/__mf_uintptr_t/ * testsuite/libmudflap.c/fail36-frag.c: New test. * testsuite/libmudflap.c/fail37-frag.c: New test. * testsuite/libmudflap.c/fail38-frag.c: New test. From-SVN: r92815
* Makefile.am: Add ../config to ACLOCAL_AMFLAGS.Kelley Cook2004-12-095-9/+12
| | | | | | | | | 2004-12-08 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am: Add ../config to ACLOCAL_AMFLAGS. * aclocal.m4, Makefile.in, testsuite/Makefile.in: Regenerate. From-SVN: r91926
* Introduce and use config/gcc-version.m4.Richard Sandiford2004-12-026-11/+33
| | | | From-SVN: r91625
* Makefile.am: Define ACLOCAL_AMFLAGS.Kelley Cook2004-11-308-953/+42
| | | | | | | | | | | | 2004-11-29 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am: Define ACLOCAL_AMFLAGS. * acinclude.m4: Remove. * stamp-h.in: Remove superfluous stamp file. * aclocal.m4, configure, Makefile.in: Regenerate. * testsuite/Makefile.in: Likewise. From-SVN: r91499