aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/mf-runtime.c
AgeCommit message (Collapse)AuthorFilesLines
2004-08-03mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.Dale Johannesen1-1/+1
2004-08-03 Dale Johannesen <dalej@apple.com> * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin. From-SVN: r85478
2004-08-03mf-runtime.c (compare_uintptr_t): Remove function.Frank Ch. Eigler1-23/+11
2004-08-03 Frank Ch. Eigler <fche@redhat.com> * mf-runtime.c (compare_uintptr_t): Remove function. Inline simplified contents in all former callers. From-SVN: r85475
2004-07-27mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in the statically ↵Ulrich Weigand1-0/+6
linked case. 2004-07-27 Ulrich Weigand <weigand@informatik.uni-erlangen.de> * mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in the statically linked case. From-SVN: r85229
2004-07-27splay-tree.[ch]: Remove.Frank Ch. Eigler1-33/+582
2004-07-27 Frank Ch. Eigler <fche@redhat.com> * splay-tree.[ch]: Remove. Merge contents into ... * mf-runtime.c: ... here, renaming symbols and making all functions static. Remove unused min/max functions. * Makefile.am: Forget about splay-tree.[ch]. * Makefile.in, testsuite/Makefile.in: Regenerated. From-SVN: r85224
2004-07-21mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.Frank Ch. Eigler1-3/+8
2004-07-21 Frank Ch. Eigler <fche@redhat.com> * mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling. (__mfu_usage): Include (C) 2004. * mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions here. Include a comment explaining why. From-SVN: r85014
2004-07-20mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.Frank Ch. Eigler1-3/+12
2004-07-20 Frank Ch. Eigler <fche@redhat.com> * mf-impl.h (__mf_options): Add ignore_reads and timestamps fields. * mf-runtime.c (options): Give them a name. (__mf_set_default_options): Set them. (__mf_insert_new_object, __mfu_unregister): Optionalize timestamps. (__mf_violation): Warning cleanup. * mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option. * splay-tree.c (splay_tree_delete_helper): Remove obsolete decl. From-SVN: r84971
2004-07-15* Fix for g++/15861Frank Ch. Eigler1-2/+6
2004-07-15 Frank Ch. Eigler <fche@redhat.com> g++/15861 * mf-runtime.c (__mf_init): Make it non-static. Tolerate repeated invocation. From-SVN: r84761
2004-06-29[multiple changes]Frank Ch. Eigler1-2/+2
2004-06-29 Frank Ch. Eigler <fche@redhat.com> Splay tree implementation fork. * splay-tree.c, splay-tree.h: Copied & modified from libiberty. Use hard-coded comparison function for uintptr_t. Remove key/value deallocation logic. Cache last splayed key for consecutive lookups. * Makefile.am, Makefile.in: Use them, don't link to them. * mf-runtime.c (__mf_object_tree): Adapt to simpler splay_tree_new. (__mf_find_objects2): Flip successor/predecessor search sequence. * ansidecl.h, libiberty.h: Removed dummy files. 2004-06-29 Nick Clifton <nickc@redhat.com> From-SVN: r83879
2004-06-29(pthread_join): Only apply the weak pragma if the function actually exists.Nick Clifton1-0/+4
From-SVN: r83847
2004-06-24Adopt splay trees for object database.Frank Ch. Eigler1-1114/+838
2004-06-24 Frank Ch. Eigler <fche@redhat.com> Adopt splay trees for object database. * Makefile.am: Copy splay-tree.* from libiberty. * Makefile.in, testsuite/Makefile.in: Regenerated. * mf-runtime.h.in (__mf_unregister): Add third parameter (type). * mf-hooks[123].c (*): Add new third parameter to mf_unregister. * mf-impl.h (BEGIN_PROTECT): Remove some trace text. * mf-runtime.c: Rewrite code dealing with object database to use libiberty splay trees. Remove tree liveness aging option. * testsuite/libmudflap.c/fail18-frag.c: Add volatile flag. From-SVN: r83611
2004-06-09ctype support.Frank Ch. Eigler1-0/+6
2004-06-09 Frank Ch. Eigler <fche@redhat.com> ctype support. * configure.in: Look for ctype header and glibc implementation. * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype array hooks for glibc 2.3. * mf-runtime.h.in: Wrap them. * mf-runtime.c (__mf_init): Leave marker regarding other ctype implementations. * testsuite/libmudflap.c/pass47-frag.c: New test. * configure, config.h.in: Regenerated. From-SVN: r82848
2004-06-04Portability improvements, e.g., libmudflap/15293.Frank Ch. Eigler1-2/+3
2004-06-04 Frank Ch. Eigler <fche@redhat.com> Portability improvements, e.g., libmudflap/15293. * configure.in: Look for glibc extension functions. Look for support of -f{function,data}-sections. Look for more headers. Create testsuite/mfconfig.exp. Correct more "test x.." thinkos. * Makefile.am: Use $(SECTION_FLAGS). Collapse piecemeal-compiled mf-hooks* into usual single object per source. * mf-hooks*.c: Remove all #if WRAP_foo conditionals. * mf-hooks2.c: #include a bunch more system headers. Define strnlen if system doesn't provide one. * mf-hooks3.c (struct pthread_info): Add stack_*_alloc fields. (pthread_create): Use it to properly GC dead thread stacks. * mf-runtime.c (__mf_violation): Correct snprintf type warning. * testsuite/Makefile.am: Stop generating site.exp. * testsuite/mfconfig.exp.in: New file. * testsuite/config/default.exp: Load new mfconfig.exp. * testsuite/lib/libmudflap.exp (libmudflap-init): Add extra libraries. (prune_gcc_output): Add glibc static linking warnings. * testsuite/libmudflap.*/*frags.exp: Enumerate needed -lmudflap* libs. * testsuite/libmudflap.c/pass46-frag.c: Ditto. * configure, Makefile, aclocal.m4, config.h.in, testsuite/Makefile.in: Regenerated with autoconf 2.57 and automake 1.7. From-SVN: r82632
2004-06-04configure.in (LIBMUDFLAPTH): Fix thinko.Per Bothner1-2/+2
* configure.in (LIBMUDFLAPTH): Fix thinko. * configure.in: Check for more headers. * mf-hooks2.c: Conditionalize on HAVE_SYS_SOCKET_H etc. * mf-runtime.c: In two places conditionalize on SIUSR1 rather than HAVE_SIGNAL as mingw has signal.h but not SIUSR1. From-SVN: r82627
2004-05-17libmudflap.exp (libmudflap-init): For C++ test cases only...Frank Ch. Eigler1-0/+2
2004-05-17 Frank Ch. Eigler <fche@redhat.com> * lib/libmudflap.exp (libmudflap-init): For C++ test cases only, import some build settings from libstdc++-v3 testsuite_flags. * .../cfrags.exp, .../c++frags.exp, .../cthfrags.exp: Corresponding changes to pass test language. * mf-runtime.c (__mfu_check): Poison the cache with antidote for quicker mode-nop handling. From-SVN: r81944
2004-05-13Merge tree-ssa-20020619-branch into mainline.Diego Novillo1-0/+2431
From-SVN: r81764