aboutsummaryrefslogtreecommitdiff
path: root/libmudflap
AgeCommit message (Collapse)AuthorFilesLines
2005-11-22libmudflap.exp (libmudflap-init): Remove -static from MUDFLAP_FLAGS if ↵Janis Johnson7-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
2005-10-31.cvsignore are not needed for subversion, remove them.Andreas Jaeger1-1/+0
From-SVN: r106279
2005-10-04This avoids small data/gp reloc overflow errors.James E Wilson3-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
2005-09-30Don't build thread library for targets that don't support threads.James E Wilson3-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
2005-09-30Fix mips-elf gp relocation overflow errors.James E Wilson2-2/+7
* mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown bounds. From-SVN: r104825
2005-09-29We can only wrap mmap if it exists.James E Wilson2-0/+10
* mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect with HAVE_MMAP ifdef. From-SVN: r104810
2005-09-23re PR libmudflap/23084 (mudflap crash upon accept() with argement 2 and 3 as ↵Frank Ch. Eigler2-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
2005-09-23pass58-frag.cxx: New test for heisenbug 19319.Frank Ch. Eigler2-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
2005-09-23enable.m4: New file.Tom Tromey6-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
2005-08-22Fix FreeBSD fopen instrumentation.James E Wilson2-0/+11
* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when __FreeBSD__ is defined. From-SVN: r103368
2005-08-18Fix FreeBSD failure with recursive malloc call.James E Wilson4-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
2005-08-17All files: Update FSF address.Kelley Cook11-18/+22
2005-08-17 Kelley Cook <kcook@gcc.gnu.org> * All files: Update FSF address. From-SVN: r103197
2005-08-15mf-hooks3.c (main_seen_p): Remove.Ulrich Weigand2-19/+9
* mf-hooks3.c (main_seen_p): Remove. (__mf_get_state): Remove attempt to recognize the main thread. From-SVN: r103119
2005-08-15configure.ac: Test for the name of the symbol used for the entry point...Maciej W. Rozycki5-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
2005-08-14mf-runtime.c (__mf_state_1): Initialize to reentrant.Ulrich Weigand5-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
2005-07-16gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.Richard Henderson12-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
2005-06-19* testsuite/libmudflap.c/externs-1.c (main): Add return statement.Ulrich Weigand2-0/+6
From-SVN: r101184
2005-06-15Fix for uncaching bug reported by Herman ten Brugge.Frank Ch. Eigler3-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
2005-06-14re PR libmudflap/21724 (libmudflap/Makefile.am, refusing to install ↵Alfred M. Szmidt3-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
2005-06-14re PR libmudflap/21023 (mudflap reports errors for external array variable ↵Frank Ch. Eigler5-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
2005-06-14re PR testsuite/21094 (libmudflap C++ tests run even when C++ not configured)Frank Ch. Eigler3-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
2005-06-14re PR libmudflap/22064 (libmudflap contains possible alias violations)Frank Ch. Eigler2-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
2005-05-10* configure: Regenerate.Mike Stump2-1/+5
From-SVN: r99498
2005-04-13* configure: Regenerate.Mike Stump2-1/+66
From-SVN: r98065
2005-04-12re PR other/19266 ([mudflap] ICE when compiling with -fmudflap -O)Frank Ch. Eigler3-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
2005-04-07* mf-runtime.h: Add libmudflap copyright clause.Mike Stump2-0/+36
From-SVN: r97807
2005-04-04* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.Alan Modra2-3/+6
From-SVN: r97532
2005-03-22mf-heuristics.c: Fix whitespace at end of line.Mike Stump8-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
2005-03-21configure.ac: Do not invoke TL_AC_GCC_VERSION.Zack Weinberg7-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
2005-03-17mf-runtime.c (__mfu_check): Respect ignore_reads configuration.Frank Ch. Eigler4-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
2005-02-13* typo fixFrank Ch. Eigler1-0/+1
From-SVN: r94984
2005-02-13re PR libmudflap/19319 (Mudflap produce many violations on simple, correct ↵Frank Ch. Eigler2-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
2005-01-05* testsuite/libmudflap.c/pass32-frag.c: Fix typo.Richard Henderson2-2/+6
From-SVN: r92930
2005-01-02mf-impl.h (uintptr_t): Get typedef via stdint.h or define explicitly.Greg McGary11-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
2004-12-09Makefile.am: Add ../config to ACLOCAL_AMFLAGS.Kelley Cook5-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
2004-12-02Introduce and use config/gcc-version.m4.Richard Sandiford6-11/+33
From-SVN: r91625
2004-11-30Makefile.am: Define ACLOCAL_AMFLAGS.Kelley Cook8-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
2004-11-25Makefile.am: Revert previous.Kelley Cook7-34/+960
2004-11-24 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am: Revert previous. * acinclude.m4: Restore. * aclocal.m4, configure, Makefile.in: Regenerate. * testsuite/Makefile.in: Likewise. From-SVN: r91292
2004-11-24Makefile.am: Define ACLOCAL_AMFLAGS.Kelley Cook7-953/+41
2004-11-24 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am: Define ACLOCAL_AMFLAGS. * acinclude.m4: Remove. * aclocal.m4, configure, Makefile.in: Regenerate. * testsuite/Makefile.in: Likewise. From-SVN: r91209
2004-11-24target-libpath.exp: New file defining set_ld_library_path_env_vars and ↵John David Anglin2-14/+21
restore_ld_library_path_env_vars. * lib/target-libpath.exp: New file defining set_ld_library_path_env_vars and restore_ld_library_path_env_vars. * g++.dg/compat/compat.exp, lib/g++.exp, lib/gcc-dg.exp, lib/gfortran.exp, lib/objc.exp, lib/treelang.exp: Use new procs. * ada/acats/run_acats (LD_LIBRARY_PATH): Add previous LD_LIBRARY_PATH to LD_LIBRARY_PATH. Export LD_LIBRARY_PATH. * testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp. * testsuite/lib/libjava.exp, testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp. * testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp. * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp. From-SVN: r91137
2004-11-24Makefile.in, [...]: Regenerate with automake 1.9.3.Kelley Cook5-101/+236
2004-11-23 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in, configure, aclocal.m4: Regenerate with automake 1.9.3. * testsuite/Makefile.in: Likewise. From-SVN: r91125
2004-11-01configure.ac: (target_alias): Default to $host_alias, not $target.Andreas Schwab3-2/+8
* configure.ac: (target_alias): Default to $host_alias, not $target. * configure: Regenerated. From-SVN: r89959
2004-10-28fail35-,pass53-,pass54-frag.c: New tests.Frank Ch. Eigler5-1/+104
2004-10-28 Frank Ch. Eigler <fche@redhat.com> * testsuite/libmudflap.c/fail35-,pass53-,pass54-frag.c: New tests. * testsuite/libmudflap.c/pass35-frag.c: Correct embedded warning message. From-SVN: r89783
2004-10-25re PR other/18138 (libgcc_s.so.1 not found by 64-bit testsuite)Eric Botcazou2-1/+6
gcc/testsuite: PR other/18138 * lib/g++.exp: Accept more than one multilib libgcc. * lib/gcc-dg.exp: Likewise. * lib/objc.exp: Likewise. * lib/treelang.exp: Likewise. * lib/gfortran.exp: Likewise. libffi: PR other/18138 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc. libjava: PR other/18138 * testsuite/lib/libjava.exp: Accept more than one multilib libgcc. libmudflap!: PR other/18138 * testsuite/lib/libmudflap.exp: Accept more than one multilib libgcc. libstdc++-v3: PR other/18138 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc. From-SVN: r89528
2004-10-13configure.ac: Check for more headers, functions.Frank Ch. Eigler11-39/+492
2004-10-12 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Check for more headers, functions. * mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for tracking overridden FILE buffers. (fopen, setvbuf): New/revised hook functions for buffer overriding. (setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto. (fflush): Accept given NULL stream (means "all streams"). * mf-runtime.h.in: * mf-runtime.c (__mfu_check): Accept accesses that span adjacent HEAP/GUESS objects. (LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively. (__mf_adapt_cache): Use them all. * testsuite/libmudflap.c/pass35-frag.c: Update warning message. * testsuite/libmudflap.c++/ctors.exp: Ditto. * testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests. * configure, config.h.in: Regenerated. From-SVN: r88996
2004-10-05* thanks kcookFrank Ch. Eigler3-4/+8
2004-10-05 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Checking for sys/socket.h once is enough. * configure: Regenerated. From-SVN: r88559
2004-10-04configure.ac: Look for more headers & functions.Frank Ch. Eigler8-25/+491
2004-10-04 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Look for more headers & functions. * mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions. * mf-runtime.h.in: Add new "#pragma redefine_extname"s for them. * mf-runtime.c (options): Clean up integer signedness warnings. (main): Add a declaration to fix a warning. * mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper. * configure, config.h.in: Regenerated. From-SVN: r88517
2004-10-03* fixing typos in accidental checkinFrank Ch. Eigler1-2/+2
From-SVN: r88463
2004-10-02tree-mudflap.c (mf_build_check_statement_for): Reorganize to take check-base ↵Frank Ch. Eigler4-0/+81
and -limit arguments. 2004-10-02 Frank Ch. Eigler <fche@redhat.com> * tree-mudflap.c (mf_build_check_statement_for): Reorganize to take check-base and -limit arguments. (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit check ranges for ARRAY_REF and COMPONENT_REF. (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary instrumentation. 2004-10-02 Frank Ch. Eigler <fche@redhat.com> * testsuite/libmudflap.c/pass50-frag.c, fail33-frag.c, fail34-frag.c: New tests for proper base/limit checking for aggregates. From-SVN: r88432
2004-09-15attribs.c, [...]: Use %<, %> and %q for quoting in diagnostics going through ↵Joseph Myers2-1/+5
pretty-print.c. gcc: * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c, except.c, fold-const.c, function.c, langhooks.c, params.c, reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c, tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c. Use '' for quoting in other diagnostic text. * langhooks.c: Include intl.h. Mark text locating diagnostics for translation. * Makefile.in (langhooks.o): Update dependencies. * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic formats. gcc/testsuite: * g++.dg/ext/member-attr.C, g++.dg/warn/deprecated.C, gcc.dg/deprecated.c, gcc.dg/noreturn-1.c, gcc.dg/noreturn-4.c: Update expected messages. libmudflap: * testsuite/libmudflap.c/pass35-frag.c: Update expected message. From-SVN: r87563